diff --git a/FRW.xcodeproj/project.pbxproj b/FRW.xcodeproj/project.pbxproj index d8de885fe..04681c06e 100644 --- a/FRW.xcodeproj/project.pbxproj +++ b/FRW.xcodeproj/project.pbxproj @@ -1614,6 +1614,8 @@ 4E9182622EB89C63008FD73A /* AdaptiveHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E9182612EB89C63008FD73A /* AdaptiveHostingController.swift */; }; 4E9182632EB89C63008FD73A /* AdaptiveHostingController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E9182612EB89C63008FD73A /* AdaptiveHostingController.swift */; }; 4E947C922BBEB2E300E87A85 /* web3swift in Frameworks */ = {isa = PBXBuildFile; productRef = 4E947C912BBEB2E300E87A85 /* web3swift */; }; + 4E952F4A2EE2B59F00175DAA /* NativeScreenName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E952F492EE2B59F00175DAA /* NativeScreenName.swift */; }; + 4E952F4B2EE2B59F00175DAA /* NativeScreenName.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E952F492EE2B59F00175DAA /* NativeScreenName.swift */; }; 4E95322F2CD2082F00AAECD1 /* AddCustomTokenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E95322E2CD2082F00AAECD1 /* AddCustomTokenView.swift */; }; 4E9532302CD2082F00AAECD1 /* AddCustomTokenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E95322E2CD2082F00AAECD1 /* AddCustomTokenView.swift */; }; 4E9532322CD2089C00AAECD1 /* AddCustomTokenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4E9532312CD2089C00AAECD1 /* AddCustomTokenViewModel.swift */; }; @@ -1797,6 +1799,8 @@ 4EC5E06A2BD8B20D003A1A24 /* EVMModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC5E0682BD8B20D003A1A24 /* EVMModels.swift */; }; 4EC626092AE8A28100318720 /* UUIDManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC626082AE8A28100318720 /* UUIDManager.swift */; }; 4EC6260A2AE8A28100318720 /* UUIDManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC626082AE8A28100318720 /* UUIDManager.swift */; }; + 4EC758412EEAC17F00B9012E /* TurboModule+Onboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC758402EEAC16F00B9012E /* TurboModule+Onboard.swift */; }; + 4EC758422EEAC17F00B9012E /* TurboModule+Onboard.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC758402EEAC16F00B9012E /* TurboModule+Onboard.swift */; }; 4EC8675D2EBAF25400AFD76D /* AuthnAccountsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC8675C2EBAF25400AFD76D /* AuthnAccountsView.swift */; }; 4EC8675E2EBAF25400AFD76D /* AuthnAccountsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC8675C2EBAF25400AFD76D /* AuthnAccountsView.swift */; }; 4EC97652286A07060066811D /* NFTCollectionEnableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4EC97651286A07060066811D /* NFTCollectionEnableView.swift */; }; @@ -3243,6 +3247,7 @@ 4E8E3F882D8306C7000916A6 /* SearchBar.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchBar.swift; sourceTree = ""; }; 4E90592E2B1792F10029FC66 /* SyncAddDeviceView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncAddDeviceView.swift; sourceTree = ""; }; 4E9182612EB89C63008FD73A /* AdaptiveHostingController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AdaptiveHostingController.swift; sourceTree = ""; }; + 4E952F492EE2B59F00175DAA /* NativeScreenName.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NativeScreenName.swift; sourceTree = ""; }; 4E95322E2CD2082F00AAECD1 /* AddCustomTokenView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddCustomTokenView.swift; sourceTree = ""; }; 4E9532312CD2089C00AAECD1 /* AddCustomTokenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AddCustomTokenViewModel.swift; sourceTree = ""; }; 4E9532342CD2196400AAECD1 /* SectionItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SectionItem.swift; sourceTree = ""; }; @@ -3343,6 +3348,7 @@ 4EC56B2F281FC57900246878 /* FlowQuery.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FlowQuery.swift; sourceTree = ""; }; 4EC5E0682BD8B20D003A1A24 /* EVMModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EVMModels.swift; sourceTree = ""; }; 4EC626082AE8A28100318720 /* UUIDManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UUIDManager.swift; sourceTree = ""; }; + 4EC758402EEAC16F00B9012E /* TurboModule+Onboard.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "TurboModule+Onboard.swift"; sourceTree = ""; }; 4EC8675C2EBAF25400AFD76D /* AuthnAccountsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AuthnAccountsView.swift; sourceTree = ""; }; 4EC97651286A07060066811D /* NFTCollectionEnableView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NFTCollectionEnableView.swift; sourceTree = ""; }; 4ECA7E64284371CA0039A210 /* NFTBlurImageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NFTBlurImageView.swift; sourceTree = ""; }; @@ -4841,12 +4847,14 @@ 4EECEB202E323F29008E21B6 /* RNEncoder.swift */, 1575765D2E322E6A00D7D8C4 /* BridgeModels.swift */, 15A87E902E26D9E100F0E550 /* TurboModuleSwift.swift */, + 4EC758402EEAC16F00B9012E /* TurboModule+Onboard.swift */, 15A87E8D2E26D9CF00F0E550 /* RCTNativeFRWBridge.mm */, 1594792C2E282F7000F2B7A6 /* RCTNativeFRWBridge.h */, 4EECEB1D2E3235AB008E21B6 /* NativeToRNModel.swift */, 4E7712E02E3B2AD70011C1DA /* RNBridgeError.swift */, 4E33F7EE2E432F5D00B3D62F /* SendToConfig+Helper.swift */, 4E77CDFF2ECC84B100C2C628 /* RNBridgeWalletAccount+Helper.swift */, + 4E952F492EE2B59F00175DAA /* NativeScreenName.swift */, ); path = Bridge; sourceTree = ""; @@ -8539,6 +8547,7 @@ 15DC21ED27819C57000B187A /* StateColors_OOID.swift in Sources */, 4E63A57C2B8D6A4100BBD15F /* MoveTokenView.swift in Sources */, 6A115972288E72CC005EF797 /* Coordinator.swift in Sources */, + 4E952F4B2EE2B59F00175DAA /* NativeScreenName.swift in Sources */, 6AF2ED9228364BC200F06AD3 /* UIFont.swift in Sources */, 4E77CE2F2ECEABE000C2C628 /* WalletEmoji.swift in Sources */, 4ED041F82C7C25DF0016848A /* WalletNewsHandler.swift in Sources */, @@ -9311,6 +9320,7 @@ 6A95CFB228B7258100267F86 /* NFTTransferView.swift in Sources */, 15DC207727819C56000B187A /* VText.swift in Sources */, 4E9059302B1792F10029FC66 /* SyncAddDeviceView.swift in Sources */, + 4EC758412EEAC17F00B9012E /* TurboModule+Onboard.swift in Sources */, 6A164F642845F1CB0026B31E /* UIView+Extensions.swift in Sources */, 4EB8223D2C040FFE0014E73D /* AccountSideCell.swift in Sources */, 15DC1D5D27816F46000B187A /* MoyaAsync.swift in Sources */, @@ -9630,6 +9640,7 @@ 4E63A57B2B8D6A4100BBD15F /* MoveTokenView.swift in Sources */, 6A115971288E72CC005EF797 /* Coordinator.swift in Sources */, 15C58AC42868A4EE00BD4FC6 /* UIFont.swift in Sources */, + 4E952F4A2EE2B59F00175DAA /* NativeScreenName.swift in Sources */, 4ED041F72C7C25DF0016848A /* WalletNewsHandler.swift in Sources */, 4E77CE302ECEABE000C2C628 /* WalletEmoji.swift in Sources */, 4EBDF2B92BFB3A9700E56968 /* FlowModel+NFT.swift in Sources */, @@ -10402,6 +10413,7 @@ 15B302B62D9AD51A007C792C /* SideContainerView.swift in Sources */, 15C58BDE2868A4EE00BD4FC6 /* VText.swift in Sources */, 4E90592F2B1792F10029FC66 /* SyncAddDeviceView.swift in Sources */, + 4EC758422EEAC17F00B9012E /* TurboModule+Onboard.swift in Sources */, 15C58BDF2868A4EE00BD4FC6 /* UIView+Extensions.swift in Sources */, 15C58BE12868A4EE00BD4FC6 /* MoyaAsync.swift in Sources */, 4EB8223C2C040FFE0014E73D /* AccountSideCell.swift in Sources */, diff --git a/FRW/Foundation/Bridge/BridgeModels.swift b/FRW/Foundation/Bridge/BridgeModels.swift index 96e0fcbff..48a36557e 100644 --- a/FRW/Foundation/Bridge/BridgeModels.swift +++ b/FRW/Foundation/Bridge/BridgeModels.swift @@ -24,8 +24,8 @@ enum RNBridge { } enum AccountTypeType: String, Codable { - case eoa = "eoa" - case coa = "coa" + case full = "full" + case hardware = "hardware" case null = "null" } diff --git a/FRW/Foundation/Bridge/NativeScreenName.swift b/FRW/Foundation/Bridge/NativeScreenName.swift new file mode 100644 index 000000000..c6f5cfbf9 --- /dev/null +++ b/FRW/Foundation/Bridge/NativeScreenName.swift @@ -0,0 +1,19 @@ +// +// NativeScreenName.swift +// FRW +// +// Created by cat on 12/5/25. +// + +import Foundation + +enum NativeScreenName: String { + case deviceBackup + case recoveryPhraseRestore + case keyStoreRestore + case privateKeyRestore + case googleDriveRestore + case multiRestore + case backupOptions + case icloudRestore +} diff --git a/FRW/Foundation/Bridge/RCTNativeFRWBridge.mm b/FRW/Foundation/Bridge/RCTNativeFRWBridge.mm index cda89d8df..9cf33820a 100644 --- a/FRW/Foundation/Bridge/RCTNativeFRWBridge.mm +++ b/FRW/Foundation/Bridge/RCTNativeFRWBridge.mm @@ -88,6 +88,10 @@ - (NSString *)getNetwork { return [TurboModuleSwift getNetwork]; } +- (void)getCurrentUserUid:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + resolve([TurboModuleSwift getCurrentUserUid]); +} + - (NSString * _Nullable)getSelectedAddress { return [TurboModuleSwift getCurrentAddress]; } @@ -203,5 +207,121 @@ - (void)ethSign:(NSString *)hexData resolve:(RCTPromiseResolveBlock)resolve reje resolve(result); } } +//TODO: screenName +- (void)launchNativeScreen:(NSString *)screenName params:(NSString * _Nullable)params { + [TurboModuleSwift launchNativeScreenWithScreen:screenName params:params]; +} + +// MARK: - Device Info +- (NSString *)getDeviceId { + return [TurboModuleSwift getDeviceId]; +} + +// MARK: - Notification Permissions +- (void)requestNotificationPermission:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift requestNotificationPermissionWithCompletionHandler:^(BOOL granted, NSError * _Nullable error) { + if (error) { + reject(@"notification_permission_error", error.localizedDescription, error); + } else { + resolve(@(granted)); + } + }]; +} + +- (void)checkNotificationPermission:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift checkNotificationPermissionWithCompletionHandler:^(BOOL granted, NSError * _Nullable error) { + if (error) { + reject(@"notification_permission_error", error.localizedDescription, error); + } else { + resolve(@(granted)); + } + }]; +} + +// MARK: - Screen Security +- (void)setScreenSecurityLevel:(NSString *)level { + [TurboModuleSwift setScreenSecurityLevelWithLevel:level]; +} + +// MARK: - Onboarding Methods +- (void)generateSeedPhrase:(NSNumber *)strength resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift generateSeedPhraseWithStrength:strength completionHandler:^(NSDictionary * _Nullable result, NSError * _Nullable error) { + if (error) { + reject(@"seed_phrase_generation_error", error.localizedDescription, error); + } else { + resolve(result); + } + }]; +} + +- (void)registerSecureTypeAccount:(NSString *)username resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift registerSecureTypeAccountWithUsername:username completionHandler:^(NSDictionary * _Nullable result, NSError * _Nullable error) { + if (error) { + reject(@"register_account_error", error.localizedDescription, error); + } else { + resolve(result); + } + }]; +} + +- (void)initSecureEnclaveWallet:(NSString *)txId resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift initSecureEnclaveWalletWithTxId:txId completionHandler:^(NSDictionary * _Nullable result, NSError * _Nullable error) { + if (error) { + reject(@"init_wallet_error", error.localizedDescription, error); + } else { + resolve(result); + } + }]; +} + +- (void)signInWithCustomToken:(NSString *)customToken resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift signInWithCustomTokenWithCustomToken:customToken completionHandler:^(NSError * _Nullable error) { + if (error) { + reject(@"sign_in_error", error.localizedDescription, error); + } else { + resolve(nil); + } + }]; +} + +- (void)saveMnemonic:(NSString *)mnemonic customToken:(NSString *)customToken txId:(NSString *)txId username:(NSString *)username resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift saveMnemonicWithMnemonic:mnemonic customToken:customToken txId:txId username:username completionHandler:^(NSError * _Nullable error) { + if (error) { + reject(@"save_mnemonic_error", error.localizedDescription, error); + } else { + resolve(nil); + } + }]; +} + +- (void)getRecoverableProfiles:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift getRecoverableProfilesWithCompletionHandler:^(NSDictionary * _Nullable result, NSError * _Nullable error) { + if (error) { + reject(@"get_recoverable_profiles_error", error.localizedDescription, error); + } else { + resolve(result); + } + }]; +} + +- (void)switchToProfile:(NSString *)userId resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift switchToProfileWithUserId:userId completionHandler:^(NSError * _Nullable error) { + if (error) { + reject(@"switch_profile_error", error.localizedDescription, error); + } else { + resolve(nil); + } + }]; +} + +- (void)shareQRCode:(NSString *)address qrCodeDataUrl:(NSString *)qrCodeDataUrl resolve:(RCTPromiseResolveBlock)resolve reject:(RCTPromiseRejectBlock)reject { + [TurboModuleSwift shareQRCodeWithAddress:address qrCodeDataUrl:qrCodeDataUrl completionHandler:^(NSError * _Nullable error) { + if (error) { + reject(@"share_qr_error", error.localizedDescription, error); + } else { + resolve(nil); + } + }]; +} @end diff --git a/FRW/Foundation/Bridge/RNBridgeError.swift b/FRW/Foundation/Bridge/RNBridgeError.swift index ca6fdb89c..61a75b5cb 100644 --- a/FRW/Foundation/Bridge/RNBridgeError.swift +++ b/FRW/Foundation/Bridge/RNBridgeError.swift @@ -11,4 +11,10 @@ enum RNBridgeError: Error { case scanInvalidProvider case invalidParameters case sendToFlowConfigurationError + case mnemonicGenerationFailed + case mnemonicSaveFailed + case keyGenerationFailed + case invalidMnemonic + case accountCreationFailed + case walletInitializationFailed } diff --git a/FRW/Foundation/Bridge/TurboModule+Onboard.swift b/FRW/Foundation/Bridge/TurboModule+Onboard.swift new file mode 100644 index 000000000..cf7eb3d48 --- /dev/null +++ b/FRW/Foundation/Bridge/TurboModule+Onboard.swift @@ -0,0 +1,149 @@ +// +// TurboModule+Onboard.swift +// FRW +// +// Created by cat on 12/11/25. +// + +import Foundation +import FlowWalletKit +import WalletCore +import Flow +import UserNotifications +import FirebaseAuth +import Firebase + +extension TurboModuleSwift { + @objc + static func generateSeedPhrase(strength: NSNumber?) async throws -> [String: Any] { + + let mnemonicStrength = strength?.int32Value ?? 128 + guard let hdWallet = HDWallet(strength: mnemonicStrength, passphrase: "") else { + HUD.error(title: "invalid_data".localized) + throw RNBridgeError.mnemonicGenerationFailed + } + + let key = FlowWalletKit.SeedPhraseKey(hdWallet: hdWallet, storage: FlowWalletKit.SeedPhraseKey.seedPhraseStorage) + + guard let publicKey = key.publicKey(signAlgo: .ECDSA_SECP256k1) else { + throw RNBridgeError.accountCreationFailed + } + let publicKeyHex = publicKey.hexString + let accountKey = RNBridge.AccountKey( + publicKey: publicKeyHex, + hashAlgoStr: Flow.HashAlgorithm.SHA2_256.id, + signAlgoStr: Flow.SignatureAlgorithm.ECDSA_SECP256k1.id, + weight: 1000, + hashAlgo: Flow.HashAlgorithm.SHA2_256.index, + signAlgo: Flow.SignatureAlgorithm.ECDSA_SECP256k1.index + ) + + let response = RNBridge.SeedPhraseGenerationResponse( + mnemonic: hdWallet.mnemonic, + accountKey: accountKey, + drivepath: FlowWalletKit.SeedPhraseKey.derivationPath + ) + + return try response.toDictionary() + } + + @objc + static func registerSecureTypeAccount(username: String) async throws -> [String: Any] { + do { + let result = try await UserManager.shared.register(username) + guard let txid = result else { + throw RNBridgeError.accountCreationFailed + } + let response = RNBridge.CreateAccountResponse( + success: true, + address: "", + username: username, + accountType: .hardware, + txId: txid, + error: "" + ) + + return try response.toDictionary() + } catch { + let response = RNBridge.CreateAccountResponse( + success: false, + address: "", + username: username, + accountType: .hardware, + txId: "", + error: error.localizedDescription + ) + return try response.toDictionary() + } + } + + @objc + static func initSecureEnclaveWallet(txId: String) async throws -> [String: Any] { + guard let uid = UserManager.shared.RNRegisterInfo[txId] else { + return [ + "success": false, + "address": "", + "error": "Secure Enclave wallet initialization not yet implemented in WalletManager" + ] + } + let result = await WalletManager.shared.keyProvider(with: uid)?.keyType == .secureEnclave + let address = await WalletManager.shared.getPrimaryWalletAddress() ?? "" + return [ + "success": result, + "address": result ? address : "", + "error": "" + ] + } + + @objc + static func signInWithCustomToken(customToken: String) async throws { + try await Auth.auth().signIn(withCustomToken: customToken) + } + + @objc + static func saveMnemonic(mnemonic: String, customToken: String, txId: String, username: String) async throws { + try await UserManager.shared.restoreLogin(withMnemonic: mnemonic) + + } + + // MARK: - Screen Security + @objc + static func setScreenSecurityLevel(level: String) { + log.info("Screen Security level:\(level)") + switch level { + case "secure": + break + default: + break + } + + } + + // MARK: - Notification Permissions + @objc + static func requestNotificationPermission() async throws -> Bool { + return await withCheckedContinuation { continuation in + UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in + continuation.resume(returning: granted) + } + } + } + + @objc + static func checkNotificationPermission() async throws -> Bool { + return await withCheckedContinuation { continuation in + UNUserNotificationCenter.current().getNotificationSettings { settings in + let granted = settings.authorizationStatus == .authorized + print("TurboModuleSwift: result: \(granted)") + continuation.resume(returning: granted) + } + } + } + + // MARK: - Device Info + @objc + static func getDeviceId() -> String { + return UUIDManager.appUUID() + } + +} diff --git a/FRW/Foundation/Bridge/TurboModuleSwift.swift b/FRW/Foundation/Bridge/TurboModuleSwift.swift index 779def2a3..b4b4cc057 100644 --- a/FRW/Foundation/Bridge/TurboModuleSwift.swift +++ b/FRW/Foundation/Bridge/TurboModuleSwift.swift @@ -4,6 +4,8 @@ import UIKit import Flow import SPIndicator import FlowWalletKit +import UserNotifications +import FirebaseAuth @objc(TurboModuleSwift) class TurboModuleSwift: NSObject { @@ -37,6 +39,11 @@ class TurboModuleSwift: NSObject { static func getNetwork() -> String { return WalletManager.shared.currentNetwork.name } + + @objc + static func getCurrentUserUid() -> String? { + return UserManager.shared.activatedUID + } @objc static func isFreeGasEnabled() -> Bool { @@ -228,6 +235,22 @@ extension TurboModuleSwift { let response = RNBridge.WalletProfilesResponse(profiles: result ?? []) return try response.toDictionary() } + + @objc + static func getRecoverableProfiles() async throws -> [String: Any] { + // For now, return all known profiles as recoverable + return try await getWalletProfiles() + } + + @objc + static func switchToProfile(userId: String) async throws { + try await UserManager.shared.switchAccount(withUID: userId) + } + + @objc + static func shareQRCode(address: String, qrCodeDataUrl: String) async throws { + + } private static func getCurrentProfile() async throws -> RNBridge.WalletProfile { guard let userInfo = UserManager.shared.userInfo, let uid = UserManager.shared.activatedUID else { @@ -362,4 +385,37 @@ extension TurboModuleSwift { } return try? keyProvider.ethSign(digest: Data(hexData.hexValue)).hexString } + + @objc + static func launchNativeScreen(screen: String, params: String?) { + log.info("\(screen)") + guard let screen = NativeScreenName(rawValue: screen) else { + log.error("don't support route \(screen)") + HUD.error(title: "don't support route \(screen)") + return + } + guard currentNetwork == .mainnet else { + HUD.error(title: "wrong_network_title".localized) + return + } + let restoreModel = RestoreWalletViewModel() + switch screen { + case .deviceBackup: + Router.route(to: RouteMap.RestoreLogin.syncQC) + case .recoveryPhraseRestore: + restoreModel.restoreWithManualAction() + case .keyStoreRestore: + restoreModel.restoreWithKeyStore() + case .privateKeyRestore: + restoreModel.resteroWithPrivateKey() + case .googleDriveRestore: + restoreModel.restoreWithCloudAction(type: .googleDrive) + case .multiRestore: + Router.route(to: RouteMap.RestoreLogin.restoreMulti) + case .backupOptions: + Router.route(to: RouteMap.Backup.backupList) + case .icloudRestore: + restoreModel.restoreWithCloudAction(type: .icloud) + } + } } diff --git a/FRW/Modules/MultiBackup/View/BackupListView.swift b/FRW/Modules/MultiBackup/View/BackupListView.swift index 7a35c7dbc..f278ae1ed 100644 --- a/FRW/Modules/MultiBackup/View/BackupListView.swift +++ b/FRW/Modules/MultiBackup/View/BackupListView.swift @@ -96,7 +96,7 @@ struct BackupListView: RouteableView { title: "im_sure".localized, action: { showBackWarning = false - Router.pop() + Router.popToRoot() } ), AlertView @@ -428,7 +428,7 @@ extension BackupListView { if viewModel.hasSomeBackup == false { showBackWarning = true } else { - Router.pop() + Router.popToRoot() } } } diff --git a/FRW/Modules/Profile/ProfileViewModel.swift b/FRW/Modules/Profile/ProfileViewModel.swift index 91a55b7ba..f6b836846 100644 --- a/FRW/Modules/Profile/ProfileViewModel.swift +++ b/FRW/Modules/Profile/ProfileViewModel.swift @@ -40,9 +40,11 @@ extension ProfileView { } }.store(in: &cancelSets) - ThemeManager.shared.$style.sink(receiveValue: { [weak self] newScheme in - self?.state.colorScheme = newScheme - }).store(in: &cancelSets) + ThemeManager.shared.$style + .receive(on: DispatchQueue.main) + .sink(receiveValue: { [weak self] newScheme in + self?.state.colorScheme = newScheme + }).store(in: &cancelSets) UserManager.shared.$activatedUID .receive(on: DispatchQueue.main) diff --git a/FRW/Modules/ReactNative/ReactNativeViewController.swift b/FRW/Modules/ReactNative/ReactNativeViewController.swift index 69635aa3d..7cbe09649 100644 --- a/FRW/Modules/ReactNative/ReactNativeViewController.swift +++ b/FRW/Modules/ReactNative/ReactNativeViewController.swift @@ -14,6 +14,8 @@ extension ReactNativeViewController { case selectAssets = "SelectTokens" case selectAddress = "SendTo" case sendToken = "SendTokens" + case profileSelection = "ProfileTypeSelection" + case getStarted = "GetStarted" } } @@ -21,7 +23,7 @@ extension ReactNativeViewController { class ReactNativeViewController: UIViewController { var initialProps: RNBridge.InitialProps? = nil - + var route: ReactNativeViewController.Route? = nil // Static identifier for easy identification static let identifier = "ReactNativeViewController" @@ -66,6 +68,11 @@ class ReactNativeViewController: UIViewController { ReactNativeCoordinator.shared.register(self, id: instanceId) } + override func viewWillAppear(_ animated: Bool) { + super.viewWillAppear(animated) + navigationController?.setNavigationBarHidden(true, animated: animated) + } + override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) @@ -173,10 +180,11 @@ class ReactNativeViewController: UIViewController { } // zh,en,ru,ja let languageCode = Locale.preferredLanguages.first?.components(separatedBy: "-").first ?? "en" + let routeName = initialProps?.route.rawValue ?? route?.rawValue ?? "SelectTokens" var props: [String: Any] = [ "address" : wallet.selectedAccount?.address.hexAddr ?? "", "network" : wallet.currentNetwork.rawValue, - "initialRoute" : initialProps?.route.rawValue ?? "SelectTokens", + "initialRoute" : routeName, "embedded" : false, "instanceId": instanceId, "language": languageCode @@ -202,8 +210,10 @@ class ReactNativeViewController: UIViewController { view.addSubview(surfaceView) surfaceView.translatesAutoresizingMaskIntoConstraints = false + // Use view.topAnchor (not safeAreaLayoutGuide) to allow RN content to extend + // behind the status bar. RN's SafeAreaProvider will handle safe area insets. NSLayoutConstraint.activate([ - surfaceView.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor), + surfaceView.topAnchor.constraint(equalTo: view.topAnchor), surfaceView.leadingAnchor.constraint(equalTo: view.leadingAnchor), surfaceView.trailingAnchor.constraint(equalTo: view.trailingAnchor), surfaceView.bottomAnchor.constraint(equalTo: view.bottomAnchor) @@ -245,6 +255,8 @@ extension RNBridge.InitialProps { } else if (config.selectedNFTs != nil && ((config.selectedNFTs?.count ?? 0) > 0) ) { return .selectAddress } + } else if screen == .onboarding { + return .profileSelection } return .selectAssets } diff --git a/FRW/Modules/Wallet/AccountSwitch/AccountSwitchViewModel.swift b/FRW/Modules/Wallet/AccountSwitch/AccountSwitchViewModel.swift index 41be7431a..e615dab9b 100644 --- a/FRW/Modules/Wallet/AccountSwitch/AccountSwitchViewModel.swift +++ b/FRW/Modules/Wallet/AccountSwitch/AccountSwitchViewModel.swift @@ -35,10 +35,12 @@ class AccountSwitchViewModel: ObservableObject { @Published var profiles: [ProfileModel] = [] func createNewAccountAction() { - Router.route(to: RouteMap.Register.root(nil)) + Router.route(to: RouteMap.ReactNative.profileSelection) +// Router.route(to: RouteMap.Register.root(nil)) } func loginAccountAction() { + Router.route(to: RouteMap.RestoreLogin.restoreList) } diff --git a/FRW/Modules/Wallet/WalletAccount/WalletAccount+FlowWalletKit.swift b/FRW/Modules/Wallet/WalletAccount/WalletAccount+FlowWalletKit.swift index a790f2166..cf63484e1 100644 --- a/FRW/Modules/Wallet/WalletAccount/WalletAccount+FlowWalletKit.swift +++ b/FRW/Modules/Wallet/WalletAccount/WalletAccount+FlowWalletKit.swift @@ -130,7 +130,13 @@ extension EOA { ) -> WalletAccount { let addr = address.addHexPrefix() let user = WalletUser.get(address: addr, userId: userId) - + let parentInfo: WalletAccount.ParentInfo? = parentAddress.map { parentAddr in + let parentUser = WalletUser.get(address: parentAddr, userId: userId) + return WalletAccount.ParentInfo( + address: parentAddr, + emoji: parentUser.emoji + ) + } return WalletAccount( id: UUID().uuidString, address: addr, @@ -138,7 +144,7 @@ extension EOA { network: currentNetwork, user: user, childInfo: nil, - parent: nil, + parent: parentInfo, isActive: WalletManager.shared.selectedAccount?.address.hexAddr == addr, assets: .notLoaded ) diff --git a/FRW/Services/Manager/Transaction/TransactionHolder.swift b/FRW/Services/Manager/Transaction/TransactionHolder.swift index b3f891984..a05433c67 100644 --- a/FRW/Services/Manager/Transaction/TransactionHolder.swift +++ b/FRW/Services/Manager/Transaction/TransactionHolder.swift @@ -92,6 +92,7 @@ extension TransactionManager { let _ = flow.websocket.subscribeToTransactionStatus(txId: transactionId) .filter { $0.payload?.transactionResult.status ?? .unknown >= .sealed } .first() + .receive(on: DispatchQueue.main) .sink { complete in self.postNotification() } receiveValue: { [weak self] value in diff --git a/FRW/Services/Manager/UserManager.swift b/FRW/Services/Manager/UserManager.swift index 78c8cfe2a..6514e0341 100644 --- a/FRW/Services/Manager/UserManager.swift +++ b/FRW/Services/Manager/UserManager.swift @@ -79,6 +79,9 @@ class UserManager: ObservableObject { } } + // It is only used when the bridge is called on page of onboard + var RNRegisterInfo:[String: String] = [:] + var isLoggedIn: Bool { activatedUID != nil } @@ -212,7 +215,7 @@ extension UserManager { LocalUserDefaults.shared.addUser(user: store) try await finishLogin(customToken: model.customToken, isRegiter: true) - await WalletManager.shared.asyncCreateWalletAddressFromServer() + let txid = await WalletManager.shared.asyncCreateWalletAddressFromServer() userType = .secure EventTrack.Account @@ -221,7 +224,10 @@ extension UserManager { signAlgo: key.signAlgo.id, hashAlgo: key.hashAlgo.id ) - return model.txId + if let txid { + RNRegisterInfo[txid] = activatedUID + } + return txid } } diff --git a/FRW/Services/Manager/Wallet/WalletManager.swift b/FRW/Services/Manager/Wallet/WalletManager.swift index bd808c06b..ec5d004fd 100644 --- a/FRW/Services/Manager/Wallet/WalletManager.swift +++ b/FRW/Services/Manager/Wallet/WalletManager.swift @@ -550,22 +550,22 @@ extension WalletManager { extension WalletManager { /// Request server create wallet address, DO NOT call it multiple times. - func asyncCreateWalletAddressFromServer() { - Task { - do { - let result: UserAddressV2Response = try await Network - .request(FRWAPI.User.userAddressV2) - let txId = Flow.ID(hex: result.txId) - _ = try await txId.onceExecuted() - try? await walletEntity?.fetchAccountsByCreationTxId( - txId: txId, - network: currentNetwork - ) - debugPrint("WalletManager -> asyncCreateWalletAddressFromServer success") - } catch { - print(error) - debugPrint("WalletManager -> asyncCreateWalletAddressFromServer failed") - } + func asyncCreateWalletAddressFromServer() async -> String? { + do { + let result: UserAddressV2Response = try await Network + .request(FRWAPI.User.userAddressV2) + let txId = Flow.ID(hex: result.txId) + _ = try await txId.onceExecuted() + _ = try? await walletEntity?.fetchAccountsByCreationTxId( + txId: txId, + network: currentNetwork + ) + debugPrint("WalletManager -> asyncCreateWalletAddressFromServer success") + return result.txId + } catch { + print(error) + debugPrint("WalletManager -> asyncCreateWalletAddressFromServer failed") + return nil } } diff --git a/FRW/Services/Router/Coordinator.swift b/FRW/Services/Router/Coordinator.swift index 3074628f7..92497f419 100644 --- a/FRW/Services/Router/Coordinator.swift +++ b/FRW/Services/Router/Coordinator.swift @@ -63,16 +63,77 @@ final class Coordinator { lazy var rootNavi: UINavigationController? = nil func showRootView() { - let rootView = SideContainerView() - let hostingView = UIHostingController(rootView: rootView) - let navi = RouterNavigationController(rootViewController: hostingView) - navi.setNavigationBarHidden(true, animated: true) - rootNavi = navi - window.rootViewController = rootNavi + // Guard against multiple calls + guard !isRootViewSetup else { + log.warning("[Coordinator] showRootView() called multiple times, ignoring") + return + } + isRootViewSetup = true + + // Set initial root view controller synchronously to avoid launch error + updateRootView(isEmpty: ProfileManager.shared.profiles.isEmpty, animated: false) + + // Subscribe to profile changes for dynamic updates + ProfileManager.shared.$profiles + .dropFirst() // Skip initial value since we already handled it above + .receive(on: DispatchQueue.main) + .sink { [weak self] profiles in + self?.updateRootView(isEmpty: profiles.isEmpty, animated: true) + } + .store(in: &cancelSets) } // MARK: Private + /// Guard against multiple showRootView() calls + private var isRootViewSetup = false + + /// Track current root state to avoid redundant updates + private enum RootState { + case reactNative + case sideContainer + } + + private var currentRootState: RootState? + + private func updateRootView(isEmpty: Bool, animated: Bool) { + let targetState: RootState = isEmpty ? .reactNative : .sideContainer + + // Avoid redundant updates + guard currentRootState != targetState else { return } + currentRootState = targetState + + let newRootNavi: RouterNavigationController + + if isEmpty { + log.info("[Coordinator] profiles empty → show ReactNativeViewController") + let vc = ReactNativeViewController() + vc.route = .getStarted + newRootNavi = RouterNavigationController(rootViewController: vc) + newRootNavi.setNavigationBarHidden(true, animated: false) + newRootNavi.interactivePopGestureRecognizer?.isEnabled = false + } else { + log.info("[Coordinator] profiles exist → show SideContainerView") + let rootView = SideContainerView() + let hostingView = UIHostingController(rootView: rootView) + newRootNavi = RouterNavigationController(rootViewController: hostingView) + newRootNavi.setNavigationBarHidden(true, animated: false) + } + + rootNavi = newRootNavi + + if animated { + // Smooth transition for dynamic updates + newRootNavi.view.alpha = 0 + window.rootViewController = newRootNavi + UIView.animate(withDuration: 0.3) { + newRootNavi.view.alpha = 1 + } + } else { + window.rootViewController = newRootNavi + } + } + private lazy var privateView: AppPrivateView = { let view = AppPrivateView() return view diff --git a/FRW/Services/Router/RouteMap+React.swift b/FRW/Services/Router/RouteMap+React.swift index 01a89492c..c940cc8da 100644 --- a/FRW/Services/Router/RouteMap+React.swift +++ b/FRW/Services/Router/RouteMap+React.swift @@ -11,6 +11,8 @@ import UIKit extension RouteMap { enum ReactNative { case sendAsset(RNBridge.SendToConfig?) + case profileSelection + case getStarted } } @@ -20,6 +22,14 @@ extension RouteMap.ReactNative: RouterTarget { case .sendAsset(let config): let props = RNBridge.InitialProps(screen: .sendAsset, sendToConfig: config?.toJSON()) navi.present(ReactNativeViewController(initialProps: props)) + case .profileSelection: + let props = RNBridge.InitialProps(screen: .onboarding, sendToConfig: nil) + let vc = ReactNativeViewController(initialProps: props) + navi.pushViewController(vc) + case .getStarted: + let vc = ReactNativeViewController() + vc.route = .getStarted + navi.pushViewController(vc) } } } diff --git a/main.jsbundle b/main.jsbundle index 00b58687e..47502a288 100644 --- a/main.jsbundle +++ b/main.jsbundle @@ -2,15 +2,15 @@ var __BUNDLE_START_TIME__=globalThis.nativePerformanceNow?nativePerformanceNow() !(function(e){"use strict";e.__r=i,e[`${__METRO_GLOBAL_PREFIX__}__d`]=function(e,n,o){if(r.has(n))return;var i={dependencyMap:o,factory:e,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};r.set(n,i)},e.__c=o,e.__registerSegment=function(e,t,n){s[e]=t,n&&n.forEach(function(t){r.has(t)||v.has(t)||v.set(t,e)})};var r=o(),t={},n={}.hasOwnProperty;function o(){return r=new Map}function i(e,t){if(null===e)throw new Error("Cannot find module");var n=e,o=r.get(n);return o&&o.isInitialized?o.publicModule.exports:d(n,o)}function l(e){var n=e,o=r.get(n);if(o&&o.importedDefault!==t)return o.importedDefault;var l=i(n),a=l&&l.__esModule?l.default:l;return r.get(n).importedDefault=a}function a(e){var o=e,l=r.get(o);if(l&&l.importedAll!==t)return l.importedAll;var a,u=i(o);if(u&&u.__esModule)a=u;else{if(a={},u)for(var d in u)n.call(u,d)&&(a[d]=u[d]);a.default=u}return r.get(o).importedAll=a}i.importDefault=l,i.importAll=a,i.context=function(){throw new Error("The experimental Metro feature `require.context` is not enabled in your project.")},i.resolveWeak=function(){throw new Error("require.resolveWeak cannot be called dynamically.")};var u=!1;function d(r,t){if(!u&&e.ErrorUtils){var n;u=!0;try{n=h(r,t)}catch(r){e.ErrorUtils.reportFatalError(r)}return u=!1,n}return h(r,t)}var f=16,c=65535;function p(e){return{segmentId:e>>>f,localId:e&c}}i.unpackModuleId=p,i.packModuleId=function(e){return(e.segmentId<0){var o,u=null!=(o=v.get(t))?o:0,d=s[u];null!=d&&(d(t),n=r.get(t),v.delete(t))}var f=e.nativeRequire;if(!n&&f){var c=p(t),h=c.segmentId;f(c.localId,h),n=r.get(t)}if(!n)throw Error('Requiring unknown module "'+t+'".');if(n.hasError)throw n.error;n.isInitialized=!0;var g=n,m=g.factory,_=g.dependencyMap;try{var w=n.publicModule;return w.id=t,m(e,i,l,a,w,w.exports,_),n.factory=void 0,n.dependencyMap=void 0,w.exports}catch(e){throw n.hasError=!0,n.error=e,n.isInitialized=!1,n.publicModule.exports=void 0,e}}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); !(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach(function(n,r){e[n]=!0}),e}function r(n,r,u){if(n.formatValueCalls++,n.formatValueCalls>200)return`[TOO BIG formatValueCalls ${n.formatValueCalls} exceeded limit of 200]`;var c=t(n,r);if(c)return c;var f=Object.keys(r),s=e(f);if(d(r)&&(f.indexOf('message')>=0||f.indexOf('description')>=0))return o(r);if(0===f.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,m,b='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(b=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(b=' '+RegExp.prototype.toString.call(r)),y(r)&&(b=' '+Date.prototype.toUTCString.call(r)),d(r)&&(b=' '+o(r)),0!==f.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),m=j?i(n,r,u,s,f):f.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(m,b,O)):O[0]+b+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return f(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):c(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').slice(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,a.length-1),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function c(n){return null===n}function f(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function m(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t=0,o=1,i=2,l=3;function a(r){return function(){var t;t=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var o=arguments[0],a=r;'string'==typeof o&&'Warning: '===o.slice(0,9)&&a>=l&&(a=i),f.length&&(t=s('',t)),n.nativeLoggingHook(t,a)}}function u(n,e){return Array.apply(null,Array(e)).map(function(){return n})}function c(n,e){if(e===r)return n[e];if(n.hasOwnProperty(e)){var t=n[e];switch(typeof t){case'function':return'\u0192';case'string':return"'"+t+"'";case'object':return null==t?'null':'{\u2026}'}return String(t)}return''}var f=[];function s(n,e){return f.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){var p=n.console;if(n.console=Object.assign({},null!=p?p:{},{error:a(l),info:a(o),log:a(o),warn:a(i),trace:a(t),debug:a(t),table:function(e,t){var i;if(Array.isArray(e))i=e.map(function(n,e){var t={};return t[r]=String(e),Object.assign(t,n),t});else for(var l in i=[],e)if(e.hasOwnProperty(l)){var a={};a[r]=l,Object.assign(a,e[l]),i.push(a)}if(0!==i.length){t=Array.isArray(t)?[r].concat(t):Array.from(i.reduce(function(n,e){return Object.keys(e).forEach(function(e){return n.add(e)}),n},new Set));var f=[],s=[];t.forEach(function(n,e){s[e]=n.length;for(var r=0;r';return function(){for(var r=arguments.length,u=new Array(r),e=0;e1&&void 0!==arguments[1]?arguments[1]:8,t="string"==typeof u?parseFloat(u):u;return isNaN(t)?"0":t.toFixed(n).replace(/\.?0+$/,"")},e.generateRandomUsername=function(){var u,n=S.filter(function(u){return u.length<=7}),t="",o=0,i=function(){for(var u=w(n),i=w(n);i===u;)i=w(n);for(var l=w(n);l===u||l===i;)l=w(n);var D=[u,i,l],c=D.findIndex(function(u){return B.includes(u)});if(-1!==c){var s=D[c],f=D.filter(function(u,n){return n!==c});t=`${s}${f[0]}${f[1]}`}else t=`${u}${i}${l}`;if(t.length>=3&&t.length<=20)return{v:t};o++};for(;o<100;)if(u=i())return u.v;return n.slice(0,3).join("").substring(0,20)},e.getAddressType=function(u){return(0,r(d[3]).addressType)(u)},e.getCollectionResourceIdentifier=function(u){if(!u||!u.address||!u.contractName)return null;return`A.${s(u.address)}.${u.contractName}.Collection`},e.getDisplayBalanceInFLOW=function(u){if(void 0===u.balanceInFLOW||null===u.balanceInFLOW||""===u.balanceInFLOW)return"";var n=Number(u.balanceInFLOW);return isNaN(n)?"":`${(0,r(d[3]).formatCurrencyStringForDisplay)({value:n})} FLOW`},e.getDisplayBalanceWithSymbol=function(u){var n;if(void 0===u.displayBalance||null===u.displayBalance||""===u.displayBalance)return"";var t=Number(u.displayBalance);return isNaN(t)?"":`${(0,r(d[3]).formatCurrencyStringForDisplay)({value:t})} ${null!=(n=u.symbol)?n:""}`.trim()},e.getNFTCover=function(u){var n;if(u.thumbnail)return u.thumbnail;if(null!=(n=u.postMedia)&&n.image)return u.postMedia.image;return""},e.getNFTDisplayName=function(u){return u.name||u.id||"Unnamed NFT"},e.getNFTId=function(u){var n,t;return null!=(n=null!=(t=u.id)?t:u.address)?n:""},e.getNFTResourceIdentifier=function(u){if(null!=u&&u.flowIdentifier)return u.flowIdentifier.includes("NFT")?u.flowIdentifier:`${u.flowIdentifier}.NFT`;if(!u||!u.address||!u.contractName)return null;return`A.${s(u.address)}.${u.contractName}.NFT`},e.getNFTSearchText=function(u){var n,t,o,i;return(null!=(n=u.name)?n:"")+" "+(null!=(t=u.description)?t:"")+" "+(null!=(o=null==(i=u.postMedia)?void 0:i.description)?o:"")},e.getRetryConfig=C,e.getThemeBackgroundColor=function(u){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000";return A(u)?(null==(n=u.white)?void 0:n.val)||o:(null==(t=u.black)?void 0:t.val)||i},e.getThemeCardBackground=function(u){return A(u)?"$light10":"$bg2"},e.getThemeTextColor=function(u){var n,t,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000";return A(u)?(null==(n=u.white)?void 0:n.val)||(null==(t=u.color)?void 0:t.val)||l:(null==(o=u.black)?void 0:o.val)||(null==(i=u.color)?void 0:i.val)||D},e.getTokenIdentifier=function(u){if(!u||!u.contractAddress||!u.contractName)return null;return`A.${s(u.contractAddress)}.${u.contractName}`},e.getTokenResourceIdentifier=function(u){if(null!=u&&u.identifier)return u.identifier.includes("Vault")?u.identifier:`${u.identifier}.Vault`;if(!u||!u.contractAddress||!u.contractName)return null;return`A.${s(u.contractAddress)}.${u.contractName}.Vault`},e.hasNFTMedia=function(u){var n;return!!(u.thumbnail||null!=(n=u.postMedia)&&n.image)},e.isCOAAddress=l,e.isDarkMode=A,e.isEOAAddress=function(u){if(!i(u))return!1;return!l(u)},e.isERC1155=function(u){return"ERC1155"===u.contractType},e.isEmoji=void 0,e.isEmpty=function(u){return null==u||("string"==typeof u?""===u.trim():Array.isArray(u)?0===u.length:"object"==typeof u&&0===Object.keys(u).length)},e.isTransactionId=function(u){if(!u||"string"!=typeof u)return!1;var n=u.trim();return/^[0-9a-fA-F]{64}$/.test(n)||/^0x[0-9a-fA-F]{64}$/.test(n)},e.isValidEthereumAddress=i,e.isValidFlowAddress=o,e.retryConfigs=e.logger=void 0,e.setGlobalLogger=function(u){y=new p(u)},e.showError=void 0,e.stripHexPrefix=s,e.throttle=function(u,n){var t;return function(){t||(u.apply(void 0,arguments),t=!0,setTimeout(function(){return t=!1},n))}},e.transformAccountForDisplay=e.transformAccountForCard=void 0,e.truncateAddress=function(u){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;if(u.length<=n+t)return u;return`${u.slice(0,n)}...${u.slice(-t)}`};var n=u(r(d[1])),t=u(r(d[2]));function o(u){return/^0x[a-fA-F0-9]{16}$/.test(u)}function i(u){return/^0x[a-fA-F0-9]{40}$/.test(u)}function l(u){return!!i(u)&&(u.startsWith("0x")?u:`0x${u}`).toLowerCase().startsWith("0x000000")}function D(u){if(!u||"string"!=typeof u)return null;var n=u.split(".");if(n.length<2)return null;try{var t=n[1].replace(/-/g,"+").replace(/_/g,"/"),o=t.length%4==0?t:`${t}${"=".repeat(4-t.length%4)}`,i=r(d[4]).Buffer.from(o,"base64").toString("utf-8");return JSON.parse(i)}catch(u){return null}}function c(u){return null!==u&&"object"==typeof u&&null!==u&&"name"in u&&"string"==typeof u.name&&u.name.length>0}function s(u){return u.startsWith("0x")?u.slice(2):u}Array.prototype.compactMap||(Array.prototype.compactMap=function(u){for(var n=[],t=0;t1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:.1;return function(o){var i=u*2**o,l=Math.min(i,n);return l+l*t*Math.random()}}var v=e.retryConfigs={critical:{retry:3,retryDelay:E(1e3,3e4)},important:{retry:2,retryDelay:E(1e3,2e4)},standard:{retry:1,retryDelay:E(500,1e4)},minimal:{retry:1,retryDelay:E(500,5e3)}};function C(u){return v[u]}var h=e.transformAccountForDisplay=function(u){var n,t,o,i,l;return u?{name:u.name,address:u.address,type:u.type,avatar:f(u.avatar)?void 0:u.avatar,avatarSrc:f(u.avatar)?void 0:u.avatar,avatarFallback:f(null==(n=u.emojiInfo)?void 0:n.emoji)?null==(t=u.emojiInfo)?void 0:t.emoji:(null==(o=u.name)?void 0:o[0])||"",avatarBgColor:(null==(i=u.emojiInfo)?void 0:i.color)||"#7B61FF",balance:(null==u?void 0:u.balance)||"0 FLOW",nfts:(null==u?void 0:u.nfts)||"0 NFTs",emojiInfo:f(null==(l=u.emojiInfo)?void 0:l.emoji)?u.emojiInfo:void 0,parentEmoji:u.parentEmoji?{emoji:u.parentEmoji.emoji,name:u.parentEmoji.name,color:u.parentEmoji.color}:void 0}:null};e.transformAccountForCard=function(u){return h(u)};function A(u){var n,t;return"#000000"===(null==(n=u.background)?void 0:n.val)||"#000000"===(null==(t=u.bg)?void 0:t.val)}var B=["Brave","Calm","Clever","Cool","Cozy","Curious","Daring","Eager","Fancy","Gentle","Glowing","Golden","Happy","Humble","Jolly","Kind","Lively","Lucky","Mellow","Mighty","Noble","Playful","Polite","Proud","Quick","Quiet","Radiant","Shiny","Silly","Smart","Smiling","Snug","Sparkly","Swift","Tiny","Vibrant","Warm","Witty","Zany","Bright","Bold","Dynamic","Epic","Fierce","Gleeful","Joyful","Lovely","Merry","Neat","Peppy","Plucky","Posh","Relaxed","Serene","Smooth","Spunky","Sunny","Sweet","Thrifty","Tricky","Upbeat","Valiant","Zealous","Alert","Astute","Chill","Crisp","Dapper","Keen","Lush","Perky","Poised","Prime","Pure","Rare","Robust","Sage","Sharp","Sleek","Snappy","Solid","Spry","Stable","Steady","Stealth","Stern","Stout","Suave","Super","Tender","Tidy","True","Trusty","Ultra","Unique","Upright","Urbane","Vivid","Wary","Wild","Wise","Agile","Blessed","Caring","Cosmic","Crafty","Divine","Elated","Fluent","Fresh","Gifted","Grand","Heroic","Honest","Ideal"],S=[].concat(["Apple","Apricot","Avocado","Banana","Cherry","Coconut","Date","Fig","Grape","Guava","Kiwi","Lemon","Lime","Mango","Melon","Orange","Papaya","Peach","Pear","Plum","Pomelo","Quince","Soursop","Currant","Sapote","Longan","Durian","Kumquat","Lychee","Acai","Berry","Citrus","Olive","Raisin","Prune","Cassia","Yuzu"],["Ant","Bear","Beaver","Bee","Bird","Bobcat","Buffalo","Camel","Cat","Cheetah","Chicken","Cobra","Cow","Crab","Deer","Dog","Dolphin","Duck","Eagle","Falcon","Ferret","Fish","Fox","Frog","Giraffe","Goat","Goose","Hamster","Hawk","Hippo","Horse","Jaguar","Koala","Lemur","Leopard","Lion","Lizard","Llama","Lobster","Monkey","Moose","Mouse","Octopus","Otter","Owl","Panda","Panther","Parrot","Penguin","Pig","Rabbit","Raccoon","Ram","Rat","Raven","Seal","Shark","Sheep","Skunk","Sloth","Snail","Snake","Spider","Tiger","Toad","Turtle","Whale","Wolf","Wombat","Zebra","Badger","Bat","Beetle","Bison","Boar","Caribou","Clam","Coyote","Crow","Donkey","Eel","Emu","Firefly","Gazelle","Gecko","Gopher","Grouse","Heron","Hyena","Iguana","Jackal","Jay","Koi","Lark","Lynx","Magpie","Mallard","Mantis","Mink","Mole","Moth","Narwhal","Newt","Ocelot","Orca","Pelican","Pigeon","Quail","Robin","Rooster","Salmon","Sardine","Sealion","Shrimp","Swan","Termite","Toucan","Trout","Vulture","Walrus","Weasel","Yak","Zebu","Alpaca","Condor","Finch","Hornet","Meerkat","Osprey","Possum","Puffin","Shrew","Viper","Wasp","Wren","Corgi","Husky","Puma","Ibis","Crane","Stork","Hound","Dingo","Betta","Cicada","Marlin","Cougar"],["River","Ocean","Sky","Cloud","Rain","Sun","Moon","Star","Comet","Breeze","Storm","Forest","Tree","Leaf","Rock","Stone","Pebble","Hill","Valley","Canyon","Desert","Sand","Wave","Tide","Lake","Pond","Stream","Coral","Reef","Glacier","Aurora","Shadow","Light","Flame","Fire","Smoke","Mist","Dawn","Dusk","Sunset","Sunrise","Field","Garden","Flower","Petal","Vine","Root","Branch","Seed","Berry","Moss","Fern","Willow","Oak","Pine","Maple","Cedar","Meadow","Prairie","Savanna","Jungle","Island","Lagoon","Bay","Shore","Cave","Cliff","Crystal","Gem","Amber","Pearl","Quartz","Emerald","Topaz","Volcano","Geyser","Thunder","Horizon","Echo","Boulder","Dune","Frost","Galaxy","Orbit","Planet","Meteor","Cosmos","Fjord","Grove","Glade","Bluff","Delta","Estuary","Peak","Ridge","Ravine","Butte","Mesa","Cove","Inlet","Grotto","Cavern","Knoll","Dale","Glen","Heath","Moor","Fen","Bog","Marsh","Swamp","Basin","Oasis","Tundra","Steppe","Taiga","Vale","Blaze","Ember","Spark","Ash","Cinder","Flare","Glow","Beam","Ray","Haze","Fog","Dew","Rime","Snow","Hail","Sleet","Gust","Gale","Zephyr","Squall","Tempest","Cyclone","Nebula","Quasar","Pulsar","Nova","Void","Abyss","Zenith","Nadir","Eclipse"],B);function b(u){if("undefined"!=typeof crypto&&crypto.getRandomValues){var n=new Uint32Array(1);return crypto.getRandomValues(n),n[0]%u}return Math.floor(Math.random()*u)}function w(u){return u[b(u.length)]}},2,[1,3,4,8,25]); +__d(function(g,r,_i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=void 0,e.capitalize=function(u){return u?u.charAt(0).toUpperCase()+u.slice(1).toLowerCase():u},e.convertedSVGURL=function(u){var n,t=null!=(n=null==u||null==u.trim?void 0:u.trim())?n:"";if(0===t.length)return u;if(!F(t))return u;try{return`https://lilico.app/api/svg2png?url=${encodeURIComponent(t)}`}catch(n){return u}},e.createLogger=function(u,n){return new p(u,n)},e.createRetryFunction=function(u,n){var t=C(u);return Object.assign({},t,{onError:function(u,o){n&&console.warn(`[Retry ${o+1}/${t.retry+1}] ${n}:`,u.message)}})},e.debounce=function(u,n){var t;return function(){for(var o=arguments.length,i=new Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:8,t="string"==typeof u?parseFloat(u):u;return isNaN(t)?"0":t.toFixed(n).replace(/\.?0+$/,"")},e.generateRandomUsername=function(){var u,n=S.filter(function(u){return u.length<=7}),t="",o=0,i=function(){for(var u=w(n),i=w(n);i===u;)i=w(n);for(var l=w(n);l===u||l===i;)l=w(n);var D=[u,i,l],c=D.findIndex(function(u){return B.includes(u)});if(-1!==c){var s=D[c],f=D.filter(function(u,n){return n!==c});t=`${s}${f[0]}${f[1]}`}else t=`${u}${i}${l}`;if(t.length>=3&&t.length<=20)return{v:t};o++};for(;o<100;)if(u=i())return u.v;return n.slice(0,3).join("").substring(0,20)},e.getAddressType=function(u){return(0,r(d[3]).addressType)(u)},e.getCollectionResourceIdentifier=function(u){if(!u||!u.address||!u.contractName)return null;return`A.${s(u.address)}.${u.contractName}.Collection`},e.getDisplayBalanceInFLOW=function(u){if(void 0===u.balanceInFLOW||null===u.balanceInFLOW||""===u.balanceInFLOW)return"";var n=Number(u.balanceInFLOW);return isNaN(n)?"":`${(0,r(d[3]).formatCurrencyStringForDisplay)({value:n})} FLOW`},e.getDisplayBalanceWithSymbol=function(u){var n;if(void 0===u.displayBalance||null===u.displayBalance||""===u.displayBalance)return"";var t=Number(u.displayBalance);return isNaN(t)?"":`${(0,r(d[3]).formatCurrencyStringForDisplay)({value:t})} ${null!=(n=u.symbol)?n:""}`.trim()},e.getNFTCover=function(u){var n;if(u.thumbnail)return u.thumbnail;if(null!=(n=u.postMedia)&&n.image)return u.postMedia.image;return""},e.getNFTDisplayName=function(u){return u.name||u.id||"Unnamed NFT"},e.getNFTId=function(u){var n,t;return null!=(n=null!=(t=u.id)?t:u.address)?n:""},e.getNFTResourceIdentifier=function(u){if(null!=u&&u.flowIdentifier)return u.flowIdentifier.includes("NFT")?u.flowIdentifier:`${u.flowIdentifier}.NFT`;if(!u||!u.address||!u.contractName)return null;return`A.${s(u.address)}.${u.contractName}.NFT`},e.getNFTSearchText=function(u){var n,t,o,i;return(null!=(n=u.name)?n:"")+" "+(null!=(t=u.description)?t:"")+" "+(null!=(o=null==(i=u.postMedia)?void 0:i.description)?o:"")},e.getRetryConfig=C,e.getThemeBackgroundColor=function(u){var n,t,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000";return A(u)?(null==(n=u.white)?void 0:n.val)||o:(null==(t=u.black)?void 0:t.val)||i},e.getThemeCardBackground=function(u){return A(u)?"$light10":"$bg2"},e.getThemeTextColor=function(u){var n,t,o,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",D=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000";return A(u)?(null==(n=u.white)?void 0:n.val)||(null==(t=u.color)?void 0:t.val)||l:(null==(o=u.black)?void 0:o.val)||(null==(i=u.color)?void 0:i.val)||D},e.getTokenIdentifier=function(u){if(!u||!u.contractAddress||!u.contractName)return null;return`A.${s(u.contractAddress)}.${u.contractName}`},e.getTokenResourceIdentifier=function(u){if(null!=u&&u.identifier)return u.identifier.includes("Vault")?u.identifier:`${u.identifier}.Vault`;if(!u||!u.contractAddress||!u.contractName)return null;if(!o(u.contractAddress))return null;return`A.${s(u.contractAddress)}.${u.contractName}.Vault`},e.hasNFTMedia=function(u){var n;return!!(u.thumbnail||null!=(n=u.postMedia)&&n.image)},e.isCOAAddress=l,e.isDarkMode=A,e.isEOAAddress=function(u){if(!i(u))return!1;return!l(u)},e.isERC1155=function(u){return"ERC1155"===u.contractType},e.isEmoji=void 0,e.isEmpty=function(u){return null==u||("string"==typeof u?""===u.trim():Array.isArray(u)?0===u.length:"object"==typeof u&&0===Object.keys(u).length)},e.isTransactionId=function(u){if(!u||"string"!=typeof u)return!1;var n=u.trim();return/^[0-9a-fA-F]{64}$/.test(n)||/^0x[0-9a-fA-F]{64}$/.test(n)},e.isValidEthereumAddress=i,e.isValidFlowAddress=o,e.retryConfigs=e.logger=void 0,e.setGlobalLogger=function(u){y=new p(u)},e.showError=void 0,e.stripHexPrefix=s,e.throttle=function(u,n){var t;return function(){t||(u.apply(void 0,arguments),t=!0,setTimeout(function(){return t=!1},n))}},e.transformAccountForDisplay=e.transformAccountForCard=void 0,e.truncateAddress=function(u){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;if(u.length<=n+t)return u;return`${u.slice(0,n)}...${u.slice(-t)}`};var n=u(r(d[1])),t=u(r(d[2]));function o(u){return/^0x[a-fA-F0-9]{16}$/.test(u)}function i(u){return/^0x[a-fA-F0-9]{40}$/.test(u)}function l(u){return!!i(u)&&(u.startsWith("0x")?u:`0x${u}`).toLowerCase().startsWith("0x000000")}function D(u){if(!u||"string"!=typeof u)return null;var n=u.split(".");if(n.length<2)return null;try{var t=n[1].replace(/-/g,"+").replace(/_/g,"/"),o=t.length%4==0?t:`${t}${"=".repeat(4-t.length%4)}`,i=r(d[4]).Buffer.from(o,"base64").toString("utf-8");return JSON.parse(i)}catch(u){return null}}function c(u){return null!==u&&"object"==typeof u&&null!==u&&"name"in u&&"string"==typeof u.name&&u.name.length>0}function s(u){return u.startsWith("0x")?u.slice(2):u}Array.prototype.compactMap||(Array.prototype.compactMap=function(u){for(var n=[],t=0;t1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?o-1:0),l=1;l1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i1?t-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:.1;return function(o){var i=u*2**o,l=Math.min(i,n);return l+l*t*Math.random()}}var v=e.retryConfigs={critical:{retry:3,retryDelay:E(1e3,3e4)},important:{retry:2,retryDelay:E(1e3,2e4)},standard:{retry:1,retryDelay:E(500,1e4)},minimal:{retry:1,retryDelay:E(500,5e3)}};function C(u){return v[u]}var h=e.transformAccountForDisplay=function(u){var n,t,o,i,l;return u?{name:u.name,address:u.address,type:u.type,avatar:f(u.avatar)?void 0:u.avatar,avatarSrc:f(u.avatar)?void 0:u.avatar,avatarFallback:f(null==(n=u.emojiInfo)?void 0:n.emoji)?null==(t=u.emojiInfo)?void 0:t.emoji:(null==(o=u.name)?void 0:o[0])||"",avatarBgColor:(null==(i=u.emojiInfo)?void 0:i.color)||"#7B61FF",balance:(null==u?void 0:u.balance)||"0 FLOW",nfts:(null==u?void 0:u.nfts)||"0 NFTs",emojiInfo:f(null==(l=u.emojiInfo)?void 0:l.emoji)?u.emojiInfo:void 0,parentEmoji:u.parentEmoji?{emoji:u.parentEmoji.emoji,name:u.parentEmoji.name,color:u.parentEmoji.color}:void 0}:null};e.transformAccountForCard=function(u){return h(u)};function A(u){var n,t;return"#000000"===(null==(n=u.background)?void 0:n.val)||"#000000"===(null==(t=u.bg)?void 0:t.val)}var B=["Brave","Calm","Clever","Cool","Cozy","Curious","Daring","Eager","Fancy","Gentle","Glowing","Golden","Happy","Humble","Jolly","Kind","Lively","Lucky","Mellow","Mighty","Noble","Playful","Polite","Proud","Quick","Quiet","Radiant","Shiny","Silly","Smart","Smiling","Snug","Sparkly","Swift","Tiny","Vibrant","Warm","Witty","Zany","Bright","Bold","Dynamic","Epic","Fierce","Gleeful","Joyful","Lovely","Merry","Neat","Peppy","Plucky","Posh","Relaxed","Serene","Smooth","Spunky","Sunny","Sweet","Thrifty","Tricky","Upbeat","Valiant","Zealous","Alert","Astute","Chill","Crisp","Dapper","Keen","Lush","Perky","Poised","Prime","Pure","Rare","Robust","Sage","Sharp","Sleek","Snappy","Solid","Spry","Stable","Steady","Stealth","Stern","Stout","Suave","Super","Tender","Tidy","True","Trusty","Ultra","Unique","Upright","Urbane","Vivid","Wary","Wild","Wise","Agile","Blessed","Caring","Cosmic","Crafty","Divine","Elated","Fluent","Fresh","Gifted","Grand","Heroic","Honest","Ideal"],S=[].concat(["Apple","Apricot","Avocado","Banana","Cherry","Coconut","Date","Fig","Grape","Guava","Kiwi","Lemon","Lime","Mango","Melon","Orange","Papaya","Peach","Pear","Plum","Pomelo","Quince","Soursop","Currant","Sapote","Longan","Durian","Kumquat","Lychee","Acai","Berry","Citrus","Olive","Raisin","Prune","Cassia","Yuzu"],["Ant","Bear","Beaver","Bee","Bird","Bobcat","Buffalo","Camel","Cat","Cheetah","Chicken","Cobra","Cow","Crab","Deer","Dog","Dolphin","Duck","Eagle","Falcon","Ferret","Fish","Fox","Frog","Giraffe","Goat","Goose","Hamster","Hawk","Hippo","Horse","Jaguar","Koala","Lemur","Leopard","Lion","Lizard","Llama","Lobster","Monkey","Moose","Mouse","Octopus","Otter","Owl","Panda","Panther","Parrot","Penguin","Pig","Rabbit","Raccoon","Ram","Rat","Raven","Seal","Shark","Sheep","Skunk","Sloth","Snail","Snake","Spider","Tiger","Toad","Turtle","Whale","Wolf","Wombat","Zebra","Badger","Bat","Beetle","Bison","Boar","Caribou","Clam","Coyote","Crow","Donkey","Eel","Emu","Firefly","Gazelle","Gecko","Gopher","Grouse","Heron","Hyena","Iguana","Jackal","Jay","Koi","Lark","Lynx","Magpie","Mallard","Mantis","Mink","Mole","Moth","Narwhal","Newt","Ocelot","Orca","Pelican","Pigeon","Quail","Robin","Rooster","Salmon","Sardine","Sealion","Shrimp","Swan","Termite","Toucan","Trout","Vulture","Walrus","Weasel","Yak","Zebu","Alpaca","Condor","Finch","Hornet","Meerkat","Osprey","Possum","Puffin","Shrew","Viper","Wasp","Wren","Corgi","Husky","Puma","Ibis","Crane","Stork","Hound","Dingo","Betta","Cicada","Marlin","Cougar"],["River","Ocean","Sky","Cloud","Rain","Sun","Moon","Star","Comet","Breeze","Storm","Forest","Tree","Leaf","Rock","Stone","Pebble","Hill","Valley","Canyon","Desert","Sand","Wave","Tide","Lake","Pond","Stream","Coral","Reef","Glacier","Aurora","Shadow","Light","Flame","Fire","Smoke","Mist","Dawn","Dusk","Sunset","Sunrise","Field","Garden","Flower","Petal","Vine","Root","Branch","Seed","Berry","Moss","Fern","Willow","Oak","Pine","Maple","Cedar","Meadow","Prairie","Savanna","Jungle","Island","Lagoon","Bay","Shore","Cave","Cliff","Crystal","Gem","Amber","Pearl","Quartz","Emerald","Topaz","Volcano","Geyser","Thunder","Horizon","Echo","Boulder","Dune","Frost","Galaxy","Orbit","Planet","Meteor","Cosmos","Fjord","Grove","Glade","Bluff","Delta","Estuary","Peak","Ridge","Ravine","Butte","Mesa","Cove","Inlet","Grotto","Cavern","Knoll","Dale","Glen","Heath","Moor","Fen","Bog","Marsh","Swamp","Basin","Oasis","Tundra","Steppe","Taiga","Vale","Blaze","Ember","Spark","Ash","Cinder","Flare","Glow","Beam","Ray","Haze","Fog","Dew","Rime","Snow","Hail","Sleet","Gust","Gale","Zephyr","Squall","Tempest","Cyclone","Nebula","Quasar","Pulsar","Nova","Void","Abyss","Zenith","Nadir","Eclipse"],B);function b(u){if("undefined"!=typeof crypto&&crypto.getRandomValues){var n=new Uint32Array(1);return crypto.getRandomValues(n),n[0]%u}return Math.floor(Math.random()*u)}function w(u){return u[b(u.length)]}},2,[1,3,4,8,25]); __d(function(g,r,i,_a,m,e,d){m.exports=function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")},m.exports.__esModule=!0,m.exports.default=m.exports},3,[]); __d(function(g,_r,i,a,m,_e,d){function e(e,r){for(var t=0;t18)return"evm";return"flow"},_e.createNFTModelFromConfig=C,_e.createNFTModelsFromConfig=function(e){if(!Array.isArray(e))return[];return e.map(C)},_e.createTokenModelFromConfig=function(e){return{type:"flow"===e.type?"flow":"evm",name:e.name,symbol:e.symbol,description:e.description,balance:e.balance,contractAddress:e.contractAddress,contractName:e.contractName,storagePath:e.storagePath,receiverPath:e.receiverPath,balancePath:e.balancePath,identifier:e.identifier,isVerified:e.isVerified,logoURI:e.logoURI,priceInUSD:e.priceInUSD,balanceInUSD:e.balanceInUSD,priceInFLOW:e.priceInFLOW,balanceInFLOW:e.balanceInFLOW,currency:e.currency,priceInCurrency:e.priceInCurrency,balanceInCurrency:e.balanceInCurrency,displayBalance:e.displayBalance,availableBalanceToUse:e.availableBalanceToUse,change:e.change,decimal:e.decimal,evmAddress:e.evmAddress,website:e.website}},_e.createWalletAccountFromConfig=function(e){var n;return{id:e.id||e.address,address:e.address,name:e.name,type:e.type,isActive:null==(n=e.isActive)||n,avatar:e.avatar,emojiInfo:e.emojiInfo,parentEmoji:e.parentEmoji}},_e.formatCurrencyStringForDisplay=p,_e.getDomainCategory=void 0,_e.isFlow=function(e){var n;return"FLOW"===(null==(n=e.symbol)?void 0:n.toUpperCase())},_e.mapCadenceTokenDataWithCurrencyToTokenModel=function(e,n){var t,c;function o(e){if(e&&"object"==typeof e)return{domain:e.domain,identifier:e.identifier}}return{type:"flow",name:null!=(t=e.name)?t:"",symbol:e.symbol,description:e.description,balance:e.displayBalance,contractAddress:e.contractAddress,contractName:null!=(c=e.contractName)?c:"",storagePath:o(e.storagePath),receiverPath:o(e.receiverPath),balancePath:o(e.balancePath),identifier:e.identifier,isVerified:e.isVerified,logoURI:e.logoURI,priceInUSD:e.priceInUSD,balanceInUSD:e.balanceInUSD,priceInFLOW:e.priceInFLOW,balanceInFLOW:e.balanceInFLOW,currency:e.currency,priceInCurrency:e.priceInCurrency,balanceInCurrency:e.balanceInCurrency,displayBalance:e.displayBalance,availableBalanceToUse:"FLOW"===e.symbol?n:e.displayBalance,change:"",decimal:8,evmAddress:e.evmAddress,website:""}},_e.mapERC20TokenToTokenModel=function(e){var n,t,c,o=e.displayBalance||e.balance||"0";return{type:"evm",name:null!=(n=e.name)?n:"",symbol:e.symbol,description:"",balance:o,contractAddress:e.address,contractName:"",storagePath:void 0,receiverPath:void 0,balancePath:void 0,identifier:e.flowIdentifier,isVerified:null!=(t=e.isVerified)&&t,logoURI:e.logoURI,priceInUSD:e.priceInUSD||"",balanceInUSD:e.balanceInUSD||"",priceInFLOW:e.priceInFLOW||"",balanceInFLOW:e.balanceInFLOW||"",currency:e.currency||"",priceInCurrency:e.priceInCurrency||"",balanceInCurrency:e.balanceInCurrency||"",displayBalance:o,availableBalanceToUse:o,change:"",decimal:null!=(c=e.decimals)?c:18,evmAddress:e.address,website:""}},_e.shouldHideAccount=function(e){if("evm"!==e.type)return!1;var n=!e.balance||"0"===e.balance||!isNaN(parseFloat(e.balance))&&0===parseFloat(e.balance),t=!e.nfts||"0"===e.nfts||!isNaN(parseFloat(e.nfts))&&0===parseFloat(e.nfts);return n&&t},_e.truncateBalance=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;if(!e||e.length<=n)return e;var t=e.split(" ");if(2===t.length){var c=(0,u.default)(t,2),o=c[0],l=c[1],s=n-(l.length+1);if(s>3){var E=parseFloat(o);if(!isNaN(E)){var T=Math.max(0,s-Math.floor(E).toString().length-1);return`${p({value:E,digits:Math.min(T,3)})} ${l}`}}}return e.substring(0,n-3)+"..."};var n=e(r(d[1])),t=e(r(d[2])),c=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),s=e(r(d[6])),E=e(r(d[7])),u=e(r(d[8]));function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}var I=_e.NativeScreenName=(function(e){return e.MULTI_BACKUP="multiBackup",e.DEVICE_BACKUP="deviceBackup",e.SEED_PHRASE_BACKUP="seedPhraseBackup",e.BACKUP_OPTIONS="backupOptions",e.WALLET_RESTORE="walletRestore",e})(I||{}),S=_e.ScreenName=(function(e){return e.GET_STARTED="GetStarted",e.PROFILE_TYPE_SELECTION="ProfileTypeSelection",e.RECOVERY_PHRASE="RecoveryPhrase",e.SECURE_ENCLAVE="SecureEnclave",e.NOTIFICATION_PREFERENCES="NotificationPreferences",e.SELECT_TOKENS="SelectTokens",e.SEND_TO="SendTo",e.SEND_TOKENS="SendTokens",e.SEND_SUMMARY="SendSummary",e.NFT_LIST="NFTList",e.NFT_DETAIL="NFTDetail",e})(S||{}),N=_e.WalletType=(function(e){return e.Flow="flow",e.EVM="evm",e})(N||{});function C(e){return{id:e.id,name:e.name,description:e.description,thumbnail:e.thumbnail,externalURL:e.externalURL,collectionName:e.collectionName,collectionContractName:e.collectionContractName,collectionDescription:e.collectionDescription,collectionSquareImage:e.collectionSquareImage,collectionBannerImage:e.collectionBannerImage,collectionExternalURL:e.collectionExternalURL,contractAddress:e.contractAddress,evmAddress:e.evmAddress,address:e.address,contractName:e.contractName,contractType:e.contractType,flowIdentifier:e.flowIdentifier,postMedia:e.postMedia?{image:e.postMedia.image,isSvg:e.postMedia.isSvg,description:e.postMedia.description,title:e.postMedia.title}:void 0,amount:e.amount,type:e.evmAddress?"evm":"flow"}}var f=_e.Platform=(function(e){return e.iOS="ios",e.Android="android",e.Extension="extension",e.Web="web",e})(f||{});function A(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(0===e)return"0";var t=Math.abs(e);if(t>=1e-4)return t.toFixed(8).replace(/\.?0+$/,"");var c=t.toFixed(20).split(".")[1],o=0;for(var l of c){if("0"!==l)break;o++}for(var s=c.slice(o);s.length1;)T=T.slice(0,-1);return`0.0${E={0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089"},String(o).split("").map(function(e){var n;return null!=(n=E[e])?n:e}).join("")}${T}`}function p(e){var n=e.value,t=e.digits,c=void 0===t?2:t,o=e.roundingMode,l=void 0===o?"halfUp":o,s=e.considerCustomCurrency,E=void 0!==s&&s,u=e.currentCurrencyRate,T=E?n*(void 0===u?1:u):n;if(Math.abs(T)<1e-4&&0!==T)return A(T,c);var I=Math.pow(10,c);return("down"===l?Math.floor(T*I)/I:Math.round(T*I)/I).toFixed(c).replace(/\.?0+$/,"")}var F=_e.DataCategory=(function(e){return e.FINANCIAL="financial",e.USER_SETTINGS="settings",e.STATIC="static",e.PERSISTENT="persistent",e.SESSION="session",e})(F||{}),_=_e.QueryDomain={FINANCIAL:{TOKENS:"tokens",BALANCE:"balance",NFTS:"nfts",TRANSACTIONS:"transactions",PRICES:"prices",ACCESSIBLE_ASSETS:"accessible-assets",STORAGE:"storage",PAYER_STATUS:"payer-status"},USER_SETTINGS:{ADDRESSBOOK:"addressbook",PREFERENCES:"preferences",CONTACTS:"contacts",RECENT:"recent"},STATIC:{SUPPORTED_TOKENS:"supported-tokens",CHAIN_INFO:"chain-info",NETWORK_CONFIG:"network-config",CURRENCY_LIST:"currency-list"},PERSISTENT:{CONFIG:"config",CONSTANTS:"constants",METADATA:"metadata",SCHEMAS:"schemas",TRANSLATIONS:"translations"},SESSION:{SESSION:"session",AUTH:"auth",TEMP:"temp"}},O=(_e.FlatQueryDomain=Object.assign({},_.FINANCIAL,_.USER_SETTINGS,_.STATIC,_.PERSISTENT,_.SESSION),_e.getDomainCategory=function(e){return Object.values(_.FINANCIAL).includes(e)?"financial":Object.values(_.USER_SETTINGS).includes(e)?"settings":Object.values(_.STATIC).includes(e)?"static":Object.values(_.PERSISTENT).includes(e)?"persistent":Object.values(_.SESSION).includes(e)?"session":"financial"},_e.CACHE_TIMES=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},"financial",0),"session",12e4),"settings",3e5),"static",18e5),"persistent",1/0),_e.GC_TIMES=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},"financial",12e4),"settings",6e5),"session",3e4),"static",36e5),"persistent",1/0),_e.ErrorCode=(function(e){return e.BRIDGE_NOT_FOUND="BRIDGE-01",e.TRANSACTION_ERROR="TXN-01",e.ACCESSIBLE_ASSET_FETCH_FAILED="ACCOUNT-01",e.ACCOUNT_INFO_FETCH_FAILED="ACCOUNT-02",e.ADDRESSBOOK_FETCH_FAILED="ADDR-01",e.FLOW_SERVICE_NOT_INITIALIZED="FLOW-01",e.FLOW_BALANCE_NOT_FOUND="FLOW-02",e.FLOW_BALANCE_FETCH_FAILED="FLOW-03",e.FLOW_METHOD_NOT_IMPLEMENTED="FLOW-04",e.NFT_COLLECTION_PATH_NOT_FOUND="NFT-01",e.NFT_COLLECTIONS_FETCH_FAILED="NFT-02",e.NFT_FETCH_FAILED="NFT-03",e.NFT_INVALID_PARAMETERS="NFT-04",e.RECENT_RECIPIENTS_STORAGE_NOT_FOUND="RECIP-01",e.RECENT_RECIPIENTS_FETCH_FAILED="RECIP-02",e.RECENT_RECIPIENTS_LOCAL_FETCH_FAILED="RECIP-03",e.RECENT_RECIPIENTS_SERVER_FETCH_FAILED="RECIP-04",e.RECENT_RECIPIENTS_ADD_FAILED="RECIP-05",e.RECENT_RECIPIENTS_CLEAR_FAILED="RECIP-06",e.TOKEN_FLOW_FETCH_FAILED="TOKEN-01",e.TOKEN_ERC20_FETCH_FAILED="TOKEN-02",e.TOKEN_INFO_FETCH_FAILED="TOKEN-03",e})(O||{}));_e.FRWError=(function(e){function s(e,n,l){var E,u,I,S;return(0,t.default)(this,s),u=this,I=s,S=[n],I=(0,o.default)(I),(E=(0,c.default)(u,T()?Reflect.construct(I,S||[],(0,o.default)(u).constructor):I.apply(u,S))).name="FRWError",E.code=e,E.details=l,Error.captureStackTrace&&Error.captureStackTrace(E,s),E}return(0,l.default)(s,e),(0,n.default)(s)})((0,s.default)(Error))},8,[1,4,3,9,11,12,14,18,19]); +__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.WalletType=_e.ScreenName=_e.QueryDomain=_e.Platform=_e.NativeScreenName=_e.GC_TIMES=_e.FlatQueryDomain=_e.FRWError=_e.ErrorCode=_e.DataCategory=_e.CACHE_TIMES=void 0,_e.addressType=function(e){if(e.length>18)return"evm";return"flow"},_e.createNFTModelFromConfig=N,_e.createNFTModelsFromConfig=function(e){if(!Array.isArray(e))return[];return e.map(N)},_e.createTokenModelFromConfig=function(e){return{type:"flow"===e.type?"flow":"evm",name:e.name,symbol:e.symbol,description:e.description,balance:e.balance,contractAddress:e.contractAddress,contractName:e.contractName,storagePath:e.storagePath,receiverPath:e.receiverPath,balancePath:e.balancePath,identifier:e.identifier,isVerified:e.isVerified,logoURI:e.logoURI,priceInUSD:e.priceInUSD,balanceInUSD:e.balanceInUSD,priceInFLOW:e.priceInFLOW,balanceInFLOW:e.balanceInFLOW,currency:e.currency,priceInCurrency:e.priceInCurrency,balanceInCurrency:e.balanceInCurrency,displayBalance:e.displayBalance,availableBalanceToUse:e.availableBalanceToUse,change:e.change,decimal:e.decimal,evmAddress:e.evmAddress,website:e.website}},_e.createWalletAccountFromConfig=function(e){var n;return{id:e.id||e.address,address:e.address,name:e.name,type:e.type,isActive:null==(n=e.isActive)||n,avatar:e.avatar,emojiInfo:e.emojiInfo,parentEmoji:e.parentEmoji}},_e.formatCurrencyStringForDisplay=A,_e.getDomainCategory=void 0,_e.isFlow=function(e){var n;return"FLOW"===(null==(n=e.symbol)?void 0:n.toUpperCase())},_e.mapCadenceTokenDataWithCurrencyToTokenModel=function(e,n){var t,c;function o(e){if(e&&"object"==typeof e)return{domain:e.domain,identifier:e.identifier}}return{type:"flow",name:null!=(t=e.name)?t:"",symbol:e.symbol,description:e.description,balance:e.displayBalance,contractAddress:e.contractAddress,contractName:null!=(c=e.contractName)?c:"",storagePath:o(e.storagePath),receiverPath:o(e.receiverPath),balancePath:o(e.balancePath),identifier:e.identifier,isVerified:e.isVerified,logoURI:e.logoURI,priceInUSD:e.priceInUSD,balanceInUSD:e.balanceInUSD,priceInFLOW:e.priceInFLOW,balanceInFLOW:e.balanceInFLOW,currency:e.currency,priceInCurrency:e.priceInCurrency,balanceInCurrency:e.balanceInCurrency,displayBalance:e.displayBalance,availableBalanceToUse:"FLOW"===e.symbol?n:e.displayBalance,change:"",decimal:8,evmAddress:e.evmAddress,website:""}},_e.mapERC20TokenToTokenModel=function(e){var n,t,c,o=e.displayBalance||e.balance||"0";return{type:"evm",name:null!=(n=e.name)?n:"",symbol:e.symbol,description:"",balance:o,contractAddress:e.address,contractName:"",storagePath:void 0,receiverPath:void 0,balancePath:void 0,identifier:e.flowIdentifier,isVerified:null!=(t=e.isVerified)&&t,logoURI:e.logoURI,priceInUSD:e.priceInUSD||"",balanceInUSD:e.balanceInUSD||"",priceInFLOW:e.priceInFLOW||"",balanceInFLOW:e.balanceInFLOW||"",currency:e.currency||"",priceInCurrency:e.priceInCurrency||"",balanceInCurrency:e.balanceInCurrency||"",displayBalance:o,availableBalanceToUse:o,change:"",decimal:null!=(c=e.decimals)?c:18,evmAddress:e.address,website:""}},_e.shouldHideAccount=function(e){if("evm"!==e.type)return!1;var n=!e.balance||"0"===e.balance||!isNaN(parseFloat(e.balance))&&0===parseFloat(e.balance),t=!e.nfts||"0"===e.nfts||!isNaN(parseFloat(e.nfts))&&0===parseFloat(e.nfts);return n&&t},_e.truncateBalance=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15;if(!e||e.length<=n)return e;var t=e.split(" ");if(2===t.length){var c=(0,T.default)(t,2),o=c[0],l=c[1],s=n-(l.length+1);if(s>3){var E=parseFloat(o);if(!isNaN(E)){var I=Math.max(0,s-Math.floor(E).toString().length-1);return`${A({value:E,digits:Math.min(I,3)})} ${l}`}}}return e.substring(0,n-3)+"..."};var n=e(r(d[1])),t=e(r(d[2])),c=e(r(d[3])),o=e(r(d[4])),l=e(r(d[5])),s=e(r(d[6])),E=e(r(d[7])),T=e(r(d[8]));function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(I=function(){return!!e})()}var u=_e.NativeScreenName=(function(e){return e.MULTI_BACKUP="multiBackup",e.DEVICE_BACKUP="deviceBackup",e.SEED_PHRASE_BACKUP="seedPhraseBackup",e.BACKUP_OPTIONS="backupOptions",e.WALLET_RESTORE="walletRestore",e.RECOVERY_PHRASE_RESTORE="recoveryPhraseRestore",e.KEY_STORE_RESTORE="keyStoreRestore",e.PRIVATE_KEY_RESTORE="privateKeyRestore",e.GOOGLE_DRIVE_RESTORE="googleDriveRestore",e.ICLOUD_RESTORE="icloudRestore",e.MULTI_RESTORE="multiRestore",e})(u||{}),S=_e.ScreenName=(function(e){return e.GET_STARTED="GetStarted",e.PROFILE_TYPE_SELECTION="ProfileTypeSelection",e.RECOVERY_PHRASE="RecoveryPhrase",e.CONFIRM_RECOVERY_PHRASE="ConfirmRecoveryPhrase",e.SECURE_ENCLAVE="SecureEnclave",e.IMPORT_PROFILE="ImportProfile",e.IMPORT_OTHER_METHODS="ImportOtherMethods",e.CONFIRM_IMPORT_PROFILE="ConfirmImportProfile",e.NOTIFICATION_PREFERENCES="NotificationPreferences",e.SELECT_TOKENS="SelectTokens",e.SEND_TO="SendTo",e.SEND_TOKENS="SendTokens",e.SEND_SUMMARY="SendSummary",e.NFT_LIST="NFTList",e.NFT_DETAIL="NFTDetail",e})(S||{}),C=_e.WalletType=(function(e){return e.Flow="flow",e.EVM="evm",e})(C||{});function N(e){return{id:e.id,name:e.name,description:e.description,thumbnail:e.thumbnail,externalURL:e.externalURL,collectionName:e.collectionName,collectionContractName:e.collectionContractName,collectionDescription:e.collectionDescription,collectionSquareImage:e.collectionSquareImage,collectionBannerImage:e.collectionBannerImage,collectionExternalURL:e.collectionExternalURL,contractAddress:e.contractAddress,evmAddress:e.evmAddress,address:e.address,contractName:e.contractName,contractType:e.contractType,flowIdentifier:e.flowIdentifier,postMedia:e.postMedia?{image:e.postMedia.image,isSvg:e.postMedia.isSvg,description:e.postMedia.description,title:e.postMedia.title}:void 0,amount:e.amount,type:e.evmAddress?"evm":"flow"}}var O=_e.Platform=(function(e){return e.iOS="ios",e.Android="android",e.Extension="extension",e.Web="web",e})(O||{});function _(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4;if(0===e)return"0";var t=Math.abs(e);if(t>=1e-4)return t.toFixed(8).replace(/\.?0+$/,"");var c=t.toFixed(20).split(".")[1],o=0;for(var l of c){if("0"!==l)break;o++}for(var s=c.slice(o);s.length1;)I=I.slice(0,-1);return`0.0${E={0:"\u2080",1:"\u2081",2:"\u2082",3:"\u2083",4:"\u2084",5:"\u2085",6:"\u2086",7:"\u2087",8:"\u2088",9:"\u2089"},String(o).split("").map(function(e){var n;return null!=(n=E[e])?n:e}).join("")}${I}`}function A(e){var n=e.value,t=e.digits,c=void 0===t?2:t,o=e.roundingMode,l=void 0===o?"halfUp":o,s=e.considerCustomCurrency,E=void 0!==s&&s,T=e.currentCurrencyRate,I=E?n*(void 0===T?1:T):n;if(Math.abs(I)<1e-4&&0!==I)return _(I,c);var u=Math.pow(10,c);return("down"===l?Math.floor(I*u)/u:Math.round(I*u)/u).toFixed(c).replace(/\.?0+$/,"")}var R=_e.DataCategory=(function(e){return e.FINANCIAL="financial",e.USER_SETTINGS="settings",e.STATIC="static",e.PERSISTENT="persistent",e.SESSION="session",e})(R||{}),f=_e.QueryDomain={FINANCIAL:{TOKENS:"tokens",BALANCE:"balance",NFTS:"nfts",TRANSACTIONS:"transactions",PRICES:"prices",ACCESSIBLE_ASSETS:"accessible-assets",STORAGE:"storage",PAYER_STATUS:"payer-status"},USER_SETTINGS:{ADDRESSBOOK:"addressbook",PREFERENCES:"preferences",CONTACTS:"contacts",RECENT:"recent"},STATIC:{SUPPORTED_TOKENS:"supported-tokens",CHAIN_INFO:"chain-info",NETWORK_CONFIG:"network-config",CURRENCY_LIST:"currency-list"},PERSISTENT:{CONFIG:"config",CONSTANTS:"constants",METADATA:"metadata",SCHEMAS:"schemas",TRANSLATIONS:"translations"},SESSION:{SESSION:"session",AUTH:"auth",TEMP:"temp"}},F=(_e.FlatQueryDomain=Object.assign({},f.FINANCIAL,f.USER_SETTINGS,f.STATIC,f.PERSISTENT,f.SESSION),_e.getDomainCategory=function(e){return Object.values(f.FINANCIAL).includes(e)?"financial":Object.values(f.USER_SETTINGS).includes(e)?"settings":Object.values(f.STATIC).includes(e)?"static":Object.values(f.PERSISTENT).includes(e)?"persistent":Object.values(f.SESSION).includes(e)?"session":"financial"},_e.CACHE_TIMES=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},"financial",0),"session",12e4),"settings",3e5),"static",18e5),"persistent",1/0),_e.GC_TIMES=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},"financial",12e4),"settings",6e5),"session",3e4),"static",36e5),"persistent",1/0),_e.ErrorCode=(function(e){return e.BRIDGE_NOT_FOUND="BRIDGE-01",e.TRANSACTION_ERROR="TXN-01",e.ACCESSIBLE_ASSET_FETCH_FAILED="ACCOUNT-01",e.ACCOUNT_INFO_FETCH_FAILED="ACCOUNT-02",e.ACCOUNT_REGISTRATION_FAILED="ACCOUNT-03",e.ACCOUNT_FIREBASE_AUTH_FAILED="ACCOUNT-04",e.ACCOUNT_MNEMONIC_SAVE_FAILED="ACCOUNT-05",e.ACCOUNT_CREATION_MISSING_DATA="ACCOUNT-06",e.ACCOUNT_FLOW_ADDRESS_CREATION_FAILED="ACCOUNT-07",e.ADDRESSBOOK_FETCH_FAILED="ADDR-01",e.FLOW_SERVICE_NOT_INITIALIZED="FLOW-01",e.FLOW_BALANCE_NOT_FOUND="FLOW-02",e.FLOW_BALANCE_FETCH_FAILED="FLOW-03",e.FLOW_METHOD_NOT_IMPLEMENTED="FLOW-04",e.NFT_COLLECTION_PATH_NOT_FOUND="NFT-01",e.NFT_COLLECTIONS_FETCH_FAILED="NFT-02",e.NFT_FETCH_FAILED="NFT-03",e.NFT_INVALID_PARAMETERS="NFT-04",e.RECENT_RECIPIENTS_STORAGE_NOT_FOUND="RECIP-01",e.RECENT_RECIPIENTS_FETCH_FAILED="RECIP-02",e.RECENT_RECIPIENTS_LOCAL_FETCH_FAILED="RECIP-03",e.RECENT_RECIPIENTS_SERVER_FETCH_FAILED="RECIP-04",e.RECENT_RECIPIENTS_ADD_FAILED="RECIP-05",e.RECENT_RECIPIENTS_CLEAR_FAILED="RECIP-06",e.TOKEN_FLOW_FETCH_FAILED="TOKEN-01",e.TOKEN_ERC20_FETCH_FAILED="TOKEN-02",e.TOKEN_INFO_FETCH_FAILED="TOKEN-03",e})(F||{}));_e.FRWError=(function(e){function s(e,n,l){var E,T,u,S;return(0,t.default)(this,s),T=this,u=s,S=[n],u=(0,o.default)(u),(E=(0,c.default)(T,I()?Reflect.construct(u,S||[],(0,o.default)(T).constructor):u.apply(T,S))).name="FRWError",E.code=e,E.details=l,Error.captureStackTrace&&Error.captureStackTrace(E,s),E}return(0,l.default)(s,e),(0,n.default)(s)})((0,s.default)(Error))},8,[1,4,3,9,11,12,14,18,19]); __d(function(g,r,i,a,m,_e,d){m.exports=function(e,o){if(o&&("object"==r(d[0]).default(o)||"function"==typeof o))return o;if(void 0!==o)throw new TypeError("Derived constructors may only return object or undefined");return r(d[1])(e)},m.exports.__esModule=!0,m.exports.default=m.exports},9,[7,10]); __d(function(g,r,i,a,m,_e,d){m.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},m.exports.__esModule=!0,m.exports.default=m.exports},10,[]); __d(function(g,r,i,a,m,e,d){function t(o){return m.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m.exports.__esModule=!0,m.exports.default=m.exports,t(o)}m.exports=t,m.exports.__esModule=!0,m.exports.default=m.exports},11,[]); @@ -544,7 +544,7 @@ __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{ __d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},494,[495]); __d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('Vibration')},495,[50]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(t){return(0,r(d[0]).DynamicColorIOSPrivate)({light:t.light,dark:t.dark,highContrastLight:t.highContrastLight,highContrastDark:t.highContrastDark})}},496,[94]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),i=(function(e,t){if("function"==typeof WeakMap)var i=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,l,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t?r:i){if(n.has(e))return n.get(e);n.set(e,o)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(l.get||l.set)?n(o,u,l):o[u]=e[u]);return o})(e,t)})(_r(d[2])),r=_r(d[3]),n=_r(d[4]);_r(d[5]);var l=e(_r(d[6])),o=_r(d[7]);globalThis.clipboard={setString:function(e){n.Clipboard.setString(e)}};_e.default=function(e){var u=(0,_r(d[8]).useWalletStore)().loadAccountsFromBridge;_r(d[9]).ServiceContext.isInitialized()||(_r(d[9]).ServiceContext.initialize(_r(d[10]).platform),_r(d[10]).platform.log('debug','[App] Services initialized with RNBridge (sync)'));var s=(0,r.useCallback)(function(){var e=ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler(function(t,i){(0,_r(d[11]).handleGlobalError)(t,null!=i&&i),e&&e(t,i)}),'function'==typeof g.addEventListener?g.addEventListener('unhandledrejection',function(e){var t=e.reason instanceof Error?e.reason:new Error(String(e.reason));(0,_r(d[11]).handleUnhandledRejection)(t,e.promise||Promise.resolve()),e.preventDefault()}):_r(d[10]).platform.log('warn','[App] Unable to set up unhandled rejection handler - addEventListener not available'),_r(d[10]).platform.log('debug','[App] Global error handlers initialized')},[]),f=(0,r.useCallback)((0,t.default)(function*(){try{_r(d[9]).ServiceContext.isInitialized()||_r(d[9]).ServiceContext.initialize(_r(d[10]).platform),_r(d[10]).platform.log('debug','[App] Services initialized with RNBridge successfully (effect)'),s();var t=_r(d[10]).platform.getLanguage();yield(0,_r(d[12]).initializeI18n)(t),_r(d[10]).platform.log('debug','[App] i18n initialized with language:',t),c(e),yield u()}catch(e){_r(d[10]).platform.log('error','[App] Failed to initialize app:',e)}}),[u,e,s]),c=(0,r.useCallback)(function(e){try{var t,r,n=_r(d[10]).platform.getInstabugToken();if(!n||''===n.trim())return void _r(d[10]).platform.log('debug','[App] Instabug token not available, skipping initialization');i.default.init({token:n,invocationEvents:[i.InvocationEvent.none]}),i.default.setUserAttribute('SelectedAccount',null!=(t=e.address)?t:''),i.default.setUserAttribute('Network',null!=(r=e.network)?r:''),i.default.setUserAttribute('Version',_r(d[13]).version),_r(d[10]).platform.setInstabugInitialized(!0),_r(d[10]).platform.log('debug','[App] Instabug initialized with token')}catch(e){_r(d[10]).platform.log('error','[App] Failed to initialize Instabug:',e),_r(d[10]).platform.setInstabugInitialized(!1)}},[]);(0,r.useEffect)(function(){f()},[f]);var p=(0,n.useColorScheme)();return(0,o.jsx)(_r(d[14]).FRWErrorBoundary,{children:(0,o.jsx)(_r(d[15]).PortalProvider,{shouldAddRootHost:!0,children:(0,o.jsx)(_r(d[15]).TamaguiProvider,{config:_r(d[15]).tamaguiConfig,defaultTheme:'dark'===p?'dark':'light',children:(0,o.jsxs)(_r(d[12]).QueryProvider,{children:[(0,o.jsx)(_r(d[16]).QueryDebugger,{}),(0,o.jsx)(_r(d[17]).GestureHandlerRootView,{style:{flex:1},children:(0,o.jsx)(l.default,Object.assign({},e))})]})})})})}},497,[1,367,498,128,28,542,544,258,794,805,2469,2556,2475,2557,2558,1459,2572,2573]); +__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),i=(function(e,t){if("function"==typeof WeakMap)var i=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,l,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(n=t?r:i){if(n.has(e))return n.get(e);n.set(e,o)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(l.get||l.set)?n(o,u,l):o[u]=e[u]);return o})(e,t)})(_r(d[2])),r=_r(d[3]),n=_r(d[4]);_r(d[5]);var l=e(_r(d[6])),o=_r(d[7]);globalThis.clipboard={setString:function(e){n.Clipboard.setString(e)}};_e.default=function(e){var u=(0,_r(d[8]).useWalletStore)().loadAccountsFromBridge;_r(d[9]).ServiceContext.isInitialized()||(_r(d[9]).ServiceContext.initialize(_r(d[10]).platform),_r(d[10]).platform.log('debug','[App] Services initialized with RNBridge (sync)'));var s=(0,r.useCallback)(function(){var e=ErrorUtils.getGlobalHandler();ErrorUtils.setGlobalHandler(function(t,i){(0,_r(d[11]).handleGlobalError)(t,null!=i&&i),e&&e(t,i)}),'function'==typeof g.addEventListener?g.addEventListener('unhandledrejection',function(e){var t=e.reason instanceof Error?e.reason:new Error(String(e.reason));(0,_r(d[11]).handleUnhandledRejection)(t,e.promise||Promise.resolve()),e.preventDefault()}):_r(d[10]).platform.log('warn','[App] Unable to set up unhandled rejection handler - addEventListener not available'),_r(d[10]).platform.log('debug','[App] Global error handlers initialized')},[]),f=(0,r.useCallback)((0,t.default)(function*(){try{_r(d[9]).ServiceContext.isInitialized()||_r(d[9]).ServiceContext.initialize(_r(d[10]).platform),_r(d[10]).platform.log('debug','[App] Services initialized with RNBridge successfully (effect)'),s();var t=_r(d[10]).platform.getLanguage();yield(0,_r(d[12]).initializeI18n)(t),_r(d[10]).platform.log('debug','[App] i18n initialized with language:',t),c(e),yield u()}catch(e){_r(d[10]).platform.log('error','[App] Failed to initialize app:',e)}}),[u,e,s]),c=(0,r.useCallback)(function(e){try{var t,r,n=_r(d[10]).platform.getInstabugToken();if(!n||''===n.trim())return void _r(d[10]).platform.log('debug','[App] Instabug token not available, skipping initialization');i.default.init({token:n,invocationEvents:[i.InvocationEvent.none]}),i.default.setUserAttribute('SelectedAccount',null!=(t=e.address)?t:''),i.default.setUserAttribute('Network',null!=(r=e.network)?r:''),i.default.setUserAttribute('Version',_r(d[13]).version),_r(d[10]).platform.setInstabugInitialized(!0),_r(d[10]).platform.log('debug','[App] Instabug initialized with token')}catch(e){_r(d[10]).platform.log('error','[App] Failed to initialize Instabug:',e),_r(d[10]).platform.setInstabugInitialized(!1)}},[]);(0,r.useEffect)(function(){f()},[f]);var p=(0,n.useColorScheme)();return(0,o.jsx)(_r(d[14]).FRWErrorBoundary,{children:(0,o.jsx)(_r(d[15]).PortalProvider,{shouldAddRootHost:!0,children:(0,o.jsx)(_r(d[15]).TamaguiProvider,{config:_r(d[15]).tamaguiConfig,defaultTheme:'dark'===p?'dark':'light',children:(0,o.jsxs)(_r(d[12]).QueryProvider,{children:[(0,o.jsx)(_r(d[16]).QueryDebugger,{}),(0,o.jsx)(_r(d[17]).GestureHandlerRootView,{style:{flex:1},children:(0,o.jsx)(l.default,Object.assign({},e))})]})})})})}},497,[1,367,498,128,28,542,544,258,1369,1380,2036,2123,2042,2124,2125,794,2139,2140]); __d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0});var r={Report:!0,APM:!0,BugReporting:!0,CrashReporting:!0,FeatureRequests:!0,NetworkLogger:!0,Replies:!0,Surveys:!0,SessionReplay:!0};_e.Replies=_e.NetworkLogger=_e.FeatureRequests=_e.CrashReporting=_e.BugReporting=_e.APM=void 0,Object.defineProperty(_e,"Report",{enumerable:!0,get:function(){return t.default}}),_e.default=_e.Surveys=_e.SessionReplay=void 0;var t=e(_r(d[1])),o=v(_r(d[2]));_e.APM=o;var n=v(_r(d[3]));_e.BugReporting=n;var u=v(_r(d[4]));_e.CrashReporting=u;var i=v(_r(d[5]));_e.FeatureRequests=i;var p=v(_r(d[6])),s=v(_r(d[7]));_e.NetworkLogger=s;var f=v(_r(d[8]));_e.Replies=f;var l=v(_r(d[9]));_e.Surveys=l;var c=v(_r(d[10]));function v(e,r){if("function"==typeof WeakMap)var t=new WeakMap,o=new WeakMap;return(v=function(e,r){if(!r&&e&&e.__esModule)return e;var n,u,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(n=r?o:t){if(n.has(e))return n.get(e);n.set(e,i)}for(var p in e)"default"!==p&&{}.hasOwnProperty.call(e,p)&&((u=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,p))&&(u.get||u.set)?n(i,p,u):i[p]=e[p]);return i})(e,r)}_e.SessionReplay=c,Object.keys(_r(d[11])).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(r,e)||e in _e&&_e[e]===_r(d[11])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[11])[e]}}))});_e.default=p},498,[1,499,502,504,506,534,512,508,536,538,540,518]); __d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=t(r(d[2])),s=t(r(d[3])),u=r(d[4]);e.default=(function(){return(0,s.default)(function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];(0,n.default)(this,t),this.tags=o,this.consoleLogs=s,this.instabugLogs=u,this.userAttributes=l,this.fileAttachments=h},[{key:"appendTag",value:function(t){r(d[5]).NativeInstabug.appendTagToReport(t),this.tags=[].concat((0,o.default)(this.tags),[t])}},{key:"appendConsoleLog",value:function(t){r(d[5]).NativeInstabug.appendConsoleLogToReport(t),this.consoleLogs=[].concat((0,o.default)(this.consoleLogs),[t])}},{key:"setUserAttribute",value:function(t,o){r(d[5]).NativeInstabug.setUserAttributeToReport(t,o),this.userAttributes[t]=o}},{key:"logDebug",value:function(t){r(d[5]).NativeInstabug.logDebugToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'debug'}])}},{key:"logVerbose",value:function(t){r(d[5]).NativeInstabug.logVerboseToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'verbose'}])}},{key:"logWarn",value:function(t){r(d[5]).NativeInstabug.logWarnToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'warn'}])}},{key:"logError",value:function(t){r(d[5]).NativeInstabug.logErrorToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'error'}])}},{key:"logInfo",value:function(t){r(d[5]).NativeInstabug.logInfoToReport(t),this.instabugLogs=[].concat((0,o.default)(this.instabugLogs),[{log:t,type:'info'}])}},{key:"addFileAttachmentWithUrl",value:function(t,n){'ios'===u.Platform.OS?r(d[5]).NativeInstabug.addFileAttachmentWithURLToReport(t):r(d[5]).NativeInstabug.addFileAttachmentWithURLToReport(t,n),this.fileAttachments=[].concat((0,o.default)(this.fileAttachments),[{file:t,type:'url'}])}},{key:"addFileAttachmentWithData",value:function(t,n){'ios'===u.Platform.OS?r(d[5]).NativeInstabug.addFileAttachmentWithDataToReport(t):r(d[5]).NativeInstabug.addFileAttachmentWithDataToReport(t,n),this.fileAttachments=[].concat((0,o.default)(this.fileAttachments),[{file:t,type:'data'}])}}])})()},499,[1,32,3,4,28,500]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.emitter=e.NativeInstabug=e.NativeEvents=void 0;var t=r(d[0]),n=e.NativeInstabug=r(d[1]).NativeModules.Instabug;e.NativeEvents=(function(t){return t.PRESENDING_HANDLER="IBGpreSendingHandler",t.IBG_ON_FEATURES_UPDATED_CALLBACK="IBGOnFeatureUpdatedCallback",t.ON_FEATURE_FLAGS_CHANGE="IBGOnNewFeatureFlagsUpdateReceivedCallback",t})({}),e.emitter=new t.NativeEventEmitter(n)},500,[28,501]); @@ -601,7 +601,7 @@ __d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{ __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.emitter=e.NativeSessionReplay=e.NativeEvents=void 0;var t=r(d[0]),n=e.NativeSessionReplay=r(d[1]).NativeModules.IBGSessionReplay;e.NativeEvents=(function(t){return t.SESSION_REPLAY_ON_SYNC_CALLBACK_INVOCATION="IBGSessionReplayOnSyncCallback",t})({}),e.emitter=new t.NativeEventEmitter(n)},541,[28,501]); __d(function(g,_r,_i,a,m,_e,d){var n=_r(d[0]),t=_r(d[1]),e=_r(d[2]),o=_r(d[3]),r=_r(d[4]),u=_r(d[5]);function i(n,t,r){return t=o(t),e(n,s()?Reflect.construct(t,r||[],o(n).constructor):t.apply(n,r))}function s(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(s=function(){return!!n})()}var c=_r(d[6]).NativeModules,f=(function(e){"use strict";function o(){return t(this,o),i(this,o,arguments)}return r(o,e),n(o)})(u(Error)),p=(function(e){"use strict";function o(){return t(this,o),i(this,o,arguments)}return r(o,e),n(o)})(u(Error)),l=!1;function y(n){l||(console.warn('Using an insecure random number generator, this should only happen when running in a debugger without support for crypto.getRandomValues'),l=!0);for(var t,e=0;e>>((3&e)<<3)&255;return n}function R(n){if(c.RNGetRandomValues)return c.RNGetRandomValues.getRandomBase64(n);if(c.ExpoRandom)return c.ExpoRandom.getRandomBase64String(n);if(g.ExpoModules)return g.ExpoModules.ExpoRandom.getRandomBase64String(n);throw new Error('Native module not found')}function h(){return'RN$Bridgeless'in g&&RN$Bridgeless,!1}'object'!=typeof g.crypto&&(g.crypto={}),'function'!=typeof g.crypto.getRandomValues&&(g.crypto.getRandomValues=function(n){if(!(n instanceof Int8Array||n instanceof Uint8Array||n instanceof Int16Array||n instanceof Uint16Array||n instanceof Int32Array||n instanceof Uint32Array||n instanceof Uint8ClampedArray))throw new f('Expected an integer array');if(n.byteLength>65536)throw new p('Can only request a maximum of 65536 bytes');return g.expo&&g.expo.modules&&g.expo.modules.ExpoCrypto&&g.expo.modules.ExpoCrypto.getRandomValues?(g.expo.modules.ExpoCrypto.getRandomValues(n),n):h()?y(n):(_r(d[7])(R(n.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength)),n)})},542,[4,3,9,11,12,14,28,543]); __d(function(g,r,_i,a,m,e,d){'use strict';var t=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,62,0,62,0,63,52,53,54,55,56,57,58,59,60,61,0,0,0,0,0,0,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,0,0,0,0,63,0,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];m.exports=function(o,c){for(var h,A=o.length,C='='===o[A-2]?2:'='===o[A-1]?1:0,n=0,f=A-C&4294967292,i=0;i>16&255,c[n++]=h>>8&255,c[n++]=255&h;1===C&&(h=t[o.charCodeAt(i)]<<10|t[o.charCodeAt(i+1)]<<4|t[o.charCodeAt(i+2)]>>2,c[n++]=h>>8&255,c[n++]=255&h),2===C&&(h=t[o.charCodeAt(i)]<<2|t[o.charCodeAt(i+1)]>>4,c[n++]=255&h)}},543,[]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,o=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=t?o:n){if(r.has(e))return r.get(e);r.set(e,i)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((s=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(s.get||s.set)?r(i,c,s):i[c]=e[c]);return i})(e,t)})(_r(d[0])),t=_r(d[1]),n=_r(d[2]);var o=(0,_r(d[3]).createNativeStackNavigator)();_e.default=function(r){var s=(0,_r(d[4]).useTranslation)().t,i=r.address,c=r.network,l=r.initialRoute,u=r.initialProps,f=(0,e.useRef)(null),T=(0,_r(d[5]).useSendStore)(),S=T.setSelectedToken,p=T.setCurrentStep,h=T.setTransactionType,F=T.setFromAccount,k=T.setSelectedNFTs,v=T.setToAccount;(0,e.useEffect)(function(){_r(d[6]).reactNativeNavigation.setNavigationRef(f)},[]),(0,e.useEffect)(function(){if('send-asset'===(null==u?void 0:u.screen)){var e=null==u?void 0:u.sendToConfig;if(!e)return;try{var t='string'==typeof e?JSON.parse(e):e;if(_r(d[7]).logger.debug('SendTo flow initialization started',{sendToConfig:t}),t.fromAccount){_r(d[7]).logger.debug('Processing fromAccount config',{fromAccount:t.fromAccount});var n=(0,_r(d[8]).createWalletAccountFromConfig)(t.fromAccount);F(n),_r(d[7]).logger.debug('FromAccount set successfully',{walletAccount:n})}if(t.selectedToken){_r(d[7]).logger.debug('Processing selectedToken config',{selectedToken:t.selectedToken});var o=(0,_r(d[8]).createTokenModelFromConfig)(t.selectedToken);S(o),p('send-to'),h('tokens'),k([]),_r(d[7]).logger.debug('SelectedToken set and step updated to send-to',{tokenInfo:o})}if(t.selectedNFTs&&Array.isArray(t.selectedNFTs)){_r(d[7]).logger.debug('Processing selectedNFTs config',{selectedNFTs:t.selectedNFTs,count:t.selectedNFTs.length});var r=(0,_r(d[8]).createNFTModelsFromConfig)(t.selectedNFTs);k(r),_r(d[7]).logger.debug('SelectedNFTs set successfully',{nftModels:r})}if(t.targetAddress){_r(d[7]).logger.debug('Processing targetAddress config',{targetAddress:t.targetAddress});var s=(0,_r(d[8]).createWalletAccountFromConfig)({address:t.targetAddress,name:t.targetAddress,emojiInfo:{emoji:'',name:'',color:''}});v(s),h('tokens'),p('send-tokens'),_r(d[7]).logger.debug('TargetAddress processed, transaction type set to tokens and step updated to send-tokens',{walletAccount:s})}else if(t.selectedNFTs&&t.selectedNFTs.length>=1){var i=1===t.selectedNFTs.length?'single-nft':'multiple-nfts';_r(d[7]).logger.debug('Setting NFT transaction type based on count',{nftCount:t.selectedNFTs.length,transactionType:i}),h(i),p('send-to'),_r(d[7]).logger.debug('NFT transaction flow configured and step updated to send-to')}_r(d[7]).logger.debug('SendTo flow initialization completed successfully')}catch(t){_r(d[7]).logger.error('Failed to initialize SendTo flow',{error:t,sendToConfigJson:e})}}},[null==u?void 0:u.sendToConfig,S,p,h,F,k]);var N='dark'===(0,t.useColorScheme)(),j=(0,e.useMemo)(function(){return{customLightTheme:Object.assign({},_r(d[9]).DefaultTheme,{colors:Object.assign({},_r(d[9]).DefaultTheme.colors,{background:'#FFFFFF',card:'#FFFFFF',text:'#000000',border:'#767676',primary:'#00EF8B'})}),customDarkTheme:Object.assign({},_r(d[9]).DarkTheme,{colors:Object.assign({},_r(d[9]).DarkTheme.colors,{background:'#121212',card:'#121212',text:'#FFFFFF',border:'#B3B3B3',primary:'#00EF8B'})})}},[]),b=N?j.customDarkTheme:j.customLightTheme;return(0,n.jsx)(_r(d[10]).SafeAreaProvider,{children:(0,n.jsx)(_r(d[9]).NavigationContainer,{ref:f,theme:b,children:(0,n.jsxs)(o.Navigator,{initialRouteName:l||'Home',screenOptions:{headerTitleAlign:'center',headerShadowVisible:!1,headerShown:!0},children:[(0,n.jsx)(o.Screen,{name:"Home",component:_r(d[11]).HomeScreen,initialParams:{address:i,network:c}}),(0,n.jsxs)(o.Group,{screenOptions:{headerShown:!0,headerBackTitle:'',headerBackTitleStyle:{fontSize:0},headerBackVisible:!1,headerLeft:function(){return(0,n.jsx)(_r(d[12]).NavigationBackButton,{})},headerRight:function(){return(0,n.jsx)(_r(d[13]).NavigationCloseButton,{})}},children:[(0,n.jsx)(o.Screen,{name:"SelectTokens",component:_r(d[14]).SelectTokensScreen,options:{headerTitle:s('navigation.selectTokens')}}),(0,n.jsx)(o.Screen,{name:"NFTList",component:_r(d[14]).NFTListScreen,options:{headerTitle:s('navigation.send')}}),(0,n.jsx)(o.Screen,{name:"NFTDetail",component:_r(d[14]).NFTDetailScreen,options:{headerTitle:s('navigation.nftDetails')}}),(0,n.jsx)(o.Screen,{name:"SendTo",component:_r(d[14]).SendToScreen,options:{headerTitle:s('navigation.sendTo')}}),(0,n.jsx)(o.Screen,{name:"SendTokens",component:_r(d[14]).SendTokensScreen,options:{headerTitle:s('navigation.sendTokens')}}),(0,n.jsx)(o.Screen,{name:"SendSummary",component:_r(d[14]).SendSummaryScreen,options:{headerTitle:s('navigation.sending')}}),(0,n.jsx)(o.Screen,{name:"Receive",component:_r(d[14]).ReceiveScreen,options:{headerTitle:s('navigation.receive')}})]}),(0,n.jsxs)(o.Group,{screenOptions:{headerShown:!0,headerBackTitle:'',headerBackTitleStyle:{fontSize:0},headerBackVisible:!1,headerLeft:function(){return(0,n.jsx)(_r(d[12]).NavigationBackButton,{})},headerRight:function(){return(0,n.jsx)(_r(d[13]).NavigationCloseButton,{})}},children:[(0,n.jsx)(o.Screen,{name:"GetStarted",component:_r(d[14]).GetStartedScreen,options:{headerShown:!1}}),(0,n.jsx)(o.Screen,{name:"ProfileTypeSelection",component:_r(d[14]).ProfileTypeSelectionScreen,options:{headerShown:!1}})]})]})})})}},544,[128,28,258,545,777,794,1455,805,8,547,662,1456,2467,2468,2475]); +__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,n){if("function"==typeof WeakMap)var t=new WeakMap,o=new WeakMap;return(function(e,n){if(!n&&e&&e.__esModule)return e;var r,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(r=n?o:t){if(r.has(e))return r.get(e);r.set(e,s)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((i=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(i.get||i.set)?r(s,c,i):s[c]=e[c]);return s})(e,n)})(_r(d[0])),n=_r(d[1]),t=_r(d[2]);var o=(0,_r(d[3]).createNativeStackNavigator)();_e.default=function(r){var i=(0,_r(d[4]).useTranslation)().t,s=(0,_r(d[5]).useTheme)(),c=r.address,l=r.network,u=r.initialRoute,f=r.initialProps,h=(0,e.useRef)(null),T=(0,_r(d[6]).useSendStore)(),p=T.setSelectedToken,S=T.setCurrentStep,v=T.setTransactionType,k=T.setFromAccount,b=T.setSelectedNFTs,F=T.setToAccount;(0,e.useEffect)(function(){_r(d[7]).reactNativeNavigation.setNavigationRef(h)},[]),(0,e.useEffect)(function(){if('send-asset'===(null==f?void 0:f.screen)){var e=null==f?void 0:f.sendToConfig;if(!e)return;try{var n='string'==typeof e?JSON.parse(e):e;if(_r(d[8]).logger.debug('SendTo flow initialization started',{sendToConfig:n}),n.fromAccount){_r(d[8]).logger.debug('Processing fromAccount config',{fromAccount:n.fromAccount});var t=(0,_r(d[9]).createWalletAccountFromConfig)(n.fromAccount);k(t),_r(d[8]).logger.debug('FromAccount set successfully',{walletAccount:t})}if(n.selectedToken){_r(d[8]).logger.debug('Processing selectedToken config',{selectedToken:n.selectedToken});var o=(0,_r(d[9]).createTokenModelFromConfig)(n.selectedToken);p(o),S('send-to'),v('tokens'),b([]),_r(d[8]).logger.debug('SelectedToken set and step updated to send-to',{tokenInfo:o})}if(n.selectedNFTs&&Array.isArray(n.selectedNFTs)){_r(d[8]).logger.debug('Processing selectedNFTs config',{selectedNFTs:n.selectedNFTs,count:n.selectedNFTs.length});var r=(0,_r(d[9]).createNFTModelsFromConfig)(n.selectedNFTs);b(r),_r(d[8]).logger.debug('SelectedNFTs set successfully',{nftModels:r})}if(n.targetAddress){_r(d[8]).logger.debug('Processing targetAddress config',{targetAddress:n.targetAddress});var i=(0,_r(d[9]).createWalletAccountFromConfig)({address:n.targetAddress,name:n.targetAddress,emojiInfo:{emoji:'',name:'',color:''}});F(i),v('tokens'),S('send-tokens'),_r(d[8]).logger.debug('TargetAddress processed, transaction type set to tokens and step updated to send-tokens',{walletAccount:i})}else if(n.selectedNFTs&&n.selectedNFTs.length>=1){var s=1===n.selectedNFTs.length?'single-nft':'multiple-nfts';_r(d[8]).logger.debug('Setting NFT transaction type based on count',{nftCount:n.selectedNFTs.length,transactionType:s}),v(s),S('send-to'),_r(d[8]).logger.debug('NFT transaction flow configured and step updated to send-to')}_r(d[8]).logger.debug('SendTo flow initialization completed successfully')}catch(n){_r(d[8]).logger.error('Failed to initialize SendTo flow',{error:n,sendToConfigJson:e})}}},[null==f?void 0:f.sendToConfig,p,S,v,k,b]);var j='dark'===(0,n.useColorScheme)(),y=(0,e.useMemo)(function(){return{customLightTheme:Object.assign({},_r(d[10]).DefaultTheme,{colors:Object.assign({},_r(d[10]).DefaultTheme.colors,{background:'#FFFFFF',card:'#FFFFFF',text:'#000000',border:'#767676',primary:'#00EF8B'})}),customDarkTheme:Object.assign({},_r(d[10]).DarkTheme,{colors:Object.assign({},_r(d[10]).DarkTheme.colors,{background:s.background.val,card:s.background.val,text:s.text.val,border:'#B3B3B3',primary:s.primary.val})})}},[s]),N=j?y.customDarkTheme:y.customLightTheme;return(0,t.jsx)(_r(d[11]).SafeAreaProvider,{children:(0,t.jsx)(_r(d[10]).NavigationContainer,{ref:h,theme:N,children:(0,t.jsxs)(o.Navigator,{initialRouteName:u||'Home',screenOptions:{headerTitleAlign:'center',headerShadowVisible:!1,headerShown:!0},children:[(0,t.jsx)(o.Screen,{name:"Home",component:_r(d[12]).HomeScreen,initialParams:{address:c,network:l}}),(0,t.jsxs)(o.Group,{screenOptions:{headerShown:!0,headerBackTitle:'',headerBackTitleStyle:{fontSize:0},headerBackVisible:!1,headerLeft:function(){return(0,t.jsx)(_r(d[13]).NavigationBackButton,{})},headerRight:function(){return(0,t.jsx)(_r(d[14]).NavigationCloseButton,{})}},children:[(0,t.jsx)(o.Screen,{name:"SelectTokens",component:_r(d[15]).SelectTokensScreen,options:{headerTitle:i('navigation.selectTokens')}}),(0,t.jsx)(o.Screen,{name:"NFTList",component:_r(d[15]).NFTListScreen,options:{headerTitle:i('navigation.send')}}),(0,t.jsx)(o.Screen,{name:"NFTDetail",component:_r(d[15]).NFTDetailScreen,options:{headerTitle:i('navigation.nftDetails')}}),(0,t.jsx)(o.Screen,{name:"SendTo",component:_r(d[15]).SendToScreen,options:{headerTitle:i('navigation.sendTo')}}),(0,t.jsx)(o.Screen,{name:"SendTokens",component:_r(d[15]).SendTokensScreen,options:{headerTitle:i('navigation.sendTokens')}}),(0,t.jsx)(o.Screen,{name:"SendSummary",component:_r(d[15]).SendSummaryScreen,options:{headerTitle:i('navigation.sending')}}),(0,t.jsx)(o.Screen,{name:"Receive",component:_r(d[15]).ReceiveScreen,options:{headerTitle:i('navigation.receive')}})]}),(0,t.jsxs)(o.Group,{screenOptions:{headerShown:!0,headerBackTitle:'',headerBackTitleStyle:{fontSize:0},headerBackVisible:!1,headerLeft:function(){return(0,t.jsx)(_r(d[13]).NavigationBackButton,{})},headerRight:function(){return(0,t.jsx)(_r(d[14]).NavigationCloseButton,{})}},children:[(0,t.jsx)(o.Screen,{name:"GetStarted",component:_r(d[15]).GetStartedScreen,options:{headerShown:!1}}),(0,t.jsx)(o.Screen,{name:"ProfileTypeSelection",component:_r(d[15]).ProfileTypeSelectionScreen,options:{headerShown:!1}}),(0,t.jsx)(o.Screen,{name:"RecoveryPhrase",component:_r(d[15]).RecoveryPhraseScreen,options:{headerTitle:i('onboarding.recoveryPhrase.navTitle'),headerRight:function(){return null},headerStyle:{backgroundColor:s.bg.val}}}),(0,t.jsx)(o.Screen,{name:"ConfirmRecoveryPhrase",component:_r(d[15]).ConfirmRecoveryPhraseScreen,options:{headerTitle:i('onboarding.confirmRecoveryPhrase.navTitle'),headerRight:function(){return null},headerStyle:{backgroundColor:s.bg.val}}}),(0,t.jsx)(o.Screen,{name:"SecureEnclave",component:_r(d[15]).SecureEnclaveScreen,options:{headerTitle:'',headerRight:function(){return null},headerStyle:{backgroundColor:s.bg.val}}}),(0,t.jsx)(o.Screen,{name:"NotificationPreferences",component:_r(d[15]).NotificationPreferencesScreen,options:{headerTitle:i('onboarding.notificationPreferences.headerTitle'),headerLeft:function(){return null},headerRight:function(){return null},headerStyle:{backgroundColor:s.bg.val}}})]}),(0,t.jsxs)(o.Group,{screenOptions:{headerShown:!0,headerBackTitle:'',headerBackTitleStyle:{fontSize:0},headerBackVisible:!1,headerLeft:function(){return(0,t.jsx)(_r(d[13]).NavigationBackButton,{})}},children:[(0,t.jsx)(o.Screen,{name:"ImportProfile",component:_r(d[15]).ImportProfileScreen,options:{headerTitle:''}}),(0,t.jsx)(o.Screen,{name:"ImportOtherMethods",component:_r(d[15]).ImportOtherMethodsScreen,options:{headerTitle:i('onboarding.importProfile.title')}}),(0,t.jsx)(o.Screen,{name:"ConfirmImportProfile",component:_r(d[15]).ConfirmImportProfileScreen,options:{headerTitle:i('onboarding.importProfile.title')}})]})]})})})}},544,[128,28,258,545,777,794,1369,2030,1380,8,547,662,2031,2034,2035,2042]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NativeStackView",{enumerable:!0,get:function(){return r(d[0]).NativeStackView}}),Object.defineProperty(e,"createNativeStackNavigator",{enumerable:!0,get:function(){return r(d[1]).createNativeStackNavigator}}),Object.defineProperty(e,"useAnimatedHeaderHeight",{enumerable:!0,get:function(){return r(d[2]).useAnimatedHeaderHeight}})},545,[546,776,772]); __d(function(g,_r,_i,a,m,_e,d){"use strict";var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.NativeStackView=function(e){var t=e.state,n=e.navigation,i=e.descriptors,o=e.describe,u=(0,_r(d[12]).useDismissedRouteError)(t).setNextDismissedKey;(0,_r(d[13]).useInvalidPreventRemoveError)(i);var c=(0,_r(d[14]).getModalRouteKeys)(t.routes,i),v=t.preloadedRoutes.reduce(function(e,t){return e[t.key]=e[t.key]||o(t,!0),e},{});return(0,r.jsx)(_r(d[7]).SafeAreaProviderCompat,{children:(0,r.jsx)(_r(d[10]).ScreenStack,{style:l.container,children:t.routes.concat(t.preloadedRoutes).map(function(e,o){var l,h,p,f=null!=(l=i[e.key])?l:v[e.key],k=t.index===o,y=t.index-1===o,S=null==(h=t.routes[o-1])?void 0:h.key,b=null==(p=t.routes[o+1])?void 0:p.key,x=S?i[S]:void 0,B=b?i[b]:void 0,C=c.includes(e.key),D=void 0!==v[e.key]&&void 0===i[e.key],H='nativeFabricUIManager'in g?!D&&!k&&!y:!D&&!k;return(0,r.jsx)(s,{index:o,focused:k,shouldFreeze:H,descriptor:f,previousDescriptor:x,nextDescriptor:B,isPresentationModal:C,isPreloaded:D,onWillDisappear:function(){n.emit({type:'transitionStart',data:{closing:!0},target:e.key})},onWillAppear:function(){n.emit({type:'transitionStart',data:{closing:!1},target:e.key})},onAppear:function(){n.emit({type:'transitionEnd',data:{closing:!1},target:e.key})},onDisappear:function(){n.emit({type:'transitionEnd',data:{closing:!0},target:e.key})},onDismissed:function(i){n.dispatch(Object.assign({},_r(d[5]).StackActions.pop(i.nativeEvent.dismissCount),{source:e.key,target:t.key})),u(e.key)},onHeaderBackButtonClicked:function(){n.dispatch(Object.assign({},_r(d[5]).StackActions.pop(),{source:e.key,target:t.key}))},onNativeDismissCancelled:function(i){n.dispatch(Object.assign({},_r(d[5]).StackActions.pop(i.nativeEvent.dismissCount),{source:e.key,target:t.key}))},onGestureCancel:function(){n.emit({type:'gestureCancel',target:e.key})},onSheetDetentChanged:function(t){n.emit({type:'sheetDetentChange',target:e.key,data:{index:t.nativeEvent.index,stable:t.nativeEvent.isStable}})}},e.key)})})})};var t=e(_r(d[1])),n=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,o,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(r=t?i:n){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?r(s,l,o):s[l]=e[l]);return s})(e,t)})(_r(d[2])),i=_r(d[3]),r=_r(d[4]);var o='web'!==i.Platform.OS,s=function(e){var s,u=e.index,c=e.focused,v=e.shouldFreeze,h=e.descriptor,p=e.previousDescriptor,f=e.nextDescriptor,k=e.isPresentationModal,y=e.isPreloaded,S=e.onWillDisappear,b=e.onWillAppear,x=e.onAppear,B=e.onDisappear,C=e.onDismissed,D=e.onHeaderBackButtonClicked,H=e.onNativeDismissCancelled,E=e.onGestureCancel,P=e.onSheetDetentChanged,w=h.route,O=h.navigation,A=h.options,j=h.render,T=A.animation,I=A.animationMatchesGesture,M=A.presentation,R=void 0===M?k?'modal':'card':M,_=A.fullScreenGestureEnabled,W=A.animationDuration,z=A.animationTypeForReplace,F=void 0===z?'push':z,N=A.fullScreenGestureShadowEnabled,G=void 0===N||N,V=A.gestureEnabled,L=A.gestureDirection,K=void 0===L?'card'===R?'horizontal':'vertical':L,U=A.gestureResponseDistance,q=A.header,J=A.headerBackButtonMenuEnabled,Q=A.headerShown,X=A.headerBackground,Y=A.headerTransparent,Z=A.autoHideHomeIndicator,$=A.keyboardHandlingEnabled,ee=A.navigationBarColor,te=A.navigationBarTranslucent,ne=A.navigationBarHidden,ae=A.orientation,ie=A.sheetAllowedDetents,re=void 0===ie?[1]:ie,oe=A.sheetLargestUndimmedDetentIndex,se=void 0===oe?-1:oe,de=A.sheetGrabberVisible,le=void 0!==de&&de,ue=A.sheetCornerRadius,ce=void 0===ue?-1:ue,ve=A.sheetElevation,he=void 0===ve?24:ve,pe=A.sheetExpandsWhenScrolledToEdge,fe=void 0===pe||pe,ge=A.sheetInitialDetentIndex,me=void 0===ge?0:ge,ke=A.statusBarAnimation,ye=A.statusBarHidden,Se=A.statusBarStyle,be=A.statusBarTranslucent,xe=A.statusBarBackgroundColor,Be=A.unstable_sheetFooter,Ce=A.freezeOnBlur,De=A.contentStyle;'vertical'===K&&'ios'===i.Platform.OS&&(void 0===_&&(_=!0),void 0===I&&(I=!0),void 0===T&&(T='slide_from_bottom'));var He=null==f?void 0:f.options.gestureDirection,Ee=null!=He?He:K;0===u&&(R='card');var Pe=(0,_r(d[5]).useTheme)().colors,we=(0,_r(d[6]).useSafeAreaInsets)(),Oe='modal'===R||'formSheet'===R,Ae='ios'===i.Platform.OS&&!(i.Platform.isPad||i.Platform.isTV),je=n.useContext(_r(d[7]).HeaderShownContext),Te=n.useContext(_r(d[7]).HeaderHeightContext),Ie=n.useContext(_r(d[7]).HeaderBackContext),Me=(0,_r(d[7]).useFrameSize)(function(e){return e.width>e.height}),Re=je||'ios'===i.Platform.OS&&Oe||Ae&&Me?0:we.top,We=(0,_r(d[7]).useFrameSize)(function(e){return i.Platform.select({android:56+Re,default:(0,_r(d[7]).getDefaultHeaderHeight)(e,Oe,Re)})}),ze=(0,_r(d[5]).usePreventRemoveContext)().preventedRoutes,Fe=n.useState(We),Ne=(0,t.default)(Fe,2),Ge=Ne[0],Ve=Ne[1],Le=n.useCallback((0,_r(d[8]).debounce)(Ve,100),[]),Ke=null!=q,Ue=0;if('android'===i.Platform.OS&&!Ke){var qe,Je=null!=(qe=i.StatusBar.currentHeight)?qe:0;Ue=-Je+Re}var Qe=(0,i.useAnimatedValue)(We),Xe=n.useMemo(function(){return i.Animated.add(Qe,Ue)},[Ue,Qe]),Ye='boolean'==typeof be?be:0!==Re,Ze=null!=p||null!=Ie,$e=p?(0,_r(d[7]).getHeaderTitle)(p.options,p.route.name):null==Ie?void 0:Ie.title,et=n.useMemo(function(){if(Ze)return{href:void 0,title:$e}},[Ze,$e]),tt=null==(s=ze[w.key])?void 0:s.preventRemove,nt=(0,_r(d[9]).useHeaderConfigProps)(Object.assign({},A,{route:w,headerBackButtonMenuEnabled:void 0!==tt?!tt:J,headerBackTitle:void 0!==A.headerBackTitle?A.headerBackTitle:void 0,headerHeight:Ge,headerShown:void 0===q&&Q,headerTopInsetEnabled:Ye,headerBack:et}));return(0,r.jsx)(_r(d[5]).NavigationContext.Provider,{value:O,children:(0,r.jsx)(_r(d[5]).NavigationRouteContext.Provider,{value:w,children:(0,r.jsx)(_r(d[10]).ScreenStackItem,{screenId:w.key,activityState:y?0:2,style:i.StyleSheet.absoluteFill,"aria-hidden":!c,customAnimationOnSwipe:I,fullScreenSwipeEnabled:_,fullScreenSwipeShadowEnabled:G,freezeOnBlur:Ce,gestureEnabled:'android'!==i.Platform.OS&&V,homeIndicatorHidden:Z,hideKeyboardOnSwipe:$,navigationBarColor:ee,navigationBarTranslucent:te,navigationBarHidden:ne,replaceAnimation:F,stackPresentation:'card'===R?'push':R,stackAnimation:T,screenOrientation:ae,sheetAllowedDetents:re,sheetLargestUndimmedDetentIndex:se,sheetGrabberVisible:le,sheetInitialDetentIndex:me,sheetCornerRadius:ce,sheetElevation:he,sheetExpandsWhenScrolledToEdge:fe,statusBarAnimation:ke,statusBarHidden:ye,statusBarStyle:Se,statusBarColor:xe,statusBarTranslucent:be,swipeDirection:Ee,transitionDuration:W,onWillAppear:b,onWillDisappear:S,onAppear:x,onDisappear:B,onDismissed:C,onGestureCancel:E,onSheetDetentChanged:P,gestureResponseDistance:U,nativeBackButtonDismissalEnabled:!1,onHeaderBackButtonClicked:D,preventNativeDismiss:tt,onNativeDismissCancelled:H,onHeaderHeightChange:i.Animated.event([{nativeEvent:{headerHeight:Qe}}],{useNativeDriver:o,listener:function(e){if(!Ke)if('android'!==i.Platform.OS||null==A.headerBackground&&!A.headerTransparent){if(e.nativeEvent&&'object'==typeof e.nativeEvent&&'headerHeight'in e.nativeEvent&&'number'==typeof e.nativeEvent.headerHeight){var t=e.nativeEvent.headerHeight+Ue;'ios'===i.Platform.OS&&(A.headerLargeTitle||A.headerSearchBarOptions)?Le(t):Ve(t)}}else Ve(56+Re)}}),contentStyle:['transparentModal'!==R&&'containedTransparentModal'!==R&&{backgroundColor:Pe.background},De],headerConfig:nt,unstable_sheetFooter:Be,shouldFreeze:v,children:(0,r.jsx)(_r(d[11]).AnimatedHeaderHeightContext.Provider,{value:Xe,children:(0,r.jsxs)(_r(d[7]).HeaderHeightContext.Provider,{value:!1!==Q?Ge:null!=Te?Te:0,children:[null!=X?(0,r.jsx)(i.View,{style:[l.background,Y?l.translucent:null,{height:Ge}],children:X()}):null,null!=q&&!1!==Q?(0,r.jsx)(i.View,{onLayout:function(e){var t=e.nativeEvent.layout.height;Ve(t),Qe.setValue(t)},style:[l.header,Y?l.absolute:null],children:q({back:et,options:A,route:w,navigation:O})}):null,(0,r.jsx)(_r(d[7]).HeaderShownContext.Provider,{value:je||!1!==Q,children:(0,r.jsx)(_r(d[7]).HeaderBackContext.Provider,{value:et,children:j()})})]})})},w.key)})})};var l=i.StyleSheet.create({container:{flex:1},header:{zIndex:1},absolute:{position:'absolute',top:0,start:0,end:0},translucent:{position:'absolute',top:0,start:0,end:0,zIndex:1,elevation:1},background:{overflow:'hidden'}})},546,[1,19,128,28,258,547,662,671,715,716,718,772,773,774,775]); __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={createStaticNavigation:!0,Link:!0,LinkingContext:!0,LocaleDirContext:!0,NavigationContainer:!0,ServerContainer:!0,DarkTheme:!0,DefaultTheme:!0,UNSTABLE_UnhandledLinkingContext:!0,useLinkBuilder:!0,useLinkProps:!0,useLinkTo:!0,useLocale:!0,useRoutePath:!0,useScrollToTop:!0};Object.defineProperty(e,"DarkTheme",{enumerable:!0,get:function(){return r(d[0]).DarkTheme}}),Object.defineProperty(e,"DefaultTheme",{enumerable:!0,get:function(){return r(d[1]).DefaultTheme}}),Object.defineProperty(e,"Link",{enumerable:!0,get:function(){return r(d[2]).Link}}),Object.defineProperty(e,"LinkingContext",{enumerable:!0,get:function(){return r(d[3]).LinkingContext}}),Object.defineProperty(e,"LocaleDirContext",{enumerable:!0,get:function(){return r(d[4]).LocaleDirContext}}),Object.defineProperty(e,"NavigationContainer",{enumerable:!0,get:function(){return r(d[5]).NavigationContainer}}),Object.defineProperty(e,"ServerContainer",{enumerable:!0,get:function(){return r(d[6]).ServerContainer}}),Object.defineProperty(e,"UNSTABLE_UnhandledLinkingContext",{enumerable:!0,get:function(){return r(d[7]).UnhandledLinkingContext}}),Object.defineProperty(e,"createStaticNavigation",{enumerable:!0,get:function(){return r(d[8]).createStaticNavigation}}),Object.defineProperty(e,"useLinkBuilder",{enumerable:!0,get:function(){return r(d[9]).useLinkBuilder}}),Object.defineProperty(e,"useLinkProps",{enumerable:!0,get:function(){return r(d[10]).useLinkProps}}),Object.defineProperty(e,"useLinkTo",{enumerable:!0,get:function(){return r(d[11]).useLinkTo}}),Object.defineProperty(e,"useLocale",{enumerable:!0,get:function(){return r(d[12]).useLocale}}),Object.defineProperty(e,"useRoutePath",{enumerable:!0,get:function(){return r(d[13]).useRoutePath}}),Object.defineProperty(e,"useScrollToTop",{enumerable:!0,get:function(){return r(d[14]).useScrollToTop}}),Object.keys(r(d[15])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in e&&e[t]===r(d[15])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[15])[t]}}))}),Object.keys(r(d[16])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(n,t)||t in e&&e[t]===r(d[16])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[16])[t]}}))})},547,[548,550,551,643,644,645,653,652,655,656,642,657,658,659,660,661,552]); @@ -892,30 +892,617 @@ __d(function(g,r,i,a,m,_e,d){"use strict";var n=r(d[0]);Object.defineProperty(_e __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useSSR=void 0;var n=r(d[0]);e.useSSR=function(t,o){var s,u=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).i18n,c=((0,n.useContext)(r(d[1]).I18nContext)||{}).i18n,l=u||c||(0,r(d[1]).getI18n)();null!=(s=l.options)&&s.isClone||(t&&!l.initializedStoreOnce&&(l.services.resourceStore.data=t,l.options.ns=Object.values(t).reduce(function(n,t){return Object.keys(t).forEach(function(t){n.indexOf(t)<0&&n.push(t)}),n},l.options.ns),l.initializedStoreOnce=!0,l.isInitialized=!0),o&&!l.initializedLanguageOnce&&(l.changeLanguage(o),l.initializedLanguageOnce=!0))}},791,[128,778]); __d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=["initialI18nStore","initialLanguage"];Object.defineProperty(e,"__esModule",{value:!0}),e.withSSR=void 0;var o=r(d[1]);e.withSSR=function(){return function(u){function l(l){var s=l.initialI18nStore,S=l.initialLanguage,c=t(l,n);return(0,r(d[2]).useSSR)(s,S),(0,o.createElement)(u,Object.assign({},c))}return l.getInitialProps=(0,r(d[3]).composeInitialProps)(u),l.displayName=`withI18nextSSR(${(0,r(d[4]).getDisplayName)(u)})`,l.WrappedComponent=u,l}}},792,[207,128,791,778,788]); __d(function(g,r,i,a,m,e,d){"use strict";var t=r(d[0]),n=r(d[1]),f=["forwardedRef"];Object.defineProperty(e,"__esModule",{value:!0}),e.withTranslation=void 0;var o=r(d[2]);e.withTranslation=function(s){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(c){function l(l){var w=l.forwardedRef,R=n(l,f),h=(0,r(d[3]).useTranslation)(s,Object.assign({},R,{keyPrefix:u.keyPrefix})),v=t(h,3),p=v[0],y=v[1],b=v[2],j=Object.assign({},R,{t:p,i18n:y,tReady:b});return u.withRef&&w?j.ref=w:!u.withRef&&w&&(j.forwardedRef=w),(0,o.createElement)(c,j)}l.displayName=`withI18nextTranslation(${(0,r(d[4]).getDisplayName)(c)})`,l.WrappedComponent=c;return u.withRef?(0,o.forwardRef)(function(t,n){return(0,o.createElement)(l,Object.assign({},t,{forwardedRef:n}))}):l}}},793,[19,207,128,790,788]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.walletSelectors=_e.walletHelpers=_e.useWalletStore=_e.useTokenStore=_e.useTokenQueryStore=_e.useSendStore=_e.useProfileStore=_e.usePayerStatusStore=_e.useAllProfiles=_e.useAddressBookStore=_e.tokenSelectors=_e.tokenQueryKeys=_e.tokenQueries=_e.tokenHelpers=_e.storageUtils=_e.storageQueryKeys=_e.storageQueries=_e.sendSelectors=_e.sendHelpers=_e.payerStatusQueryKeys=_e.payerStatusQueries=_e.fetchPayerStatusWithCache=_e.addressBookQueryKeys=_e.addressBookQueries=_e.accessibleAssetQueryKeys=_e.accessibleAssetQueries=_e.accessibleAssetHelpers=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),a=e(_r(d[4])),o=e(_r(d[5]));function i(e){var t=c(e,"string");return"symbol"==typeof t?t:t+""}function c(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function l(e){if(null==e||""===e)return"0";var t="string"==typeof e?parseFloat(e):e;return isNaN(t)?"0":t.toString()}var s,u,f,y,h,v,p,F,C,A,T,b,S,k,w,B,N,Q,L,O,D,E,I,q,W={tokenAmount:"0",fiatAmount:"0.00",transactionFee:"0.001",isTokenMode:!0},j=_e.useSendStore=(0,_r(d[6]).create)(function(e,t){return{selectedToken:null,fromAccount:null,toAccount:null,transactionType:"tokens",formData:W,selectedNFTs:[],currentNFT:null,selectedNFTQuantities:{},selectedCollection:null,currentStep:"select-tokens",isLoading:!1,error:null,balances:{coa:{},evm:{}},accessibleAssetStores:{},setSelectedToken:function(t){return e({selectedToken:t,error:null})},setFromAccount:function(t){return e({fromAccount:t,error:null})},setToAccount:function(t){return e({toAccount:t,error:null})},setCurrentNFT:function(t){return e({currentNFT:t,error:null})},setTransactionType:function(t){return e(function(e){var n={transactionType:t,error:null};return"tokens"===e.transactionType&&["single-nft","multiple-nfts"].includes(t)&&(n.selectedToken=null,n.formData=Object.assign({},W)),["single-nft","multiple-nfts"].includes(e.transactionType)&&"tokens"===t&&(n.selectedNFTs=[]),Object.assign({},e,n)})},updateFormData:function(t){return e(function(e){return{formData:Object.assign({},e.formData,t),error:null}})},setSelectedNFTs:function(t){return e(function(e){var n=Object.assign({},e.selectedNFTQuantities);return t.forEach(function(e){"ERC1155"===e.contractType&&e.id&&!n[e.id]&&(n[e.id]=1,_r(d[7]).logger.debug("[sendStore] Initializing ERC1155 quantity:",{nftId:e.id,contractType:e.contractType,nftAmount:e.amount}))}),{selectedNFTs:t,selectedNFTQuantities:n,error:null}})},setSelectedCollection:function(t){return e({selectedCollection:t,error:null})},addSelectedNFT:function(t){return e(function(e){if(e.selectedNFTs.find(function(e){return e.id===t.id}))return e;var n=Object.assign({},e.selectedNFTQuantities);return"ERC1155"===t.contractType&&t.id&&!n[t.id]&&(n[t.id]=1,_r(d[7]).logger.debug("[sendStore] Initializing ERC1155 quantity on add:",{nftId:t.id,contractType:t.contractType,nftAmount:t.amount})),{selectedNFTs:[].concat((0,o.default)(e.selectedNFTs),[t]),selectedNFTQuantities:n,error:null}})},removeSelectedNFT:function(t){return e(function(e){var n=Object.assign({},e.selectedNFTQuantities);return delete n[t],{selectedNFTs:e.selectedNFTs.filter(function(e){return e.id!==t}),selectedNFTQuantities:n,error:null}})},setNFTQuantity:function(t,n){return e(function(e){return{selectedNFTQuantities:Object.assign({},e.selectedNFTQuantities,(0,a.default)({},t,n))}})},getNFTQuantity:function(e){return t().selectedNFTQuantities[e]||1},setCurrentStep:function(t){return e({currentStep:t,error:null})},setLoading:function(t){return e({isLoading:t})},setError:function(t){return e({error:t,isLoading:!1})},fetchCoaBalance:(s=(0,r.default)(function*(n){var r=t().balances;e({balances:Object.assign({},r,{coa:Object.assign({},r.coa,(0,a.default)({},n,Object.assign({},r.coa[n],{loading:!0,error:null})))})});try{var o=(0,_r(d[8]).flowService)(),i=yield o.getCoaBalance(n),c=t().balances;e({balances:Object.assign({},c,{coa:Object.assign({},c.coa,(0,a.default)({},n,{balance:i,loading:!1,error:null,lastFetched:Date.now()}))})})}catch(r){var l=r instanceof Error?r.message:"Failed to fetch COA balance",s=t().balances;e({balances:Object.assign({},s,{coa:Object.assign({},s.coa,(0,a.default)({},n,{balance:null,loading:!1,error:l,lastFetched:null}))})})}}),function(e){return s.apply(this,arguments)}),fetchEvmBalance:(c=(0,r.default)(function*(n){var r=t().balances;e({balances:Object.assign({},r,{evm:Object.assign({},r.evm,(0,a.default)({},n,Object.assign({},r.evm[n],{loading:!0,error:null})))})});try{var o=(0,_r(d[8]).flowService)(),i=yield o.getEvmBalance(n),c=t().balances;e({balances:Object.assign({},c,{evm:Object.assign({},c.evm,(0,a.default)({},n,{balance:i,loading:!1,error:null,lastFetched:Date.now()}))})})}catch(r){var l=r instanceof Error?r.message:"Failed to fetch EVM balance",s=t().balances;e({balances:Object.assign({},s,{evm:Object.assign({},s.evm,(0,a.default)({},n,{balance:null,loading:!1,error:l,lastFetched:null}))})})}}),function(e){return c.apply(this,arguments)}),getCoaBalance:function(e){return t().balances.coa[e]||null},getEvmBalance:function(e){return t().balances.evm[e]||null},getAccessibleAssetStore:function(e){return t().accessibleAssetStores[e]||null},setAccessibleAssetStore:function(t,n){e(function(e){return{accessibleAssetStores:Object.assign({},e.accessibleAssetStores,(0,a.default)({},t,n))}})},clearAccessibleAssetStore:function(t){e(function(e){var n=Object.assign({},e.accessibleAssetStores);return delete n[t],{accessibleAssetStores:n}})},clearAllAccessibleAssetStores:function(){e({accessibleAssetStores:{}})},clearBalances:function(){e(function(){return{balances:{coa:{},evm:{}}}})},clearBalanceForAddress:function(t,n){e(function(e){var r=Object.assign({},e.balances);return delete r[t][n],{balances:r}})},resetSendFlow:function(){return e({selectedToken:null,fromAccount:null,toAccount:null,transactionType:"tokens",formData:W,selectedNFTs:[],selectedNFTQuantities:{},currentStep:"select-tokens",isLoading:!1,error:null,balances:{coa:{},evm:{}},accessibleAssetStores:{}})},clearTransactionData:function(){return e({selectedToken:null,selectedNFTs:[],selectedNFTQuantities:{},formData:W,transactionType:"tokens",currentStep:"select-tokens",error:null})},createSendPayload:(i=(0,r.default)(function*(){var e=t();_r(d[7]).logger.info("[SendStore] createSendPayload -- state:",e);var n=e.fromAccount,r=e.toAccount,a=e.selectedToken,o=e.selectedNFTs,i=e.formData,c=e.transactionType;if(!n||!r)return _r(d[7]).logger.error("[SendStore] Missing fromAccount or toAccount"),null;var s="tokens"===c,u=["single-nft","multiple-nfts"].includes(c);if(s&&!a)return _r(d[7]).logger.error("[SendStore] Missing selectedToken for token transaction"),null;if(u&&0===o.length)return _r(d[7]).logger.error("[SendStore] Missing selectedNFTs for NFT transaction"),null;try{var f,y,h,v=(yield _r(d[9]).bridge.getWalletAccounts()).accounts,p=yield _r(d[9]).bridge.getSelectedAccount();_r(d[7]).logger.info("[SendStore] createSendPayload -- Selected account:",p),_r(d[7]).logger.info("[SendStore] createSendPayload -- Accounts:",v);var F="main"===p.type?p:v.find(function(e){return"main"===e.type&&e.address===p.parentAddress}),C=(null==(f=v.filter(function(e){return"evm"===e.type&&e.parentAddress===(null==F?void 0:F.address)})[0])?void 0:f.address)||"";if(!C&&null!=F&&F.address)try{var A=yield _r(d[9]).cadence.getAddr(F.address);A&&(C=A.startsWith("0x")?A:`0x${A}`)}catch(e){_r(d[7]).logger.warn("[SendStore] Failed to fetch COA address from cadence",e)}var T=v.filter(function(e){return"child"===e.type&&e.parentAddress===(null==F?void 0:F.address)}).map(function(e){return e.address});if(!F)return _r(d[7]).logger.error("[SendStore] No main account found"),null;var b=(0,_r(d[10]).addressType)(n.address),S=b!==(0,_r(d[10]).addressType)(r.address),k=s?(null==a?void 0:a.evmAddress)||(null!=a&&null!=(y=a.identifier)&&y.includes("1654653399040a61.FlowToken")?"0x7f27352D5F83Db87a5A3E00f4B07Cc2138D8ee52":""):(null==(h=o[0])?void 0:h.evmAddress)||"",w="";if(u&&o.length>0){var B=o[0];if(_r(d[7]).logger.debug("[sendStore] Processing NFT for payload:",{nftId:B.id,contractType:B.contractType,nftAmount:B.amount,selectedNFTQuantities:e.selectedNFTQuantities}),"ERC1155"===B.contractType){var N=B.id||"",Q=e.selectedNFTQuantities[N]||1;w=Q.toString(),_r(d[7]).logger.debug("[sendStore] ERC1155 amount set:",{nftId:N,quantity:Q,nftAmount:w})}}var L=u?(0,_r(d[7]).getNFTResourceIdentifier)(o[0]):null,O=s?(0,_r(d[7]).getTokenResourceIdentifier)(a):null,D=O||L||"";_r(d[7]).logger.debug("[sendStore] Flow identifier calculation:",{isNFTTransaction:u,isTokenTransaction:s,nftIdentifier:L,tokenIdentifier:O,flowIdentifier:D,selectedNFT:o[0]?{id:o[0].id,address:o[0].address,contractName:o[0].contractName,flowIdentifier:o[0].flowIdentifier,evmAddress:o[0].evmAddress}:null});var E={type:s?"token":"nft",assetType:b,proposer:F.address,receiver:r.address,flowIdentifier:D,sender:n.address,childAddrs:T,ids:u?o.map(function(e){return null!==e.id&&void 0!==e.id?parseInt(e.id):void 0}).filter(function(e){return"number"==typeof e&&!isNaN(e)}):[],amount:s?l(i.tokenAmount):w,decimal:(null==a?void 0:a.decimal)||8,coaAddr:C,isCrossVM:S,tokenContractAddr:k};return _r(d[7]).logger.debug("[SendStore] Created send payload:",E),E}catch(e){return _r(d[7]).logger.error("[SendStore] Error creating send payload:",e),null}}),function(){return i.apply(this,arguments)}),executeTransaction:(n=(0,r.default)(function*(){var n=t();e({isLoading:!0,error:null});try{var r=yield n.createSendPayload();if(!r)throw new Error("Failed to create transaction payload");if(!(0,_r(d[11]).isValidSendTransactionPayload)(r))throw new Error("Invalid transaction payload");_r(d[7]).logger.debug("[SendStore] Executing transaction with payload:",r);var a={ethSign:_r(d[9]).bridge.ethSign?function(e){return _r(d[9]).bridge.ethSign(e)}:void 0,network:_r(d[9]).bridge.getNetwork?_r(d[9]).bridge.getNetwork():void 0},o=yield(0,_r(d[11]).SendTransaction)(r,_r(d[9]).cadence,a);return _r(d[7]).logger.debug("[SendStore] Transaction result:",o),e({isLoading:!1}),n.resetSendFlow(),o}catch(t){var i=t instanceof Error?t.message:"Transaction failed";throw _r(d[7]).logger.error("[SendStore] Transaction error:",t),e({isLoading:!1,error:i}),new(_r(d[10]).FRWError)(_r(d[10]).ErrorCode.TRANSACTION_ERROR,i)}}),function(){return n.apply(this,arguments)}),getTransactionDetailsForDisplay:function(){var e=t(),n=e.transactionType,r=e.selectedToken,a=e.selectedNFTs,o=e.formData,i="tokens"===n,c=["single-nft","multiple-nfts"].includes(n);return{isTokenTransaction:i,isNFTTransaction:c,tokenAmount:i?o.tokenAmount:void 0,tokenSymbol:null==r?void 0:r.symbol,tokenName:null==r?void 0:r.name,nftCount:c?a.length:void 0,networkFee:"~0.001 FLOW"}}};var n,i,c,s}),R=(_e.sendSelectors={selectedToken:function(e){return e.selectedToken},fromAccount:function(e){return e.fromAccount},toAccount:function(e){return e.toAccount},formData:function(e){return e.formData},selectedNFTs:function(e){return e.selectedNFTs},currentStep:function(e){return e.currentStep},isLoading:function(e){return e.isLoading},error:function(e){return e.error},isTokensFlow:function(e){return"tokens"===e.transactionType},isNFTFlow:function(e){return["single-nft","multiple-nfts"].includes(e.transactionType)},isMultipleNFTsFlow:function(e){return"multiple-nfts"===e.transactionType},hasSelectedToken:function(e){return!!e.selectedToken},hasFromAccount:function(e){return!!e.fromAccount},hasToAccount:function(e){return!!e.toAccount},hasSelectedNFTs:function(e){return e.selectedNFTs.length>0},selectedNFTsCount:function(e){return e.selectedNFTs.length},getCoaBalance:function(e){return function(t){return e.balances.coa[t]||null}},getEvmBalance:function(e){return function(t){return e.balances.evm[t]||null}},getAllCoaBalances:function(e){return e.balances.coa},getAllEvmBalances:function(e){return e.balances.evm},getAccessibleAssetStore:function(e){return function(t){return e.accessibleAssetStores[t]||null}},getAllAccessibleAssetStores:function(e){return e.accessibleAssetStores},canProceedFromSelectTokens:function(e){return!!e.selectedToken||e.selectedNFTs.length>0},canProceedFromSendTo:function(e){return!!e.toAccount},canProceedFromSendTokens:function(e){return!!e.selectedToken&&!!e.toAccount&&parseFloat(e.formData.tokenAmount)>0},canConfirmTransaction:function(e){var t=!!e.fromAccount&&!!e.toAccount;return"tokens"===e.transactionType?t&&!!e.selectedToken&&parseFloat(e.formData.tokenAmount)>0:t&&e.selectedNFTs.length>0}},_e.sendHelpers={getTransactionSummary:function(){var e=j.getState();return{type:e.transactionType,from:e.fromAccount,to:e.toAccount,token:e.selectedToken,amount:e.formData.tokenAmount,fiatValue:e.formData.fiatAmount,fee:e.formData.transactionFee,nfts:e.selectedNFTs}},goToStep:function(e){(0,j.getState().setCurrentStep)(e)},clearError:function(){(0,j.getState().setError)(null)},refreshCoaBalance:function(e){return(0,j.getState().fetchCoaBalance)(e)},refreshEvmBalance:function(e){return(0,j.getState().fetchEvmBalance)(e)},isBalanceStale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3e4;return null==e||!e.lastFetched||Date.now()-e.lastFetched>t}},0),P=function(e){return`${e}-${arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet"}`},U=_e.useTokenStore=(0,_r(d[6]).create)(function(e,o){return{addressCache:{},isLoading:!1,error:null,isStale:function(e,t){return 0===t||Date.now()-e>t},fetchFreshBalance:(h=(0,r.default)(function*(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";if(!t)return{balance:"0 FLOW",displayBalance:"0 FLOW",nftCount:0,nftCountDisplay:"0 NFTs",lastUpdated:Date.now()};try{var i;if("evm"===n){var c=yield _r(d[9]).cadence.getFlowBalanceForAnyAccounts([t]),l=parseFloat(c[t]||"0"),s=(0,_r(d[10]).formatCurrencyStringForDisplay)({value:l});i={balance:`${s} FLOW`,displayBalance:`${s} FLOW`,nftCount:0,nftCountDisplay:"0 NFTs"}}else{var u,f,y,h=P(t,r),v=o().addressCache[h];if(v&&!o().isStale(v.lastFetch,R)||(yield o().fetchTokens(t,r,!0),v=o().addressCache[h]),null!=(u=v)&&u.isLoading)for(var p=0;null!=(F=v)&&F.isLoading&&p<50;){var F;yield new Promise(function(e){return setTimeout(e,100)}),v=o().addressCache[h],p++}if(!v)throw new Error("Failed to fetch token data");var C=null==(f=v.tokens)?void 0:f.find(function(e){var t;return"FLOW"===e.symbol||(null==(t=e.contractName)?void 0:t.toLowerCase().includes("flow"))}),A="0 FLOW",T="0 FLOW";if(null!=C&&C.displayBalance)A=T=C.displayBalance.includes("FLOW")?C.displayBalance:`${C.displayBalance} FLOW`;else if(null!=C&&C.balance){var b=parseFloat(C.balance);T=A=`${(0,_r(d[10]).formatCurrencyStringForDisplay)({value:b})} FLOW`}var S=(null==(y=v.nftCollections)?void 0:y.reduce(function(e,t){return e+(t.count||0)},0))||0;i={balance:A,displayBalance:T,nftCount:S,nftCountDisplay:`${S} NFT${1!==S?"s":""}`}}var k=P(t,r),w=Date.now();return e(function(e){var t,n,r;return Object.assign({},e,{addressCache:Object.assign({},e.addressCache,(0,a.default)({},k,Object.assign({},e.addressCache[k],{balance:i.balance,displayBalance:i.displayBalance,nftCount:i.nftCount,nftCountDisplay:i.nftCountDisplay,lastUpdated:w,tokens:(null==(t=e.addressCache[k])?void 0:t.tokens)||[],nftCollections:(null==(n=e.addressCache[k])?void 0:n.nftCollections)||[],lastFetch:(null==(r=e.addressCache[k])?void 0:r.lastFetch)||0,isLoading:!1,error:null})))})}),Object.assign({},i,{lastUpdated:w})}catch(e){var B=P(t,r),N=o().addressCache[B];return N?{balance:N.balance,displayBalance:N.displayBalance,nftCount:N.nftCount,nftCountDisplay:N.nftCountDisplay,lastUpdated:N.lastUpdated}:{balance:"0 FLOW",displayBalance:"0 FLOW",nftCount:0,nftCountDisplay:"0 NFTs",lastUpdated:Date.now()}}}),function(e,t){return h.apply(this,arguments)}),refreshBalanceInBackground:(y=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";try{yield o().fetchFreshBalance(e,t,n)}catch(e){}}),function(e,t){return y.apply(this,arguments)}),fetchBatchFlowBalances:(f=(0,r.default)(function*(e){if(!e||0===e.length)return[];try{var t=yield _r(d[9]).cadence.getFlowBalanceForAnyAccounts(e),n=[];for(var r of e){var a=t[r]||"0",o=parseFloat(a),i=`${(0,_r(d[10]).formatCurrencyStringForDisplay)({value:o})} FLOW`;n.push([r,i])}return n}catch(t){return _r(d[7]).logger.error("[TokenStore] Failed to fetch batch Flow balances:",t),e.map(function(e){return[e,"0 FLOW"]})}}),function(e){return f.apply(this,arguments)}),getBalance:(u=(0,r.default)(function*(e,t){var n="mainnet";if((arguments.length>2&&void 0!==arguments[2]?arguments[2]:{fresh:!1}).fresh)return yield o().fetchFreshBalance(e,t,n);var r=P(e,n),a=o().addressCache[r];return a&&!o().isStale(a.lastUpdated,R)?(setTimeout(function(){return o().refreshBalanceInBackground(e,t,n)},0),{balance:a.balance,displayBalance:a.displayBalance,nftCount:a.nftCount,nftCountDisplay:a.nftCountDisplay,lastUpdated:a.lastUpdated}):yield o().fetchFreshBalance(e,t,n)}),function(e,t){return u.apply(this,arguments)}),getAccountBalance:(s=(0,r.default)(function*(e,t){return yield o().getBalance(e,t,{fresh:!1})}),function(e,t){return s.apply(this,arguments)}),getTokensForAddress:function(e){if(!e)return null;var t=P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet"),n=o().addressCache[t];return(null==n?void 0:n.tokens)||null},getNFTCollectionsForAddress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";if(!e)return null;var n=P(e,t),r=o().addressCache[n],a=(null==r?void 0:r.nftCollections)||null;return _r(d[7]).logger.debug("[TokenStore] Retrieving NFT collections from cache",{address:e,network:t,cacheKey:n,hasCached:!!r,hasCollections:!!a,collectionsCount:(null==a?void 0:a.length)||0,collections:(null==a?void 0:a.map(function(e){return{id:e.id,name:e.name,contractName:e.contractName,count:e.count,type:e.type,flowIdentifier:e.flowIdentifier,evmAddress:e.evmAddress}}))||[]}),a},getCachedBalanceForAddress:function(e){if(!e)return null;var t=P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet"),n=o().addressCache[t];return n?{balance:n.balance,displayBalance:n.displayBalance,nftCount:n.nftCount,nftCountDisplay:n.nftCountDisplay,lastUpdated:n.lastUpdated}:null},isCacheValidForAddress:function(e){if(!e)return!1;var t=P(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet"),n=o().addressCache[t];return n&&!o().isStale(n.lastFetch,R)},clearCacheForAddress:function(t){if(t){var r=P(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet");e(function(e){var t=e.addressCache,a=(t[r],(0,n.default)(t,[r].map(i)));return Object.assign({},e,{addressCache:a})}),_r(d[7]).logger.debug(`[TokenStore] Cleared unified cache for address: ${t}`)}},fetchTokens:(l=(0,r.default)(function*(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(n){var c=P(n,r),l=Date.now(),s=o().addressCache[c],u=o().isStale((null==s?void 0:s.lastFetch)||0,R);if(i||!s||s.isLoading||u){e(function(e){return Object.assign({},e,{addressCache:Object.assign({},e.addressCache,(0,a.default)({},c,Object.assign({},s,{isLoading:!0,error:null,tokens:(null==s?void 0:s.tokens)||[],nftCollections:(null==s?void 0:s.nftCollections)||[],balance:(null==s?void 0:s.balance)||"0 FLOW",displayBalance:(null==s?void 0:s.displayBalance)||"0 FLOW",nftCount:(null==s?void 0:s.nftCount)||0,nftCountDisplay:(null==s?void 0:s.nftCountDisplay)||"0 NFTs",lastFetch:(null==s?void 0:s.lastFetch)||0,lastUpdated:(null==s?void 0:s.lastUpdated)||0})))})});try{var f=(0,_r(d[10]).addressType)(n),y=(0,_r(d[8]).tokenService)(f),h=(0,_r(d[8]).nftService)(f),v=_r(d[9]).context.bridge.getCurrency(),p=yield Promise.all([y.getTokenInfo(n,r,v.name),h.getNFTCollections(n)]),F=(0,t.default)(p,2),C=F[0],A=F[1];_r(d[7]).logger.debug("[TokenStore] Storing NFT collections in cache",{address:n,network:r,cacheKey:c,nftCollectionsCount:A.length,nftCollections:A.map(function(e){return{id:e.id,name:e.name,contractName:e.contractName,count:e.count,type:e.type,flowIdentifier:e.flowIdentifier,evmAddress:e.evmAddress}})}),e(function(e){var t,n,r;return Object.assign({},e,{addressCache:Object.assign({},e.addressCache,(0,a.default)({},c,Object.assign({},e.addressCache[c],{tokens:C,nftCollections:A,lastFetch:l,isLoading:!1,error:null,balance:(null==(t=e.addressCache[c])?void 0:t.balance)||"0 FLOW",displayBalance:(null==(n=e.addressCache[c])?void 0:n.displayBalance)||"0 FLOW",nftCount:A.reduce(function(e,t){return e+(t.count||0)},0),nftCountDisplay:`${A.reduce(function(e,t){return e+(t.count||0)},0)} NFT${1!==A.reduce(function(e,t){return e+(t.count||0)},0)?"s":""}`,lastUpdated:(null==(r=e.addressCache[c])?void 0:r.lastUpdated)||l})))})})}catch(t){_r(d[7]).logger.error("[TokenStore] Error fetching tokens:",t),e(function(e){return Object.assign({},e,{addressCache:Object.assign({},e.addressCache,(0,a.default)({},c,Object.assign({},s,{isLoading:!1,error:(null==t?void 0:t.message)||"Failed to fetch tokens",tokens:(null==s?void 0:s.tokens)||[],nftCollections:(null==s?void 0:s.nftCollections)||[],lastFetch:(null==s?void 0:s.lastFetch)||0})))})})}}}}),function(e){return l.apply(this,arguments)}),clearCache:function(t){t?o().clearCacheForAddress(t):e(function(e){return Object.assign({},e,{addressCache:{}})})},forceRefresh:(c=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";yield o().fetchTokens(e,t,!0),yield o().fetchFreshBalance(e,void 0,t)}),function(e){return c.apply(this,arguments)})};var c,l,s,u,f,y,h}),K=(_e.tokenSelectors={getTokens:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return function(n){var r;if(!e)return[];var a=P(e,t);return(null==(r=n.addressCache[a])?void 0:r.tokens)||[]}},getNFTCollections:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return function(n){var r;if(!e)return[];var a=P(e,t);return(null==(r=n.addressCache[a])?void 0:r.nftCollections)||[]}},getToken:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return function(r){var a;if(!e)return null;var o=P(e,n);return((null==(a=r.addressCache[o])?void 0:a.tokens)||[]).find(function(e){return e.symbol===t})||null}},getFlowBalance:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return function(n){if(!e)return{balance:"0 FLOW",displayBalance:"0 FLOW",isLoading:!1,error:null};var r=P(e,t),a=n.addressCache[r];return{balance:(null==a?void 0:a.balance)||"0 FLOW",displayBalance:(null==a?void 0:a.displayBalance)||"0 FLOW",isLoading:(null==a?void 0:a.isLoading)||!1,error:(null==a?void 0:a.error)||null}}},getAccountData:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return function(n){if(!e)return{balance:"0 FLOW",nftCount:0,nftCountDisplay:"0 NFTs",isLoading:!1,error:null};var r=P(e,t),a=n.addressCache[r];return{balance:(null==a?void 0:a.balance)||"0 FLOW",nftCount:(null==a?void 0:a.nftCount)||0,nftCountDisplay:(null==a?void 0:a.nftCountDisplay)||"0 NFTs",isLoading:(null==a?void 0:a.isLoading)||!1,error:(null==a?void 0:a.error)||null}}},getLoadingState:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return function(n){if(!e)return{isLoading:!1,error:null};var r=P(e,t),a=n.addressCache[r];return{isLoading:(null==a?void 0:a.isLoading)||!1,error:(null==a?void 0:a.error)||null}}}},_e.tokenHelpers={initializeAccount:(f=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=U.getState(),a=yield r.getBalance(e,t,{fresh:!1});return yield Promise.all([r.fetchTokens(e,n),r.refreshBalanceInBackground(e,t,n)]),a}),function(e,t){return f.apply(this,arguments)}),refreshAccount:(u=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=U.getState();return yield r.forceRefresh(e,n)}),function(e,t){return u.apply(this,arguments)}),getBalanceWithOptions:(s=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=U.getState();return yield r.getBalance(e,t,{fresh:n})}),function(e,t){return s.apply(this,arguments)})},_e.useWalletStore=(0,_r(d[6]).create)(function(e,t){return{accounts:[],activeAccount:null,isLoading:!1,error:null,loadAccountsFromBridge:(n=(0,r.default)(function*(){e({isLoading:!0,error:null});try{var t=(0,_r(d[8]).flowService)(),n=yield t.getWalletAccounts();if(!Array.isArray(n.accounts))throw new Error("Invalid accounts data from bridge");var r=n.accounts,a=r.find(function(e){return e.isActive})||r[0]||null;e({accounts:r,activeAccount:a,isLoading:!1,error:null})}catch(t){e({accounts:[],activeAccount:null,isLoading:!1,error:t instanceof Error?t.message:"Failed to load accounts"})}}),function(){return n.apply(this,arguments)}),setActiveAccount:function(t){e(function(e){return{accounts:e.accounts.map(function(e){return Object.assign({},e,{isActive:e.address===t.address})}),activeAccount:Object.assign({},t,{isActive:!0})}})},getAccountByAddress:function(e){return t().accounts.find(function(t){return t.address===e})||null},clearCache:function(){e({accounts:[],activeAccount:null,isLoading:!1,error:null})}};var n})),$=(_e.walletSelectors={getAllAccounts:function(e){return e.accounts},getActiveAccount:function(e){return e.activeAccount},getAccountByAddress:function(e){return function(t){return t.accounts.find(function(t){return t.address===e})||null}},getAccountsByType:function(e){return function(t){return t.accounts.filter(function(t){return t.type===e})}},getLoadingState:function(e){return{isLoading:e.isLoading,error:e.error}}},_e.walletHelpers={initializeWallet:(y=(0,r.default)(function*(){var e=K.getState();return yield e.loadAccountsFromBridge(),e.accounts}),function(){return y.apply(this,arguments)}),getAccountByAddress:function(e){return K.getState().getAccountByAddress(e)},getAllAccounts:function(){return K.getState().accounts},getActiveAccount:function(){return K.getState().activeAccount},setActiveAccount:function(e){K.getState().setActiveAccount(e)}},_e.useProfileStore=(0,_r(d[6]).create)(function(e,t){return{profiles:[],isLoading:!1,error:null,loadProfilesFromBridge:(n=(0,r.default)(function*(){if(!t().isLoading){e({isLoading:!0,error:null});try{var n=(0,_r(d[8]).flowService)();try{var r=yield n.getWalletProfiles();if(!Array.isArray(r.profiles))throw new Error("Invalid profiles data from bridge");var a=r.profiles;e({profiles:a,isLoading:!1,error:null})}catch(t){var o=yield n.getWalletAccounts();if(!o.accounts||!Array.isArray(o.accounts))throw new Error("Invalid accounts data from bridge");var i=[{uid:"default-profile",name:"Main Profile",avatar:"\ud83d\udc64",accounts:o.accounts}];e({profiles:i,isLoading:!1,error:null})}}catch(t){e({profiles:[],isLoading:!1,error:t instanceof Error?t.message:"Failed to load profiles"})}}}),function(){return n.apply(this,arguments)}),getProfileByUid:function(e){return t().profiles.find(function(t){return t.uid===e})||null},clearCache:function(){e({profiles:[],isLoading:!1,error:null})}};var n})),M=(_e.useAllProfiles=function(){return $(function(e){return e.profiles})},_e.tokenQueryKeys={all:[_r(d[10]).FlatQueryDomain.TOKENS],addresses:function(){return[].concat((0,o.default)(M.all),["addresses"])},address:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return[].concat((0,o.default)(M.addresses()),[e,t])},tokens:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return[].concat((0,o.default)(M.address(e,t)),["tokens"])},balance:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return[].concat((0,o.default)(M.address(e,t)),[_r(d[10]).FlatQueryDomain.BALANCE])},nfts:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return[].concat((0,o.default)(M.address(e,t)),[_r(d[10]).FlatQueryDomain.NFTS])},nftCollection:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return[].concat((0,o.default)(M.nfts(e,n)),[t.id||t.contractName||t.name])},nftCollectionAll:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return[].concat((0,o.default)(M.nfts(e,n)),["all",t.id||t.contractName||t.name])}}),_=_e.tokenQueries={fetchTokens:(T=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";if(!e)return[];try{var n=(0,_r(d[10]).addressType)(e),r=(0,_r(d[8]).tokenService)(n),a=_r(d[9]).context.bridge.getCurrency(),o=yield r.getTokenInfo(e,t,a.name);return _r(d[7]).logger.debug("[TokenQuery] Fetched tokens:",{address:e,network:t,count:o.length}),o}catch(e){throw _r(d[7]).logger.error("[TokenQuery] Error fetching tokens:",e),e}}),function(e){return T.apply(this,arguments)}),fetchNFTCollections:(A=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";if(!e)return[];try{var n=(0,_r(d[10]).addressType)(e),r=(0,_r(d[8]).nftService)(n),a=yield r.getNFTCollections(e);return _r(d[7]).logger.debug("[TokenQuery] Fetched NFT collections:",{address:e,network:t,count:a.length}),a}catch(e){throw _r(d[7]).logger.error("[TokenQuery] Error fetching NFT collections:",e),e}}),function(e){return A.apply(this,arguments)}),fetchNFTCollection:(C=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:50;if(!e||!t)return[];try{var o=(0,_r(d[10]).addressType)(e),i=(0,_r(d[8]).nftService)(o),c=yield i.getNFTs(e,t,r.toString(),a);return _r(d[7]).logger.debug("[TokenQuery] Fetched NFTs from collection:",{address:e,collection:t.name,network:n,count:c.nfts.length,offset:r,limit:a,nextOffset:c.offset}),c.nfts}catch(e){throw _r(d[7]).logger.error("[TokenQuery] Error fetching NFTs from collection:",e),e}}),function(e,t){return C.apply(this,arguments)}),fetchAllNFTsFromCollection:(F=(0,r.default)(function*(e,t){var n=arguments.length>3?arguments[3]:void 0,a=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;if(!e||!t)return[];try{var c=50,l=(0,_r(d[10]).addressType)(e),s=(0,_r(d[8]).nftService)(l),u="flow"===l,f=[],y=new Set,h=!0,v=1,p=n?Math.ceil(n/c)*c:void 0;if(u)for(var F=0,C=function*(){if(n&&p&&F>=p)return 1;if(null!=i&&i.aborted){var l=new Error("Request aborted by user");throw l.name="AbortError",l}for(var u=[],C=[],A=0;A<5&&h;A++)C.push(F),u.push(s.getNFTs(e,t,F.toString(),c)),F+=c;var T=!1,b=u.map((function(){var e=(0,r.default)(function*(e,t){var r=C[t];try{var i=yield e,c=i.nfts.filter(function(e){var t=e.id||`${e.name}-${e.contractAddress}`;return!y.has(t)&&(y.add(t),!0)});if(f.push.apply(f,(0,o.default)(c)),T=!0,a&&n){var l=Math.min(f.length/n*100,100);a(Math.round(l),f.length)}return{nfts:i,offset:r,success:!0}}catch(e){return h=!1,{nfts:[],offset:r,success:!1,error:e}}});return function(t,n){return e.apply(this,arguments)}})());yield Promise.allSettled(b),T||(h=!1),v++};h&&!(yield*C()););else for(var A="";h&&v<=100&&f.length<1e4;){if(null!=i&&i.aborted){var T=new Error("Request aborted by user");throw T.name="AbortError",T}try{var b=yield s.getNFTs(e,t,A,c),S=b.nfts,k=b.offset;if(0===S.length){h=!1;break}var w=S.filter(function(e){var t=e.id||`${e.name}-${e.contractAddress}`;return!y.has(t)&&(y.add(t),!0)});if(0===w.length){h=!1;break}if(f.push.apply(f,(0,o.default)(w)),a&&n){var B=Math.min(f.length/n*100,100);a(Math.round(B),f.length)}if(k?A=k:h=!1,S.lengthS.length/2){h=!1;break}}catch(e){h=!1;break}v++}return f}catch(e){throw _r(d[7]).logger.error("[TokenQuery] Error fetching all NFTs from collection:",e),e}}),function(e,t){return F.apply(this,arguments)}),fetchBalance:(p=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";if(!e)return{balance:"0 FLOW",displayBalance:"0 FLOW",nftCount:0,nftCountDisplay:"0 NFTs",lastUpdated:Date.now()};try{var r;if("evm"===t){var a=yield _r(d[9]).cadence.getFlowBalanceForAnyAccounts([e]),o=parseFloat(a[e]||"0"),i=(0,_r(d[10]).formatCurrencyStringForDisplay)({value:o});r={balance:`${i} FLOW`,displayBalance:`${i} FLOW`,nftCount:0,nftCountDisplay:"0 NFTs"}}else{var c=(yield _r(d[9]).queryClient.fetchQuery({queryKey:M.tokens(e,n),queryFn:function(){return _.fetchTokens(e,n)},staleTime:0})).find(function(e){var t;return e.identifier===(0,_r(d[11]).getFlowTokenVault)(n)||"flow"===(null==(t=e.symbol)?void 0:t.toLowerCase())}),l="0 FLOW",s="0 FLOW";if(null!=c&&c.displayBalance)l=s=c.displayBalance.includes("FLOW")?c.displayBalance:`${c.displayBalance} FLOW`;else if(null!=c&&c.balance){var u=parseFloat(c.balance);s=l=`${(0,_r(d[10]).formatCurrencyStringForDisplay)({value:u})} FLOW`}var f=(yield _r(d[9]).queryClient.fetchQuery({queryKey:M.nfts(e,n),queryFn:function(){return _.fetchNFTCollections(e,n)},staleTime:3e5})).reduce(function(e,t){return e+(t.count||0)},0);r={balance:l,displayBalance:s,nftCount:f,nftCountDisplay:`${f} NFT${1!==f?"s":""}`}}return Object.assign({},r,{lastUpdated:Date.now()})}catch(e){throw _r(d[7]).logger.error("[TokenQuery] Error fetching balance:",e),e}}),function(e,t){return p.apply(this,arguments)}),fetchBatchFlowBalances:(v=(0,r.default)(function*(e){if(!e||0===e.length)return[];try{var t=yield _r(d[9]).cadence.getFlowBalanceForAnyAccounts(e),n=[];for(var r of e){var a=t[r]||"0",o=parseFloat(a),i=`${(0,_r(d[10]).formatCurrencyStringForDisplay)({value:o})} FLOW`;n.push([r,i])}return n}catch(t){return _r(d[7]).logger.error("[TokenQuery] Failed to fetch batch Flow balances:",t),e.map(function(e){return[e,"0 FLOW"]})}}),function(e){return v.apply(this,arguments)}),fetchBatchNFTCounts:(h=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";if(!e||0===e.length)return[];try{var n=yield Promise.allSettled(e.map((function(){var e=(0,r.default)(function*(e){return[e,(yield _.fetchNFTCollections(e,t)).reduce(function(e,t){return e+(t.count||0)},0)]});return function(t){return e.apply(this,arguments)}})()));return n.map(function(t,n){return"fulfilled"===t.status?t.value:(_r(d[7]).logger.warn("[TokenQuery] Failed to fetch NFT count for address:",e[n]),[e[n],0])})}catch(t){return _r(d[7]).logger.error("[TokenQuery] Failed to fetch batch NFT counts:",t),e.map(function(e){return[e,0]})}}),function(e){return h.apply(this,arguments)})},x=(_e.useTokenQueryStore=(0,_r(d[6]).create)(function(e,t){return{fetchTokens:(l=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return yield _r(d[9]).queryClient.fetchQuery(Object.assign({queryKey:M.tokens(e,t),queryFn:function(){return _.fetchTokens(e,t)}},n&&{staleTime:0}))}),function(e){return l.apply(this,arguments)}),fetchBalance:(c=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return yield _r(d[9]).queryClient.fetchQuery({queryKey:M.balance(e,n),queryFn:function(){return _.fetchBalance(e,t,n)}})}),function(e,t){return c.apply(this,arguments)}),fetchNFTCollections:(i=(0,r.default)(function*(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return yield _r(d[9]).queryClient.fetchQuery({queryKey:M.nfts(e,t),queryFn:function(){return _.fetchNFTCollections(e,t)}})}),function(e){return i.apply(this,arguments)}),fetchNFTCollection:(o=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:50;return yield _r(d[9]).queryClient.fetchQuery({queryKey:M.nftCollection(e,t,n),queryFn:function(){return _.fetchNFTCollection(e,t,n,r,a)},staleTime:3e5})}),function(e,t){return o.apply(this,arguments)}),fetchAllNFTsFromCollection:(a=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=arguments.length>3?arguments[3]:void 0;return yield _r(d[9]).queryClient.fetchQuery({queryKey:M.nftCollectionAll(e,t,n),queryFn:function(a){var o=a.signal;return _.fetchAllNFTsFromCollection(e,t,n,t.count,void 0,r||o)},staleTime:6e5,gcTime:9e5})}),function(e,t){return a.apply(this,arguments)}),fetchBatchFlowBalances:(n=(0,r.default)(function*(e){return yield _.fetchBatchFlowBalances(e)}),function(e){return n.apply(this,arguments)}),invalidateTokens:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";_r(d[9]).queryClient.invalidateQueries({queryKey:M.tokens(e,t)})},invalidateBalance:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";_r(d[9]).queryClient.invalidateQueries({queryKey:M.balance(e,t)})},invalidateNFTCollection:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";_r(d[9]).queryClient.invalidateQueries({queryKey:M.nftCollection(e,t,n)})},invalidateAll:function(e){e?_r(d[9]).queryClient.invalidateQueries({queryKey:M.address(e)}):_r(d[9]).queryClient.invalidateQueries({queryKey:M.all})},getTokensForAddress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return _r(d[9]).queryClient.getQueryData(M.tokens(e,t))},getNFTCollectionsForAddress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return _r(d[9]).queryClient.getQueryData(M.nfts(e,t))},getNFTCollectionForAddress:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return _r(d[9]).queryClient.getQueryData(M.nftCollection(e,t,n))},getBalanceForAddress:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet";return _r(d[9]).queryClient.getQueryData(M.balance(e,t))},isTokensLoading:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=_r(d[9]).queryClient.getQueryCache().find({queryKey:M.tokens(e,t)});return"fetching"===(null==n?void 0:n.state.fetchStatus)},isBalanceLoading:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=_r(d[9]).queryClient.getQueryCache().find({queryKey:M.balance(e,t)});return"fetching"===(null==n?void 0:n.state.fetchStatus)},isNFTsLoading:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"mainnet",n=_r(d[9]).queryClient.getQueryCache().find({queryKey:M.nfts(e,t)});return"fetching"===(null==n?void 0:n.state.fetchStatus)},isNFTCollectionLoading:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet",r=_r(d[9]).queryClient.getQueryCache().find({queryKey:M.nftCollection(e,t,n)});return"fetching"===(null==r?void 0:r.state.fetchStatus)}};var n,a,o,i,c,l}),[_r(d[10]).FlatQueryDomain.ADDRESSBOOK]),H=function(e){return[].concat(x,[{scope:"firebase-uid",value:null!=e?e:"anonymous"}])},V=(function(){var e=(0,r.default)(function*(){try{var e;return"function"==typeof _r(d[9]).bridge.getCurrentUserUid?null!=(e=yield _r(d[9]).bridge.getCurrentUserUid())?e:null:(_r(d[7]).logger.warn("[AddressBook] bridge.getCurrentUserUid not implemented; falling back to anonymous scope"),null)}catch(e){return _r(d[7]).logger.warn("[AddressBook] Failed to resolve current user uid",{error:e}),null}});return function(){return e.apply(this,arguments)}})(),z=_e.addressBookQueryKeys={all:x,allByUid:H,currentUserUid:function(){return[].concat(x,["current-user-uid"])},contacts:function(e){return[].concat((0,o.default)(H(e)),[_r(d[10]).FlatQueryDomain.CONTACTS])},contact:function(e,t){return[].concat((0,o.default)(z.contacts(t)),[e])},favorites:function(e){return[].concat((0,o.default)(H(e)),["favorites"])},recent:function(e){return[].concat((0,o.default)(H(e)),[_r(d[10]).FlatQueryDomain.RECENT])}},G=_e.addressBookQueries={fetchCurrentUserUid:(B=(0,r.default)(function*(){return yield V()}),function(){return B.apply(this,arguments)}),fetchContacts:(w=(0,r.default)(function*(){try{var e=_r(d[8]).AddressBookService.getInstance(),t=(yield e.getAddressBook()).contacts.map(function(e){return{id:e.id,name:e.name,address:e.address,avatar:e.avatar||"",isFavorite:!1,createdAt:Date.now(),updatedAt:Date.now()}});return _r(d[7]).logger.debug("[AddressBookQuery] Fetched contacts",{count:t.length,contacts:t}),t}catch(e){return _r(d[7]).logger.error("[AddressBookQuery] Error fetching contacts:",e),[]}}),function(){return w.apply(this,arguments)}),fetchContact:(k=(0,r.default)(function*(e){try{var t=_r(d[8]).AddressBookService.getInstance(),n=(yield t.getAddressBook()).contacts.find(function(t){return t.id===e});if(n){var r={id:n.id,name:n.name,address:n.address,avatar:n.avatar,isFavorite:!1,createdAt:Date.now(),updatedAt:Date.now()};return _r(d[7]).logger.debug("[AddressBookQuery] Fetched contact from address book:",{id:e,contact:r}),r}var a=_r(d[8]).RecentRecipientsService.getInstance(),o=(yield a.getAllRecentRecipients()).find(function(t){return t.id===e});if(o){var i={id:o.id,name:o.name,address:o.address,avatar:o.avatar,isFavorite:!1,createdAt:Date.now(),updatedAt:Date.now()};return _r(d[7]).logger.debug("[AddressBookQuery] Fetched contact from recent:",{id:e,contact:i}),i}throw new Error(`Contact ${e} not found`)}catch(e){throw _r(d[7]).logger.error("[AddressBookQuery] Error fetching contact:",e),e}}),function(e){return k.apply(this,arguments)}),fetchFavorites:(S=(0,r.default)(function*(){try{var e=[];return _r(d[7]).logger.debug("[AddressBookQuery] Fetched favorites:",{count:e.length}),e}catch(e){throw _r(d[7]).logger.error("[AddressBookQuery] Error fetching favorites:",e),e}}),function(){return S.apply(this,arguments)}),fetchRecent:(b=(0,r.default)(function*(){try{var e=_r(d[9]).context.storage,t=yield e.get("recentRecipients");if(t){var n=[];if(Array.isArray(t))n=t;else if(t&&"object"==typeof t){var r=t;n=Object.values(r).filter(function(e){return e&&"object"==typeof e&&"address"in e&&!["version","createdAt","updatedAt"].includes(String(e))})}var a=n.map(function(e){return{id:e.id||e.address,name:e.name||"Recent Contact",address:e.address,avatar:e.avatar||"",isFavorite:!1,createdAt:e.createdAt||Date.now(),updatedAt:e.updatedAt||Date.now()}});return _r(d[7]).logger.debug("[AddressBookQuery] Fetched recent contacts from storage:",a),a}return _r(d[7]).logger.debug("[AddressBookQuery] No recent contacts found in storage"),[]}catch(e){return _r(d[7]).logger.error("[AddressBookQuery] Error fetching recent contacts:",e),[]}}),function(){return b.apply(this,arguments)})},J={createContact:(O=(0,r.default)(function*(e){try{throw new Error("Creating contacts is not yet supported by the backend API")}catch(e){throw _r(d[7]).logger.error("[AddressBookMutation] Error creating contact:",e),e}}),function(e){return O.apply(this,arguments)}),updateContact:(L=(0,r.default)(function*(e,t){try{throw new Error("Updating contacts is not yet supported by the backend API")}catch(e){throw _r(d[7]).logger.error("[AddressBookMutation] Error updating contact:",e),e}}),function(e,t){return L.apply(this,arguments)}),deleteContact:(Q=(0,r.default)(function*(e){try{throw new Error("Deleting contacts is not yet supported by the backend API")}catch(e){throw _r(d[7]).logger.error("[AddressBookMutation] Error deleting contact:",e),e}}),function(e){return Q.apply(this,arguments)}),setRecentContact:(N=(0,r.default)(function*(e){try{var t=_r(d[9]).context.storage,n=yield t.get("recentRecipients"),r=[];n&&(Array.isArray(n)?r=n:n&&"object"==typeof n&&(r=Object.values(n).filter(function(e){return e&&"object"==typeof e&&"address"in e})));var a={id:e.id,name:e.name,address:e.address,avatar:e.avatar||"",emoji:"",createdAt:e.createdAt,updatedAt:e.updatedAt};(r=r.filter(function(t){return t.address!==e.address})).unshift(a),r=r.slice(0,10),yield t.set("recentRecipients",r);var o=yield V();_r(d[9]).queryClient.invalidateQueries({queryKey:z.recent(null!=o?o:void 0)}),_r(d[7]).logger.debug("[AddressBookMutation] Set recent contact:",{contact:e,totalRecent:r.length})}catch(e){throw _r(d[7]).logger.error("[AddressBookMutation] Error setting recent contact:",e),e}}),function(e){return N.apply(this,arguments)})},X=(_e.useAddressBookStore=(0,_r(d[6]).create)(function(e,t){return{fetchCurrentUserUid:(f=(0,r.default)(function*(){return yield G.fetchCurrentUserUid()}),function(){return f.apply(this,arguments)}),fetchContacts:(u=(0,r.default)(function*(){return yield G.fetchContacts()}),function(){return u.apply(this,arguments)}),fetchContact:(s=(0,r.default)(function*(e){return yield G.fetchContact(e)}),function(e){return s.apply(this,arguments)}),fetchFavorites:(l=(0,r.default)(function*(){return yield G.fetchFavorites()}),function(){return l.apply(this,arguments)}),fetchRecent:(c=(0,r.default)(function*(){return yield G.fetchRecent()}),function(){return c.apply(this,arguments)}),createContact:(i=(0,r.default)(function*(e){return yield J.createContact(e)}),function(e){return i.apply(this,arguments)}),updateContact:(o=(0,r.default)(function*(e,t){return yield J.updateContact(e,t)}),function(e,t){return o.apply(this,arguments)}),deleteContact:(a=(0,r.default)(function*(e){yield J.deleteContact(e)}),function(e){return a.apply(this,arguments)}),setRecentContact:(n=(0,r.default)(function*(e){yield J.setRecentContact(e)}),function(e){return n.apply(this,arguments)}),invalidateContacts:function(){},invalidateContact:function(e){},getContacts:function(){},getContact:function(e){}};var n,a,o,i,c,l,s,u,f}),_e.accessibleAssetQueryKeys={all:[_r(d[10]).FlatQueryDomain.ACCESSIBLE_ASSETS],accounts:function(){return[].concat((0,o.default)(X.all),["accounts"])},account:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return[].concat((0,o.default)(X.accounts()),[e,t,n])},allowTypes:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";return[].concat((0,o.default)(X.account(e,t,n)),["allowTypes"])}}),Y=(_e.accessibleAssetQueries={fetchChildAccountAllowTypes:(D=(0,r.default)(function*(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mainnet";if(!e||!t)return[];try{var r=yield _r(d[9]).cadence.getChildAccountAllowTypes(e,t);return _r(d[7]).logger.debug("[AccessibleAssetQuery] Fetched accessible IDs:",{parentAddress:e,childAddress:t,network:n,count:(null==r?void 0:r.length)||0}),r||[]}catch(e){throw _r(d[7]).logger.error("[AccessibleAssetQuery] Error fetching accessible IDs:",e),new(_r(d[10]).FRWError)(_r(d[10]).ErrorCode.ACCESSIBLE_ASSET_FETCH_FAILED,"Failed to fetch accessible IDs",{})}}),function(e,t){return D.apply(this,arguments)})},_e.accessibleAssetHelpers={isTokenAllowed:function(e,t){if(null==t)return!0;if(!e.contractAddress)return!1;var n=(0,_r(d[7]).getTokenResourceIdentifier)(e);return!!n&&t.some(function(e){return e.toLowerCase().includes(n.toLowerCase())})},isNFTAllowed:function(e,t){if(null==t)return!0;if(!e.address)return!1;var n=(0,_r(d[7]).getNFTResourceIdentifier)(e);return!!n&&t.some(function(e){return e.toLowerCase().includes(n.toLowerCase())})},isCollectionAllowed:function(e,t){if(!t||0===t.length)return!0;if(!e.address||!e.contractName)return!1;var n=(0,_r(d[7]).getCollectionResourceIdentifier)(e);return!!n&&t.some(function(e){return e.toLowerCase().includes(n.toLowerCase())})},isChildAccount:function(e){return"child"===(null==e?void 0:e.type)&&!!e.parentAddress},getAccountAddresses:function(e){return Y.isChildAccount(e)?{parentAddress:e.parentAddress,childAddress:e.address}:{parentAddress:null,childAddress:null}},filterAccessibleTokens:function(e,t){return t&&0!==t.length?e.filter(function(e){return Y.isTokenAllowed(e,t)}):e},filterAccessibleCollections:function(e,t){return t&&0!==t.length?e.filter(function(e){return Y.isCollectionAllowed(e,t)}):e}}),Z=_e.storageQueryKeys={all:[_r(d[10]).FlatQueryDomain.STORAGE],info:function(){return[].concat((0,o.default)(Z.all),["info"])},accountInfo:function(e){return[].concat((0,o.default)(Z.info()),[(null==e?void 0:e.parentAddress)||(null==e?void 0:e.address)||"unknown"])},resourceCheck:function(e,t){return[].concat((0,o.default)(Z.all),["resource-check",e,t])}},ee=(_e.storageQueries={fetchAccountInfo:(I=(0,r.default)(function*(e){if(null==e||!e.address)throw new Error("No selected account provided");try{var t=e.parentAddress||e.address;_r(d[7]).logger.info("Fetching complete account info",{accountAddress:e.address,queryAddress:t,hasParent:!!e.parentAddress});var n=yield _r(d[9]).cadence.getAccountInfo(t),r=parseFloat(n.balance),a=parseFloat(n.availableBalance),o=parseFloat(n.storageFlow),i=n.storageCapacity-n.storageUsed,c={address:n.address,balance:r,availableBalance:a,storageUsed:n.storageUsed,storageCapacity:n.storageCapacity,storageFlow:o,available:i};return _r(d[7]).logger.info("Account info retrieved",{address:t,balance:r,capacity:n.storageCapacity,used:n.storageUsed,available:i,usagePercentage:(n.storageUsed/n.storageCapacity*100).toFixed(2)}),c}catch(t){throw _r(d[7]).logger.error("Failed to fetch account info",{error:t instanceof Error?t.message:String(t),selectedAccount:null==e?void 0:e.address}),new(_r(d[10]).FRWError)(_r(d[10]).ErrorCode.ACCOUNT_INFO_FETCH_FAILED,"Failed to fetch account info",{error:t})}}),function(e){return I.apply(this,arguments)}),checkResourceCompatibility:(E=(0,r.default)(function*(e,t){if(!e||!t)return _r(d[7]).logger.warn("Missing address or flowIdentifier for resource check",{address:e,flowIdentifier:t}),!1;if(!(0,_r(d[7]).isValidFlowAddress)(e))return _r(d[7]).logger.info("Address is not a valid Flow address, returning true for compatibility",{address:e,flowIdentifier:t}),!0;try{_r(d[7]).logger.info("Checking resource compatibility",{address:e,flowIdentifier:t});var n=yield _r(d[9]).cadence.checkResource(e,t);return _r(d[7]).logger.info("Resource compatibility check result",{address:e,flowIdentifier:t,isCompatible:n}),n}catch(n){return _r(d[7]).logger.error("Failed to check resource compatibility",{error:n instanceof Error?n.message:String(n),address:e,flowIdentifier:t}),!1}}),function(e,t){return E.apply(this,arguments)})},_e.storageUtils={isBalanceInsufficient:function(e){return e<.001},isStorageInsufficient:function(e){return e.available<1e4},validateFlowTokenTransaction:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(ee.isStorageInsufficient(e))return{canProceed:!1,showWarning:!0,warningType:"storage"};if(ee.isBalanceInsufficient(e.balance))return{canProceed:!1,showWarning:!0,warningType:"balance"};var r=n?0:5e-4;return e.balance-t1&&void 0!==arguments[1]&&arguments[1];return ee.validateFlowTokenTransaction(e,0,t)},getStorageWarningMessageKey:function(e){switch(e){case"balance":return"storage.warning.balance";case"storage":return"storage.warning.storage";case"storage_after_action":return"storage.warning.storageAfterAction";default:return""}},shouldShowStorageWarning:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e.available<1e4+t}}),te=(_e.usePayerStatusStore=(0,_r(d[6]).create)(function(e,t){return{getCachedPayerStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mainnet";return _r(d[9]).queryClient.getQueryData(te.payerStatus(e))||null},clearCache:function(e){e?(_r(d[9]).queryClient.removeQueries({queryKey:te.payerStatus(e)}),_r(d[7]).logger.info("Cleared payer status cache",{network:e})):(_r(d[9]).queryClient.removeQueries({queryKey:te.all}),_r(d[7]).logger.info("Cleared all payer status cache"))}}}),_e.payerStatusQueryKeys={all:["payer-status"],payerStatus:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mainnet";return[].concat((0,o.default)(te.all),[e])}}),ne=_e.payerStatusQueries={fetchPayerStatus:(q=(0,r.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mainnet";try{_r(d[7]).logger.info("Fetching payer status",{network:e});var t=(yield _r(d[12]).PayerService.status({network:e})).data;if(_r(d[7]).logger.info("Raw API response",{response:t,type:typeof t}),!t)throw _r(d[7]).logger.error("Invalid payer status response format",{response:t}),new Error("Invalid payer status response format");return t}catch(t){throw _r(d[7]).logger.error("Failed to fetch payer status",{error:t instanceof Error?t.message:String(t),network:e}),t}}),function(){return q.apply(this,arguments)})};_e.fetchPayerStatusWithCache=(function(){var e=(0,r.default)(function*(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mainnet",n=_r(d[9]).queryClient.getQueryData(te.payerStatus(t));if(n)return n;var r=yield ne.fetchPayerStatus(t),a=(null==(e=r.surge)?void 0:e.ttlSeconds)||30;return 30!==a&&_r(d[9]).queryClient.setQueryDefaults(te.payerStatus(t),{gcTime:1e3*a}),_r(d[9]).queryClient.setQueryData(te.payerStatus(t),r),r});return function(){return e.apply(this,arguments)}})()},794,[1,19,207,367,18,32,795,2,798,805,8,1319,799]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.keys(r(d[0])).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[0])[t]}})}),Object.keys(r(d[1])).forEach(function(t){'default'===t||Object.prototype.hasOwnProperty.call(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[1])[t]}})})},795,[796,797]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=function(t){var n,u=new Set,c=function(t,c){var o="function"==typeof t?t(n):t;if(!Object.is(o,n)){var f=n;n=(null!=c?c:"object"!=typeof o||null===o)?o:Object.assign({},n,o),u.forEach(function(t){return t(n,f)})}},o=function(){return n},f={setState:c,getState:o,getInitialState:function(){return s},subscribe:function(t){return u.add(t),function(){return u.delete(t)}}},s=n=t(c,o,f);return f};e.createStore=function(n){return n?t(n):t}},796,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n=function(t){return t};function u(u){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=t.useSyncExternalStore(u.subscribe,t.useCallback(function(){return c(u.getState())},[u,c]),t.useCallback(function(){return c(u.getInitialState())},[u,c]));return t.useDebugValue(o),o}var c=function(t){var n=r(d[1]).createStore(t),c=function(t){return u(n,t)};return Object.assign(c,n),c};e.create=function(t){return t?c(t):c},e.useStore=u},797,[128,796]); -__d(function(g,_r,i,_a,m,e,d){var r=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.tokenService=e.recentRecipientsService=e.profileService=e.nftService=e.flowService=e.addressBookService=e.TokenService=e.RecentRecipientsService=e.ProfileService=e.NFTService=e.FlowService=e.AddressBookService=void 0;var t,n,o=r(_r(d[1])),a=r(_r(d[2])),s=r(_r(d[3])),c=r(_r(d[4])),l=r(_r(d[5])),u=e.AddressBookService=(function(){function r(t){(0,c.default)(this,r),this.bridge=t}return(0,l.default)(r,[{key:"getAddressBook",value:(t=(0,s.default)(function*(){try{var r,t=yield _r(d[6]).AddressbookService.contact();return Array.isArray(t)?{contacts:t.map(function(r){return{id:String(r.id||r.address||""),name:r.username||r.contact_name||"Unknown Contact",address:r.address||"",avatar:r.avatar,username:r.username,contactName:r.contact_name}})}:null!=(r=t.data)&&r.contacts?{contacts:t.data.contacts.map(function(r){return{id:String(r.id||r.address||""),name:r.username||r.contact_name||"Unknown Contact",address:r.address||"",avatar:r.avatar,username:r.username,contactName:r.contact_name}})}:t.contacts?{contacts:t.contacts.map(function(r){return{id:String(r.id||r.address||""),name:r.username||r.contact_name||"Unknown Contact",address:r.address||"",avatar:r.avatar,username:r.username,contactName:r.contact_name}})}:{contacts:[]}}catch(r){throw _r(d[7]).logger.error("[AddressBookService] Failed to fetch address book:",r),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.ADDRESSBOOK_FETCH_FAILED,"Failed to fetch address book contacts",{error:r})}}),function(){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(t){if(!r.instance){var n=t;if(!n)try{n=_r(d[9]).context.bridge}catch(r){throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.BRIDGE_NOT_FOUND,"AddressBookService requires bridge parameter or initialized ServiceContext",{bridge:t,error:r})}r.instance=new r(n)}return r.instance}}]);var t})(),f=(function(){function r(t){(0,c.default)(this,r),this.initialized=!1,this.bridge=t}return(0,l.default)(r,[{key:"ensureInitialized",value:(f=(0,s.default)(function*(){if(!this.initialized)try{_r(d[9]).cadence&&(this.initialized=!0)}catch(r){throw _r(d[7]).logger.error("FlowService: ServiceContext not initialized properly"),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.FLOW_SERVICE_NOT_INITIALIZED,"FlowService requires initialized ServiceContext",{error:r})}}),function(){return f.apply(this,arguments)})},{key:"getCoaBalance",value:(u=(0,s.default)(function*(r){try{yield this.ensureInitialized();var t=(yield _r(d[9]).cadence.getFlowBalanceForAnyAccounts([r]))[r];if(null!=t)return parseFloat(t.toString());throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.FLOW_BALANCE_NOT_FOUND,"No balance found for address",{address:r})}catch(t){throw _r(d[7]).logger.error("Error fetching balance via CadenceService",t),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.FLOW_BALANCE_FETCH_FAILED,`Failed to fetch balance: ${t instanceof Error?t.message:"Unknown error"}`,{address:r,error:t})}}),function(r){return u.apply(this,arguments)})},{key:"getEvmBalance",value:(a=(0,s.default)(function*(r){return this.getCoaBalance(r)}),function(r){return a.apply(this,arguments)})},{key:"getWalletAccounts",value:(o=(0,s.default)(function*(){return this.bridge.getWalletAccounts()}),function(){return o.apply(this,arguments)})},{key:"getWalletProfiles",value:(n=(0,s.default)(function*(){if("getWalletProfiles"in this.bridge&&"function"==typeof this.bridge.getWalletProfiles)return this.bridge.getWalletProfiles();throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.FLOW_METHOD_NOT_IMPLEMENTED,"getWalletProfiles not implemented on this platform",{bridge:typeof this.bridge.getWalletProfiles})}),function(){return n.apply(this,arguments)})},{key:"getEvmAddress",value:(t=(0,s.default)(function*(r){return _r(d[7]).logger.warn("FlowService: getEvmAddress not yet implemented via CadenceService"),null}),function(r){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(t){if(!r.instance){var n=t;if(!n)try{n=_r(d[9]).context.bridge}catch(r){throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.BRIDGE_NOT_FOUND,"FlowService requires bridge parameter or initialized ServiceContext",{bridge:t,error:r})}r.instance=new r(n)}return r.instance}}]);var t,n,o,a,u,f})(),v=e.FlowService=f,p=(function(){return(0,l.default)(function r(){(0,c.default)(this,r)},[{key:"getCollections",value:(t=(0,s.default)(function*(r){try{var t,n=yield _r(d[6]).NftService.id({address:r});return n&&n.data?null!=(t=n.data.map(function(r){return Object.assign({},r.collection,{type:_r(d[8]).WalletType.Flow,count:r.count})}))?t:[]:(_r(d[7]).logger.warn("[NFTService] Empty response for Flow NFT collections"),[])}catch(t){throw _r(d[7]).logger.error("Error fetching Flow NFT collections",t),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_COLLECTIONS_FETCH_FAILED,"Failed to fetch Flow NFT collections",{address:r,error:t})}}),function(r){return t.apply(this,arguments)})},{key:"getNFTs",value:(r=(0,s.default)(function*(r,t){var n,o,a,s,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0",l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,u=null==(n=t.path)?void 0:n.storage_path.split("/").pop();if(!u)throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_COLLECTION_PATH_NOT_FOUND,"Collection path not found",{address:r,collection:t.path});var f=yield _r(d[6]).NftService.collectionList({address:r,collectionIdentifier:u,offset:parseInt(c,10)||0,limit:l});return _r(d[7]).logger.debug("NFT list response:",f.data),{nfts:null!=(o=null==(a=f.data)||null==(a=a.nfts)?void 0:a.map(function(r){return Object.assign({},r,{type:_r(d[8]).WalletType.Flow})}))?o:[],offset:null==(s=f.data)?void 0:s.offset}}),function(t,n){return r.apply(this,arguments)})}]);var r,t})(),h=(function(){return(0,l.default)(function r(){(0,c.default)(this,r)},[{key:"getCollections",value:(t=(0,s.default)(function*(r){var t=Date.now();_r(d[7]).logger.debug("[NFTService] Starting EVM NFT collections fetch",{address:r,timestamp:(new Date).toISOString(),provider:"EvmNFTProvider"});try{var n,o;_r(d[7]).logger.debug("[NFTService] Calling FlowEvmNftService.id API",{address:r,method:"FlowEvmNftService.id",endpoint:"/api/v3/evm/nft/id"});var a=yield _r(d[6]).FlowEvmNftService.id({address:r}),s=Date.now()-t;if(_r(d[7]).logger.debug("[NFTService] FlowEvmNftService.id API response received",{address:r,duration:`${s}ms`,hasResponse:!!a,hasData:!(null==a||!a.data),dataLength:(null==a||null==(n=a.data)?void 0:n.length)||0,status:(null==a?void 0:a.status)||"unknown"}),!a||!a.data)return _r(d[7]).logger.warn("[NFTService] Empty response for EVM NFT collections",{address:r,duration:`${s}ms`,response:a,hasResponse:!!a,hasData:!(null==a||!a.data)}),[];var c=null!=(o=a.data.map(function(r){return Object.assign({},r.collection,{type:_r(d[8]).WalletType.EVM,count:r.count})}))?o:[];return _r(d[7]).logger.debug("[NFTService] Successfully processed EVM NFT collections",{address:r,duration:`${s}ms`,collectionsCount:c.length,collections:c.map(function(r){return{id:r.id,name:r.name,contractName:r.contractName,flowIdentifier:r.flowIdentifier,evmAddress:r.evmAddress,count:r.count}})}),c}catch(n){var l=Date.now()-t;throw _r(d[7]).logger.error("[NFTService] Failed to fetch EVM NFT collections",{address:r,duration:`${l}ms`,error:n instanceof Error?{name:n.name,message:n.message,stack:n.stack}:n,timestamp:(new Date).toISOString(),provider:"EvmNFTProvider",method:"getCollections"}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_COLLECTIONS_FETCH_FAILED,"Failed to fetch EVM NFT collections",{address:r,error:n})}}),function(r){return t.apply(this,arguments)})},{key:"getNFTs",value:(r=(0,s.default)(function*(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,a=Date.now();_r(d[7]).logger.debug("[NFTService] Starting EVM NFTs fetch",{address:r,collectionId:t.id,collectionName:t.name,flowIdentifier:t.flowIdentifier,offset:n,limit:o,timestamp:(new Date).toISOString(),provider:"EvmNFTProvider"});try{var s,c,l,u,f,v;_r(d[7]).logger.debug("[NFTService] Calling FlowEvmNftService.collectionList API",{address:r,collectionIdentifier:t.id||"undefined",offset:n,limit:o,method:"FlowEvmNftService.collectionList",endpoint:"/api/v3/evm/nft/collectionList"});var p=yield _r(d[6]).FlowEvmNftService.collectionList({address:r,collectionIdentifier:t.id||"",offset:n,limit:o}),h=Date.now()-a;_r(d[7]).logger.debug("[NFTService] FlowEvmNftService.collectionList API response received",{address:r,collectionId:t.id,duration:`${h}ms`,hasResponse:!!p,hasData:!(null==p||!p.data),nftCount:(null==p||null==(s=p.data)||null==(s=s.nfts)?void 0:s.length)||0,totalNftCount:(null==p||null==(c=p.data)?void 0:c.nftCount)||0,responseOffset:null==p||null==(l=p.data)?void 0:l.offset,status:(null==p?void 0:p.status)||"unknown"});var F=null!=(u=null==(f=p.data)||null==(f=f.nfts)?void 0:f.map(function(r){return Object.assign({},r,{type:_r(d[8]).WalletType.EVM})}))?u:[],E=null==(v=p.data)?void 0:v.offset;return _r(d[7]).logger.debug("[NFTService] Successfully processed EVM NFTs",{address:r,collectionId:t.id,duration:`${h}ms`,nftsCount:F.length,requestOffset:n,responseOffset:E,limit:o,hasMore:!!E,nfts:F.slice(0,3).map(function(r){return{id:r.id,name:r.name,collectionName:r.collectionName,contractAddress:r.contractAddress,evmAddress:r.evmAddress}})}),{nfts:F,offset:E}}catch(s){var w=Date.now()-a;throw _r(d[7]).logger.error("[NFTService] Failed to fetch EVM NFTs",{address:r,collectionId:t.id,collectionName:t.name,flowIdentifier:t.flowIdentifier,offset:n,limit:o,duration:`${w}ms`,error:s instanceof Error?{name:s.name,message:s.message,stack:s.stack}:s,timestamp:(new Date).toISOString(),provider:"EvmNFTProvider",method:"getNFTs"}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_FETCH_FAILED,"Failed to fetch EVM NFTs",{address:r,collectionId:t.id,offset:n,limit:o,error:s})}}),function(t,n){return r.apply(this,arguments)})}]);var r,t})(),F=e.NFTService=(t=(function(){function r(t,n){if((0,c.default)(this,r),this.nftProvider=t===_r(d[8]).WalletType.Flow?new p:new h,n)this.bridge=n;else try{this.bridge=(0,_r(d[9]).getServiceContext)().bridge}catch(r){_r(d[7]).logger.warn("[NFTService] ServiceContext not initialized, bridge will be null"),this.bridge=void 0}}return(0,l.default)(r,[{key:"getNFTCollections",value:(n=(0,s.default)(function*(r){var t=Date.now(),n=this.nftProvider instanceof h?"EVM":"Flow";_r(d[7]).logger.debug("[NFTService] Starting NFT collections fetch",{address:r,providerType:n,timestamp:(new Date).toISOString(),method:"getNFTCollections"});try{if(!r)throw _r(d[7]).logger.warn("[NFTService] No address provided for NFT collections",{providerType:n,timestamp:(new Date).toISOString()}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_INVALID_PARAMETERS,"No address provided for NFT collections",{address:r});var o=yield this.nftProvider.getCollections(r),a=Date.now()-t;return _r(d[7]).logger.debug("[NFTService] NFT collections fetch completed",{address:r,providerType:n,duration:`${a}ms`,collectionsCount:o.length,timestamp:(new Date).toISOString()}),o}catch(o){var s=Date.now()-t;if(o instanceof _r(d[8]).FRWError)throw o;throw _r(d[7]).logger.error("[NFTService] Error in getNFTCollections",{address:r,providerType:n,duration:`${s}ms`,error:o instanceof Error?{name:o.name,message:o.message,stack:o.stack}:o,timestamp:(new Date).toISOString(),method:"getNFTCollections"}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_COLLECTIONS_FETCH_FAILED,"Error in getNFTCollections",{address:r,error:o})}}),function(r){return n.apply(this,arguments)})},{key:"getNFTs",value:(t=(0,s.default)(function*(r,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:50,a=Date.now(),s=this.nftProvider instanceof h?"EVM":"Flow";_r(d[7]).logger.debug("[NFTService] Starting NFTs fetch",{address:r,providerType:s,collectionId:null==t?void 0:t.id,collectionName:null==t?void 0:t.name,offset:n,limit:o,timestamp:(new Date).toISOString(),method:"getNFTs"});try{if(!r||!t)throw _r(d[7]).logger.warn("[NFTService] Invalid parameters for getNFTs",{hasAddress:!!r,hasCollection:!!t,providerType:s,timestamp:(new Date).toISOString()}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_INVALID_PARAMETERS,"Invalid parameters for getNFTs",{address:r,collection:null==t?void 0:t.id});var c=yield this.nftProvider.getNFTs(r,t,n,o),l=Date.now()-a;return _r(d[7]).logger.debug("[NFTService] NFTs fetch completed",{address:r,providerType:s,collectionId:t.id,duration:`${l}ms`,nftsCount:c.nfts.length,offset:n,responseOffset:c.offset,limit:o,hasMore:!!c.offset,timestamp:(new Date).toISOString()}),c}catch(c){var u=Date.now()-a;if(c instanceof _r(d[8]).FRWError)throw c;throw _r(d[7]).logger.error("[NFTService] Error in getNFTs",{address:r,providerType:s,collectionId:null==t?void 0:t.id,collectionName:null==t?void 0:t.name,offset:n,limit:o,duration:`${u}ms`,error:c instanceof Error?{name:c.name,message:c.message,stack:c.stack}:c,timestamp:(new Date).toISOString(),method:"getNFTs"}),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.NFT_FETCH_FAILED,"Error in getNFTs",{address:r,collectionId:null==t?void 0:t.id,offset:n,limit:o,error:c})}}),function(r,n){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(t,n){var o=`${t}-${n?"with-bridge":"no-bridge"}`;return r.instances.has(o)||r.instances.set(o,new r(t,n)),r.instances.get(o)}}]);var t,n})(),t.instances=new Map,t),E=e.ProfileService=(function(){function r(){(0,c.default)(this,r)}return(0,l.default)(r,[{key:"register",value:(n=(0,s.default)(function*(r){try{if(!r.accountKey.public_key)throw new Error("public_key is required in accountKey");if(void 0===r.accountKey.sign_algo)throw new Error("sign_algo is required in accountKey");if(void 0===r.accountKey.hash_algo)throw new Error("hash_algo is required in accountKey");var t=_r(d[9]).bridge.getDeviceInfo(),n={username:r.username,accountKey:{public_key:r.accountKey.public_key,sign_algo:r.accountKey.sign_algo,hash_algo:r.accountKey.hash_algo,weight:1e3},deviceInfo:t};_r(d[7]).logger.info("[ProfileService] Registering user:",{username:n.username});var o=n.accountKey.public_key;if(2===n.accountKey.sign_algo&&!/^[0-9a-fA-F]{128}$/.test(o))throw _r(d[7]).logger.error("[ProfileService] Invalid public key for ECDSA secp256k1:",{length:o.length,expected:128,isHex:/^[0-9a-fA-F]+$/.test(o)}),new Error(`Invalid public key for ECDSA secp256k1: expected 128 hexadecimal characters (64 bytes), got ${o.length}`);var a=yield _r(d[6]).Userv3GoService.register(n);if(null==a||!a.custom_token||null==a||!a.id)throw new Error("Registration failed: Missing required fields (custom_token or id) in response");return _r(d[7]).logger.info("[ProfileService] Registration successful:",{userId:a.id}),a}catch(t){if(null!=t&&t.response){var s,c,l=t.response.status,u=t.response.statusText,f=t.response.data,v=(null==(s=t.config)?void 0:s.url)||"unknown",p=(null==(c=t.config)||null==(c=c.method)?void 0:c.toUpperCase())||"unknown";_r(d[7]).logger.error("[ProfileService] Registration failed with HTTP error:",{status:l,statusText:u,url:v,method:p,responseData:f||"No response data",username:r.username});var h=(null==f?void 0:f.message)||(null==f?void 0:f.error)||`Registration failed with status ${l}: ${u}`,F=new Error(h);throw F.status=l,F.responseData=f,F}var E;if(null!=t&&t.request)throw _r(d[7]).logger.error("[ProfileService] Registration failed - network error:",{message:t.message,code:t.code,requestUrl:(null==(E=t.config)?void 0:E.url)||"unknown"}),new Error(`Network error during registration: ${t.message}`);throw _r(d[7]).logger.error("[ProfileService] Registration failed:",t),t}}),function(r){return n.apply(this,arguments)})},{key:"createFlowAddress",value:(t=(0,s.default)(function*(){try{var r;_r(d[7]).logger.info("[ProfileService] Creating Flow address...");var t=yield _r(d[6]).UserGoService.address2(),n=null==(r=t.data)?void 0:r.txid;if(!n)throw _r(d[7]).logger.error("[ProfileService] No transaction ID found in response:",{response:t,hasData:!(null==t||!t.data)}),new Error("Failed to create Flow address: No transaction ID received");return _r(d[7]).logger.info("[ProfileService] Flow address creation initiated:",{txId:n}),n}catch(r){var o,a,s,c,l,u;throw _r(d[7]).logger.error("[ProfileService] Failed to create Flow address:",{message:null==r?void 0:r.message,status:null==r||null==(o=r.response)?void 0:o.status,statusText:null==r||null==(a=r.response)?void 0:a.statusText,url:(null==r||null==(s=r.config)?void 0:s.url)||(null==r||null==(c=r.request)?void 0:c.responseURL),method:null==r||null==(l=r.config)?void 0:l.method,responseData:null==r||null==(u=r.response)?void 0:u.data}),r}}),function(){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(){return r.instance||(r.instance=new r),r.instance}}]);var t,n})(),w=e.RecentRecipientsService=(function(){function r(t,n){(0,c.default)(this,r),this.bridge=t,this.storage=n}return(0,l.default)(r,[{key:"getAllRecentRecipients",value:(F=(0,s.default)(function*(){try{return yield this.getLocalRecentRecipients(),yield this.getServerRecentRecipients(),(yield this.mergeAndDeduplicateRecents(this.getLocalRecentRecipients(),this.getServerRecentRecipients())).map(function(r){return{id:r.id,name:r.name,emoji:r.emoji||"\ud83d\udc64",avatar:r.avatar,address:r.address,isActive:!1}})}catch(r){throw _r(d[7]).logger.error("Error fetching all recent recipients",r),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_FETCH_FAILED,"Failed to fetch all recent recipients",{})}}),function(){return F.apply(this,arguments)})},{key:"getLocalRecentRecipients",value:(h=(0,s.default)(function*(){try{var r=yield this.storage.get("recentRecipients");return r?(Array.isArray(r)?r:[]).sort(function(r,t){return t.lastUsed-r.lastUsed}):[]}catch(r){throw _r(d[7]).logger.error("Error fetching local recent recipients",r),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_LOCAL_FETCH_FAILED,"Failed to fetch local recent recipients",{})}}),function(){return h.apply(this,arguments)})},{key:"getServerRecentRecipients",value:(p=(0,s.default)(function*(){try{return(yield this.bridge.getRecentContacts()).contacts.map(function(r){return{id:r.id||r.address,name:r.name||r.contactName||"Unknown",address:r.address||"",emoji:r.emoji,avatar:r.avatar,lastUsed:Date.now(),source:"server"}})}catch(r){throw _r(d[7]).logger.error("Error fetching server recent recipients",r),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_SERVER_FETCH_FAILED,"Failed to fetch server recent recipients",{})}}),function(){return p.apply(this,arguments)})},{key:"addRecentRecipient",value:(v=(0,s.default)(function*(r){try{var t=yield this.getLocalRecentRecipients(),n={id:r.id||r.address,name:r.name,address:r.address,emoji:r.emoji,avatar:r.avatar,lastUsed:Date.now(),source:"local"},o=t.filter(function(t){return t.address!==r.address}),s=[n].concat((0,a.default)(o)).slice(0,10);yield this.storage.set("recentRecipients",s),_r(d[7]).logger.debug("Added recent recipient",{name:r.name,address:r.address})}catch(t){throw _r(d[7]).logger.error("Error adding recent recipient",t),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_ADD_FAILED,"Failed to add recent recipient",{recipient:r})}}),function(r){return v.apply(this,arguments)})},{key:"clearLocalRecentRecipients",value:(f=(0,s.default)(function*(){try{yield this.storage.delete("recentRecipients"),_r(d[7]).logger.debug("Cleared local recent recipients")}catch(r){throw _r(d[7]).logger.error("Error clearing local recent recipients",r),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_CLEAR_FAILED,"Failed to clear local recent recipients",{})}}),function(){return f.apply(this,arguments)})},{key:"mergeAndDeduplicateRecents",value:(u=(0,s.default)(function*(r,t){var n=yield Promise.all([r,t]),a=(0,o.default)(n,2),s=a[0],c=a[1],l=new Map;for(var u of c)u.address&&l.set(u.address,u);for(var f of s)f.address&&l.set(f.address,f);return Array.from(l.values()).sort(function(r,t){return t.lastUsed-r.lastUsed}).slice(0,10)}),function(r,t){return u.apply(this,arguments)})},{key:"isAddressInRecents",value:(n=(0,s.default)(function*(r){return(yield this.getLocalRecentRecipients()).some(function(t){return t.address===r})}),function(r){return n.apply(this,arguments)})},{key:"getRecentRecipientByAddress",value:(t=(0,s.default)(function*(r){return(yield this.getLocalRecentRecipients()).find(function(t){return t.address===r})||null}),function(r){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(t,n){if(!r.instance){var o=t,a=n;if(!o)try{o=(0,_r(d[9]).getServiceContext)().bridge}catch(r){throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.BRIDGE_NOT_FOUND,"RecentRecipientsService requires bridge parameter or initialized ServiceContext",{bridge:t})}if(!a)try{a=(0,_r(d[9]).getServiceContext)().storage}catch(r){throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.RECENT_RECIPIENTS_STORAGE_NOT_FOUND,"RecentRecipientsService requires storage parameter or initialized ServiceContext",{storage:n})}r.instance=new r(o,a)}return r.instance}}]);var t,n,u,f,v,p,h,F})(),y=(function(){return(0,l.default)(function r(){(0,c.default)(this,r)},[{key:"getData",value:(r=(0,s.default)(function*(r,t,n){try{var o=yield _r(d[6]).UserFtTokensService.ft({address:r,network:t,currency:n});return null==o?void 0:o.data}catch(o){throw _r(d[7]).logger.error("[FlowTokenProvider] Failed to fetch token data:",o),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.TOKEN_FLOW_FETCH_FAILED,"Failed to fetch Flow token data",{address:r,network:t,currency:n,error:o})}}),function(t,n,o){return r.apply(this,arguments)})},{key:"processData",value:function(r){var t,n=r;if(!n)return _r(d[7]).logger.warn("[FlowTokenProvider] No data to process"),[];var o=null==n||null==(t=n.result)?void 0:t.map(function(r){return(0,_r(d[8]).mapCadenceTokenDataWithCurrencyToTokenModel)(r)});return null!=o?o:[]}}]);var r})(),S=(function(){return(0,l.default)(function r(){(0,c.default)(this,r)},[{key:"getData",value:(r=(0,s.default)(function*(r,t,n){try{var o,a=yield _r(d[6]).UserFtTokensService.ft1({address:r,network:t,currency:n});return null!=(o=null==a?void 0:a.data)?o:[]}catch(o){throw _r(d[7]).logger.error("[ERC20TokenProvider] Failed to fetch token data:",o),new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.TOKEN_ERC20_FETCH_FAILED,"Failed to fetch ERC20 token data",{address:r,network:t,currency:n,error:o})}}),function(t,n,o){return r.apply(this,arguments)})},{key:"processData",value:function(r){var t=r;return Array.isArray(t)?t.map(function(r){return(0,_r(d[8]).mapERC20TokenToTokenModel)(r)}):(_r(d[7]).logger.warn("[ERC20TokenProvider] Invalid data format, expected array"),[])}}]);var r})(),T=e.TokenService=(n=(function(){function r(t,n){if((0,c.default)(this,r),this.tokenProvider=t===_r(d[8]).WalletType.Flow?new y:new S,n)this.bridge=n;else try{this.bridge=(0,_r(d[9]).getServiceContext)().bridge}catch(r){_r(d[7]).logger.warn("[TokenService] ServiceContext not initialized, bridge will be null"),this.bridge=void 0}}return(0,l.default)(r,[{key:"getTokenInfo",value:(t=(0,s.default)(function*(r,t,n){try{var o=n||"USD",a=yield this.tokenProvider.getData(r,t,o);return this.tokenProvider.processData(a)}catch(o){if(_r(d[7]).logger.error("[TokenService] Failed to get token info:",o),o instanceof _r(d[8]).FRWError)throw o;throw new(_r(d[8]).FRWError)(_r(d[8]).ErrorCode.TOKEN_INFO_FETCH_FAILED,"Failed to get token info",{address:r,network:t,currency:n,error:o})}}),function(r,n,o){return t.apply(this,arguments)})}],[{key:"getInstance",value:function(t,n){var o=`${t}-${n?"with-bridge":"no-bridge"}`;return r.instances.has(o)||r.instances.set(o,new r(t,n)),r.instances.get(o)}}]);var t})(),n.instances=new Map,n);e.flowService=function(){var r=(0,_r(d[9]).getServiceContext)().bridge;return v.getInstance(r)},e.addressBookService=function(){var r=(0,_r(d[9]).getServiceContext)().bridge;return u.getInstance(r)},e.recentRecipientsService=function(){var r=(0,_r(d[9]).getServiceContext)().bridge;return w.getInstance(r)},e.tokenService=function(r){var t=(0,_r(d[9]).getServiceContext)().bridge;return T.getInstance(r,t)},e.nftService=function(r){var t=(0,_r(d[9]).getServiceContext)().bridge;return F.getInstance(r,t)},e.profileService=function(){return E.getInstance()}},798,[1,19,32,367,3,4,799,2,8,805]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.Userv3GoService=e.UserGoService=e.UserFtTokensService=e.ScriptsService=e.ProfileGoService=e.PricesService=e.PayerService=e.PagedResultDto=e.NftService=e.NftGoService=e.Network=e.MetadataService=e.ListResultDto=e.FtService=e.FlowEvmTokensService=e.FlowEvmNftService=e.EnumPayerSignParamsNetwork=e.EnumAuthSignParamsNetwork=e.DeviceGoService=e.DeprecatedService=e.CurrenciesService=e.CryptoGoService=e.CoinGoService=e.AddressbookService=e.AccountService=e.AccountGoService=void 0,e.axios=p,e.basePath=void 0,e.configureApiEndpoints=function(n,o,s,v){var l=u.default.create({baseURL:n,timeout:3e4});l.interceptors.request.use((function(){var n=(0,t.default)(function*(n){var t=yield s();return n.headers.Authorization=`Bearer ${t}`,n.headers.network=v(),n});return function(t){return n.apply(this,arguments)}})(),function(n){return Promise.reject(n)}),l.interceptors.response.use(function(n){return n},function(n){return Promise.reject(n)}),f.axios=l;var p=u.default.create({baseURL:o,timeout:3e4});p.interceptors.request.use((function(){var n=(0,t.default)(function*(n){var t=yield s();return n.headers.Authorization=`Bearer ${t}`,n.headers.network=v(),n});return function(t){return n.apply(this,arguments)}})(),function(n){return Promise.reject(n)}),c.axios=p},e.getConfigs=h,e.goServiceOptions=void 0,e.isApiConfigured=function(){return!(!f.axios||!c.axios)},e.serviceOptions=void 0;var t=n(r(d[1])),o=n(r(d[2])),s=n(r(d[3])),u=n(r(d[4])),c=e.goServiceOptions={};function v(n,t,o){if(c.axios)return c.axios.request(n).then(function(n){t(n.data)}).catch(function(n){o(n)});throw new Error("please inject yourself instance like axios ")}function l(n,t,o,s){var u=Object.assign({loading:c.loading,showError:c.showError},s,{method:n,url:o});return u.headers=Object.assign({},s.headers,{"Content-Type":t}),u}e.CryptoGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"exchange",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/crypto/exchange",t);u.params={provider:n.provider,pair:n.pair,after:n.after,period:n.period},v(u,o,s)})}},{key:"history",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/crypto/history",t);u.params={provider:n.provider,pair:n.pair,after:n.after,period:n.period},v(u,o,s)})}},{key:"summary",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/crypto/summary",t);u.params={provider:n.provider,pair:n.pair},v(u,o,s)})}},{key:"map",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/crypto/map",t);u.params={provider:n.provider,pair:n.pair},v(u,o,s)})}}])})(),e.NftGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"meta",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/nft/meta",t);u.params={address:n.address,contractName:n.contractName,contractAddress:n.contractAddress,tokenId:n.tokenId},v(u,o,s)})}},{key:"list",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/nft/list",t);u.params={address:n.address,offset:n.offset,limit:n.limit},v(u,o,s)})}},{key:"collections",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/collections",t);u.params={address:n.address},v(u,o,s)})}},{key:"detail",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/detail",t);u.params={address:n.address,contractName:n.contractName,nftID:n.nftId},v(u,o,s)})}},{key:"list1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/detail/list",t);u.params={address:n.address,limit:n.limit,offset:n.offset},v(u,o,s)})}},{key:"favorite",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/favorite",t);u.params={address:n.address},v(u,o,s)})}},{key:"favorite1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("put","application/json","/v2/nft/favorite",t),c={contract:n.contract,ids:n.ids,address:n.address};u.data=c,v(u,o,s)})}},{key:"favorite2",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v2/nft/favorite",t),c=n.ids;u.data=c,v(u,o,s)})}},{key:"list2",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/list",t);u.params={address:n.address,offset:n.offset,limit:n.limit},v(u,o,s)})}},{key:"meta1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/meta",t);u.params={address:n.address,contractName:n.contractName,contractAddress:n.contractAddress,tokenId:n.tokenId},v(u,o,s)})}},{key:"single",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/nft/single",t);u.params={address:n.address,contractName:n.contractName,limit:n.limit,offset:n.offset},v(u,o,s)})}},{key:"favorite3",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v3/nft/favorite",t);u.params={address:n.address},v(u,o,s)})}}])})(),e.AccountGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"info",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/account/info",t);u.params={address:n.address},v(u,o,s)})}},{key:"query",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/account/query",t);u.params={query:n.query},v(u,o,s)})}},{key:"signpayer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/account/signpayer",t);u.params={transaction:n.transaction},v(u,o,s)})}},{key:"tokentransfer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/account/tokentransfer",t);u.params={address:n.address,token:n.token,limit:n.limit,after:n.after},v(u,o,s)})}},{key:"transaction",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/account/transaction",t);u.params={address:n.address,limit:n.limit,offset:n.offset},v(u,o,s)})}},{key:"transfer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/account/transfer",t);u.params={address:n.address,limit:n.limit},v(u,o,s)})}},{key:"transfers",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/account/transfers",t);u.params={address:n.address,limit:n.limit,after:n.after},v(u,o,s)})}},{key:"query1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/account/query",t);u.params={address:n.address,limit:n.limit,after:n.after},v(u,o,s)})}},{key:"tokentransfer1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/account/tokentransfer",t);u.params={address:n.address,token:n.token,limit:n.limit,after:n.after},v(u,o,s)})}},{key:"transfers1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v2/account/transfers",t);u.params={address:n.address,limit:n.limit,after:n.after},v(u,o,s)})}}])})(),e.AddressbookService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"contact",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v1/addressbook/contact",n),t,o)})}},{key:"contact1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("put","application/json","/v1/addressbook/contact",t),c={contact_name:n.contactName,username:n.username,address:n.address,domain:n.domain,domain_type:n.domainType};u.data=c,v(u,o,s)})}},{key:"contact2",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/addressbook/contact",t),c={id:n.id,contact_name:n.contactName,address:n.address,domain:n.domain,domain_type:n.domainType};u.data=c,v(u,o,s)})}},{key:"contact3",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("delete","application/json","/v1/addressbook/contact",t);u.params={id:n.id},v(u,o,s)})}},{key:"external",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("put","application/json","/v1/addressbook/external",t),c={contact_name:n.contactName,address:n.address,domain:n.domain,domain_type:n.domainType};u.data=c,v(u,o,s)})}}])})(),e.CoinGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"map",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v1/coin/map",n),t,o)})}},{key:"rate",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/coin/rate",t);u.params={coinId:n.coinId},v(u,o,s)})}}])})(),e.UserGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"login",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/login",t),c={public_key:n.publicKey,signature:n.signature};u.data=c,v(u,o,s)})}},{key:"register",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/mobile/register",t),c={username:n.username,account_key:n.accountKey};u.data=c,v(u,o,s)})}},{key:"address",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("post","application/json","/v1/mobile/user/address",n),t,o)})}},{key:"register1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/register",t),c={username:n.username,account_key:n.accountKey};u.data=c,v(u,o,s)})}},{key:"address1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("post","application/json","/v1/user/address",n),t,o)})}},{key:"network",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/user/address/network",t),c={account_key:n.accountKey,network:n.network};u.data=c,v(u,o,s)})}},{key:"check",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/check",t);u.params={username:n.username},v(u,o,s)})}},{key:"info",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v1/user/info",n),t,o)})}},{key:"recaptcha",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/recaptcha",t);u.params={token:n.token},v(u,o,s)})}},{key:"search",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/search",t);u.params={keyword:n.keyword},v(u,o,s)})}},{key:"searchaddress",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/searchaddress",t);u.params={keyword:n.keyword},v(u,o,s)})}},{key:"token",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/user/token",t),c=n.pushToken;u.data=c,v(u,o,s)})}},{key:"wallet",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v1/user/wallet",n),t,o)})}},{key:"login1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v2/login",t),c={public_key:n.publicKey,signature:n.signature};u.data=c,v(u,o,s)})}},{key:"address2",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("post","application/json","/v2/user/address",n),t,o)})}},{key:"manualaddress",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v2/user/manualaddress",t),c=n.accountKey;u.data=c,v(u,o,s)})}},{key:"wallet1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v2/user/wallet",n),t,o)})}}])})(),e.ProfileGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"profile",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/profile",t),c={nickname:n.nickname,avatar:n.avatar};u.data=c,v(u,o,s)})}},{key:"preference",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/profile/preference",t),c=n.private;u.data=c,v(u,o,s)})}}])})(),e.DeviceGoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"device",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/device",t);u.params={device_id:n.deviceId},v(u,o,s)})}},{key:"device1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("put","application/json","/v1/user/device",t),c={device_info:n.deviceInfo,wallet_id:n.walletId,wallettest_id:n.wallettestId};u.data=c,v(u,o,s)})}},{key:"device2",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v1/user/device",t),c=n.deviceId;u.data=c,v(u,o,s)})}},{key:"keys",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){v(l("get","application/json","/v1/user/keys",n),t,o)})}},{key:"location",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v1/user/location",t);u.params={ip:n.ip},v(u,o,s)})}},{key:"device3",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("put","application/json","/v3/user/device",t),c={device_info:n.deviceInfo,wallet_id:n.walletId,wallettest_id:n.wallettestId};u.data=c,v(u,o,s)})}},{key:"device4",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/user/device",t),c=n.deviceId;u.data=c,v(u,o,s)})}},{key:"location1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v3/user/location",t);u.params={ip:n.ip},v(u,o,s)})}}])})(),e.Userv3GoService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"checkimport",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("get","application/json","/v3/checkimport",t);console.warn("\u9002\u914d\u79fb\u52a8\u5f00\u53d1\uff08iOS13 \u7b49\u7248\u672c\uff09\uff0c\u53ea\u6709 POST\u3001PUT \u7b49\u8bf7\u6c42\u5141\u8bb8\u5e26body");var c={account_key:n.accountKey,signatures:n.signatures,backup_info:n.backupInfo};u.data=c,v(u,o,s)})}},{key:"import",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/import",t),c={account_key:n.accountKey,signatures:n.signatures,device_info:n.deviceInfo};u.data=c,v(u,o,s)})}},{key:"login",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/login",t),c={signature:n.signature,account_key:n.accountKey,device_info:n.deviceInfo};u.data=c,v(u,o,s)})}},{key:"register",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/register",t),c={username:n.username,account_key:n.accountKey,device_info:n.deviceInfo};u.data=c,v(u,o,s)})}},{key:"signed",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/signed",t),c={account_key:n.accountKey,signatures:n.signatures,backup_info:n.backupInfo};u.data=c,v(u,o,s)})}},{key:"sync",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=l("post","application/json","/v3/sync",t),c={account_key:n.accountKey,device_info:n.deviceInfo,backup_info:n.backupInfo};u.data=c,v(u,o,s)})}}])})();var f=e.serviceOptions={};function p(n,t,o){if(f.axios)return f.axios.request(n).then(function(n){t(n.data)}).catch(function(n){o(n)});throw new Error("please inject yourself instance like axios ")}function h(n,t,o,s){var u=Object.assign({loading:f.loading,showError:f.showError},s,{method:n,url:o});return u.headers=Object.assign({},s.headers,{"Content-Type":t}),u}var y=e.basePath="",k=(e.ListResultDto=(0,s.default)(function n(){(0,o.default)(this,n)}),e.PagedResultDto=(0,s.default)(function n(){(0,o.default)(this,n)}),e.MetadataService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"user",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/metadata/user/{address}";p(h("get","application/json",u=u.replace("{address}",n.address+""),t),o,s)})}},{key:"user1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/metadata/user/{address}";p(h("post","application/json",u=u.replace("{address}",n.address+""),t),o,s)})}},{key:"metadatas",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){p(h("get","application/json",y+"/api/metadata/user/metadatas",n),t,o)})}}])})(),e.DeprecatedService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"signAsBridgeFeePayer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){p(h("post","application/json",y+"/api/signAsBridgeFeePayer",n),t,o)})}}])})(),e.PayerService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"signAsBridgePayer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("post","application/json",y+"/api/signAsBridgePayer",t),c=n.body;u.data=c,p(u,o,s)})}},{key:"signAsFeePayer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("post","application/json",y+"/api/signAsFeePayer",t),c=n.body;u.data=c,p(u,o,s)})}},{key:"status",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v1/payer/status",t);u.params={network:n.network},p(u,o,s)})}}])})(),e.AccountService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"tokenTransfers",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v1/account/token-transfers",t);u.params={address:n.address,limit:n.limit,after:n.after,token:n.token},p(u,o,s)})}},{key:"transfers",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v1/account/transfers",t);u.params={address:n.address,limit:n.limit,after:n.after},p(u,o,s)})}},{key:"keyIndexer",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/v4/key-indexer/{publicKey}";p(h("get","application/json",u=u.replace("{publicKey}",n.publicKey+""),t),o,s)})}}])})(),e.NftService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"collectionList",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v2/nft/collectionList",t);u.params={address:n.address,collectionIdentifier:n.collectionIdentifier,offset:n.offset,limit:n.limit},p(u,o,s)})}},{key:"collections",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){p(h("get","application/json",y+"/api/v2/nft/collections",n),t,o)})}},{key:"id",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v2/nft/id",t);u.params={address:n.address},p(u,o,s)})}},{key:"list",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v2/nft/list",t);u.params={address:n.address,offset:n.offset,limit:n.limit},p(u,o,s)})}}])})(),e.ScriptsService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"scripts",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){p(h("get","application/json",y+"/api/v2/scripts",n),t,o)})}}])})(),e.UserFtTokensService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"fts",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/v3/evm/{address}/fts",c=h("get","application/json",u=u.replace("{address}",n.address+""),t);c.params={offset:n.offset,limit:n.limit},p(c,o,s)})}},{key:"ft",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/v4/cadence/tokens/ft/{address}",c=h("get","application/json",u=u.replace("{address}",n.address+""),t);c.params={network:n.network,currency:n.currency},p(c,o,s)})}},{key:"ft1",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=y+"/api/v4/evm/tokens/ft/{address}",c=h("get","application/json",u=u.replace("{address}",n.address+""),t);c.params={network:n.network,currency:n.currency},p(c,o,s)})}}])})(),e.FlowEvmNftService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"collectionList",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v3/evm/nft/collectionList",t);u.params={address:n.address,collectionIdentifier:n.collectionIdentifier,offset:n.offset,limit:n.limit},p(u,o,s)})}},{key:"id",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v3/evm/nft/id",t);u.params={address:n.address,offset:n.offset,limit:n.limit},p(u,o,s)})}},{key:"list",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v3/evm/nft/list",t);u.params={address:n.address,offset:n.offset,limit:n.limit},p(u,o,s)})}}])})(),e.FtService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"full",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v3/fts/full",t);u.params={network:n.network,chain_type:n.chainType},p(u,o,s)})}}])})(),e.CurrenciesService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"currencies",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise(function(t,o){p(h("get","application/json",y+"/api/v4/currencies",n),t,o)})}}])})(),e.FlowEvmTokensService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"lookup",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("post","application/json",y+"/api/v4/evm/tokens/ft/lookup",t);u.params={currency:n.currency},p(u,o,s)})}}])})(),e.PricesService=(function(){return(0,s.default)(function n(){(0,o.default)(this,n)},null,[{key:"prices",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(o,s){var u=h("get","application/json",y+"/api/v4/prices",t);u.params={currency:n.currency},p(u,o,s)})}}])})(),e.Network=(function(n){return n.mainnet="mainnet",n.testnet="testnet",n})(k||{})),w=e.EnumPayerSignParamsNetwork=(function(n){return n.mainnet="mainnet",n.testnet="testnet",n})(w||{}),P=e.EnumAuthSignParamsNetwork=(function(n){return n.mainnet="mainnet",n.testnet="testnet",n.sandboxnet="sandboxnet",n})(P||{})},799,[1,367,3,4,800]); +__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,Image:!0,Paragraph:!0,ScrollView:!0,Spinner:!0,Stack:!0,TamaguiProvider:!0,useTheme:!0,View:!0,XStack:!0,YStack:!0,PortalProvider:!0,FlatList:!0,tamaguiConfig:!0,extensionTamaguiConfig:!0};Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return t.FlatList}}),Object.defineProperty(_e,"H1",{enumerable:!0,get:function(){return _r(d[0]).H1}}),Object.defineProperty(_e,"H2",{enumerable:!0,get:function(){return _r(d[0]).H2}}),Object.defineProperty(_e,"H3",{enumerable:!0,get:function(){return _r(d[0]).H3}}),Object.defineProperty(_e,"H4",{enumerable:!0,get:function(){return _r(d[0]).H4}}),Object.defineProperty(_e,"H5",{enumerable:!0,get:function(){return _r(d[0]).H5}}),Object.defineProperty(_e,"H6",{enumerable:!0,get:function(){return _r(d[0]).H6}}),Object.defineProperty(_e,"Image",{enumerable:!0,get:function(){return _r(d[0]).Image}}),Object.defineProperty(_e,"Paragraph",{enumerable:!0,get:function(){return _r(d[0]).Paragraph}}),Object.defineProperty(_e,"PortalProvider",{enumerable:!0,get:function(){return _r(d[0]).PortalProvider}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return _r(d[0]).ScrollView}}),Object.defineProperty(_e,"Spinner",{enumerable:!0,get:function(){return _r(d[0]).Spinner}}),Object.defineProperty(_e,"Stack",{enumerable:!0,get:function(){return _r(d[0]).Stack}}),Object.defineProperty(_e,"TamaguiProvider",{enumerable:!0,get:function(){return _r(d[0]).TamaguiProvider}}),Object.defineProperty(_e,"View",{enumerable:!0,get:function(){return _r(d[0]).View}}),Object.defineProperty(_e,"XStack",{enumerable:!0,get:function(){return _r(d[0]).XStack}}),Object.defineProperty(_e,"YStack",{enumerable:!0,get:function(){return _r(d[0]).YStack}}),Object.defineProperty(_e,"extensionTamaguiConfig",{enumerable:!0,get:function(){return _r(d[1]).extensionTamaguiConfig}}),Object.defineProperty(_e,"tamaguiConfig",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"useTheme",{enumerable:!0,get:function(){return _r(d[0]).useTheme}}),Object.keys(_r(d[2])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[2])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[2])[t]}}))}),Object.keys(_r(d[3])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[3])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[3])[t]}}))}),Object.keys(_r(d[4])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[4])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[4])[t]}}))}),Object.keys(_r(d[5])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[5])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[5])[t]}}))}),Object.keys(_r(d[6])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[6])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[6])[t]}}))}),Object.keys(_r(d[7])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[7])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[7])[t]}}))}),Object.keys(_r(d[8])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[8])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[8])[t]}}))}),Object.keys(_r(d[9])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[9])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[9])[t]}}))}),Object.keys(_r(d[10])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[10])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[10])[t]}}))});var t=_r(d[11]);Object.keys(_r(d[12])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[12])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[12])[t]}}))}),Object.keys(_r(d[13])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[13])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[13])[t]}}))}),Object.keys(_r(d[14])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[14])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[14])[t]}}))}),Object.keys(_r(d[15])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[15])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[15])[t]}}))}),Object.keys(_r(d[16])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[16])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[16])[t]}}))}),Object.keys(_r(d[17])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[17])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[17])[t]}}))}),Object.keys(_r(d[18])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[18])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[18])[t]}}))}),Object.keys(_r(d[19])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[19])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[19])[t]}}))}),Object.keys(_r(d[20])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[20])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[20])[t]}}))}),Object.keys(_r(d[21])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[21])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[21])[t]}}))}),Object.keys(_r(d[22])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[22])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[22])[t]}}))}),Object.keys(_r(d[23])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[23])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[23])[t]}}))}),Object.keys(_r(d[24])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[24])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[24])[t]}}))}),Object.keys(_r(d[25])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[25])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[25])[t]}}))}),Object.keys(_r(d[26])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[26])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[26])[t]}}))}),Object.keys(_r(d[27])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[27])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[27])[t]}}))}),Object.keys(_r(d[28])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[28])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[28])[t]}}))}),Object.keys(_r(d[29])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[29])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[29])[t]}}))}),Object.keys(_r(d[30])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[30])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[30])[t]}}))}),Object.keys(_r(d[31])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[31])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[31])[t]}}))}),Object.keys(_r(d[32])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[32])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[32])[t]}}))}),Object.keys(_r(d[33])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[33])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[33])[t]}}))}),Object.keys(_r(d[34])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[34])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[34])[t]}}))}),Object.keys(_r(d[35])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[35])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[35])[t]}}))}),Object.keys(_r(d[36])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[36])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[36])[t]}}))}),Object.keys(_r(d[37])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[37])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[37])[t]}}))}),Object.keys(_r(d[38])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[38])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[38])[t]}}))}),Object.keys(_r(d[39])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[39])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[39])[t]}}))}),Object.keys(_r(d[40])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[40])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[40])[t]}}))}),Object.keys(_r(d[41])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[41])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[41])[t]}}))}),Object.keys(_r(d[42])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[42])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[42])[t]}}))}),Object.keys(_r(d[43])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[43])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[43])[t]}}))}),Object.keys(_r(d[44])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[44])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[44])[t]}}))}),Object.keys(_r(d[45])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[45])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[45])[t]}}))}),Object.keys(_r(d[46])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[46])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[46])[t]}}))}),Object.keys(_r(d[47])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[47])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[47])[t]}}))}),Object.keys(_r(d[48])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[48])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[48])[t]}}))}),Object.keys(_r(d[49])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[49])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[49])[t]}}))}),Object.keys(_r(d[50])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[50])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[50])[t]}}))}),Object.keys(_r(d[51])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[51])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[51])[t]}}))}),Object.keys(_r(d[52])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[52])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[52])[t]}}))}),Object.keys(_r(d[53])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[53])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[53])[t]}}))}),Object.keys(_r(d[54])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[54])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[54])[t]}}))}),Object.keys(_r(d[55])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[55])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[55])[t]}}))}),Object.keys(_r(d[56])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[56])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[56])[t]}}))}),Object.keys(_r(d[57])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[57])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[57])[t]}}))}),Object.keys(_r(d[58])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[58])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[58])[t]}}))}),Object.keys(_r(d[59])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[59])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[59])[t]}}))}),Object.keys(_r(d[60])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[60])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[60])[t]}}))}),Object.keys(_r(d[61])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[61])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[61])[t]}}))}),Object.keys(_r(d[62])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[62])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[62])[t]}}))}),Object.keys(_r(d[63])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[63])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[63])[t]}}))}),Object.keys(_r(d[64])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[64])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[64])[t]}}))}),Object.keys(_r(d[65])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[65])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[65])[t]}}))}),Object.keys(_r(d[66])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[66])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[66])[t]}}))}),Object.keys(_r(d[67])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[67])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[67])[t]}}))}),Object.keys(_r(d[68])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[68])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[68])[t]}}))});var r=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,c,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((c=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(c.get||c.set)?o(u,f,c):u[f]=e[f]);return u})(e,t)})(_r(d[69]));Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===r[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return r[t]}}))}),Object.keys(_r(d[70])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[70])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[70])[t]}}))}),Object.keys(_r(d[71])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[71])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[71])[t]}}))}),Object.keys(_r(d[72])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[72])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[72])[t]}}))}),Object.keys(_r(d[73])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[73])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[73])[t]}}))})},794,[795,1118,1155,1156,1157,1158,1160,1161,1159,1162,1163,28,1164,1165,1280,1282,1283,1285,1279,1286,1287,1288,1289,1298,1301,1304,1305,1281,1303,1306,1307,1308,1302,1311,1312,1314,1319,1316,1317,1318,1321,1322,1323,1324,1325,1284,1326,1320,1327,1328,1329,1315,1331,1332,1333,1334,1335,1336,1338,1313,1339,1340,1341,1342,1343,1330,1344,1346,1348,1366,1154,1367,1368,1355]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,f,p){if(c&&"object"==typeof c||"function"==typeof c){var x=function(u){!s.call(t,u)&&u!==f&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var l of u(c))x(l)}return t},f=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{ComponentContext:function(){return r(d[0]).ComponentContext},Configuration:function(){return r(d[0]).Configuration},FontLanguage:function(){return r(d[0]).FontLanguage},GroupContext:function(){return r(d[0]).GroupContext},Spacer:function(){return r(d[0]).Spacer},Stack:function(){return r(d[0]).Stack},Theme:function(){return r(d[0]).Theme},Unspaced:function(){return r(d[0]).Unspaced},View:function(){return r(d[0]).View},createComponent:function(){return r(d[0]).createComponent},createFont:function(){return r(d[0]).createFont},createShorthands:function(){return r(d[0]).createShorthands},createStyledContext:function(){return r(d[0]).createStyledContext},createTheme:function(){return r(d[0]).createTheme},createTokens:function(){return r(d[0]).createTokens},createVariable:function(){return r(d[0]).createVariable},getCSSStylesAtomic:function(){return r(d[0]).getCSSStylesAtomic},getConfig:function(){return r(d[0]).getConfig},getMedia:function(){return r(d[0]).getMedia},getThemes:function(){return r(d[0]).getThemes},getToken:function(){return r(d[0]).getToken},getTokenValue:function(){return r(d[0]).getTokenValue},getTokens:function(){return r(d[0]).getTokens},getVariable:function(){return r(d[0]).getVariable},getVariableName:function(){return r(d[0]).getVariableName},getVariableValue:function(){return r(d[0]).getVariableValue},insertFont:function(){return r(d[0]).insertFont},isChrome:function(){return r(d[0]).isChrome},isClient:function(){return r(d[0]).isClient},isServer:function(){return r(d[0]).isServer},isTamaguiComponent:function(){return r(d[0]).isTamaguiComponent},isTamaguiElement:function(){return r(d[0]).isTamaguiElement},isTouchable:function(){return r(d[0]).isTouchable},isVariable:function(){return r(d[0]).isVariable},isWeb:function(){return r(d[0]).isWeb},isWebTouchable:function(){return r(d[0]).isWebTouchable},matchMedia:function(){return r(d[0]).matchMedia},mediaObjectToString:function(){return r(d[0]).mediaObjectToString},mediaQueryConfig:function(){return r(d[0]).mediaQueryConfig},mediaState:function(){return r(d[0]).mediaState},setConfig:function(){return r(d[0]).setConfig},setOnLayoutStrategy:function(){return r(d[0]).setOnLayoutStrategy},setupDev:function(){return r(d[0]).setupDev},setupReactNative:function(){return r(d[0]).setupReactNative},spacedChildren:function(){return r(d[0]).spacedChildren},styled:function(){return r(d[0]).styled},themeable:function(){return r(d[0]).themeable},useConfiguration:function(){return r(d[0]).useConfiguration},useDidFinishSSR:function(){return r(d[0]).useDidFinishSSR},useEvent:function(){return r(d[0]).useEvent},useGet:function(){return r(d[0]).useGet},useIsTouchDevice:function(){return r(d[0]).useIsTouchDevice},useIsomorphicLayoutEffect:function(){return r(d[0]).useIsomorphicLayoutEffect},useMedia:function(){return r(d[0]).useMedia},useProps:function(){return r(d[0]).useProps},usePropsAndStyle:function(){return r(d[0]).usePropsAndStyle},useStyle:function(){return r(d[0]).useStyle},useTheme:function(){return r(d[0]).useTheme},useThemeName:function(){return r(d[0]).useThemeName},variableToString:function(){return r(d[0]).variableToString},withStaticProperties:function(){return r(d[0]).withStaticProperties}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t)),f(p,r(d[1]),m.exports),f(p,r(d[2]),m.exports),f(p,r(d[3]),m.exports),f(p,r(d[4]),m.exports),f(p,r(d[5]),m.exports),f(p,r(d[6]),m.exports),f(p,r(d[7]),m.exports),f(p,r(d[8]),m.exports),f(p,r(d[9]),m.exports),f(p,r(d[10]),m.exports),f(p,r(d[11]),m.exports),f(p,r(d[12]),m.exports),f(p,r(d[13]),m.exports),f(p,r(d[14]),m.exports),f(p,r(d[15]),m.exports),f(p,r(d[16]),m.exports),f(p,r(d[17]),m.exports),f(p,r(d[18]),m.exports),f(p,r(d[19]),m.exports),f(p,r(d[20]),m.exports),f(p,r(d[21]),m.exports),f(p,r(d[22]),m.exports),f(p,r(d[23]),m.exports),f(p,r(d[24]),m.exports),f(p,r(d[25]),m.exports),f(p,r(d[26]),m.exports),f(p,r(d[27]),m.exports),f(p,r(d[28]),m.exports),f(p,r(d[29]),m.exports),f(p,r(d[30]),m.exports),f(p,r(d[31]),m.exports),f(p,r(d[32]),m.exports),f(p,r(d[33]),m.exports),f(p,r(d[34]),m.exports),f(p,r(d[35]),m.exports),f(p,r(d[36]),m.exports),f(p,r(d[37]),m.exports),f(p,r(d[38]),m.exports),f(p,r(d[39]),m.exports),f(p,r(d[40]),m.exports),f(p,r(d[41]),m.exports),f(p,r(d[42]),m.exports),f(p,r(d[43]),m.exports),f(p,r(d[44]),m.exports),f(p,r(d[45]),m.exports),f(p,r(d[46]),m.exports),f(p,r(d[47]),m.exports),f(p,r(d[48]),m.exports),f(p,r(d[49]),m.exports),f(p,r(d[50]),m.exports),f(p,r(d[51]),m.exports),f(p,r(d[52]),m.exports),f(p,r(d[53]),m.exports)},795,[796,914,951,964,934,996,1004,1012,1014,860,971,966,1006,1029,1031,906,1034,1008,1002,1020,1035,1037,1039,953,1049,1051,987,1061,1066,998,968,1076,923,1081,1087,944,1091,1096,1099,918,1075,937,1102,1105,1107,1108,1109,1110,1111,1112,1113,1115,1116,1117]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,l=function(t,n,c,l){if(n&&"object"==typeof n||"function"==typeof n){var p=function(s){!f.call(t,s)&&s!==c&&o(t,s,{get:function(){return n[s]},enumerable:!(l=u(n,s))||l.enumerable})};for(var v of s(n))p(v)}return t},p=function(t,n,o){return l(t,n,"default"),o&&l(o,n,"default")},v={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(v,{LayoutMeasurementController:function(){return r(d[0]).LayoutMeasurementController},Stack:function(){return r(d[1]).Stack},TamaguiProvider:function(){return y},Text:function(){return r(d[1]).Text},View:function(){return r(d[1]).View},createTamagui:function(){return b},setOnLayoutStrategy:function(){return r(d[0]).setOnLayoutStrategy}}),m.exports=(t=v,l(o({},"__esModule",{value:!0}),t));var O=r(d[2]),P=(function(t,u,s){return s=null!=t?n(c(t)):{},l(!u&&t&&t.__esModule?s:o(s,"default",{value:t,enumerable:!0}),t)})(r(d[3]));p(v,r(d[1]),m.exports),p(v,r(d[4]),m.exports),(0,r(d[5]).addNativeValidStyles)();var y=function(t){return(0,r(d[1]).useIsomorphicLayoutEffect)(function(){(0,r(d[0]).enable)()},[]),(0,O.jsx)(r(d[1]).TamaguiProvider,Object.assign({},t))},b=function(t){return t.media&&(t.media=(0,r(d[6]).createMedia)(t.media)),(0,r(d[1]).createTamagui)(t)},T=(0,r(d[7]).getBaseViews)();(0,r(d[1]).setupHooks)({getBaseViews:r(d[7]).getBaseViews,setElementProps:function(t){},usePropsTransform:function(t,n,o,u){},useEvents:function(t,n,o,u,s){if(n&&(n.onFocus&&(t.onFocus=n.onFocus),n.onBlur&&(t.onBlur=n.onBlur)),s.isInput){if(n){var c=n.onPressIn,f=n.onPressOut,l=n.onPress,p={onPressIn:c,onPressOut:f||l};f&&l&&(p.onPressOut=(0,r(d[1]).composeEventHandlers)(l,f)),Object.assign(t,p)}}else{n&&t.hitSlop&&(n.hitSlop=t.hitSlop);var v=(0,r(d[8]).usePressability)(n);if(n&&n.onPress)for(var O in v){var P=t[O],y=v[O];t[O]=P&&!j[O]?(0,r(d[1]).composeEventHandlers)(P,y):y}}},useChildren:function(t,n,o){return t===T.View?(0,r(d[9]).createOptimizedView)(n,o,T):process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS&&t===T.Text?(o.children=n,P.default.createElement("RCTText",o)):void 0}});var j={onClick:!0}},796,[797,801,258,128,903,904,906,911,912,913]); +__d(function(g,r,i,_a,m,e,d){"use strict";var n,t=r(d[0]),u=r(d[1]),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(n,t,u,l){if(t&&"object"==typeof t||"function"==typeof t){var s=function(c){!f.call(n,c)&&c!==u&&o(n,c,{get:function(){return t[c]},enumerable:!(l=a(t,c))||l.enumerable})};for(var v of c(t))s(v)}return n},s={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(s,{LayoutMeasurementController:function(){return I},createMeasure:function(){return D},createMeasureInWindow:function(){return F},createMeasureLayout:function(){return K},enable:function(){return W},getBoundingClientRectAsync:function(){return Y},getElementLayoutEvent:function(){return A},measure:function(){return q},measureInWindow:function(){return U},measureLayout:function(){return G},measureNode:function(){return X},setOnLayoutStrategy:function(){return P},useElementLayout:function(){return H}}),m.exports=(n=s,l(o({},"__esModule",{value:!0}),n));var v=r(d[2]),p=r(d[3]),y=new WeakMap,h=new WeakMap,w=new Set,b=new WeakMap,E={},M=(0,p.createContext)(""),L=r(d[4]).isClient&&typeof IntersectionObserver<"u",I=function(n){var t=n.disable,u=n.children,o=(0,p.useId)();return(0,r(d[4]).useIsomorphicLayoutEffect)(function(){E[o]=t},[t,o]),(0,v.jsx)(M.Provider,{value:o,children:u})},O=null,C="async";function P(n){C=n}var x=new WeakMap,T=new WeakMap,R=!0,S=new Map;function W(){R&&(R=!1,S&&(S.forEach(function(n){return n()}),S.clear()))}if(L){var _=new WeakMap;function z(n){return J.apply(this,arguments)}function J(){return(J=u(function*(n){var u=y.get(n);if("function"==typeof u){var o=n.parentElement;if(o){var a,c;if("async"===C){var f=yield Promise.all([_.get(n),_.get(o)]),l=t(f,2),s=l[0],v=l[1];if(!s||!v)return;a=s,c=v}else a=n.getBoundingClientRect(),c=o.getBoundingClientRect();if(a&&c){var p=x.get(n),h=x.get(o);if(!(p&&h&&(0,r(d[5]).isEqualShallow)(p,a)&&(0,r(d[5]).isEqualShallow)(h,c))){x.set(n,a),x.set(o,c);var w=A(a,c);R?S.set(n,function(){return u(w)}):u(w)}}}}})).apply(this,arguments)}var j=process.env.TAMAGUI_LAYOUT_FRAME_SKIP,k=j?+j:14;function Q(){return V.apply(this,arguments)}function V(){return(V=u(function*(){if("off"!==C){var n=[];(yield new Promise(function(t){var u=new IntersectionObserver(function(n){u.disconnect();var o=!0,a=!1,c=void 0;try{for(var f,l=n[Symbol.iterator]();!(o=(f=l.next()).done);o=!0){var s=f.value;_.set(s.target,s.boundingClientRect)}}catch(n){a=!0,c=n}finally{try{!o&&null!=l.return&&l.return()}finally{if(a)throw c}}t(!0)},{threshold:0}),o=!1,a=!0,c=!1,f=void 0;try{for(var l,s=w[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var v=l.value;if(v.parentElement instanceof HTMLElement){var p=h.get(v);p&&!0===E[p]||!1!==b.get(v)&&(o=!0,u.observe(v),u.observe(v.parentElement),n.push(v))}}}catch(n){c=!0,f=n}finally{try{!a&&null!=s.return&&s.return()}finally{if(c)throw f}}o||t(!1)}))&&n.forEach(function(n){z(n)})}setTimeout(Q,16.6667*k)})).apply(this,arguments)}Q()}var A=function(n,t){return{nativeEvent:{layout:B(n,t),target:n},timeStamp:Date.now()}},B=function(n,t){var u=n.height,o=n.left,a=n.top,c=n.width;return{x:o-t.left,y:a-t.top,width:c,height:u,pageX:n.left,pageY:n.top}};function H(n,t){var u,o=(0,p.useContext)(M),a=N(null===(u=n.current)||void 0===u?void 0:u.host);a&&t&&(y.set(a,t),h.set(a,o)),(0,r(d[4]).useIsomorphicLayoutEffect)(function(){var u;if(t){var o=null===(u=n.current)||void 0===u?void 0:u.host;if(o){w.add(o),!L||O||(O=new IntersectionObserver(function(n){n.forEach(function(n){var t=n.target;b.get(t)!==n.isIntersecting&&b.set(t,n.isIntersecting)})},{threshold:0})),O&&(O.observe(o),b.set(o,!0));var a=o.parentNode;return a&&t(A(o.getBoundingClientRect(),a.getBoundingClientRect())),function(){w.delete(o),y.delete(o),x.delete(o),T.delete(o),b.delete(o),O&&O.unobserve(o)}}}},[n,!!t])}function N(n){if(!(typeof HTMLElement>"u"))return n instanceof HTMLElement?n:void 0}var Y=function(n){return new Promise(function(t){if(!n||1!==n.nodeType)return t(!1);var u=new IntersectionObserver(function(n){return u.disconnect(),t(n[0].boundingClientRect)},{threshold:0});u.observe(n)})},X=(function(){var n=u(function*(n,u){var o=u||(null==n?void 0:n.parentElement);if(o instanceof HTMLElement){var a=yield Promise.all([Y(n),Y(o)]),c=t(a,2),f=c[0],l=c[1];if(l&&f)return B(f,l)}return null});return function(t,u){return n.apply(this,arguments)}})(),q=(function(){var n=u(function*(n,t){var u=yield X(n,n.parentNode instanceof HTMLElement?n.parentNode:null);return u&&(null==t||t(u.x,u.y,u.width,u.height,u.pageX,u.pageY)),u});return function(t,u){return n.apply(this,arguments)}})();function D(n){return function(t){return q(n,t)}}var U=(function(){var n=u(function*(n,t){var u=yield X(n,null);return u&&(null==t||t(u.pageX,u.pageY,u.width,u.height)),u});return function(t,u){return n.apply(this,arguments)}})(),F=function(n){return function(t){return U(n,t)}},G=(function(){var n=u(function*(n,t,u){var o=yield X(n,t);return o&&(null==u||u(o.x,o.y,o.width,o.height,o.pageX,o.pageY)),o});return function(t,u,o){return n.apply(this,arguments)}})();function K(n){return function(t,u){return G(n,t,u)}}},797,[19,367,258,128,798,800]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},798,[799]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))p(b)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{IS_REACT_19:function(){return O},currentPlatform:function(){return I},isAndroid:function(){return h},isChrome:function(){return E},isClient:function(){return _},isIos:function(){return j},isServer:function(){return P},isTouchable:function(){return A},isWeb:function(){return T},isWebTouchable:function(){return S},isWindowDefined:function(){return v},useIsomorphicLayoutEffect:function(){return y}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var l=r(d[0]),p=r(d[0]),b=r(d[1]),O=!!p.use,T=!1,v=!1,P=!1,_=!1,y=l.useLayoutEffect,E=!1,S=!1,A=!0,h="android"===b.Platform.OS||"android"===process.env.TEST_NATIVE_PLATFORM,j="ios"===b.Platform.OS||"ios"===process.env.TEST_NATIVE_PLATFORM,I={ios:"ios",android:"android"}[b.Platform.OS]||"native"},799,[128,28]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{isEqualShallow:function(){return y},mergeIfNotShallowEqual:function(){return b},useCreateShallowSetState:function(){return p}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=r(d[0]);function p(t,n){return(0,s.useCallback)(function(n){t(function(t){return b(t,"function"==typeof n?n(t):n)})},[t,n])}function b(t,n){return t&&n&&!y(t,n)?Object.assign({},t,n):t||n}function y(t,n){for(var o in n)if(t[o]!==n[o])return!1;return!0}},800,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,u=function(t,u,x,f){if(u&&"object"==typeof u||"function"==typeof u){var c=function(s){!p.call(t,s)&&s!==x&&o(t,s,{get:function(){return u[s]},enumerable:!(f=n(u,s))||f.enumerable})};for(var l of s(u))c(l)}return t},x=function(t,o,n){return u(t,o,"default"),n&&u(n,o,"default")},f={};!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(f,{_disableMediaTouch:function(){return r(d[0])._disableMediaTouch},configureMedia:function(){return r(d[0]).configureMedia},forceUpdateThemes:function(){return r(d[1]).forceUpdateThemes},getConfig:function(){return r(d[2]).getConfig},getMedia:function(){return r(d[0]).getMedia},getSetting:function(){return r(d[2]).getSetting},getThemes:function(){return r(d[2]).getThemes},getToken:function(){return r(d[2]).getToken},getTokenValue:function(){return r(d[2]).getTokenValue},getTokens:function(){return r(d[2]).getTokens},insertStyleRules:function(){return r(d[3]).insertStyleRules},mediaKeyMatch:function(){return r(d[0]).mediaKeyMatch},mediaObjectToString:function(){return r(d[0]).mediaObjectToString},mediaQueryConfig:function(){return r(d[0]).mediaQueryConfig},mediaState:function(){return r(d[0]).mediaState},setConfig:function(){return r(d[2]).setConfig},setNonce:function(){return r(d[3]).setNonce},setupDev:function(){return r(d[2]).setupDev},updateConfig:function(){return r(d[2]).updateConfig},useMedia:function(){return r(d[0]).useMedia}}),m.exports=(t=f,u(o({},"__esModule",{value:!0}),t)),x(f,r(d[4]),m.exports),x(f,r(d[5]),m.exports),x(f,r(d[6]),m.exports),x(f,r(d[7]),m.exports),x(f,r(d[8]),m.exports),x(f,r(d[9]),m.exports),x(f,r(d[10]),m.exports),x(f,r(d[11]),m.exports),x(f,r(d[12]),m.exports),x(f,r(d[13]),m.exports),x(f,r(d[14]),m.exports),x(f,r(d[15]),m.exports),x(f,r(d[16]),m.exports),x(f,r(d[17]),m.exports),x(f,r(d[18]),m.exports),x(f,r(d[19]),m.exports),x(f,r(d[20]),m.exports),x(f,r(d[21]),m.exports),x(f,r(d[22]),m.exports),x(f,r(d[23]),m.exports),x(f,r(d[24]),m.exports),x(f,r(d[25]),m.exports),x(f,r(d[26]),m.exports),x(f,r(d[27]),m.exports),x(f,r(d[28]),m.exports),x(f,r(d[5]),m.exports),x(f,r(d[29]),m.exports),x(f,r(d[30]),m.exports),x(f,r(d[31]),m.exports),x(f,r(d[32]),m.exports),x(f,r(d[33]),m.exports),x(f,r(d[34]),m.exports),x(f,r(d[35]),m.exports),x(f,r(d[36]),m.exports),x(f,r(d[37]),m.exports),x(f,r(d[38]),m.exports),x(f,r(d[39]),m.exports),x(f,r(d[40]),m.exports),x(f,r(d[41]),m.exports),x(f,r(d[42]),m.exports),x(f,r(d[43]),m.exports),x(f,r(d[44]),m.exports),x(f,r(d[45]),m.exports),x(f,r(d[46]),m.exports),x(f,r(d[47]),m.exports),x(f,r(d[48]),m.exports),x(f,r(d[49]),m.exports),x(f,r(d[50]),m.exports),x(f,r(d[48]),m.exports),x(f,r(d[51]),m.exports),x(f,r(d[52]),m.exports),x(f,r(d[53]),m.exports),x(f,r(d[54]),m.exports),x(f,r(d[55]),m.exports),x(f,r(d[56]),m.exports),x(f,r(d[57]),m.exports),x(f,r(d[58]),m.exports),x(f,r(d[59]),m.exports),x(f,r(d[60]),m.exports),x(f,r(d[61]),m.exports),x(f,r(d[62]),m.exports),x(f,r(d[63]),m.exports),x(f,r(d[64]),m.exports),x(f,r(d[65]),m.exports)},801,[802,807,804,809,819,820,867,868,869,872,877,810,870,871,878,879,881,808,824,827,882,855,883,800,825,847,884,838,853,875,844,885,886,806,823,850,845,846,841,874,887,803,866,876,859,888,834,889,890,891,892,864,893,894,895,865,896,897,898,899,829,900,860,811,798,821]); +__d(function(g,r,i,a,_m,e,d){"use strict";var t,n=r(d[0]),u=r(d[1]),o=r(d[2]),c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,v=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var v=function(s){!l.call(t,s)&&s!==u&&c(t,s,{get:function(){return n[s]},enumerable:!(o=f(n,s))||o.enumerable})};for(var p of s(n))v(p)}return t},p={};!(function(t,n){for(var u in n)c(t,u,{get:n[u],enumerable:!0})})(p,{_disableMediaTouch:function(){return N},configureMedia:function(){return P},getMedia:function(){return O},getMediaImportanceIfMoreImportant:function(){return U},getMediaKey:function(){return $},getMediaKeyImportance:function(){return x},getMediaState:function(){return R},isMediaKey:function(){return j},mediaKeyMatch:function(){return G},mediaKeyToQuery:function(){return F},mediaKeys:function(){return M},mediaObjectToString:function(){return B},mediaQueryConfig:function(){return b},mediaState:function(){return S},setMediaShouldUpdate:function(){return T},setupMediaListeners:function(){return L},updateMediaListeners:function(){return _},useMedia:function(){return D}}),_m.exports=(t=p,v(c({},"__esModule",{value:!0}),t));var y,m,h=r(d[3]),S={},b={},O=function(){return S},M=new Set,w=/\$(platform|theme|group)-/,j=function(t){return"$"===t[0]&&!(!M.has(t)&&!w.test(t))},$=function(t){if("$"!==t[0])return!1;if(M.has(t))return!0;var n=t.match(w);return!!n&&n[1]},k=Object.keys(r(d[4]).pseudoDescriptors).length,x=function(t){return(0,r(d[5]).getConfig)().settings.mediaPropOrder?k:m.indexOf(t)+100},E=new Set,K=0,P=function(t){var n=t.media,u=(0,r(d[5]).getSetting)("mediaQueryDefaultActive");if(n){for(var o in K++,n)S[o]=(null==u?void 0:u[o])||!1,M.add(`$${o}`);Object.assign(b,n),y=Object.assign({},S),m=Object.keys(n),L()}};var I=-1;function L(){var t=function(t){var n=B(b[t],t),u=function(){return(0,r(d[6]).matchMedia)(n)},c=u();if(!c)throw new Error("\u26a0\ufe0f No match");function f(){var n=!!u().matches;n!==S[t]&&(S=Object.assign({},S,o({},t,n)),_())}c.addListener(f),E.add(function(){c.removeListener(f)}),f()};if(!(r(d[7]).isWeb&&r(d[7]).isServer||process.env.IS_STATIC||I===K))for(var n in I=K,E.forEach(function(t){return t()}),E.clear(),b)t(n)}var W=new Set;function _(){W.forEach(function(t){return t(S)})}var C=new WeakMap;function T(t,n,u){var o=C.get(t);(!o||o.enabled!==n||u)&&C.set(t,Object.assign({},o,{enabled:n,keys:u}))}function A(t){return W.add(t),function(){W.delete(t)}}function D(t,n){var u=t?C.get(t):null,o=(0,h.useRef)(null);o.current||(o.current={keys:new Set,lastState:S}),o.current.pendingState&&(o.current.lastState=o.current.pendingState,o.current.pendingState=void 0);var c=o.current.keys;c.size&&c.clear();var f=(0,h.useSyncExternalStore)(A,function(){var n=(null==u?void 0:u.keys)||c,f=o.current,s=f.lastState,l=f.pendingState;if(!n.size)return s;var v=!0,p=!1,y=void 0;try{for(var m,h=n[Symbol.iterator]();!(v=(m=h.next()).done);v=!0){var b=m.value;if(S[b]!==(l||s)[b])return null!=t&&t.mediaEmit?(t.mediaEmit(S),o.current.pendingState=S,s):(o.current.lastState=S,S)}}catch(t){p=!0,y=t}finally{try{!v&&null!=h.return&&h.return()}finally{if(p)throw y}}return s},Q);return new Proxy(f,{get:function(t,n){return!z&&"string"==typeof n&&c.add(n),Reflect.get(f,n)}})}var Q=function(){return y},z=!1;function N(t){z=t}function R(t,n){var o;z=!0;try{o=Object.fromEntries(u(t).map(function(t){return[t,G(t,n)]}))}finally{z=!1}return o}var U=function(t,n,u,o){var c=o&&!(0,r(d[5]).getSetting)("mediaPropOrder")?x(t):k,f=u.usedKeys;return!f[n]||c>f[n]?c:null};var Z=new WeakMap,q={};function B(t,u){if("string"==typeof t)return t;if(Z.has(t))return Z.get(t);var o=Object.entries(t).map(function(t){var u=n(t,2),o=u[0],c=u[1];return o=o.replace(/[A-Z]/g,function(t){return`-${t.toLowerCase()}`}).toLowerCase(),"string"==typeof c||"number"==typeof c&&/[height|width]$/.test(o)&&(c=`${c}px`),`(${o}: ${c})`}).join(" and ");return u&&(q[u]=o),Z.set(t,o),o}function F(t){return q[t]||B(b[t],t)}function G(t,n){var u=b[t];return Object.keys(u).every(function(t){var o=+u[t],c=t.startsWith("max"),f=t.endsWith("Width"),s=n[f?"width":"height"];return c?so})}},802,[19,32,18,128,803,804,806,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,y=function(t,y,c,p){if(y&&"object"==typeof y||"function"==typeof y){var l=function(n){!u.call(t,n)&&n!==c&&o(t,n,{get:function(){return y[n]},enumerable:!(p=s(y,n))||p.enumerable})};for(var f of n(y))l(f)}return t},c={};!(function(t,s){for(var n in s)o(t,n,{get:s[n],enumerable:!0})})(c,{pseudoDescriptors:function(){return f},pseudoDescriptorsBase:function(){return p},pseudoPriorities:function(){return l}}),m.exports=(t=c,y(o({},"__esModule",{value:!0}),t));var p={hoverStyle:{name:"hover",priority:2},pressStyle:{name:"active",stateKey:"press",priority:3},focusVisibleStyle:{name:"focus-visible",priority:4,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:4},focusWithinStyle:{name:"focus-within",priority:4,stateKey:"focusWithin"},disabledStyle:{name:"disabled",priority:5,stateKey:"disabled"}},l={hover:p.hoverStyle.priority,press:p.pressStyle.priority,focus:p.focusStyle.priority,focusVisible:p.focusVisibleStyle.priority,focusWithin:p.focusWithinStyle.priority,disabled:p.disabledStyle.priority},f=Object.assign({},p,{enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}})},803,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(n,t,s,l){if(t&&"object"==typeof t||"function"==typeof t){var v=function(f){!c.call(n,f)&&f!==s&&o(n,f,{get:function(){return t[f]},enumerable:!(l=u(t,f))||l.enumerable})};for(var b of f(t))v(b)}return n},l={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(l,{configListeners:function(){return x},devConfig:function(){},getConfig:function(){return y},getConfigMaybe:function(){return j},getFont:function(){return M},getSetting:function(){return p},getThemes:function(){return D},getToken:function(){return h},getTokenObject:function(){return T},getTokenValue:function(){return w},getTokens:function(){return C},onConfiguredOnce:function(){return E},setConfig:function(){return O},setConfigFont:function(){return k},setTokens:function(){return P},setupDev:function(){return S},updateConfig:function(){return F},useTokens:function(){return _}}),m.exports=(n=l,s(o({},"__esModule",{value:!0}),n));var v,b,p=function(n){var t;return null!==(t=v.settings[n])&&void 0!==t?t:v[n]},O=function(n){v=n},k=function(n,t,o){v.fonts[n]=t,v.fontsParsed[`$${n}`]=o},y=function(){var n=(0,r(d[1]).loadDuplicatedConfig)();if(n)return n;if(!v)throw new Error("Err0");return v},j=function(){return v};function P(n){b=n}var C=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).prefixed,t=v,o=t.tokens,u=t.tokensParsed;return!1===n?o:!0===n?u:b},T=function(n,t){var o,u,f;return null!==(f=v.specificTokens[n])&&void 0!==f?f:t?null===(o=b[t])||void 0===o?void 0:o[n]:null===(u=b[Object.keys(b).find(function(t){return b[t][n]})||""])||void 0===u?void 0:u[n]},h=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[2]).isWeb,u=T(n,t);return o?null==u?void 0:u.variable:null==u?void 0:u.val},w=function(n,t){if("unset"!==n&&"auto"!==n)return h(n,t,!1)},_=C,D=function(){return v.themes},x=new Set,E=function(n){v?n(v):x.add(n)},F=function(n,t){Object.assign(v[n],t)},M=function(n){var o,u,f=y();return null!==(u=f.fontsParsed[n])&&void 0!==u?u:null===(o=Object.entries(f.fontsParsed).find(function(o){var u,c,s=t(o,1)[0];return(null===(c=f.fontsParsed[s])||void 0===c||null===(u=c.family)||void 0===u?void 0:u.val)===n}))||void 0===o?void 0:o[1]};function S(n){}},804,[19,805,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{loadDuplicatedConfig:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));function p(){return null}},805,[]); +__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a=function(t,a,f,p){if(a&&"object"==typeof a||"function"==typeof a){var s=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return a[c]},enumerable:!(p=o(a,c))||p.enumerable})};for(var l of c(a))s(l)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{matchMedia:function(){return s},setupMatchMedia:function(){return l}}),m.exports=(t=f,a(n({},"__esModule",{value:!0}),t));var p=function(t){return process.env.IS_STATIC,{match:function(t,n){return!1},addListener:function(){},removeListener:function(){},matches:!1}},s=function(){for(var t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,l=n.disable,u=(0,c.useContext)(v);if(!u&&!i)throw new Error(r(d[2]).MISSING_THEME_MESSAGE);if(l)return S.get(u)||{id:"",name:"light",theme:(0,r(d[3]).getConfig)().themes.light,inverses:0};var f=(0,c.useId)(),s=(0,c.useCallback)(function(n){var t,i;return(t=p)[i=u]||(t[i]=new Set),p[u].add(f),h.set(f,function(){y.set(f,!_||"force"),n()}),function(){h.delete(f),p[u].delete(f),E.delete(f),S.delete(f),y.delete(f)}},[f,u]),M=G(n),O=function(){var l,s,c=E.get(f),v=!n.passThrough&&(!(!i&&"light"!==n.name&&"dark"!==n.name&&null!==n.name)||(!w.get(o)||(!(null==o||null===(l=o.current)||void 0===l||!l.size)||(null===(s=n.needsUpdate)||void 0===s?void 0:s.call(n))))),h=T(c,n,M,i,f,u,v,y.get(f)),p=t(h,2),b=p[0],_=p[1];return y.delete(f),(!c||b)&&(c=Object.assign({},_),E.set(f,c)),Object.assign(c,_),c.id=f,S.set(f,_),c},k=(0,c.useSyncExternalStore)(s,O,O);return(0,r(d[4]).useIsomorphicLayoutEffect)(function(){if(w.get(o))return M?($(f),void b.set(o,!0)):(b.get(o)&&$(f),void b.set(o,!1));w.set(o,!0)},[o,M]),k},T=function(n,t,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=(t.debug,S.get(u));if(t.passThrough)return[!1,n||c||{name:""}];k||(k=(0,r(d[3]).getConfig)().themes);var v=i||n&&null!=n&&n.isNew?P(null==c?void 0:c.name,t,"force"===s||!!f):null,h=c&&(!v||v===c.name),p=!(!f||!s&&(null==n?void 0:n.name)===(null==c?void 0:c.name));if(h)return[p,Object.assign({},c,{isNew:!1})];if(!v){var w=null!=n?n:c;if(!w)throw new Error(r(d[2]).MISSING_THEME_MESSAGE);return p?[!0,Object.assign({},c||n)]:[!1,w]}var b,y=I(v),E=null!==(b=null==c?void 0:c.inverses)&&void 0!==b?b:0,_=c&&y!==c.scheme,M=E+(_?1:0),O={id:l,name:v,theme:k[v],scheme:y,parentId:u,parentName:null==c?void 0:c.name,inverses:M,isInverse:_,isNew:!0};return o&&(N=O),"force"!==s&&n&&n.name===v||"force"!==s&&n&&!f&&O.name===n.name?[!1,O]:[!0,O]};function $(n){for(var t=[n],i=new Set;t.length;){var o=t.shift(),l=p[o];if(l){var u=!0,f=!1,s=void 0;try{for(var c,v=l[Symbol.iterator]();!(u=(c=v.next()).done);u=!0){var w=c.value;i.has(w)||(i.add(w),t.push(w))}}catch(n){f=!0,s=n}finally{try{!u&&null!=v.return&&v.return()}finally{if(f)throw s}}}}i.forEach(function(n){var t=h.get(n);null==t||t()})}var x={light:"light",dark:"dark"};function I(n){return x[n.split("_")[0]]}function P(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,i=t.name,o=t.reset,l=t.componentName,u=t.inverse,f=(t.debug,arguments.length>2&&void 0!==arguments[2]&&arguments[2]);if(i&&o)throw new Error("\u274c004");var s=(0,r(d[3]).getConfig)().themes;if(o){if("light"===n||"dark"===n)return"light"===n?"dark":"light";var c=n.lastIndexOf("_"),v=c<=0?n:n.slice(c),h=n.slice(0,c);return s[v]?v:h}var p=n.split("_"),w=p[p.length-1];w&&w[0].toLowerCase()!==w[0]&&p.pop();for(var b=[i&&l?`${i}_${l}`:void 0,i,l].filter(Boolean),y=null,S=p.length,E=0;E<=S;E++){var _=(0===E?p:p.slice(0,-E)).join("_"),M=!0,O=!1,k=void 0;try{for(var N,j=b[Symbol.iterator]();!(M=(N=j.next()).done);M=!0){var C=N.value,T=_?`${_}_${C}`:C;if(T in s){y=T;break}}}catch(n){O=!0,k=n}finally{try{!M&&null!=j.return&&j.return()}finally{if(O)throw k}}if(y)break}if(u){y||(y=n);var $=y.split("_")[0];y=y.replace(new RegExp(`^${$}`),"light"===$?"dark":"light")}return f||y!==n||x[y]?y:null}var G=function(n){var t=n.name,i=n.reset;return`${t||""}${n.inverse||""}${i||""}${n.forceClassName||""}${n.componentName||""}`},U=function(n){return"inverse"in n||"name"in n||"reset"in n||"forceClassName"in n}},807,[19,128,808,804,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var _=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))_(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{FONT_DATA_ATTRIBUTE_NAME:function(){return p},MISSING_THEME_MESSAGE:function(){return S},THEME_CLASSNAME_PREFIX:function(){return _},THEME_NAME_SEPARATOR:function(){return l},stackDefaultStyles:function(){return E},webViewFlexCompatStyles:function(){return A}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l="_",_="t_",p="data-tamagui-font",E={},A={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:"1"===process.env.TAMAGUI_POSITION_STATIC?"static":"relative",minHeight:0,minWidth:0,flexShrink:0},S="Missing theme."},808,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),l=r(d[1]),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!c.call(t,u)&&u!==l&&i(t,u,{get:function(){return n[u]},enumerable:!(f=o(n,u))||f.enumerable})};for(var v of u(n))s(v)}return t},s={};!(function(t,n){for(var l in n)i(t,l,{get:n[l],enumerable:!0})})(s,{getAllRules:function(){return p},getAllSelectors:function(){return _},insertStyleRules:function(){return $},scanAllSheets:function(){return A},setNonce:function(){return k},shouldInsertStyleRules:function(){return B},stopAccumulatingRules:function(){return G},updateRules:function(){return L}}),m.exports=(t=s,f(i({},"__esModule",{value:!0}),t));var v=new WeakMap,y=new Map,h={},S={},_=function(){return h},p=function(){return Object.values(S)},R=null;function A(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;if(r(d[2]).isClient){var l,i=document.styleSheets||[],o=R,u=new Set(i),c=!0,f=!1,s=void 0;try{for(var v,y=u[Symbol.iterator]();!(c=(v=y.next()).done);c=!0){var h=v.value;if(h){var S=T(h,!1,t,n);S&&(l=S)}}}catch(t){f=!0,s=t}finally{try{!c&&null!=y.return&&y.return()}finally{if(f)throw s}}if(R=u,o){var _=!0,p=!1,A=void 0;try{for(var I,b=o[Symbol.iterator]();!(_=(I=b.next()).done);_=!0){var x=I.value;x&&!u.has(x)&&T(x,!0)}}catch(t){p=!0,A=t}finally{try{!_&&null!=b.return&&b.return()}finally{if(p)throw A}}}return l}}function I(t){var n=(y.get(t)||0)+1;return y.set(t,n),n}var b=process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,x=b?+b:400;function T(t){var n,i,o,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3?arguments[3]:void 0;try{if(!(o=t.cssRules))return}catch(t){return}var s=null===(n=j(o[0],c))||void 0===n?void 0:n[0],y=null===(i=j(o[o.length-1],c))||void 0===i?void 0:i[0],h=`${o.length}${s}${y}`,S=v.get(t);if(u||S!==h){for(var _,p=o.length,R=0,A={},I=0;Ix)return;continue}R=0;var E=l(T,3),O=(E[0],E[1]);if(E[2]){var C=w(O,f);if(C){var M=!0,N=!1,P=void 0;try{for(var G,L=function(){var t=G.value;A[t]?(Object.apply(A[t],C.theme),C.names=C.names.filter(function(n){return n!==t})):A[t]=C.theme},U=C.names[Symbol.iterator]();!(M=(G=U.next()).done);M=!0)L()}catch(t){N=!0,P=t}finally{try{!M&&null!=U.return&&U.return()}finally{if(N)throw P}}_||(_=[]),_.push(C)}continue}}}return v.set(t,h),_}}var E,O=null;function w(t,i){var o=t.selectorText.split(",");if(o.length){if(null!=i&&i.color&&!E)for(var u in E={},i.color){var c=i.color[u];E[c.name]=c.val}var f=(t.cssText||"").slice(t.selectorText.length+2,-1).split(";"),s={},v=!0,y=!1,h=void 0;try{for(var S,_=f[Symbol.iterator]();!(v=(S=_.next()).done);v=!0){var p=S.value,R=p.indexOf(":");if(-1!==R){var A=p.indexOf("--"),I=p.slice(-1===A?0:A+2,R);process.env.TAMAGUI_CSS_VARIABLE_PREFIX&&(I=I.replace(process.env.TAMAGUI_CSS_VARIABLE_PREFIX,""));var b=p.slice(R+2),x=void 0;if("v"===b[0]&&b.startsWith("var(")){var T=b.slice(6,-1),w=E[T];w?x=w:(O||(O=getComputedStyle(document.body)),x=O.getPropertyValue("--"+T))}else x=b;s[I]=(0,r(d[3]).createVariable)({key:I,name:I,val:x},!0)}}}catch(t){y=!0,h=t}finally{try{!v&&null!=_.return&&_.return()}finally{if(y)throw h}}var C=new Set,j=!0,M=!1,N=void 0;try{for(var P,G=o[Symbol.iterator]();!(j=(P=G.next()).done);j=!0){var L=P.value;if(" .tm_xxt"!==L){var U=L.lastIndexOf(".t_"),k=L.slice(U).slice(3),$=l(L[U-5],1)[0],V="d"===$?"dark":"i"===$?"light":"",B=V&&V!==k?`${V}_${k}`:k;!B||"light_dark"===B||"dark_light"===B||C.add(B)}}}catch(t){M=!0,N=t}finally{try{!j&&null!=G.return&&G.return()}finally{if(M)throw N}}return{names:n(C),theme:s}}}var C=/\.tm_xxt/;function j(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t instanceof CSSStyleRule){var l=t.selectorText;if(":"===l[0]&&"r"===l[1]&&C.test(l)){var i=M(l.replace(C,""));return n?[i,t,!0]:[i,t]}}else if(t instanceof CSSMediaRule)return t.cssRules.length>1?void 0:j(t.cssRules[0])}var M=function(t){var n=t.indexOf(":");return n>-1?t.slice(7,n):t.slice(7)},N=null,P=!0;function G(){P=!1}function L(t,n){return P&&(S[t]=n.join(" ")),!0}var U="";function k(t){U=t}function $(t){if(r(d[2]).isClient){if(!N&&document.head){var n=document.createElement("style");n.id="_tamagui-styles",U&&(n.nonce=U),N=document.head.appendChild(n).sheet}if(N)for(var l in t){var i=t[l],o=i[r(d[4]).StyleObjectIdentifier];if(B(o)){var u=i[r(d[4]).StyleObjectRules];h[o]=u.join("\n"),I(o),L(o,u);try{var c=!0,f=!1,s=void 0;try{for(var v,y=u[Symbol.iterator]();!(c=(v=y.next()).done);c=!0){var S=v.value;N.insertRule(S,N.cssRules.length),"_dsp-_groupframe-maxMd_none"===o&&console.warn("INSERT",S)}}catch(t){f=!0,s=t}finally{try{!c&&null!=y.return&&y.return()}finally{if(f)throw s}}}catch(t){console.error("Error inserting style rule",u)}}}}}var V=process.env.TAMAGUI_INSERT_SELECTOR_TRIES?+process.env.TAMAGUI_INSERT_SELECTOR_TRIES:1;function B(t){return"is_static"===process.env.IS_STATIC||(y.get(t)||0)1&&void 0!==arguments[1]&&arguments[1];if(!t&&V(n))return n;var u=n.key,o=n.name,l=n.val;return{isVar:!0,key:u,name:t?o:(0,r(d[0]).simpleHash)(o,40),val:l,variable:r(d[1]).isWeb?t?v(o):S(o):""}};function s(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return V(n)?!t&&r(d[1]).isWeb&&n.variable?n.variable:`${n.val}`:`${n||""}`}function V(n){return n&&"object"==typeof n&&"isVar"in n}function p(n){var t,u,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"size";return null!=n&&n.dynamic?n:(P(!0),V(n)?s(n):s(null!==(u=null===(t=(0,r(d[2]).getConfig)().tokensParsed[o])||void 0===t?void 0:t[n])&&void 0!==u?u:n))}var y=!1,P=function(n){return y=n},h=function(){return y};function O(n,t){if(V(n))return P(!0),n.val;if(t){var u,o=null===(u=(0,r(d[2]).getConfig)().tokensParsed[t])||void 0===u?void 0:u[n];if(o)return P(!0),o.val}return n}function _(n){return V(n)?n.name:n}function j(n){return V(n)?n.variable:n}var S=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],u=(0,r(d[0]).simpleHash)(n,60);return t?v(u):u};function k(n){return{val:n,needsPx:!0}}},810,[811,798,804]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(p){!u.call(t,p)&&p!==f&&o(t,p,{get:function(){return c[p]},enumerable:!(s=n(c,p))||s.enumerable})};for(var x of p(c))l(x)}return t},f=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},s={};m.exports=(t=s,c(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports),f(s,r(d[3]),m.exports),f(s,r(d[4]),m.exports),f(s,r(d[5]),m.exports),f(s,r(d[6]),m.exports)},811,[812,813,814,815,816,817,818]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(i){!u.call(t,i)&&i!==f&&n(t,i,{get:function(){return c[i]},enumerable:!(s=o(c,i))||s.enumerable})};for(var v of i(c))l(v)}return t},f={};!(function(t,o){for(var i in o)n(t,i,{get:o[i],enumerable:!0})})(f,{simpleHash:function(){return v}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var s=new Map,l=0,v=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(s.has(t))return s.get(t);var o=t;"v"===o[0]&&o.startsWith("var(")&&(o=o.slice(6,o.length-1));for(var i=0,u="",c=0,f=o.length,v=0;v1e4&&(s.clear(),l=0),s.set(t,y),l++,y},p=function(t,n){return Math.imul(31,t)+n.charCodeAt(0)|0};function h(t){return t>=65&&t<=90||t>=97&&t<=122||95===t||45===t||t>=48&&t<=57}},812,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,b){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){!f.call(t,c)&&c!==p&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var s of c(n))l(s)}return t},b={};function l(t,o){var u=n(o,2),c=u[0],f=u[1];return Math.min(f,Math.max(c,t))}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{clamp:function(){return l}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t))},813,[19]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,v){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(v=o(c,u))||v.enumerable})};for(var b of u(c))p(b)}return t},l={};function v(t,n){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkDefaultPrevented,u=void 0===o||o;return t&&n?function(o){if(null==t||t(o),!o||!u||"object"!=typeof o||!("defaultPrevented"in o)||"defaultPrevented"in o&&!o.defaultPrevented)return null==n?void 0:n(o)}:n||t||void 0}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{composeEventHandlers:function(){return v}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t))},814,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var O of u(f))y(O)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{StyleObjectIdentifier:function(){return O},StyleObjectProperty:function(){return b},StyleObjectPseudo:function(){return p},StyleObjectRules:function(){return j},StyleObjectValue:function(){return y}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=0,y=1,O=2,p=3,j=4},815,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,f=function(t,f,c,y){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!l.call(t,u)&&u!==c&&n(t,u,{get:function(){return f[u]},enumerable:!(y=o(f,u))||y.enumerable})};for(var v of u(f))s(v)}return t},c={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{shouldRenderNativePlatform:function(){return s}}),m.exports=(t=c,f(n({},"__esModule",{value:!0}),t));var y=["web","android","ios"];function s(t){if(!t)return null;var n=v(t),o=!0,u=!1,l=void 0;try{for(var f,c=y[Symbol.iterator]();!(o=(f=c.next()).done);o=!0){var s=f.value;if(s===r(d[0]).currentPlatform&&n.has(s))return s}}catch(t){u=!0,l=t}finally{try{!o&&null!=c.return&&c.return()}finally{if(u)throw l}}return null}function v(t){var n=!0===t?y:!1===t?[]:Array.isArray(t)?t:[t],o=new Set(n);return o.has("mobile")&&(o.add("android"),o.add("ios"),o.delete("mobile")),o}},816,[798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,b,u){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!s.call(t,l)&&l!==b&&o(t,l,{get:function(){return c[l]},enumerable:!(u=n(c,l))||u.enumerable})};for(var p of l(c))f(p)}return t},b={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(b,{stylePropsAll:function(){return C},stylePropsText:function(){return x},stylePropsTextOnly:function(){return y},stylePropsTransform:function(){return S},stylePropsUnitless:function(){return p},stylePropsView:function(){return h},tokenCategories:function(){return f},validPseudoKeys:function(){return B},validStyles:function(){return I}}),m.exports=(t=b,c(o({},"__esModule",{value:!0}),t));var u={color:!0,textDecorationColor:!0,textShadowColor:!0},f={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:Object.assign({backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0},u)},p={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,gridTemplateColumns:!0,gridTemplateAreas:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},S={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},h=Object.assign({backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,direction:!0,shadowOffset:!0,shadowRadius:!0},f.color,f.radius,f.size,f.radius,S,p,{boxShadow:!0,filter:!0},r(d[0]).isAndroid?{elevationAndroid:!0}:{}),y=Object.assign({},{fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,fontVariant:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0},{textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0},u,{textShadowOffset:!0,textShadowRadius:!0,userSelect:!0,selectable:!0,verticalAlign:!0}),x=Object.assign({},h,y),C=x,B={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusWithinStyle:!0},I=h},817,[798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var p of c(n))s(p)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{withStaticProperties:function(){return j}}),m.exports=(t=s,b(o({},"__esModule",{value:!0}),t));var p=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=Symbol(),j=function(t,n){var o=(function(){if(t[O]){var n=p.default.forwardRef(function(n,o){return p.default.createElement(t,Object.assign({},n,{ref:o}))});for(var o in t){var u=t[o];n[o]=u&&"object"==typeof u?Object.assign({},u):u}}return t})();return Object.assign(o,n),o[O]=!0,o}},818,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{Tamagui:function(){return s},getValueFromIdentifier:function(){return v},setIdentifierValue:function(){return y}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));!(function(t,u,c){c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));var s=void 0,O=new Map,v=function(t){return O.get(t)},y=function(t,n){O.set(t,n)}},819,[811]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),s=["group","hasDynGroupChildren","unmounted","animation"],u=["asChild","children","themeShallow","spaceDirection","onPress","onLongPress","onPressIn","onPressOut","onHoverIn","onHoverOut","onMouseUp","onMouseDown","onMouseEnter","onMouseLeave","onFocus","onBlur","separator","passThrough","forceStyle","onClick","theme"],l=Object.create,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,v=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!h.call(e,s)&&s!==n&&c(e,s,{get:function(){return t[s]},enumerable:!(o=p(t,s))||o.enumerable})};for(var u of f(t))s(u)}return e},S={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(S,{Spacer:function(){return L},Unspaced:function(){return T},componentSetStates:function(){return O},createComponent:function(){return j},spacedChildren:function(){return I}}),m.exports=(e=S,y(c({},"__esModule",{value:!0}),e));var b,C,x=r(d[3]),P=(function(e,t,n){return n=null!=e?l(v(e)):{},y(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[4])),O=new Set,w=new Set(["hover","press","pressIn","group","focus","focusWithin","media","group"]),E=!1,M={value:!1};function j(e){var l=e.componentName,c=null,p=e.defaultProps;(0,r(d[6]).onConfiguredOnce)(function(e){if(c=e,l){var t,n=null===(t=e.defaultProps)||void 0===t?void 0:t[l];n&&(p=Object.assign({},n,p))}});var f=e.Component,v=e.isText,h=e.isZStack,y=e.isHOC,S=P.default.forwardRef(function(l,S){var T,L,k;if(!E){var A;E=!0;var R=null===(A=r(d[7]).hooks.getBaseViews)||void 0===A?void 0:A.call(r(d[7]).hooks);R&&(b=R.Text,C=R.View)}var F=e.context,D=(e.isReactNative,l.debug),G=F?P.default.useContext(F):void 0,N=null;process.env.TAMAGUI_IS_CORE_NODE;var V=l;if(G||p){var W=(0,r(d[9]).mergeComponentProps)(p,G,l),H=o(W,2),U=H[0],$=H[1];U&&(V=U),N=$}var B=V.componentName||e.componentName,z=P.default.useContext(r(d[10]).ComponentContext),Z=P.default.useContext(r(d[11]).GroupContext),K=z.animationDriver,q=null==K?void 0:K.useAnimations,Y=(0,r(d[12]).useComponentState)(V,K,e,c),J=Y.disabled,Q=Y.groupName,X=Y.hasAnimationProp,ee=Y.hasEnterStyle,te=Y.isAnimated,ne=Y.isExiting,oe=Y.isHydrated,re=Y.presence,se=Y.presenceState,ie=Y.setState,ue=Y.noClass,ae=Y.state,le=Y.stateRef,ce=Y.supportsCSS,de=Y.willBeAnimated,pe=Y.willBeAnimatedClient,fe=Y.startedUnhydrated;X&&null!=K&&K.avoidReRenders&&(0,r(d[5]).useIsomorphicLayoutEffect)(function(){var e=le.current.nextState;e&&(le.current.nextState=void 0,Y.setStateShallow(e))});var ve=(0,P.useMemo)(function(){var e,t;if(!Q||V.passThrough)return Z;var o=new Set;return null===(t=le.current.group)||void 0===t||null===(e=t.listeners)||void 0===e||e.clear(),le.current.group={listeners:o,emit:function(e){o.forEach(function(t){return t(e)})},subscribe:function(e){return o.add(e),1===o.size&&he({hasDynGroupChildren:!0}),function(){o.delete(e),0===o.size&&he({hasDynGroupChildren:!1})}}},Object.assign({},Z,n({},Q,{state:{pseudo:r(d[13]).defaultComponentStateMounted},subscribe:function(e){var t,n=null===(t=le.current.group)||void 0===t?void 0:t.subscribe(e);return function(){null==n||n()}}}))},[le,Q,Z]),he=Y.setStateShallow,me=!!(r(d[5]).isWeb&&v&&z.inText),ye=!f||"string"==typeof f,Se=V.tag,ge=r(d[5]).isWeb&&ye&&Se||f,be=C||ge||(me?"span":"div"),Ce=v?b||ge||"span":be;K&&te&&!K.needsWebStyles&&(Ce=K[v?"Text":"View"]||Ce);var xe=y;V.themeShallow&&(le.current.themeShallow=!0);var Pe={componentName:B,disable:xe,shallow:le.current.themeShallow,debug:D};"themeInverse"in V&&(Pe.inverse=V.themeInverse),"theme"in V&&(Pe.name=V.theme),"boolean"==typeof le.current.isListeningToTheme&&(Pe.needsUpdate=function(){return!!le.current.isListeningToTheme}),Pe.deopt=de;var Oe=(0,r(d[15]).useThemeWithState)(Pe),we=o(Oe,2),Ee=we[0],Me=we[1],je=(Ce=f||Ce,(0,r(d[16]).useMedia)(z,D));(0,r(d[17]).setDidGetVariableValue)(!1);var Te={mediaState:je,noClass:ue,resolveValues:te&&!ce||y&&0==ae.unmounted&&X?"value":"auto",isExiting:ne,isAnimated:te,willBeAnimated:de,styledContext:G},Le=(null==Me?void 0:Me.name)||"",Ie=(0,r(d[18]).useSplitStyles)(V,e,Ee,Le,ae,Te,null,z,ve,Ce,fe,D),ke=!Ie,Ae=Q&&(null==ve?void 0:ve[Q])||null;if(!ke&&Ae&&"normal"!==V.containerType){var Re,Fe,De=null==Ae?void 0:Ae.state;if(De&&void 0===De.layout)(null!==(Re=Ie.style)&&void 0!==Re&&Re.width||null!==(Fe=Ie.style)&&void 0!==Fe&&Fe.height)&&(De.layout={width:_(Ie.style.width),height:_(Ie.style.height)})}if(!ke&&(X||Q)&&null!=K&&K.avoidReRenders){var Ge,Ne=function(){var e=le.current.nextState;if(Ae){e.group,e.hasDynGroupChildren,e.unmounted,e.animation;var n=t(e,s);j(Ae,le.current.group||null,n)}},Ve=he;le.current.updateStyleListener=function(){var t=le.current.nextState||ae,n=le.current.nextMedia,o=(0,r(d[18]).getSplitStyles)(V,e,Ee,Le,t,n?Object.assign({},Te,{mediaState:n}):Te,null,z,ve,Ce,fe,D),s=le.current.useStyleListener;null==s||s((null==o?void 0:o.style)||{})},(Ge=z).mediaEmit||(Ge.mediaEmit=function(e){var t,n;le.current.nextMedia=e,null===(t=(n=le.current).updateStyleListener)||void 0===t||t.call(n)}),le.current.setStateShallow=function(e){var t=le.current.nextState||ae,n="function"==typeof e?e(t):e;if(n!==t&&!(0,r(d[19]).isEqualShallow)(t,n)){var o,s,u=Object.keys(n).every(function(e){return w.has(e)}),l=Object.assign({},t,n);if(le.current.nextState=l,u)Ne(),null===(o=(s=le.current).updateStyleListener)||void 0===o||o.call(s);else Ve(n)}},he=function(e){var t,n;null===(t=(n=le.current).setStateShallow)||void 0===t||t.call(n,e)}}if(Ie){var We;if(V.group&&"hide"===V.untilMeasured&&!le.current.hasMeasured)(We=Ie).style||(We.style={}),Ie.style.opacity=0;null!=Ie.dynamicThemeAccess&&(le.current.isListeningToTheme=Ie.dynamicThemeAccess)}var He=(null==Ie?void 0:Ie.hasMedia)&&!0!==Ie.hasMedia,Ue=(0,r(d[17]).didGetVariableValue)()||He||ue&&!0===(null==Ie?void 0:Ie.hasMedia),$e=He?Ie.hasMedia:null;(0,r(d[16]).setMediaShouldUpdate)(z,Ue,$e);var Be,ze,Ze=Ie||{},Ke=Ze.viewProps,qe=Ze.pseudos,Ye=Ze.style,Je=(Ze.classNames,Ze.space),Qe=Ze.pseudoGroups,Xe=Ze.mediaGroups,et=V,tt=Ke||{},nt=tt.asChild,ot=tt.children,rt=(tt.themeShallow,tt.spaceDirection,tt.onPress),st=tt.onLongPress,it=tt.onPressIn,ut=tt.onPressOut,at=tt.onHoverIn,lt=tt.onHoverOut,ct=tt.onMouseUp,dt=tt.onMouseDown,pt=tt.onMouseEnter,ft=tt.onMouseLeave,vt=tt.onFocus,ht=tt.onBlur,mt=tt.separator,yt=tt.passThrough,St=(tt.forceStyle,tt.onClick),gt=tt.theme,bt=t(tt,u),Ct=bt;if(!ye&&V.forceStyle&&(Ct.forceStyle=V.forceStyle),y&&(typeof gt<"u"&&(Ct.theme=gt),typeof yt<"u"&&(Ct.passThrough=yt)),Se&&Ce.acceptTagProp&&(Ct.tag=Se),(ce?pe:de)&&q&&!y){var xt=q({props:et,style:Ye||{},styleState:Ie,useStyleEmitter:null!=K&&K.avoidReRenders?function(e){le.current.useStyleListener=e}:void 0,presence:re,componentState:ae,styleProps:Te,theme:Ee,pseudos:qe||null,staticConfig:e,stateRef:le});xt&&(xt.ref&&(ze=xt.ref),oe&&xt&&(Be=xt.style,Ct.style=Be,xt.className&&(Ct.className=`${"should-enter"===ae.unmounted?"t_unmounted ":""}${Ct.className||""} ${xt.className}`)))}!ke&&Ae&&"normal"!==V.containerType&&(bt.onLayout=(0,r(d[20]).composeEventHandlers)(bt.onLayout,function(e){var t,n=e.nativeEvent.layout;Ae.state.layout=n,null===(t=le.current.group)||void 0===t||t.emit({layout:n}),!le.current.hasMeasured&&"hide"===V.untilMeasured&&ie(function(e){return Object.assign({},e)}),le.current.hasMeasured=!0})),Ct=(null===(T=r(d[7]).hooks.usePropsTransform)||void 0===T?void 0:T.call(r(d[7]).hooks,Ce,bt,le,le.current.willHydrate))||bt,le.current.composedRef||(le.current.composedRef=(0,r(d[21]).composeRefs)(function(e){return le.current.host=e},S,r(d[22]).setElementProps,ze)),Ct.ref=le.current.composedRef;var Pt=function(){he({press:!1,pressIn:!1})};(0,r(d[5]).useIsomorphicLayoutEffect)(function(){var e;if(!0!==ae.unmounted||!ee)return ae.unmounted?null!=K&&K.supportsCSS||r(d[5]).isAndroid?(e=setTimeout(function(){he({unmounted:!1})}),function(){return clearTimeout(e)}):void he({unmounted:!1}):function(){O.delete(ie)};he({unmounted:"should-enter"})},[ae.unmounted,J]),(0,r(d[5]).useIsomorphicLayoutEffect)(function(){if(!J&&(Qe||Xe)&&ve)return(0,r(d[23]).subscribeToContextGroup)({groupContext:ve,setStateShallow:he,mediaGroups:Xe,pseudoGroups:Qe})},[ve,J,Qe?(0,r(d[24]).objectIdentityKey)(Qe):0,Xe?(0,r(d[24]).objectIdentityKey)(Xe):0]);var Ot=le.current.group;(0,r(d[5]).useIsomorphicLayoutEffect)(function(){!Ae||!Ot||j(Ae,Ot,ae)},[Ae,Ot,ae]);var wt,Et=!J&&ue&&(null==qe?void 0:qe.pressStyle),Mt=!J&&ue&&(null==qe?void 0:qe.focusStyle),jt=!J&&ue&&(null==qe?void 0:qe.focusVisibleStyle),Tt=!!(Et||Mt||jt||vt||ht||z.setParentFocusState),Lt=!(!Q||!ae.hasDynGroupChildren),It=!!(Lt||Et||rt||ut||it||dt||ct||st||St||null!=qe&&qe.focusVisibleStyle),kt=!J&&ue&&(null==qe?void 0:qe.hoverStyle),At=!(!Lt&&!kt),Rt=r(d[5]).isWeb&&!!(Lt||At||pt||ft),_t=!J&&!V.asChild&&!!(Tt||It||Rt||Et||kt||Mt),Ft=!(!Lt&&!Et),Dt=_t?Object.assign({onPressOut:It?function(e){Pt(),null==ut||ut(e),null==ct||ct(e)}:void 0},(Rt||It)&&{onMouseEnter:function(e){var t={};At&&(t.hover=!0),Ft&&ae.pressIn&&(t.press=!0),he(t),null==at||at(e),null==pt||pt(e)},onMouseLeave:function(e){var t={};At&&(t.hover=!1),Ft&&(t.press=!1,t.pressIn=!1),he(t),null==lt||lt(e),null==ft||ft(e)}},{onPressIn:It?function(e){Ft&&he({press:!0,pressIn:!0}),null==it||it(e),null==dt||dt(e),r(d[5]).isWeb&&O.add(ie)}:void 0,onPress:It?function(e){Pt(),r(d[5]).isWeb&&(null==St||St(e)),null==rt||rt(e)}:void 0},It&&st&&{onLongPress:function(e){Pt(),null==st||st(e)}},Tt&&{onFocus:function(e){var t={};z.setParentFocusState&&(t.focusWithin=!0),null!=qe&&qe.focusVisibleStyle&&M.value?t.focusVisible=!0:t.focus=!0,he(t),null==vt||vt(e)},onBlur:function(e){z.setParentFocusState&&z.setParentFocusState({focusWithin:!1}),he({focus:!1,focusVisible:!1,focusWithin:!1}),null==ht||ht(e)}}):null;Dt&&!nt&&Object.assign(Dt,{cancelable:!Ct.rejectResponderTermination,disabled:J,hitSlop:Ct.hitSlop,delayLongPress:Ct.delayLongPress,delayPressIn:Ct.delayPressIn,delayPressOut:Ct.delayPressOut,focusable:null===(wt=Ct.focusable)||void 0===wt||wt,minPressDuration:0});null===(L=r(d[7]).hooks.useEvents)||void 0===L||L.call(r(d[7]).hooks,Ct,Dt,Ie,he,e);var Gt,Nt=V.spaceDirection||"both",Vt=ot&&!nt&&Ie?I({separator:mt,children:ot,space:Je,direction:Nt,isZStack:h,debug:D}):ot;nt&&(Ce=r(d[25]).Slot,Object.assign(Ct,{onPress:rt,onLongPress:st}));ke&&(Vt=l.children,Ce=be,Ct={style:{display:"contents"}}),r(d[7]).hooks.useChildren&&(Gt=r(d[7]).hooks.useChildren(Ce,Vt,Ct)),Vt=Gt||P.default.createElement(Ce,Ct,Vt);var Wt=null==c||null===(k=c.animations)||void 0===k?void 0:k.ResetPresence,Ht=!(nt||!Ie||y||!Wt||!de||!ee&&!se),Ut=le.current.hasEverResetPresence;if(Ht&&!Ut&&(le.current.hasEverResetPresence=!0),(Ht||Ut)&&Wt&&(Vt=(0,x.jsx)(Wt,{disabled:!Ht,children:Vt})),"focusWithinStyle"in l&&(Vt=(0,x.jsx)(r(d[10]).ComponentContext.Provider,Object.assign({},z,{setParentFocusState:he,children:Vt}))),"group"in V&&(Vt=(0,x.jsx)(r(d[11]).GroupContext.Provider,{value:ve,children:Vt})),Vt=xe||!Ie?Vt:(0,r(d[26]).getThemedChildren)(Me,Vt,Pe,!1,le),N){var $t=e.context.Provider;for(var Bt in G)Bt in N||(N[Bt]=G[Bt]);D&&console.info("overriddenContextProps",N),Vt=(0,x.jsx)($t,Object.assign({__disableMergeDefaultValues:!0},N,{children:Vt}))}return Vt});function j(e,t,n){if(e&&t){var o=Object.assign({},e.state,{pseudo:n});t.emit(o),e.state=o}}e.componentName&&(S.displayName=e.componentName);var T=S;function L(t){return Object.assign({},e,t,{neverFlatten:!0,isHOC:!0,isStyledHOC:!1})}function k(e,t){var n,o=r(d[5]).IS_REACT_19&&"function"==typeof e&&1===e.length||2===(null===(n=e.render)||void 0===n?void 0:n.length)?e:P.default.forwardRef(e),s=L(null==t?void 0:t.staticConfig);return o=null!=t&&t.disableTheme?o:(0,r(d[27]).themeable)(o,s,!0),(s.memo||process.env.TAMAGUI_MEMOIZE_STYLEABLE)&&(o=P.default.memo(o)),o.staticConfig=s,o.styleable=k,o}return(process.env.TAMAGUI_FORCE_MEMO||e.memo)&&(T=P.default.memo(T)),T.staticConfig=e,T.extractable=function(e,t){return e.staticConfig=L(t),e.styleable=k,e},T.styleable=k,T}function T(e){return e.children}r(d[5]).isWeb&&typeof document<"u"&&(document.addEventListener("keydown",function(){M.value||(M.value=!0)}),document.addEventListener("mousedown",function(){M.value&&(M.value=!1)}),document.addEventListener("mousemove",function(){M.value&&(M.value=!1)})),T.isUnspaced=!0;var L=j({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:r(d[20]).validStyles,defaultProps:Object.assign({},r(d[28]).stackDefaultStyles,{tag:"span",size:!0,pointerEvents:"none"}),variants:{size:{"...":function(e,t){e=!1===e?0:!0===e?"$true":e;var n,o=null!==(n=t.tokens.space[e])&&void 0!==n?n:e;return{width:o,height:o,minWidth:o,minHeight:o}}},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function I(e){var t,n,s=e.isZStack,u=e.children,l=e.space,c=e.direction,p=e.spaceFlex,f=e.separator,v=e.ensureKeys,h=!(!l&&!p),y=null!=f,S=Array.isArray(u);if(!v&&!(h||y||s))return u;var b=S?u:P.default.Children.toArray(u);if(b.length<=1&&!s&&(null===(n=b[0])||void 0===n||null===(t=n.type)||void 0===t||!t.shouldForwardSpace))return u;var C=[],O=!0,w=!1,E=void 0;try{for(var M,j=b.entries()[Symbol.iterator]();!(O=(M=j.next()).done);O=!0){var T,L=o(M.value,2),I=L[0],_=L[1],F=null==_||Array.isArray(_)&&0===_.length;if(!F&&P.default.isValidElement(_)&&!(null===(T=_.type)||void 0===T)&&T.shouldForwardSpace&&(_=P.default.cloneElement(_,{space:l,spaceFlex:p,separator:f,key:_.key})),F||!_||_.key&&!s?C.push(_):C.push((0,x.jsx)(P.default.Fragment,{children:s?(0,x.jsx)(R,{children:_}):_},`${I}0t`)),!(A(_)&&0===I||s)){var D=b[I+1];D&&!F&&!A(D)&&(f?(h&&C.push(k({key:`_${I}_00t`,direction:c,space:l,spaceFlex:p})),C.push((0,x.jsx)(P.default.Fragment,{children:f},`${I}03t`)),h&&C.push(k({key:`_${I}01t`,direction:c,space:l,spaceFlex:p}))):C.push(k({key:`_${I}02t`,direction:c,space:l,spaceFlex:p})))}}}catch(e){w=!0,E=e}finally{try{!O&&null!=j.return&&j.return()}finally{if(w)throw E}}return C}function k(e){var t=e.key,n=e.direction,o=e.space,s=e.spaceFlex;return(0,x.jsx)(L,Object.assign({size:o,direction:n},typeof s<"u"&&{flex:!0===s?1:!1===s?0:s}),t)}function A(e){var t=null==e?void 0:e.type;return(null==t?void 0:t.isVisuallyHidden)||(null==t?void 0:t.isUnspaced)}var R=j({defaultProps:Object.assign({},r(d[28]).stackDefaultStyles,{flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"})}),_=function(e){return"number"==typeof e?e:"string"==typeof e?+e.replace("px",""):0}},820,[207,18,19,258,128,798,804,821,822,823,824,827,828,831,833,834,802,810,838,800,811,860,862,863,826,864,865,866,808]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var O of u(f))b(O)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{hooks:function(){return p},setupHooks:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p={};function b(t){Object.assign(p,t)}},821,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(n,t,f,l){if(t&&"object"==typeof t||"function"==typeof t){var p=function(c){!u.call(n,c)&&c!==f&&o(n,c,{get:function(){return t[c]},enumerable:!(l=i(t,c))||l.enumerable})};for(var s of c(t))p(s)}return n},l={};function p(){var n=0,o=new Set,i={};function c(){var c=n/o.size,u=0,f=[`Ran ${c} per-type, ${n} total`].concat(t(t(o).map(function(n){if(!n.endsWith("(ignore)")){var t=`avg ${(""+i[n]/c).slice(0,9).padEnd(9)}ms`,o=i[n];return u+=o,`${n.slice(0,30).padStart(31)} | ${t} | total ${o}ms`}})),[` total ${u}ms`]).join("\n");return console.info(f),f}return{start:function(t){var u,f=null===(u=null==t?void 0:t.quiet)||void 0===u||u;function l(t){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"",c=O(t),l=c.Provider,f=c,s=new Map,v=O(u);function p(n){var o=s.get(n);return o||(o=O(t),s.set(n,o)),o}var b=function(t){return u?`${u}--${t}`:t};return f.Provider=function(u){var c=u.children,f=u.scope,s=u.__disableMergeDefaultValues,O=n(u,o),P=b(f),_=j.default.useMemo(function(){return s?O:(0,r(d[3]).mergeProps)(t,O)},[(0,r(d[4]).objectIdentityKey)(O)]),x=l;return P&&(x=p(P).Provider),(0,y.jsx)(v.Provider,{value:P,children:(0,y.jsx)(x,{value:_,children:c})})},f.props=t,f.context=c,f.useStyledContext=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=(0,j.useContext)(v),o=u?t?b(t):n:t,l=o?p(o):c;return j.default.useContext(l)},f}},825,[207,258,128,823,826]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,u=function(t,u,p,s){if(u&&"object"==typeof u||"function"==typeof u){var b=function(f){!c.call(t,f)&&f!==p&&n(t,f,{get:function(){return u[f]},enumerable:!(s=o(u,f))||s.enumerable})};for(var v of f(u))b(v)}return t},p={};function s(t){var n="";for(var o in t){n+=o;var f=t[o],c=typeof f;if(!f||"object"!==c&&"function"!==c)n+=c+f;else if(b.has(f))n+=b.get(f);else{var u=Math.random();b.set(f,u),n+=u}}return n}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(p,{objectIdentityKey:function(){return s}}),m.exports=(t=p,u(n({},"__esModule",{value:!0}),t));var b=new WeakMap},826,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{GroupContext:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).createContext)(null)},827,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=r(d[1]),l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var v=function(u){!c.call(t,u)&&u!==s&&l(t,u,{get:function(){return n[u]},enumerable:!(f=o(n,u))||f.enumerable})};for(var b of u(n))v(b)}return t},v={};!(function(t,n){for(var s in n)l(t,s,{get:n[s],enumerable:!0})})(v,{useComponentState:function(){return S}}),m.exports=(t=v,f(l({},"__esModule",{value:!0}),t));var b=r(d[2]),S=function(t,l,o,u){var c,f,v=(0,r(d[3]).useDidFinishSSR)(),S=!(0,r(d[3]).useIsClientOnly)(),y=(0,b.useState)(S&&!v),O=s(y,1)[0],C=null==l?void 0:l.useAnimations,h=o.isHOC,j=(0,b.useRef)({}),A=!!(!h&&"animation"in t||t.style&&(f=t.style,Object.keys(f).some(function(t){var n=f[t];return n&&"object"==typeof n&&"_animation"in n}))),P=null==l?void 0:l.supportsCSS,w=j.current;!S&&A&&(w.hasAnimated=!0);var R=!((!A||h||!C)&&!w.hasAnimated),N=!r(d[4]).isServer&&R;N&&!w.hasAnimated&&(w.hasAnimated=!0);var _=t.disableClassName,x=!h&&N&&!1!==t.animatePresence&&(null==l||null===(c=l.usePresence)||void 0===c?void 0:c.call(l))||null,E=null==x?void 0:x[2],H=!1===(null==E?void 0:E.isPresent),D=!0===(null==E?void 0:E.isPresent)&&!1!==E.initial,M=!!t.enterStyle,V=A&&!v&&((null==l?void 0:l.isReactNative)||!P),W=!h&&(M||D||V||_)?M||D?r(d[5]).defaultComponentStateShouldEnter:r(d[5]).defaultComponentState:r(d[5]).defaultComponentStateMounted,B=p(t);null!=B&&(W.disabled=B);var k=(0,b.useState)(W),F=t.forceStyle?Object.assign({},k[0],n({},t.forceStyle,!0)):k[0],I=k[1],T=N;r(d[4]).isWeb&&V&&!o.isHOC&&!v&&(T=!1,w.willHydrate=!0),B!==F.disabled&&(B&&Object.assign(F,r(d[5]).defaultComponentStateMounted),F.disabled=B,I(function(t){return Object.assign({},F)}));var U=t.group,q=(0,r(d[6]).useCreateShallowSetState)(I,t.debug);if(E&&T&&v&&o.variants){var z=E.enterVariant,G=E.exitVariant,J=E.enterExitVariant,K=E.custom;(0,r(d[7]).isObj)(K)&&Object.assign(t,K);var L=null!=G?G:J,Q=null!=z?z:J;F.unmounted&&Q&&o.variants[Q]?t[Q]=!0:H&&L&&(t[L]=G!==J)}var X=!r(d[4]).isWeb||!!t.forceStyle;if(v){if(r(d[4]).isWeb&&v){var Y=T&&v,Z=!o.acceptsClassName&&(u.disableSSR||!F.unmounted),$=_&&!F.unmounted;(Y||$||Z)&&(X=!0)}}else X=!1;return{startedUnhydrated:O,curStateRef:w,disabled:B,groupName:U,hasAnimationProp:A,hasEnterStyle:M,isAnimated:T,isExiting:H,isHydrated:v,presence:x,presenceState:E,setState:I,setStateShallow:q,noClass:X,state:F,stateRef:j,supportsCSS:P,willBeAnimated:N,willBeAnimatedClient:R}};var p=function(t){var n;return t.disabled||t.passThrough||(null===(n=t.accessibilityState)||void 0===n?void 0:n.disabled)||t["aria-disabled"]||t.accessibilityDisabled||!1}},828,[18,19,128,829,798,831,800,832]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,O=function(t,n,c,O){if(n&&"object"==typeof n||"function"==typeof n){var y=function(l){!f.call(t,l)&&l!==c&&u(t,l,{get:function(){return n[l]},enumerable:!(O=o(n,l))||O.enumerable})};for(var s of l(n))y(s)}return t},y={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(y,{ClientOnly:function(){return r(d[0]).ClientOnly},ClientOnlyContext:function(){return r(d[0]).ClientOnlyContext},useClientValue:function(){return b},useDidFinishSSR:function(){return p},useIsClientOnly:function(){return C}}),m.exports=(t=y,O(u({},"__esModule",{value:!0}),t));var s=(function(t,o,l){return l=null!=t?n(c(t)):{},O(!o&&t&&t.__esModule?l:u(l,"default",{value:t,enumerable:!0}),t)})(r(d[1])),C=function(){return s.useContext(r(d[0]).ClientOnlyContext)};function p(){s.useContext(r(d[0]).ClientOnlyContext);return!0}function b(t){return p()?"function"==typeof t?t():t:void 0}},829,[830,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,f,p){if(l&&"object"==typeof l||"function"==typeof l){var b=function(u){!c.call(t,u)&&u!==f&&n(t,u,{get:function(){return l[u]},enumerable:!(p=o(l,u))||p.enumerable})};for(var s of u(l))b(s)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{ClientOnly:function(){return v},ClientOnlyContext:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var p=r(d[0]),b=r(d[1]),s=(0,b.createContext)(!1),v=function(t){var n=t.children,o=t.enabled,u=(0,b.useContext)(s);return(0,p.jsx)(s.Provider,{value:null!=o?o:u,children:n})}},830,[258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))l(b)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{defaultComponentState:function(){return p},defaultComponentStateMounted:function(){return l},defaultComponentStateShouldEnter:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,focusWithin:!1,unmounted:!0,disabled:!1},l=Object.assign({},p,{unmounted:!1}),b=Object.assign({},p,{unmounted:"should-enter"})},831,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))y(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isObj:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return t&&!Array.isArray(t)&&"object"==typeof t}},832,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var y of u(f))b(y)}return t},p={};function l(){for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{});return n(t,1)[0]},v=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,p.useRef)(null),u=(0,r(d[2]).useThemeState)(t,n,o);return[t.passThrough?{}:(0,r(d[3]).getThemeProxied)(t,u,o),u]}},834,[19,128,807,835]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var v=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var h of c(n))v(h)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{getThemeProxied:function(){return y}}),m.exports=(t=s,l(o({},"__esModule",{value:!0}),t));var v,h,b,p=new Map,O={};function y(t,o,u){if(null==o||!o.theme)return O;if(v=u,h=t,b=o,p.has(b.theme))return p.get(b.theme);var c=(0,r(d[1]).getConfig)();function f(t){v&&(v.current||(v.current=new Set),v.current.add(t))}var l=Object.fromEntries(Object.entries(o.theme).flatMap(function(t){var o=n(t,2),u=o[0],l=o[1],s=Object.assign({},l,{get val(){return globalThis.tamaguiAvoidTracking||f(u),l.val},get:function(t){if(b){var n=(0,r(d[2]).getVariable)(l),o=b,s=o.name,v=o.scheme,p=o.inverses;if(v&&"web"!==t&&r(d[3]).isIos&&!h.deopt&&(0,r(d[1]).getSetting)("fastSchemeChange")&&0===p&&(0,r(d[4]).doesRootSchemeMatchSystem)()){var O,y,j="dark"===v?"light":"dark",w=s.replace(v,j),P=(0,r(d[2]).getVariable)(null===(O=c.themes[s])||void 0===O?void 0:O[u]),S=(0,r(d[2]).getVariable)(null===(y=c.themes[w])||void 0===y?void 0:y[u]);return(0,r(d[5]).getDynamicVal)({scheme:v,val:P,oppositeVal:S})}return f(u),n}}});return[[u,s],[`$${u}`,s]]}));return p.set(o.theme,l),l}},835,[19,804,810,798,836,837]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(l=n(f,c))||l.enumerable})};for(var v of c(f))s(v)}return t},p={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{doesRootSchemeMatchSystem:function(){return s}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=r(d[0]);function s(){var t;return(null===(t=(0,r(d[1]).getRootThemeState)())||void 0===t?void 0:t.scheme)===l.Appearance.getColorScheme()}},836,[28,807]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,n,l,p){if(n&&"object"==typeof n||"function"==typeof n){var y=function(u){!f.call(t,u)&&u!==l&&o(t,u,{get:function(){return n[u]},enumerable:!(p=c(n,u))||p.enumerable})};for(var s of u(n))y(s)}return t},p={};function y(t){return"dark"===t?"light":"dark"}function s(t){var o=t.scheme,c=t.val,u=t.oppositeVal,f=y(o);return{dynamic:n(n({},o,c),f,u)}}function b(t,n){return null!=t&&t.dynamic?t.dynamic[n]:t}!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{extractValueFromDynamic:function(){return b},getDynamicVal:function(){return s},getOppositeScheme:function(){return y}}),m.exports=(t=p,l(o({},"__esModule",{value:!0}),t))},837,[18]); +__d(function(_g,r,_i,_a,m,_e,_d){"use strict";var e,t=r(_d[0]),n=r(_d[1]),i=r(_d[2]),a=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=function(e,t,n,i){if(t&&"object"==typeof t||"function"==typeof t){var a=function(a){!u.call(e,a)&&a!==n&&s(e,a,{get:function(){return t[a]},enumerable:!(i=o(t,a))||i.enumerable})};for(var f of l(t))a(f)}return e},v={};!(function(e,t){for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(v,{PROP_SPLIT:function(){return d},getSplitStyles:function(){return g},getSubStyle:function(){return P},useSplitStyles:function(){return T}}),m.exports=(e=v,c(s({},"__esModule",{value:!0}),e));var y,p=(function(e,t,n){return n=null!=e?a(f(e)):{},c(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(r(_d[3])),d="-";function S(e,t,n){return e in t||n&&e in n}var g=function(e,t,n,i,a,s,o,l,f,u,c,v){var p=function(t){var n=t,o=e[n];if("children"===n)return R[n]=o,"continue";if(ee){var l=ee[n];if(("style"===l||"textStyle"===l)&&o&&"object"==typeof o)return R[n]=P(Z,n,o,s.noClass),"continue"}if(re||n in C&&(n=C[n]),"className"===n)return"continue";if(n in r(_d[4]).skipProps&&!te&&!j)return"continue";var u=S(n,Q,ee);if(!u){if(!r(_d[5]).isAndroid&&"elevationAndroid"===n)return"continue";if("userSelect"===n)n="selectable",o="none"!==o;else if(n.startsWith("data-"))return"continue"}if("dataSet"===n){for(var c in o)R[`data-${I(c)}`]=o[c];return"continue"}var p=!u&&N&&n in N,g=u||p,h=n in r(_d[6]).validPseudoKeys,F=!g&&!h&&(0,r(_d[7]).getMediaKey)(n),W=!(!F&&!h);if(W&&"group"===F){var k=n.split("-"),q=k.length;if(2===q||3===q&&r(_d[8]).pseudoPriorities[k[k.length-1]]){var se=k[1];f&&(null==f||!f[se])&&(n=n.replace("$group-","$group-true-"))}}var oe=u||W||p&&!ne;if(oe&&("except-style"===J||"except-style-web"===J))return"continue";var le=!oe&&j||j&&ae&&n in ae||(null==E?void 0:E.has(n)),fe=null==ae?void 0:ae[n],ue=!(!j||!(u||W||fe||n in r(_d[4]).skipProps));if((le||ue)&&(w(R,n,o,W),!p))return"continue";if(!te&&n in r(_d[4]).skipProps)return"continue";(_||$)&&o&&("fontFamily"===n||n===C.fontFamily)&&o in y.fontsParsed&&(Z.fontFamily=o);var ce=W||!g;(0,r(_d[9]).propMapper)(n,o,Z,ce,function(t,l){var u,c=ie&&t in ie;if(j||!ce||c||W){if(null!=l){if("pointerEvents"===t)return void(R[t]=l);if(!j&&S(t,Q,ee)||r(_d[5]).isAndroid&&"elevation"===t)return void b(Z,t,l,1);var y;if(h=t in r(_d[6]).validPseudoKeys,F=!h&&(0,r(_d[7]).getMediaKey)(t),W=!(!F&&!h),p=N&&t in N,null!=E&&E.has(t)||"is_static"===process.env.IS_STATIC&&null!=z&&z.has(t))R[t]=null!==(y=e[t])&&void 0!==y?y:l;if(s.noExpand&&h||j&&(W||(null==D||null===(u=D.variants)||void 0===u?void 0:u[n])))return void w(R,t,l,W);if(h){if(!l)return;var g,I,_=P(Z,t,l,s.noClass&&"is_static"!==process.env.IS_STATIC);if(!L||"is_static"===process.env.IS_STATIC)if(H||(H={}),(g=H)[I=t]||(g[I]={}),"is_static"===process.env.IS_STATIC)return void Object.assign(H[t],_);var $=r(_d[8]).pseudoDescriptors[t],k="enterStyle"===t,q="exitStyle"===t;if(!$)return;if(L&&!q){var J=(0,r(_d[10]).getStyleAtomic)(_,$),te=!0,re=!1,ne=void 0;try{for(var ae,se=J[Symbol.iterator]();!(te=(ae=se.next()).done);te=!0){var oe=ae.value,le=`${oe[r(_d[6]).StyleObjectProperty]}${d}${$.name}`;A(G,oe),U[le]=oe[r(_d[6]).StyleObjectIdentifier]}}catch(e){re=!0,ne=e}finally{try{!te&&null!=se.return&&se.return()}finally{if(re)throw ne}}}if(!L||q||k){var fe=$.stateKey||$.name,ue=!1===a[fe];q&&(ue=!s.isExiting),k&&!1===a.unmounted&&(ue=!0);var ve=$.priority;for(var ye in _){var pe=_[ye];if(ue)K(ye,Z);else if(ve>=(Z.usedKeys[ye]||0)){var de,me;if("is_static"===process.env.IS_STATIC)H||(H={}),(de=H)[me=t]||(de[me]={}),H[t][ye]=pe;b(Z,ye,pe,ve)}}if(!ue)for(var Se in l){var ge=C[Se]||Se;Z.usedKeys[ge]=Math.max(ve,Z.usedKeys[ge]||0)}}return}if(F){if(!l)return;var he=l.space,be=t.slice("theme"==F?7:1);if(Y||(Y=!0),(he||!L||s.willBeAnimated)&&((!Y||"boolean"==typeof Y)&&(Y=new Set),Y.add(be)),"platform"===F&&!(0,r(_d[11]).isActivePlatform)(t))return;var Pe=B;if(B+=1,L){var Te=P(Z,t,l,!1);if(he&&(delete Te.space,V[be])){var Ae=(0,r(_d[7]).getMediaImportanceIfMoreImportant)(be,"space",Z,!0);Ae&&(X=l.space,Z.usedKeys.space=Ae)}var Oe=(0,r(_d[10]).getCSSStylesAtomic)(Te),xe=!0,Ce=!1,Ie=void 0;try{for(var je,we=Oe[Symbol.iterator]();!(xe=(je=we.next()).done);xe=!0){var Me=je.value,Fe=Me[r(_d[6]).StyleObjectProperty],Ke="$"===Fe[0];if(!Ke||(0,r(_d[11]).isActivePlatform)(Fe)){var $e=(0,r(_d[12]).createMediaStyle)(Me,be,r(_d[7]).mediaQueryConfig,F,!1,Pe),Ne=Ke?Me[2]:"",We=`${Me[r(_d[6]).StyleObjectProperty]}${Ne}${d}${be}${Me[r(_d[6]).StyleObjectPseudo]||""}`;A(G,$e),U[We]=$e[r(_d[6]).StyleObjectIdentifier]}}}catch(e){Ce=!0,Ie=e}finally{try{!xe&&null!=we.return&&we.return()}finally{if(Ce)throw Ie}}}else{var Ee=function(e,t){var n;(n=Z).style||(n.style={}),M(Z,be,e,t,V[be],Re,v)&&"fontFamily"===e&&(Z.fontFamily=ke.fontFamily)},ze="theme"===F,De="group"===F;if(!(ze||"platform"===F||De||V[be]))return;var ke=P(Z,t,l,!0),Re=0;if(ze){if(T=!0,r(_d[5]).isIos&&(0,r(_d[13]).getSetting)("fastSchemeChange")){var Ve;(Ve=Z).style||(Ve.style={});var Le=be,Ge=(0,r(_d[14]).getOppositeScheme)(be);for(var Ue in ke){var He=(0,r(_d[14]).extractValueFromDynamic)(ke[Ue],Le),Xe=(0,r(_d[14]).extractValueFromDynamic)(Z.style[Ue],Ge);ke[Ue]=(0,r(_d[14]).getDynamicVal)({scheme:Le,val:He,oppositeVal:Xe}),b(Z,Ue,ke[Ue],Pe)}}else if(i!==be&&!i.startsWith(be))return}else if(De){var Ye,Be,Qe=(0,r(_d[15]).getGroupPropParts)(be),Ze=Qe.name,qe=null==f||null===(Ye=f[Ze])||void 0===Ye?void 0:Ye.state,Je=Qe.pseudo,et=Qe.media;if(!qe)return void(O||(O=new Set));var tt=null===(Be=a.group)||void 0===Be?void 0:Be[Ze];if(et){x||(x=new Set),x.add(et);var rt=null==tt?void 0:tt.media,nt=null==rt?void 0:rt[et];if(!rt&&qe.layout&&(nt=(0,r(_d[7]).mediaKeyMatch)(et,qe.layout)),!nt){for(var it in ke)K(it,Z);return}Re=2}if(Je){var at;O||(O=new Set),O.add(Ze);var st=null===(at=tt||(null==f?void 0:f[Ze].state))||void 0===at?void 0:at.pseudo,ot=null==st?void 0:st[Je],lt=r(_d[8]).pseudoPriorities[Je];if(!ot){for(var ft in ke)K(ft,Z);return}Re=lt}}for(var ut in ke)if("space"!==ut)if("$"===ut[0]){if(!(0,r(_d[11]).isActivePlatform)(ut)||!(0,r(_d[16]).isActiveTheme)(ut,i))continue;for(var ct in ke[ut])Ee(ct,ke[ut][ct])}else Ee(ut,ke[ut]);else X=o.space}return}if(!p){if(c)return;R[t]=l}}}else R[t]=l})};y=y||(0,r(_d[13]).getConfig)();var g=(null==l?void 0:l.animationDriver)||y.animations;if(e.passThrough)return null;r(_d[5]).isWeb&&s.isAnimated&&g.isReactNative&&!s.noNormalize&&(s.noNormalize="values");var T,O,x,C=y.shorthands,j=t.isHOC,_=t.isText,$=t.isInput,N=t.variants,W=t.isReactNative,E=t.inlineProps,z=t.inlineWhenUnflattened,D=t.parentStaticConfig,k=t.acceptsClassName,R={},V=s.mediaState||r(_d[7]).mediaState,L=k&&r(_d[5]).isWeb&&!s.noClass,G=void 0,U={},H=null,X=e.space,Y=!1,B=(e.className,0),Q=t.validStyles||(t.isText||t.isInput?r(_d[6]).stylePropsText:r(_d[6]).validStyles),Z={classNames:U,conf:y,props:e,styleProps:s,componentState:a,staticConfig:t,style:null,theme:n,usedKeys:{},viewProps:R,context:l,debug:v};if("is_static"===process.env.IS_STATIC){var q=s.fallbackProps;q&&(Z.props=new Proxy(e,{get:function(t,n,i){return Reflect.has(e,n)?Reflect.get(e,n):Reflect.get(q,n)}}))}var J=e.asChild,ee=t.accept,te=s.noSkip,re=s.disableExpandShorthands,ne=s.noExpand,ie=s.styledContext,ae=(y.settings.webContainerType,null==D?void 0:D.variants);for(var se in e)p(se);if(!(!1===s.noNormalize)){var oe;if(Z.style&&((0,r(_d[18]).fixStyles)(Z.style),!s.noExpand&&!s.noMergeStyle&&r(_d[5]).isWeb&&(!W||!g.supportsCSS)&&(0,r(_d[10]).styleToCSS)(Z.style)),Z.flatTransforms)(oe=Z).style||(oe.style={}),h(Z.style,Z.flatTransforms);if(o&&!L)for(var le in o.style){var fe;le in U||Z.style&&le in Z.style||((fe=Z).style||(fe.style={}),Z.style[le]=o.style[le])}}var ue=e.style;if(!s.noMergeStyle&&ue)if(j)R.style=F(ue);else for(var ce=Array.isArray(ue),ve=ce?ue.length:1,ye=0;ye4&&void 0!==arguments[4]&&arguments[4],o=e.viewProps,l=e.styleProps,f=e.staticConfig,u=e.usedKeys;if(!((u[t]||0)>a))if(t in r(_d[6]).stylePropsTransform){var c;(c=e).flatTransforms||(c.flatTransforms={}),u[t]=a,e.flatTransforms[t]=i}else{var v,y=r(_d[5]).isWeb&&!s&&!l.noNormalize?(0,r(_d[20]).normalizeValueWithProperty)(i,t):i;if(f.accept&&t in f.accept)o[t]=y;else(v=e).style||(v.style={}),u[t]=a,e.style[t]="transform"===t&&Array.isArray(y)?n(y):y}}var P=function(e,t,i,a){var s=function(t){var n=i[t];if(t=l.shorthands[t]||t,!o.isHOC&&t in r(_d[4]).skipProps&&!f.noSkip)return c=t,"continue";(0,r(_d[9]).propMapper)(t,n,e,!1,function(n,i){n in r(_d[6]).validPseudoKeys&&(i=P(e,n,i,a)),!a&&n in r(_d[6]).stylePropsTransform?j(u,n,i):u[n]=f.noNormalize?i:(0,r(_d[20]).normalizeValueWithProperty)(i,t)}),c=t},o=e.staticConfig,l=e.conf,f=e.styleProps,u={};for(var c in i)s(c);if(!a){if(Array.isArray(u.transform)){var v,y=null===(v=e.style)||void 0===v?void 0:v.transform;y&&(u.transform=[].concat(n(y),n(u.transform)))}e.flatTransforms&&h(u,e.flatTransforms)}return f.noNormalize||(0,r(_d[18]).fixStyles)(u),u},T=(r(_d[5]).isWeb&&(p.default.useInsertionEffect||r(_d[5]).useIsomorphicLayoutEffect),function(e,t,n,i,a,s,o,l,f,u,c,v){return g(e,t,n,i,a,s,o,l,f,u,c,v)});function A(e,t){}var O=process.env.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",x=Object.assign({},Object.fromEntries(Object.entries(r(_d[6]).tokenCategories.color).map(function(e){var t=i(e,2),n=t[0];t[1];return[n,O]})),{opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0}),C=function(e){return`-${e.toLowerCase()}`},I=function(e){return e.replace(/[A-Z]/g,C)},j=function(e,n,i){var a,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"!=typeof e.transform&&((a=e).transform||(a.transform=[]),e.transform[s?"unshift":"push"](t({},_[n]||n,i)))},_={x:"translateX",y:"translateY"};function w(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]){var i=Object.assign({},e[t],n);delete e[t],e[t]=i}else e[t]=n}function M(e,t,n,i,a,s,o){e.usedKeys;var l=(0,r(_d[7]).getMediaImportanceIfMoreImportant)(t,n,e,a);if(s&&(l=(l||0)+s),null===l)return!1;if(n in r(_d[8]).pseudoDescriptors){var f=r(_d[8]).pseudoDescriptors[n],u=f.stateKey||f.name;if(!1===e.componentState[u])return!1;for(var c in i)b(e,c,i[c],l)}else b(e,n,i,l);return!0}function F(e){var t={};for(var n in e){var i=e[n];n in r(_d[6]).stylePropsTransform?j(t,n,i):t[n]=(0,r(_d[20]).normalizeValueWithProperty)(i,n)}return r(_d[5]).isWeb&&Array.isArray(t.transform)&&(t.transform=(0,r(_d[21]).transformsToString)(t.transform)),(0,r(_d[18]).fixStyles)(t),t}function K(e,t){var n=x[e];null!=n&&!(e in t.usedKeys)&&(!t.style||!(e in t.style))&&b(t,e,n,1)}},838,[18,32,19,128,839,798,811,802,803,841,853,854,855,804,837,856,857,833,847,858,846,859]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,p,f){if(c&&"object"==typeof c||"function"==typeof c){var b=function(s){!u.call(t,s)&&s!==p&&n(t,s,{get:function(){return c[s]},enumerable:!(f=o(c,s))||f.enumerable})};for(var l of s(c))b(l)}return t},p={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(p,{skipProps:function(){return f}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t));var f={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};Object.assign(f,r(d[0]).webPropsToSkip)},839,[840]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(o,u,l,k){if(u&&"object"==typeof u||"function"==typeof u){var p=function(c){!s.call(o,c)&&c!==l&&t(o,c,{get:function(){return u[c]},enumerable:!(k=n(u,c))||k.enumerable})};for(var b of c(u))p(b)}return o},l={};!(function(o,n){for(var c in n)t(o,c,{get:n[c],enumerable:!0})})(l,{webPropsToSkip:function(){return k}}),m.exports=(o=l,u(t({},"__esModule",{value:!0}),o));var k={whiteSpace:1,wordWrap:1,textOverflow:1,textDecorationDistance:1,cursor:1,contain:1,boxSizing:1,touchAction:1,outlineStyle:1,outlineOffset:1,outlineWidth:1,outlineColor:1,backdropFilter:1,backgroundImage:1,mixBlendMode:1,scrollbarWidth:1,backgroundOrigin:1,backgroundPosition:1,backgroundRepeat:1,backgroundSize:1,backgroundClip:1,backgroundBlendMode:1,backgroundAttachment:1,background:1,clipPath:1,caretColor:1,transformStyle:1,mask:1,maskImage:1,textEmphasis:1,borderImage:1,float:1,content:1,overflowBlock:1,overflowInline:1,maskBorder:1,maskBorderMode:1,maskBorderOutset:1,maskBorderRepeat:1,maskBorderSlice:1,maskBorderSource:1,maskBorderWidth:1,maskClip:1,maskComposite:1,maskMode:1,maskOrigin:1,maskPosition:1,maskRepeat:1,maskSize:1,maskType:1}},840,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";var n,i=r(d[0]),t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,u=function(n,i,u,s){if(i&&"object"==typeof i||"function"==typeof i){var v=function(l){!f.call(n,l)&&l!==u&&t(n,l,{get:function(){return i[l]},enumerable:!(s=o(i,l))||s.enumerable})};for(var c of l(i))v(c)}return n},s={};!(function(n,i){for(var o in i)t(n,o,{get:i[o],enumerable:!0})})(s,{getFontFamilyFromNameOrVariable:function(){return p},getTokenForKey:function(){return P},propMapper:function(){return v}}),m.exports=(n=s,u(t({},"__esModule",{value:!0}),n));var v=function(n,t,o,l,f){if(l)return f(n,t);if(O=null,r(d[1]).isAndroid||"elevationAndroid"!==n){var u=o.conf,s=o.styleProps,v=o.staticConfig;if("unset"===t){var p,y=null===(p=u.unset)||void 0===p?void 0:p[n];if(null==y)return;t=y}var b=v.variants;if(!s.noExpand&&b&&n in b){var h=c(n,t,s,o,"");if(h)return void h.forEach(function(n){var t=i(n,2),o=t[0],l=t[1];return f(o,l)})}if(s.disableExpandShorthands||n in u.shorthands&&(n=u.shorthands[n]),null!=t&&("$"===t[0]?t=P(n,t,s,o):(0,r(d[2]).isVariable)(t)&&(t=S(n,t,s.resolveValues))),null!=t){"fontFamily"===n&&O&&(o.fontFamily=O);var F=s.noExpand?null:(0,r(d[3]).expandStyle)(n,t);if(F)for(var k=F.length,V=0;V1&&void 0!==arguments[1]&&arguments[1],o={};for(var u in t){var c=t[u];if(null!=c){if(u in r(d[0]).pseudoDescriptors||"$"===u[0]&&(0,r(d[1]).isObj)(c)){o[u]=s(c,n);continue}var f=n?c:(0,r(d[2]).normalizeValueWithProperty)(c,u),l=(0,r(d[3]).expandStyle)(u,f);l?Object.assign(o,Object.fromEntries(l)):o[u]=f}}return(0,r(d[4]).fixStyles)(o),o}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{normalizeStyle:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},845,[803,832,846,842,847]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{normalizeValueWithProperty:function(){return p}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=Object.assign({},r(d[0]).stylePropsAll,{translateX:!0,translateY:!0});function p(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!r(d[1]).isWeb||r(d[0]).stylePropsUnitless[n]||n&&!s[n]||"boolean"==typeof t)return t;var o=t;return t&&"object"==typeof t?t:("number"==typeof t?o=`${t}px`:n&&(o=`${o}`),o)}},846,[811,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,b,u,c){if(b&&"object"==typeof b||"function"==typeof b){var s=function(l){!f.call(t,l)&&l!==u&&o(t,l,{get:function(){return b[l]},enumerable:!(c=n(b,l))||c.enumerable})};for(var y of l(b))s(y)}return t},u={};function c(t){for(var o in"elevationAndroid"in t&&(t.elevation=t.elevationAndroid,delete t.elevationAndroid),(null!=t.shadowRadius||t.shadowColor||null!=t.shadowOpacity||t.shadowOffset)&&Object.assign(t,(0,r(d[0]).normalizeShadow)(t)),y)if(o in t){var n,l;(n=t)[l=y[o]]||(n[l]="solid")}}!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(u,{fixStyles:function(){return c}}),m.exports=(t=u,b(o({},"__esModule",{value:!0}),t));var s=r(d[1]).isWeb?null:"borderStyle",y={borderWidth:"borderStyle",borderBottomWidth:s||"borderBottomStyle",borderTopWidth:s||"borderTopStyle",borderLeftWidth:s||"borderLeftStyle",borderRightWidth:s||"borderRightStyle"}},847,[848,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,s,c,l){if(s&&"object"==typeof s||"function"==typeof s){var h=function(u){!f.call(t,u)&&u!==c&&o(t,u,{get:function(){return s[u]},enumerable:!(l=n(s,u))||l.enumerable})};for(var w of u(s))h(w)}return t},c={};function l(t){var o,n=t.shadowColor,u=t.shadowOffset,f=t.shadowOpacity,s=t.shadowRadius,c=u||r(d[0]).defaultOffset,l=c.height;return{shadowOffset:{width:c.width||0,height:l||0},shadowRadius:s||0,shadowColor:(0,r(d[1]).normalizeColor)(n,1),shadowOpacity:null!=f?f:n?null===(o=(0,r(d[1]).getRgba)(n))||void 0===o?void 0:o.a:1}}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(c,{normalizeShadow:function(){return l}}),m.exports=(t=c,s(o({},"__esModule",{value:!0}),t))},848,[849,850]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,p,b){if(c&&"object"==typeof c||"function"==typeof c){var l=function(f){!u.call(t,f)&&f!==p&&n(t,f,{get:function(){return c[f]},enumerable:!(b=o(c,f))||b.enumerable})};for(var s of f(c))l(s)}return t},p={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(p,{defaultOffset:function(){return b}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t));var b={height:0,width:0}},849,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(n,c,l,b){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(n,u)&&u!==l&&t(n,u,{get:function(){return c[u]},enumerable:!(b=o(c,u))||b.enumerable})};for(var s of u(c))p(s)}return n},l={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{getRgba:function(){return p},normalizeColor:function(){return b},rgba:function(){return r(d[0]).rgba}}),m.exports=(n=l,c(t({},"__esModule",{value:!0}),n));var b=function(n,t){if(n){if("$"===n[0])return n;if(n.startsWith("var(")){if("number"==typeof t&&t<1)return`color-mix(in srgb, ${n} ${100*t}%, transparent)`}else{var o=p(n);if(o){var u,f=`${o.r},${o.g},${o.b}`;return 1===t?`rgb(${f})`:`rgba(${f},${null!==(u=null!=t?t:o.a)&&void 0!==u?u:1})`}}return n}},p=function(n){var t=(0,r(d[0]).normalizeCSSColor)(n);if(null!=t)return(0,r(d[0]).rgba)(t)}},850,[851]); +__d(function(_g,_r,i,_a,m,e,d){"use strict";var t,r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=function(t,r,a,f){if(r&&"object"==typeof r||"function"==typeof r){var l=function(u){!c.call(t,u)&&u!==a&&n(t,u,{get:function(){return r[u]},enumerable:!(f=o(r,u))||f.enumerable})};for(var b of u(r))l(b)}return t},l={};!(function(t,r){for(var o in r)n(t,o,{get:r[o],enumerable:!0})})(l,{default:function(){return v},normalizeCSSColor:function(){return O},rgba:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=(function(t,o,u){return u=null!=t?r(a(t)):{},f(!o&&t&&t.__esModule?u:n(u,"default",{value:t,enumerable:!0}),t)})(_r(d[0])),p=b.default||b,O=p;function s(t){return{r:Math.round((4278190080&t)>>>24),g:Math.round((16711680&t)>>>16),b:Math.round((65280&t)>>>8),a:((255&t)>>>0)/255}}var v=p},851,[852]); +__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,u){var s=u<.5?u*(1+t):u+t-u*t,c=2*u-s,l=r(c,s,n+.3333333333333333),o=r(c,s,n),g=r(c,s,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,u){if(t+u>=1){var s=Math.round(255*t/(t+u));return s<<24|s<<16|s<<8}var c=r(0,1,n+.3333333333333333)*(1-t-u)+t,l=r(0,1,n)*(1-t-u)+t,o=r(0,1,n-.3333333333333333)*(1-t-u)+t;return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*o)<<8}var u,s='[-+]?\\d*\\.?\\d+',c="[-+]?\\d*\\.?\\d+%";function l(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function f(r){return(parseFloat(r)%360+360)%360/360}function p(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function w(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;var u,s=h();if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;var c=w(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|p(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|p(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(f(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(f(u[6]),y(u[7]),y(u[8]))|p(u[9]))>>>0:(n(f(u[2]),y(u[3]),y(u[4]))|p(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(f(u[1]),y(u[2]),y(u[3])))>>>0:null}},852,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var y of c(f))s(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{getCSSStylesAtomic:function(){return s},getStyleAtomic:function(){return y},styleToCSS:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(){console.warn("no-op native")},s=p,y=p,b=p},853,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return t},l={};function p(t){if(!t.startsWith("$platform"))return!0;var n=t.slice(10);return n===r(d[0]).currentPlatform||"native"===n}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{isActivePlatform:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},854,[798]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!u.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(f=i(n,c))||f.enumerable})};for(var p of c(n))s(p)}return t},f={};!(function(t,n){for(var i in n)o(t,i,{get:n[i],enumerable:!0})})(f,{MEDIA_SEP:function(){return s},createMediaStyle:function(){return y}}),m.exports=(t=f,l(o({},"__esModule",{value:!0}),t));var s="_",p=null,$=null,v={press:"active",focusVisible:"focus-visible",focusWithin:"focus-within"},O=new Array(5).fill(0).map(function(t,n){return new Array(n).fill(":root").join("")});function b(t,n,o,i){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l=n.lastIndexOf(":root")+5,f=n.lastIndexOf("{"),s=n.slice(l,f),p=(0,r(d[1]).getSetting)("themeClassNameOnRoot")&&c?"":" ",$=i.pseudo?v[i.pseudo]||i.pseudo:void 0;return[s,`${`:root${u}${p}`}${`.t_${o?"group_":""}${t}${$?`:${$}`:""}`} ${s.replaceAll(":root","")}`]}var y=function(t,o,i,c,u,l){var f,v,y=n(t,5),j=y[0],h=y[2],w=y[3],P=y[4],_=j,S=(0,r(d[1]).getSetting)("mediaPropOrder"),A="theme"===c,x="platform"===c,E="group"===c,I=A||x||E,M=u?"0":"",C=h.slice(0,h.indexOf("-")+1),D=`${C}${s}${o.replace("-","")}${M}${s}`,N="",T=h.replace(C,D),k=P.map(function(t){return t.replace(h,T)}).join(";"),z=!1;if(I){var G=(l||0)+(E||x?1:0);if(A||E){var R=(0,r(d[2]).getGroupPropParts)(A?"theme-"+o:o),V=R.name,W=R.media,q=R.pseudo;f=W,E&&(v=V),("press"===q||"active"===w)&&(G+=2),"hover"===q&&(z=!0);var B=b(V,k,E,R,A,O[G]),F=n(B,2),H=F[0],J=F[1];N=k.replace(H,J)}else N=`${O[G]}${k}`}if(!I||f){if(!$){var K=Object.keys(i);$=Object.fromEntries(K.map(function(t){return[t,(0,r(d[3]).mediaObjectToString)(i[t])]})),S||(p=Object.fromEntries(K.map(function(t,n){return[t,new Array(n+1).fill(":root").join("")]})))}var L=f||o,Q=`${u?"not all and ":""}${$[L]}`,U=f?"":S&&l?O[l]:p[L],X=f?`@container ${v}`:"@media";f&&(k=N),N=k.includes(X)?k.replace("{",` and ${Q} {`).replace("and screen and","and"):`${X} ${Q}{${U}${k}}`,f&&(N=`@supports (contain: ${(0,r(d[1]).getSetting)("webContainerType")||"inline-size"}) {${N}}`)}return z&&(N=`@media (hover:hover){${N}}`),[_,void 0,T,void 0,[N]]}},855,[19,804,856,802]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!f.call(t,c)&&c!==p&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var l of c(n))b(l)}return t},s={};function b(t){var o=(0,r(d[1]).getMedia)(),u=t.split("-"),c=n(u,4),f=(c[0],c[1]),p=c[2],s=c[3],b=p in o?p:void 0;return{name:f,pseudo:b?s:p,media:b}}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{getGroupPropParts:function(){return b}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t))},856,[19,802]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==s&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var l of c(f))b(l)}return t},s={};function p(t,n){if(t.startsWith("$theme-"))return t.slice(7).startsWith(n)}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(s,{isActiveTheme:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},857,[]); +__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,a,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==a&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},a={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(a,{sortString:function(){return p}}),m.exports=(t=a,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){return tn?1:0}},858,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};function s(t){return t.map(function(t){var n=Object.keys(t)[0],o=t[n];return"matrix"===n||"matrix3d"===n?`${n}(${o.join(",")})`:`${n}(${(0,r(d[0]).normalizeValueWithProperty)(o,n)})`}).join(" ")}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{transformsToString:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},859,[846]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},860,[861]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,c,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(f){!l.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(p=u(n,f))||p.enumerable})};for(var b of f(n))s(b)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{composeRefs:function(){return v},setRef:function(){return y},useComposedRefs:function(){return O}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t));var b=(function(t,u,f){return f=null!=t?n(c(t)):{},p(!u&&t&&t.__esModule?f:o(f,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function y(t,n){"function"==typeof t?t(n):t&&(t.current=n)}function v(){for(var t=arguments.length,n=new Array(t),o=0;o1?b.Children.only(null):null})),j=function(n){var t=n.children;return(0,v.jsx)(v.Fragment,{children:t})};j.displayName="Slottable";var h=r(d[4]).isWeb?{onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"}:{};function P(n,t){var o=n.props,s=Object.assign({},o),l="string"==typeof n.type;if(l)for(var c in h)c in t&&(t[h[c]]=t[c],delete t[c]);for(var f in o){var u=t[f],p=o[f];l&&f in h&&delete s[f=h[f]],w.test(f)?s[f]=(0,r(d[5]).composeEventHandlers)(p,u):"style"===f?s[f]=Object.assign({},u,p):"className"===f&&(s[f]=[u,p].filter(Boolean).join(" "))}return Object.assign({},t,s)}var w=/^on[A-Z]/},864,[207,258,128,860,798,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,h=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,f=function(t,n,s,h){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!u.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(h=l(n,c))||h.enumerable})};for(var v of c(n))f(v)}return t},v={};!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(v,{Theme:function(){return _},getThemedChildren:function(){return y}}),m.exports=(t=v,f(o({},"__esModule",{value:!0}),t));var p=r(d[1]),b=(function(t,n,l){return l=null!=t?s(h(t)):{},f(!n&&t&&t.__esModule?l:o(l,"default",{value:t,enumerable:!0}),t)})(r(d[2])),_=(0,b.forwardRef)(function(t,s){if(t.disable)return t.children;var o=t.passThrough,l=!!t._isRoot,c=(0,r(d[3]).useThemeWithState)(t,l),h=n(c,2),u=(h[0],h[1]),f=t["disable-child-theme"]?b.Children.map(t.children,function(t){return o?t:(0,b.cloneElement)(t,{"data-disable-theme":!0})}):t.children;if(s)try{b.default.Children.only(f),f=(0,b.cloneElement)(f,{ref:s})}catch(t){}return y(u,f,t,l,(0,b.useRef)({hasEverThemed:!1}),o)});function y(t,n,s){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],h=s.shallow,u=s.forceClassName,f=l.current;if(!(f.hasEverThemed||t.isNew||o||(0,r(d[4]).hasThemeUpdatingProps)(s)))return n;n=(0,p.jsx)(r(d[4]).ThemeStateContext.Provider,{value:t.id,children:n});var v=t.isInverse,y=t.name,N=v||u;if(f.hasEverThemed||(f.hasEverThemed=!0),(N||"dark"===t.name||"light"===t.name)&&(f.hasEverThemed="wrapped"),h&&t.parentId){var E=(0,r(d[4]).getThemeState)(t.isNew?t.id:t.parentId);if(!E)throw new Error("\u203c\ufe0f010");n=b.Children.toArray(n).map(function(t){return(0,b.isValidElement)(t)?c?t:(0,b.cloneElement)(t,void 0,(0,p.jsx)(_,{name:E.name,children:t.props.children})):t})}if(!1===u)return n;if(r(d[5]).isWeb){var O=s.contain?w:T,x=c?{}:j(t,s,o),C=x.className,P=void 0===C?"":C,k=x.color;if(n=(0,p.jsx)("span",{className:`${P} is_Theme`,style:c?O:Object.assign({color:k},O),children:n}),"wrapped"===f.hasEverThemed){var S=!c&&N?(v?y.startsWith("light")?"t_light is_inversed":y.startsWith("dark")?"t_dark is_inversed":"":"")+" ":"";n=(0,p.jsx)("span",{style:O,className:S,children:n})}return n}return n}_.avoidForwardRef=!0;var T={display:"contents"},w={display:"contents",contain:"strict"},N={className:"",color:void 0};function j(t,n){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t.isNew&&!n.forceClassName)return N;var o=null!=t&&t.theme&&t.isNew?(0,r(d[6]).variableToString)(t.theme.color):"",l=(0,r(d[7]).getSetting)("maxDarkLightNesting")||3;return{color:o,className:`${s?"":"t_sub_theme"} t_${t.inverses>=l?t.name:t.name.replace(E,"")}`}}var E=/^(dark|light)_/},865,[19,258,128,834,807,798,810,804]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["themeInverse","theme","componentName","themeReset"],u=Object.create,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,h=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!v.call(t,c)&&c!==o&&l(t,c,{get:function(){return n[c]},enumerable:!(u=s(n,c))||u.enumerable})};for(var h of c(n))f(h)}return t},b={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(b,{themeable:function(){return O}}),m.exports=(t=b,h(l({},"__esModule",{value:!0}),t));var p=r(d[1]),j=(function(t,n,o){return o=null!=t?u(f(t)):{},h(!n&&t&&t.__esModule?o:l(o,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function O(t,u){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=j.default.forwardRef(function(s,c){s.themeInverse,s.theme;var f,v=s.componentName,h=s.themeReset,b=n(s,o),O=null==u?void 0:u.context;if(O)for(var y in O.props){var N=s[y];void 0!==N&&(f||(f={}),f[y]=N)}var x=(0,p.jsx)(t,Object.assign({ref:c},b,{"data-disable-theme":!0})),P=null,_=v||(null==u?void 0:u.componentName);if(_&&(P||(P={}),P.componentName=_),"debug"in s&&(P||(P={}),P.debug=s.debug),"theme"in s&&(P||(P={}),P.name=s.theme),"themeInverse"in s&&(P||(P={}),P.inverse=s.themeInverse),"themeReset"in s&&(P||(P={}),P.reset=h),l&&!P)return x;var w=(0,p.jsx)(r(d[3]).Theme,Object.assign({"disable-child-theme":!0},P,{children:x}));if(O){var I=O.Provider,R=j.default.useContext(O);w=(0,p.jsx)(I,Object.assign({},R,f,{children:w}))}return w});return s.displayName=`Themed(${(null==t?void 0:t.displayName)||(null==t?void 0:t.name)||"Anonymous"})`,s}},866,[207,258,128,865]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var O of c(f))s(O)}return t},p={};function b(t){return Object.freeze(t)}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createShorthands:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},867,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{createTheme:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return t}},868,[]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,u=function(e,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var c=function(l){!f.call(e,l)&&l!==n&&s(e,l,{get:function(){return t[l]},enumerable:!(u=o(t,l))||u.enumerable})};for(var v of l(t))c(v)}return e},c={};function v(e){return new Set(["size","space","radius"]).has(e)}function h(e){var s,o=(0,r(d[2]).loadDuplicatedConfig)();if(o)return o;var l,f={},u=(0,r(d[3]).createVariables)(e.tokens||{});if(e.tokens){var c={};for(var h in u){f[h]={},c[h]={};var S=u[h];for(var y in S){var p=S[y],O=`$${y}`;f[h][O]=p,c[h][O]=p,c[h][y]=p}}(0,r(d[4]).setTokens)(c)}if(e.themes){var j=0===Object.keys(e.themes).length;j&&(l=(0,r(d[5]).scanAllSheets)(j,f))}var C,T=null;if(e.fonts){var w=Object.fromEntries(Object.entries(e.fonts).map(function(e){var t=n(e,2),s=t[0],o=t[1];return[s,(0,r(d[3]).createVariables)(o,"f",!0)]}));C=(function(){var e={};for(var t in w){var n=w[t],s=(0,r(d[6]).parseFont)(n);e[`$${t}`]=s,!T&&s.size&&(T=new Set(Object.keys(s.size)))}return e})()}var k,$,F={},R=(function(){var n=[];for(var s in u)for(var o in u[s]){var f=u[s][o];if(F[`$${s}.${o}`]=f,r(d[7]).isWeb){(0,r(d[8]).registerCSSVariable)(f);var c=!0===f.needsPx,h=v(s),S=!(c||h);n.push((0,r(d[8]).variableToCSS)(f,S))}}var y=e.themes,p=null!=l?l:b(y,u.color);return{themes:(0,r(d[9]).proxyThemesToParents)(p),cssRuleSets:[],getThemeRulesSets:function(){var n=[];if(r(d[7]).isWeb){var s=!0,o=!1,l=void 0;try{for(var f,u=p[Symbol.iterator]();!(s=(f=u.next()).done);s=!0){var c=f.value,v=c.names,h=c.theme,b=(0,r(d[10]).getThemeCSSRules)({config:e,themeName:v[0],names:v,theme:h});n=[].concat(t(n),t(b))}}catch(e){o=!0,l=e}finally{try{!s&&null!=u.return&&u.return()}finally{if(o)throw l}}}return n}}})(),P=e.shorthands||{},z=function(){return""},A=null!==(k=null===(s=e.settings)||void 0===s?void 0:s.defaultFont)&&void 0!==k?k:e.defaultFont,N=("$"===(null==($=A)?void 0:$[0])&&($=$.slice(1)),$),L=N?`$${N}`:"",x=Object.assign({},e.unset);!x.fontFamily&&N&&(x.fontFamily=L);var D=Object.assign({fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{}},e,{unset:x,settings:Object.assign({disableSSR:e.disableSSR,defaultFont:e.defaultFont,disableRootThemeClass:e.disableRootThemeClass,onlyAllowShorthands:e.onlyAllowShorthands,mediaQueryDefaultActive:e.mediaQueryDefaultActive,themeClassNameOnRoot:e.themeClassNameOnRoot,cssStyleSeparator:e.cssStyleSeparator,webContainerType:"inline-size"},e.settings),tokens:u,shorthands:P,inverseShorthands:P?Object.fromEntries(Object.entries(P).map(function(e){var t=n(e,2),s=t[0];return[t[1],s]})):{},themes:R.themes,fontsParsed:C||{},themeConfig:R,tokensParsed:f,parsed:!0,getNewCSS:function(e){return Object.assign({},e,{sinceLastCall:!0}),""},getCSS:z,defaultFont:N,fontSizeTokens:T||new Set,specificTokens:F,defaultFontToken:L});return(0,r(d[4]).setConfig)(D),(0,r(d[11]).configureMedia)(D),r(d[4]).configListeners.size&&(r(d[4]).configListeners.forEach(function(e){return e(D)}),r(d[4]).configListeners.clear()),D}function b(e,t){var n=[],s=new Map;for(var o in e){var l=o.startsWith("dark")?"dark":o.startsWith("light")?"light":"",f=e[o],u=l+JSON.stringify(f);if(s.has(u)){s.get(u).names.push(o)}else{var c=Object.assign({},f);for(var v in t&&Object.assign(c,t),c)(0,r(d[13]).ensureThemeVariable)(c,v);var h={names:[o],theme:c};n.push(h),s.set(u,h)}}return n}!(function(e,t){for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(c,{createTamagui:function(){return h}}),m.exports=(e=c,u(s({},"__esModule",{value:!0}),e))},869,[32,19,805,870,804,809,871,798,873,874,875,802,819,876]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var u=function(o){!c.call(t,o)&&o!==f&&n(t,o,{get:function(){return l[o]},enumerable:!(s=i(l,o))||s.enumerable})};for(var v of o(l))u(v)}return t},f={};!(function(t,i){for(var o in i)n(t,o,{get:i[o],enumerable:!0})})(f,{createVariables:function(){return u}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s=new WeakMap,u=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(s.has(t))return t;var i={};for(var o in t){0;var c=t[o],l="$"===o[0],f=l?o:`$${o}`,v=l?f.slice(1):o;if((0,r(d[0]).isVariable)(c))i[v]=c;else{var b=(0,r(d[1]).simpleHash)(v,1e3),p=n&&"t-color"!==n?`${n}-${b}`:`c-${b}`;if(c&&"object"==typeof c&&"needsPx"in c&&"val"in c){var y=(0,r(d[0]).createVariable)({val:c.val,name:p,key:f});r(d[2]).isWeb&&(y.needsPx=c.needsPx),i[v]=y}else if(c&&"object"==typeof c)i[v]=u(t[v],p,!1);else{var j=(0,r(d[0]).isVariable)(c)?c:(0,r(d[0]).createVariable)({val:c,name:p,key:f});i[v]=j}}}return s.set(i,!0),i}},870,[810,811,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,v,l){if(c&&"object"==typeof c||"function"==typeof c){var s=function(f){!u.call(t,f)&&f!==v&&n(t,f,{get:function(){return c[f]},enumerable:!(l=o(c,f))||l.enumerable})};for(var p of f(c))s(p)}return t},v={};function l(t,n){var o=(0,r(d[0]).createFont)(n),f=(0,r(d[1]).createVariables)(o,t),u=p(f);return(0,r(d[2]).setConfigFont)(t,f,u),u}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(v,{insertFont:function(){return l},parseFont:function(){return p},registerFontVariables:function(){return b},updateFont:function(){return s}}),m.exports=(t=v,c(n({},"__esModule",{value:!0}),t));var s=l;function p(t){var n={};for(var o in t){var f=t[o];if("family"===o||"face"===o)n[o]=f;else for(var u in n[o]={},f){var c,v=f[u];"$"===(null===(c=v.val)||void 0===c?void 0:c[0])&&(v=v.val),n[o][`$${u}`]=v}}return n}function b(t){var n=[];for(var o in t)if("face"!==o)if("family"===o){var f=t[o];(0,r(d[3]).registerCSSVariable)(f),n.push((0,r(d[3]).variableToCSS)(f))}else for(var u in t[o]){if("string"!=typeof t[o][u]){var c=t[o][u];(0,r(d[3]).registerCSSVariable)(c),n.push((0,r(d[3]).variableToCSS)(c))}}return n}},871,[872,870,804,873]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!b.call(t,f)&&f!==o&&c(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))l(p)}return t},l={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(l,{createFont:function(){return O}}),m.exports=(t=l,s(c({},"__esModule",{value:!0}),t));var p=["100","200","300","400","500","600","700","800","900"],v=function(t,n,c){if("string"==typeof t)return t;var u=Object.keys(t),f=t[u[0]];return Object.fromEntries(o(new Set([].concat(o(n),u))).map(function(n){var o,u,b=null!==(u=null!==(o=t[n])&&void 0!==o?o:c)&&void 0!==u?u:f;return f=b,c=b,[n,b]}))},O=function(t){var o=Object.keys(t.size||{}),c=Object.fromEntries(Object.entries(t).map(function(c){var u=n(c,2),f=u[0],b=u[1];return[f,v(b,"face"===f?p:o,"face"===f?{normal:t.family}:void 0)]}));return Object.freeze(c)}},872,[19,32]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var v of u(f))p(v)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{registerCSSVariable:function(){return b},tokensValueToVariable:function(){return v},variableToCSS:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=function(t){v.set((0,r(d[0]).getVariableValue)(t),t)},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return`--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,r(d[0]).createCSSVariable)(t.name,!1)}:${n||"number"!=typeof t.val?t.val:`${t.val}px`}`},v=new Map},873,[810]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,y,c){if(f&&"object"==typeof f||"function"==typeof f){var v=function(l){!u.call(t,l)&&l!==y&&n(t,l,{get:function(){return f[l]},enumerable:!(c=o(f,l))||c.enumerable})};for(var s of l(f))v(s)}return t},y={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(y,{proxyThemeToParents:function(){return s},proxyThemesToParents:function(){return v}}),m.exports=(t=y,f(n({},"__esModule",{value:!0}),t));var c={};function v(t){var n=!0,o=!1,l=void 0;try{for(var u,f=t[Symbol.iterator]();!(n=(u=f.next()).done);n=!0){var y=u.value,v=y.names,h=y.theme,b=!0,p=!1,O=void 0;try{for(var j,w=v[Symbol.iterator]();!(b=(j=w.next()).done);b=!0){var x=j.value;c[x]=h}}catch(t){p=!0,O=t}finally{try{!b&&null!=w.return&&w.return()}finally{if(p)throw O}}}}catch(t){o=!0,l=t}finally{try{!n&&null!=f.return&&f.return()}finally{if(o)throw l}}var P={},_=!0,S=!1,T=void 0;try{for(var D,M=t[Symbol.iterator]();!(_=(D=M.next()).done);_=!0){var N=D.value,k=N.names,q=N.theme,z=!0,A=!1,B=void 0;try{for(var C,E=k[Symbol.iterator]();!(z=(C=E.next()).done);z=!0){var F=C.value,G=s(F,q);P[F]=G}}catch(t){A=!0,B=t}finally{try{!z&&null!=E.return&&E.return()}finally{if(A)throw B}}}}catch(t){S=!0,T=t}finally{try{!_&&null!=M.return&&M.return()}finally{if(S)throw T}}return P}function s(t,n){var o={},l=[],u=t.split("_").slice(0,-1).map(function(t){return l.push(t),l.join("_")}),f=!0,y=!1,v=void 0;try{for(var s,h=u[Symbol.iterator]();!(f=(s=h.next()).done);f=!0){var b=s.value;Object.assign(o,c[b])}}catch(t){y=!0,v=t}finally{try{!f&&null!=h.return&&h.return()}finally{if(y)throw v}}return Object.assign(o,n),o}},874,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};function b(){return[]}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getThemeCSSRules:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},875,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))p(s)}return t},l={};function b(t,n){var o=t[n];(0,r(d[0]).isVariable)(o)?o.name!==n&&(t[n]=(0,r(d[0]).createVariable)({key:o.name,name:n,val:o.val})):t[n]=(0,r(d[0]).createVariable)({key:n,name:n,val:o})}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{ensureThemeVariable:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},876,[810]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))l(b)}return t},p={};function s(t){var n;return(0,r(d[0]).createVariables)(t,null!==(n=process.env.TAMAGUI_TOKEN_PREFIX)&&void 0!==n?n:"t")}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createTokens:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},877,[870]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=["variants","name","defaultVariants","acceptsClassName","context"],o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,v=function(t,n,s,v){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!u.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(v=l(n,c))||v.enumerable})};for(var p of c(n))f(p)}return t},f={};function p(t,o,l){var c=t.staticConfig,u=!!c&&!(c.isReactNative||c.isHOC),v=(null==c?void 0:c.isHOC)&&!(null!=c&&c.isStyledHOC)||u?t:(null==c?void 0:c.Component)||t,f=c?void 0:(0,r(d[1]).getReactNativeConfig)(v),p=!!(f||null!=l&&l.isReactNative||null!=c&&c.isReactNative),C=(function(){var t,C,O=o||{},N=O.variants,y=O.name,b=O.defaultVariants,H=O.acceptsClassName,j=O.context,x=n(O,s);if(c&&!(c.isHOC&&!c.isStyledHOC)){var P=c.defaultProps;for(var V in P){var R=P[V];c.defaultVariants&&V in c.defaultVariants&&(!b||!(V in b))&&(t||(t={}),t[V]=R),!(V in x)&&(!b||!(V in b))&&(C||(C={}),C[V]=P[V])}c.variants&&(N=(0,r(d[2]).mergeVariants)(c.variants,N))}(C||b||t)&&(x=Object.assign({},C,t,x,b)),null!=c&&c.isHOC&&y&&(x.componentName=y);var S,T,_=!!(null!=l&&l.isText||null!=c&&c.isText),w=null!==(T=null!==(S=null==l?void 0:l.acceptsClassName)&&void 0!==S?S:H)&&void 0!==T?T:u||p||(null==c?void 0:c.isHOC)&&(null==c?void 0:c.acceptsClassName),h=Object.assign({},c,l,!u&&{Component:v},{variants:N,defaultProps:x,defaultVariants:b,componentName:y||(null==c?void 0:c.componentName),isReactNative:p,isText:_,acceptsClassName:w,context:j},f,{isStyledHOC:!(null==c||!c.isHOC),parentStaticConfig:c});return(x.children||!w||j)&&(h.neverFlatten=!0),h})(),O=(0,r(d[3]).createComponent)(C||{});for(var N in t)"propTypes"!==N&&(N in O||(O[N]=t[N]));return O}!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(f,{styled:function(){return p}}),m.exports=(t=f,v(o({},"__esModule",{value:!0}),t))},878,[207,879,880,820]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=function(t,p,f,s){if(p&&"object"==typeof p||"function"==typeof p){var l=function(u){!c.call(t,u)&&u!==f&&n(t,u,{get:function(){return p[u]},enumerable:!(s=o(p,u))||s.enumerable})};for(var v of u(p))l(v)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{getReactNativeConfig:function(){return s},setupReactNative:function(){return v}}),m.exports=(t=f,p(n({},"__esModule",{value:!0}),t));function s(t){var n,o,u;if(t)return null!==(n=t.propTypes)&&void 0!==n&&n.onTextInput||null!==(o=t.propTypes)&&void 0!==o&&o.onChangeText?l.TextInput:t.getSizeWithHeaders?l.Image:null!==(u=t.propTypes)&&void 0!==u&&u.textBreakStrategy?l.Text:l.default}var l={Image:{isReactNative:!0,inlineProps:new Set(["src","width","height"])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}};function v(t){}},879,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var v=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))v(b)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{mergeVariants:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u={};for(var c in n){var f=null==t?void 0:t[c],s=n[c];u[c]=f&&"function"!=typeof s?f&&!s?f[c]:0===o?p(f,s,o+1):Object.assign({},f,s):s}return Object.assign({},t,u)}},880,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},881,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["_expressions"],u=Object.create,f=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(s){!b.call(t,s)&&s!==o&&f(t,s,{get:function(){return n[s]},enumerable:!(u=c(n,s))||u.enumerable})};for(var p of s(n))l(p)}return t},O={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(O,{_withStableStyle:function(){return v}}),m.exports=(t=O,p(f({},"__esModule",{value:!0}),t));var y=r(d[1]),j=(function(t,n,o){return o=null!=t?u(l(t)):{},p(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=function(t,u){return j.default.forwardRef(function(f,c){var s=f._expressions,l=void 0===s?[]:s,b=n(f,o),p=(0,r(d[3]).useTheme)();return(0,y.jsx)(t,Object.assign({ref:c,style:u(p,l)},b))})}},882,[207,258,128,834]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var v=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))v(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{getShorthandValue:function(){return v}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=null,v=function(t,n){var o;return p||(p=(0,r(d[0]).getConfig)().inverseShorthands),null!==(o=t[n])&&void 0!==o?o:p?t[p[n]]:void 0}},883,[804]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(n,c,p,s){if(c&&"object"==typeof c||"function"==typeof c){var v=function(u){!f.call(n,u)&&u!==p&&t(n,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var h of u(c))v(h)}return n},p={};function s(n){var t=(0,r(d[0]).getConfig)().shorthands;if(!t)return n;var o={};for(var u in n)o[t[u]||u]=n[u];return o}function v(n,t){var o,u=(0,r(d[0]).getConfig)().inverseShorthands;return null!==(o=t[n])&&void 0!==o?o:t[u[n]]}!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(p,{getExpandedShorthand:function(){return v},getExpandedShorthands:function(){return s}}),m.exports=(n=p,c(t({},"__esModule",{value:!0}),n))},884,[804]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};function l(t,n){var o=null==t?void 0:t.staticConfig;return!(!o||n&&n!==o.componentName)}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isTamaguiComponent:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},885,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{isTamaguiElement:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(t,n){return s.default.isValidElement(t)&&(0,r(d[1]).isTamaguiComponent)(t.type,n)}},886,[128,885]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var y of u(f))l(y)}return t},p={};function s(t){return new Proxy(t||{},{has:function(t,n){return Reflect.has(t,l(n))},get:function(t,n){return Reflect.get(t,l(n))}})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{proxyThemeVariables:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return"string"==typeof t&&"$"===t[0]?t.slice(1):t}},887,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getStyleTags:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));r(d[0]);function b(t){r(d[1]).IS_REACT_19}},888,[258,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var v of u(f))l(v)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useThemeName:function(){return v}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s={forceClassName:!0,deopt:!0,needsUpdate:function(){return!0}},l={current:new Set([""])};function v(){var t;return(null===(t=(0,r(d[0]).useThemeState)(s,!1,l))||void 0===t?void 0:t.name)||""}},889,[807]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{useConfiguration:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(){return s.default.useContext(r(d[1]).ComponentContext)}},890,[128,824]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))p(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{useIsTouchDevice:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var b=function(){return!r(d[0]).isWeb||!!(0,r(d[1]).useDidFinishSSR)()&&r(d[0]).isTouchable}},891,[798,829]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!p.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var v of c(n))f(v)}return t},b={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(b,{useProps:function(){return S},usePropsAndStyle:function(){return j},useStyle:function(){return O}}),m.exports=(t=b,v(s({},"__esModule",{value:!0}),t));var y=(function(t,n,o){return o=null!=t?u(f(t)):{},v(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function S(t,n){var u=j(t,Object.assign({},n,{noExpand:!0,noNormalize:!0,resolveValues:"none"})),s=o(u,2),l=s[0],c=s[1];return Object.assign({},l,c)}function O(t,n){return j(t,n)[1]||{}}function j(t,u){var s,l,c=null!==(l=null==u||null===(s=u.forComponent)||void 0===s?void 0:s.staticConfig)&&void 0!==l?l:r(d[3]).Stack.staticConfig,f=(0,r(d[4]).useThemeWithState)({componentName:c.componentName,name:"theme"in t?t.theme:void 0,inverse:"themeInverse"in t?t.themeInverse:void 0,needsUpdate:function(){return!0}}),p=o(f,2),v=p[0],b=p[1],S=y.default.useContext(r(d[5]).ComponentContext),O=y.default.useContext(r(d[6]).GroupContext),j=(0,r(d[7]).useComponentState)(t,S.animationDriver,c,(0,r(d[8]).getConfig)()),C=j.state,h=j.disabled,x=j.setStateShallow,P=null!=u&&u.noMedia?r(d[9]).mediaState:(0,r(d[9]).useMedia)(),w=(0,r(d[10]).useSplitStyles)(t,c,v,(null==b?void 0:b.name)||"",C,Object.assign({isAnimated:!1,mediaState:P,noSkip:!0,noMergeStyle:!0,noClass:!0,resolveValues:"auto"},u),null,S,O),G=w||{},_=G.mediaGroups,M=G.pseudoGroups;return(0,r(d[11]).useIsomorphicLayoutEffect)(function(){if(!h){if(C.unmounted)return void x({unmounted:!1});if(O)return(0,r(d[12]).subscribeToContextGroup)({groupContext:O,setStateShallow:x,mediaGroups:_,pseudoGroups:M})}},[h,O,M?Object.keys(n(M)).join(""):0,_?Object.keys(n(_)).join(""):0]),[(null==w?void 0:w.viewProps)||{},(null==w?void 0:w.style)||{},v,r(d[9]).mediaState]}},892,[32,19,128,893,834,824,827,828,804,802,838,798,863]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))p(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Stack:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createComponent)({acceptsClassName:!0,defaultProps:r(d[1]).stackDefaultStyles,validStyles:r(d[2]).validStyles});s.displayName="Stack"},893,[820,808,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))p(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{View:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createComponent)({acceptsClassName:!0,defaultProps:r(d[1]).stackDefaultStyles,validStyles:r(d[2]).validStyles})},894,[820,808,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=function(t,u,c,p){if(u&&"object"==typeof u||"function"==typeof u){var f=function(s){!l.call(t,s)&&s!==c&&n(t,s,{get:function(){return u[s]},enumerable:!(p=o(u,s))||p.enumerable})};for(var y of s(u))f(y)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{Text:function(){return f}}),m.exports=(t=c,u(n({},"__esModule",{value:!0}),t));var p={numberOfLines:1,lineBreakMode:"clip"},f=(0,r(d[0]).createComponent)({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",suppressHighlighting:!0},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{ellipse:{true:p},ellipsis:{true:p}},validStyles:Object.assign({},r(d[1]).validStyles,r(d[1]).stylePropsTextOnly)});f.displayName="Text"},895,[820,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,l,f){if(c&&"object"==typeof c||"function"==typeof c){var h=function(s){!u.call(t,s)&&s!==l&&n(t,s,{get:function(){return c[s]},enumerable:!(f=o(c,s))||f.enumerable})};for(var v of s(c))h(v)}return t},l={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(l,{ThemeProvider:function(){return v}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var f=r(d[0]),h=r(d[1]),v=function(t){var n,o,s=null!==(n=t.disableRootThemeClass)&&void 0!==n?n:(0,r(d[2]).getSetting)("disableRootThemeClass"),u=null!==(o=t.themeClassNameOnRoot)&&void 0!==o?o:(0,r(d[2]).getSetting)("themeClassNameOnRoot");return r(d[3]).isClient&&(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(!s){var n=`${r(d[4]).THEME_CLASSNAME_PREFIX}${t.defaultTheme}`,o=u?document.documentElement:document.body;return o.classList.add(n),function(){o.classList.remove(n)}}},[t.defaultTheme,s,u]),(0,f.jsx)(r(d[5]).Theme,{className:t.className,name:t.defaultTheme,forceClassName:!s&&!u,_isRoot:h.useId,children:t.children})}},896,[258,128,804,798,808,865]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],u=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var s=function(l){!p.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=f(n,l))||u.enumerable})};for(var b of l(n))s(b)}return t},O={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(O,{FontLanguage:function(){return v}}),m.exports=(t=O,b(c({},"__esModule",{value:!0}),t));var y=r(d[1]),j=(function(t,n,o){return o=null!=t?u(s(t)):{},b(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=function(t){var u=t.children,c=n(t,o),f=j.default.useContext(r(d[3]).ComponentContext),l=j.default.useMemo(function(){return c},[JSON.stringify(c)]);return(0,y.jsx)(r(d[3]).ComponentContext.Provider,Object.assign({},f,{language:l,children:u}))};v.displayName="FontLanguage"},897,[207,258,128,824]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,h=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var h=function(u){!f.call(t,u)&&u!==o&&l(t,u,{get:function(){return n[u]},enumerable:!(c=s(n,u))||c.enumerable})};for(var p of u(n))h(p)}return t},p={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(p,{TamaguiProvider:function(){return y}}),m.exports=(t=p,h(l({},"__esModule",{value:!0}),t));var b=r(d[1]),v=(function(t,n,s){return s=null!=t?o(c(t)):{},h(!n&&t&&t.__esModule?s:l(s,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function y(t){var n=t.children,o=t.disableInjectCSS,l=t.config,s=t.className,u=t.defaultTheme,c=t.disableRootThemeClass,f=t.reset,h=t.themeClassNameOnRoot;r(d[3]).IS_REACT_19||r(d[3]).isClient&&(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(l&&!o){var t=document.createElement("style");return t.appendChild(document.createTextNode(l.getCSS())),document.head.appendChild(t),function(){document.head.removeChild(t)}}},[l,o]),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){(0,r(d[4]).stopAccumulatingRules)(),(0,r(d[5]).updateMediaListeners)()},[]);var p=(0,b.jsx)(C,{children:(0,b.jsx)(r(d[6]).ComponentContext.Provider,{animationDriver:null==l?void 0:l.animations,children:(0,b.jsx)(r(d[7]).ThemeProvider,{themeClassNameOnRoot:null!=h?h:(0,r(d[8]).getSetting)("themeClassNameOnRoot"),disableRootThemeClass:null!=c?c:(0,r(d[8]).getSetting)("disableRootThemeClass"),defaultTheme:null!=u?u:l?Object.keys(l.themes)[0]:"",reset:f,className:s,children:n})})});return(0,r(d[8]).getSetting)("disableSSR")&&(p=(0,b.jsx)(r(d[9]).ClientOnly,{enabled:!0,children:p})),(0,b.jsxs)(b.Fragment,{children:[p,!1]})}function C(t){var o=v.default.useState(!1),l=n(o,2),s=l[0],u=l[1];return v.default.useEffect(function(){u(!0)},[]),r(d[3]).isWeb?(0,b.jsx)("span",{style:{display:"contents"},className:s?"":"t_unmounted",children:t.children}):t.children}y.displayName="TamaguiProvider"},898,[19,258,128,798,809,802,824,896,804,829]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,b=function(t,n,l,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var p of c(n))s(p)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{Configuration:function(){return j}}),m.exports=(t=s,b(o({},"__esModule",{value:!0}),t));var p=r(d[0]),O=(function(t,u,c){return c=null!=t?n(l(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),j=function(t){var n,o=O.default.useContext(r(d[2]).ComponentContext);return(0,p.jsx)(r(d[3]).ClientOnly,{enabled:null!==(n=t.disableSSR)&&void 0!==n?n:o.disableSSR,children:(0,p.jsx)(r(d[2]).ComponentContext.Provider,Object.assign({},o,t))})}},899,[258,128,824,829]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},900,[901,902]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(n,u)&&u!==l&&t(n,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return n},l={};function p(n){return(0,r(d[0]).useGet)(n,s,!0)}!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{useEvent:function(){return p}}),m.exports=(n=l,f(t({},"__esModule",{value:!0}),n));var s=function(){throw new Error("Cannot call an event handler while rendering.")}},901,[902]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!l.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(p=o(n,c))||p.enumerable})};for(var b of c(n))s(b)}return t},s={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(s,{useGet:function(){return v}}),m.exports=(t=s,p(u({},"__esModule",{value:!0}),t));var b=(function(t,o,c){return c=null!=t?n(f(t)):{},p(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function v(t,n,u){var o=b.useRef(null!=n?n:t);return(0,r(d[1]).useIsomorphicLayoutEffect)(function(){o.current=t}),b.useCallback(u?function(){for(var t=arguments.length,n=new Array(t),u=0;u=77){var u={boxSizing:!0,mixBlendMode:!0,outlineWidth:!0,outlineStyle:!0,outlineSpread:!0,outlineColor:!0};Object.assign(r(d[2]).validStyles,u),Object.assign(r(d[2]).stylePropsAll,u)}}!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(f,{addNativeValidStyles:function(){return v}}),m.exports=(t=f,s(o({},"__esModule",{value:!0}),t))},904,[19,905,811]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version={major:0,minor:79,patch:2,prerelease:null}},905,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},906,[907,908]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var l of c(f))s(l)}return t},p={};function b(t){return(0,r(d[0]).setupMatchMedia)(r(d[1]).matchMedia),t}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createMedia:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},907,[801,908]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var y of u(f))s(y)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{matchMedia:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return new(r(d[0]).NativeMediaQueryList)(t)}},908,[909]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(t,u,c,f){if(u&&"object"==typeof u||"function"==typeof u){var h=function(o){!s.call(t,o)&&o!==c&&n(t,o,{get:function(){return u[o]},enumerable:!(f=i(u,o))||f.enumerable})};for(var l of o(u))h(l)}return t},c={};!(function(t,i){for(var o in i)n(t,o,{get:i[o],enumerable:!0})})(c,{NativeMediaQueryList:function(){return y}}),m.exports=(t=c,u(n({},"__esModule",{value:!0}),t));var f=r(d[0]);function h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function l(t,n){for(var i=0;it.width?"portrait":"landscape"}},{key:"notify",value:function(){var t=this;this.listeners.forEach(function(n){n(t.orientation)})}},{key:"addListener",value:function(t){this.listeners.push(t)}},{key:"removeListener",value:function(t){var n=this.listeners.indexOf(t);-1!==n&&this.listeners.splice(n,1)}},{key:"match",value:function(t,n){var i=n.width,o=n.height;return(0,r(d[1]).matchQuery)(t,{type:"screen",orientation:o>i?"portrait":"landscape","device-width":i,"device-height":o})}},{key:"matches",get:function(){var t=f.Dimensions.get("window");return(0,r(d[1]).matchQuery)(this.query,Object.assign({type:"screen",orientation:this.orientation},t,{"device-width":t.width,"device-height":t.height}))}}])&&l(n.prototype,i),o&&l(n,o),t;var n,i,o})()},909,[28,910]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=function(t,u,p,f){if(u&&"object"==typeof u||"function"==typeof u){var l=function(s){!o.call(t,s)&&s!==p&&n(t,s,{get:function(){return u[s]},enumerable:!(f=c(u,s))||f.enumerable})};for(var v of s(u))l(v)}return t},p={};!(function(t,c){for(var s in c)n(t,s,{get:c[s],enumerable:!0})})(p,{matchQuery:function(){return y},parseQuery:function(){return w}}),m.exports=(t=p,u(n({},"__esModule",{value:!0}),t));var f=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,v=/^(?:(min|max)-)?(.+)/,h=/(em|rem|px|cm|mm|in|pt|pc)?$/,b=/(dpi|dpcm|dppx)?$/;function y(t,n){return w(t).some(function(t){if(t){var c=t.inverse,s="all"===t.type||n.type===t.type;if(s&&c||!s&&!c)return!1;var o=t.expressions.every(function(t){var c=t.feature,s=t.modifier,o=t.value,u=n[c];if(!u)return!1;switch(c){case"orientation":case"scan":return u.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=N(o),u=N(u);break;case"resolution":o=O(o),u=O(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=x(o),u=x(u);break;case"grid":case"color":case"color-index":case"monochrome":o=Number.parseInt(o,10)||1,u=Number.parseInt(u,10)||0}switch(s){case"min":return u>=o;case"max":return u<=o;default:return u===o}});return o&&!c||!o&&c}})}function w(t){return t.split(",").map(function(t){var n=(t=t.trim()).match(f);if(!n)return null;var c=n[1],s=n[2],o=(n[3]||"").match(/\([^\)]+\)/g)||[];return{inverse:!!c&&"not"===c.toLowerCase(),type:s?s.toLowerCase():"all",expressions:o.map(function(t){var n=t.match(l),c=n[1].toLowerCase().match(v);return{modifier:c[1],feature:c[2],value:n[2]}})}})}function x(t){var n,c=Number(t);return c||(c=(n=t.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/n[2]),c}function O(t){var n,c=Number.parseFloat(t);switch(null===(n=String(t).match(b))||void 0===n?void 0:n[1]){case"dpcm":return c/2.54;case"dppx":return 96*c;default:return c}}function N(t){var n,c=Number.parseFloat(t);switch(null===(n=String(t).match(h))||void 0===n?void 0:n[1]){case"em":case"rem":return 16*c;case"cm":return 96*c/2.54;case"mm":return 96*c/2.54/10;case"in":return 96*c;case"pt":return 72*c;case"pc":return 72*c/12;default:return c}}},910,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,l,c,s){if(l&&"object"==typeof l||"function"==typeof l){var b=function(u){!f.call(t,u)&&u!==c&&n(t,u,{get:function(){return l[u]},enumerable:!(s=o(l,u))||s.enumerable})};for(var p of u(l))b(p)}return t},c={};function s(){var t,n,o=r(d[0]);t=r(d[1]).default;var u,f=r(d[2]);return n=null!==(u=f.default)&&void 0!==u?u:f,t||(t=o.View||o.default.View),{View:t,Text:o.Text||o.default.Text,StyleSheet:o.StyleSheet||o.default.StyleSheet,TextAncestor:n,Pressable:o.Pressable||o.default.Pressable}}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{getBaseViews:function(){return s}}),m.exports=(t=c,l(n({},"__esModule",{value:!0}),t))},911,[28,257,256]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,s,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==s&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var p of u(c))b(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Pressability:function(){return r(d[0]).default},usePressability:function(){return r(d[1]).default}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t))},912,[292,291]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,l=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,b=function(t,l,u,b){if(l&&"object"==typeof l||"function"==typeof l){var v=function(c){!o.call(t,c)&&c!==u&&n(t,c,{get:function(){return l[c]},enumerable:!(b=s(l,c))||b.enumerable})};for(var p of c(l))v(p)}return t},v={};!(function(t,l){for(var s in l)n(t,s,{get:l[s],enumerable:!0})})(v,{createOptimizedView:function(){return y},getAccessibilityRoleFromRole:function(){return f}}),m.exports=(t=v,b(n({},"__esModule",{value:!0}),t));var p=(function(t,s,c){return c=null!=t?l(u(t)):{},b(!s&&t&&t.__esModule?c:n(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function y(t,l,n){var s,c,u,o,b,v=n.TextAncestor,y=n.View,h=l.accessibilityElementsHidden,x=l.accessibilityLabel,w=l.accessibilityLabelledBy,O=l.accessibilityLiveRegion,j=l.accessibilityState,k=l.accessibilityValue,E=l["aria-busy"],L=l["aria-checked"],P=l["aria-disabled"],R=l["aria-expanded"],_=l["aria-hidden"],V=l["aria-label"],A=l["aria-labelledby"],B=l["aria-live"],D=l["aria-selected"],F=l["aria-valuemax"],H=l["aria-valuemin"],I=l["aria-valuenow"],M=l["aria-valuetext"],S=l.focusable,q=l.id,z=l.role,C=l.tabIndex,N=null!==(c=null==A?void 0:A.split(/\s*,\s*/g))&&void 0!==c?c:w;((null!=j||null!=E||null!=L||null!=P||null!=R||null!=D)&&(u={busy:null!=E?E:null==j?void 0:j.busy,checked:null!=L?L:null==j?void 0:j.checked,disabled:null!=P?P:null==j?void 0:j.disabled,expanded:null!=R?R:null==j?void 0:j.expanded,selected:null!=D?D:null==j?void 0:j.selected}),(null!=k||null!=F||null!=H||null!=I||null!=M)&&(o={max:null!=F?F:null==k?void 0:k.max,min:null!=H?H:null==k?void 0:k.min,now:null!=I?I:null==k?void 0:k.now,text:null!=M?M:null==k?void 0:k.text}),null!==(s=l.style)&&void 0!==s&&s.pointerEvents)&&(l.pointerEvents=null===(b=l.style)||void 0===b?void 0:b.pointerEvents);if(q&&(l.nativeID=q),!0===_&&(l.importantForAccessibility="no-hide-descendants"),o&&(l.accessibilityValue=o),z&&(l.accessibilityRole=f(z)),"off"===B)l.accessibilityLiveRegion="none";else{var T=null!=B?B:O;T&&(l.accessibilityLiveRegion=T)}var G=null!=V?V:x;G&&(l.accessibilityLabel=G);var J=void 0!==C?!C:S;null!=J&&(l.focusable=J),null!=u&&(l.accessibilityState=u);var K=null!=_?_:h;null!=K&&(l.accessibilityElementsHidden=K),N&&(l.accessibilityLabelledBy=N);var Q=p.default.useContext(v),U=p.default.createElement(y,l,t);return Q?p.default.createElement(v.Provider,{value:!1},U):U}function f(t){switch(t){case"alert":return"alert";case"alertdialog":case"application":case"article":case"banner":case"cell":case"columnheader":case"complementary":case"contentinfo":case"definition":case"dialog":case"directory":case"document":case"feed":case"figure":case"form":case"group":case"listitem":case"log":case"main":case"marquee":case"math":case"meter":case"navigation":case"note":case"option":case"region":case"row":case"rowgroup":case"rowheader":case"separator":case"status":case"table":case"tabpanel":case"term":case"tooltip":case"tree":case"treegrid":case"treeitem":return;case"button":return"button";case"checkbox":return"checkbox";case"combobox":return"combobox";case"grid":return"grid";case"heading":return"header";case"img":return"image";case"link":return"link";case"list":return"list";case"menu":return"menu";case"menubar":return"menubar";case"menuitem":return"menuitem";case"none":case"presentation":return"none";case"progressbar":return"progressbar";case"radio":return"radio";case"radiogroup":return"radiogroup";case"scrollbar":return"scrollbar";case"searchbox":return"search";case"slider":return"adjustable";case"spinbutton":return"spinbutton";case"summary":return"summary";case"switch":return"switch";case"tab":return"tab";case"tablist":return"tablist";case"timer":return"timer";case"toolbar":return"toolbar"}}},913,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},914,[915]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,n=r(d[0]),t=r(d[1]),l=r(d[2]),c=["type"],s=["value","defaultValue","control","onValueChange","collapsible"],u=["value","defaultValue","onValueChange"],p=["__scopeAccordion","disabled","dir","orientation"],f=["__scopeAccordion","value"],b=["__scopeAccordion"],v=["__scopeAccordion"],y=["__scopeAccordion"],_=["children"],h=Object.create,A=Object.defineProperty,C=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,x=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,O=function(o,n,t,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!w.call(o,c)&&c!==t&&A(o,c,{get:function(){return n[c]},enumerable:!(l=C(n,c))||l.enumerable})};for(var s of j(n))c(s)}return o},S={};!(function(o,n){for(var t in n)A(o,t,{get:n[t],enumerable:!0})})(S,{Accordion:function(){return ie}}),m.exports=(o=S,O(A({},"__esModule",{value:!0}),o));var k=r(d[3]),I=(function(o,n,t){return t=null!=o?h(x(o)):{},O(!n&&o&&o.__esModule?t:A(t,"default",{value:o,enumerable:!0}),o)})(r(d[4])),V="Accordion",E=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],P=(0,r(d[5]).createCollection)(V),H=l(P,2),R=H[0],D=H[1],$="Accordion",L=I.forwardRef(function(o,n){var l=o.type,s=t(o,c),u=s,p=s;return(0,k.jsx)(R.Provider,{scope:o.__scopeAccordion||$,children:"multiple"===l?(0,k.jsx)(W,Object.assign({},p,{ref:n})):(0,k.jsx)(K,Object.assign({},u,{ref:n}))})});L.displayName=V,L.propTypes={type:function(o){var n=o.value||o.defaultValue;return o.type&&!["single","multiple"].includes(o.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===o.type&&"string"==typeof n?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===o.type&&Array.isArray(n)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};var T=(0,r(d[6]).createStyledContext)(),M=T.Provider,N=T.useStyledContext,U=(0,r(d[6]).createStyledContext)(),z=U.Provider,G=U.useStyledContext,K=I.forwardRef(function(o,n){var c=o.value,u=o.defaultValue,p=(o.control,o.onValueChange),f=void 0===p?function(){}:p,b=o.collapsible,v=void 0!==b&&b,y=t(o,s),_=(0,r(d[7]).useControllableState)({prop:c,defaultProp:u||"",onChange:f}),h=l(_,2),A=h[0],C=h[1];return(0,k.jsx)(M,{scope:o.__scopeAccordion,value:A?[A]:[],onItemOpen:C,onItemClose:I.useCallback(function(){return v&&C("")},[C,v]),children:(0,k.jsx)(z,{scope:o.__scopeAccordion,collapsible:v,children:(0,k.jsx)(B,Object.assign({},y,{ref:n}))})})}),W=I.forwardRef(function(o,c){var s=o.value,p=o.defaultValue,f=o.onValueChange,b=void 0===f?function(){}:f,v=t(o,u),y=(0,r(d[7]).useControllableState)({prop:s,defaultProp:p||[],onChange:b}),_=l(y,2),h=_[0],A=_[1],C=I.useCallback(function(o){return A(function(){return[].concat(n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),[o])})},[A]),j=I.useCallback(function(o){return A(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(n){return n!==o})})},[A]);return(0,k.jsx)(M,{scope:o.__scopeAccordion,value:h||[],onItemOpen:C,onItemClose:j,children:(0,k.jsx)(z,{scope:o.__scopeAccordion,collapsible:!0,children:(0,k.jsx)(B,Object.assign({},v,{ref:c}))})})}),F=(0,r(d[6]).createStyledContext)(),Y=F.Provider,q=F.useStyledContext,B=I.forwardRef(function(o,n){var l=o.__scopeAccordion,c=o.disabled,s=o.dir,u=o.orientation,f=void 0===u?"vertical":u,b=t(o,p),v=I.useRef(null),y=(0,r(d[8]).useComposedRefs)(v,n),_=D(l||$),h="ltr"===(0,r(d[9]).useDirection)(s),A=(0,r(d[10]).composeEventHandlers)(o.onKeyDown,function(o){var n;if(E.includes(o.key)){var t=o.target,l=_().filter(function(o){var n=o.ref.current;return!(null!=n&&n.disabled)}),c=l.findIndex(function(o){return o.ref.current===t}),s=l.length;if(-1!==c){o.preventDefault();var u=c,p=s-1,b=function(){(u=c+1)>p&&(u=0)},v=function(){(u=c-1)<0&&(u=p)};switch(o.key){case"Home":u=0;break;case"End":u=p;break;case"ArrowRight":"horizontal"===f&&(h?b():v());break;case"ArrowDown":"vertical"===f&&b();break;case"ArrowLeft":"horizontal"===f&&(h?v():b());break;case"ArrowUp":"vertical"===f&&v()}null===(n=l[u%s].ref.current)||void 0===n||n.focus()}}});return(0,k.jsx)(Y,{scope:l,disabled:c,direction:s,orientation:f,children:(0,k.jsx)(R.Slot,{scope:l||$,children:(0,k.jsx)(r(d[11]).YStack,Object.assign({"data-orientation":f,ref:y},b,r(d[12]).isWeb&&{onKeyDown:A}))})})}),J=(0,r(d[6]).createStyledContext)(),Q=J.Provider,X=J.useStyledContext,Z=I.forwardRef(function(o,n){var l=o.__scopeAccordion,c=o.value,s=t(o,f),u=q(l),p=N(l),b=I.useId(),v=c&&p.value.includes(c)||!1,y=u.disabled||o.disabled;return(0,k.jsx)(Q,{scope:l,open:v,disabled:y,triggerId:b,children:(0,k.jsx)(r(d[13]).Collapsible,Object.assign({"data-orientation":u.orientation,"data-state":v?"open":"closed",__scopeCollapsible:l||$},s,{ref:n,disabled:y,open:v,onOpenChange:function(o){o?p.onItemOpen(c):p.onItemClose(c)}}))})});Z.displayName="AccordionItem";var ee=I.forwardRef(function(o,n){var l,c=o.__scopeAccordion,s=t(o,b),u=q(c),p=X(c);return(0,k.jsx)(r(d[14]).H1,Object.assign({"data-orientation":u.orientation,"data-state":(l=p.open,l?"open":"closed"),"data-disabled":p.disabled?"":void 0},s,{ref:n}))});ee.displayName="AccordionHeader";var oe=(0,r(d[6]).styled)(r(d[13]).Collapsible.Trigger,{variants:{unstyled:{false:{cursor:"pointer",backgroundColor:"$background",borderColor:"$borderColor",borderWidth:1,padding:"$true",hoverStyle:{backgroundColor:"$backgroundHover"},focusStyle:{backgroundColor:"$backgroundFocus"},pressStyle:{backgroundColor:"$backgroundPress"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),re=oe.styleable(function(o,n){var l=o.__scopeAccordion,c=t(o,v),s=q(l),u=X(l),p=G(l);return(0,k.jsx)(R.ItemSlot,{scope:l||$,children:(0,k.jsx)(oe,Object.assign({__scopeCollapsible:l||$,"aria-disabled":u.open&&!p.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId},c,{ref:n}))})}),ne=(0,r(d[6]).styled)(r(d[13]).Collapsible.Content,{variants:{unstyled:{false:{padding:"$true",backgroundColor:"$background"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),te=ne.styleable(function(o,n){var l=o.__scopeAccordion,c=t(o,y),s=q(l),u=X(l);return(0,k.jsx)(ne,Object.assign({role:"region","aria-labelledby":u.triggerId,"data-orientation":s.orientation,__scopeCollapsible:l||$},c,{ref:n}))}),ae=r(d[6]).View.styleable(function(o,n){var c=X(),s=o.children,u=t(o,_),p=I.useState(0),f=l(p,2),b=f[0],v=f[1];return(0,k.jsx)(r(d[6]).View,Object.assign({ref:n,height:c.open?b:0},u,{children:(0,k.jsx)(r(d[6]).View,{position:"absolute",width:"100%",onLayout:function(o){var n=o.nativeEvent;n.layout.height&&v(n.layout.height)},children:s})}))});var ie=(0,r(d[10]).withStaticProperties)(L,{Trigger:re,Header:ee,Content:te,Item:Z,HeightAnimator:ae})},915,[32,207,19,258,128,916,796,918,860,921,811,923,798,932,944]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},916,[917]); +__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),c=["scope","children"],l=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!p.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=f(n,l))||c.enumerable})};for(var s of a(n))l(s)}return t},y={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(y,{createCollection:function(){return R}}),m.exports=(t=y,v(u({},"__esModule",{value:!0}),t));var b=r(d[2]),O=(function(t,n,o){return o=null!=t?l(s(t)):{},v(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[3]));function R(t){var l=(0,r(d[4]).createStyledContext)({collectionRef:{current:void 0},itemMap:new Map},"Toast"),u=l.Provider,f=l.useStyledContext,a=function(t){var n=t.scope,o=t.children,c=O.default.useRef(void 0),l=O.default.useRef(new Map).current;return(0,b.jsx)(u,{scope:n,itemMap:l,collectionRef:c,children:o})};a.displayName="CollectionProvider";var s=t+"CollectionSlot",p=O.default.forwardRef(function(t,n){var o=t.scope,c=t.children,l=f(o),u=(0,r(d[5]).useComposedRefs)(n,l.collectionRef);return(0,b.jsx)(r(d[4]).Slot,{ref:u,children:c})});p.displayName=s;var v=t+"CollectionItemSlot",y="data-collection-item",R=O.default.forwardRef(function(t,l){var u=t.scope,a=t.children,s=o(t,c),p=O.default.useRef(void 0),v=(0,r(d[5]).useComposedRefs)(l,p),R=f(u);return O.default.useEffect(function(){return R.itemMap.set(p,Object.assign({ref:p},s)),function(){R.itemMap.delete(p)}}),(0,b.jsx)(r(d[4]).Slot,n(n(n({},y,""),"ref",v),"children",a))});return R.displayName=v,[{Provider:a,Slot:p,ItemSlot:R},function(t){var n=f(t);return O.default.useCallback(function(){if(!r(d[6]).isWeb)return[];var t=n.collectionRef.current;if(!t)return[];var o=Array.from(t.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort(function(t,n){return o.indexOf(t.ref.current)-o.indexOf(n.ref.current)})},[n.collectionRef,n.itemMap])}]}},917,[18,207,258,128,796,860,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},918,[919]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,l=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){!p.call(t,c)&&c!==o&&u(t,c,{get:function(){return n[c]},enumerable:!(s=f(n,c))||s.enumerable})};for(var v of c(n))l(v)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{useControllableState:function(){return O}}),m.exports=(t=v,l(u({},"__esModule",{value:!0}),t));var b=(function(t,n,f){return f=null!=t?o(s(t)):{},l(!n&&t&&t.__esModule?f:u(f,"default",{value:t,enumerable:!0}),t)})(r(d[1])),y=function(t){return t()};function O(t){var o=t.prop,u=t.defaultProp,f=t.onChange,c=t.strategy,s=void 0===c?"prop-wins":c,p=t.preventUpdate,l=t.transition,v=b.useState(null!=o?o:u),O=n(v,2),P=O[0],_=O[1],w=b.useRef(P),E="prop-wins"===s&&void 0!==o,h=E?o:P,C=(0,r(d[2]).useEvent)(f||j),M=l?r(d[3]).startTransition:y;return b.useEffect(function(){void 0!==o&&(w.current=o,M(function(){_(o)}))},[o]),b.useEffect(function(){E||P!==w.current&&(w.current=P,C(P))},[C,P,E]),[h,(0,r(d[2]).useEvent)(function(t){if(!p)if(E){var n="function"==typeof t?t(w.current):t;C(n)}else M(function(){_(t)})})]}var j=function(){}},919,[19,128,900,920]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{startTransition:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));r(d[0]);var s=function(t){t()}},920,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},921,[922]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,v=function(t,n,f,v){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(v=u(n,c))||v.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{DirectionProvider:function(){return j},Provider:function(){return P},useDirection:function(){return y}}),m.exports=(t=b,v(o({},"__esModule",{value:!0}),t));var p=r(d[0]),s=(function(t,u,c){return c=null!=t?n(f(t)):{},v(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),O=s.createContext(void 0),j=function(t){var n=t.dir,o=t.children;return(0,p.jsx)(O.Provider,{value:n,children:o})};function y(t){var n=s.useContext(O);return t||n||"ltr"}var P=j},922,[258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},923,[924,926,930,931]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var p=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var v of c(l))p(v)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{XStack:function(){return y},YStack:function(){return v},ZStack:function(){return b},fullscreenStyle:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s={position:"absolute",top:0,left:0,right:0,bottom:0},p={fullscreen:{true:s},elevation:{"...size":r(d[0]).getElevation,":number":r(d[0]).getElevation},inset:function(t){return t&&"object"==typeof t?t:{top:t,left:t,bottom:t,right:t}}},v=(0,r(d[1]).styled)(r(d[1]).View,{flexDirection:"column",variants:p});v.displayName="YStack";var y=(0,r(d[1]).styled)(r(d[1]).View,{flexDirection:"row",variants:p});y.displayName="XStack";var b=(0,r(d[1]).styled)(v,{position:"relative"},{neverFlatten:!0,isZStack:!0});b.displayName="ZStack"},924,[925,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,s,c,l){if(s&&"object"==typeof s||"function"==typeof s){var v=function(u){!f.call(t,u)&&u!==c&&n(t,u,{get:function(){return s[u]},enumerable:!(l=o(s,u))||l.enumerable})};for(var b of u(s))v(b)}return t},c={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{getElevation:function(){return l},getSizedElevation:function(){return v}}),m.exports=(t=c,s(n({},"__esModule",{value:!0}),t));var l=function(t,n){if(t){var o=n.tokens.size[t],u=(0,r(d[0]).isVariable)(o)?+o.val:t;return v(u,n)}},v=function(t,n){var o=n.theme,u=n.tokens,f=0;if(!0===t){var s=(0,r(d[0]).getVariableValue)(u.size.true);f="number"==typeof s?s:10}else f=+t;if(0!==f){var c=[Math.round(f/4+1),Math.round(f/2+2)],l=c[0],v=c[1];return Object.assign({shadowColor:o.shadowColor,shadowRadius:v,shadowOffset:{height:l,width:0}},r(d[0]).isAndroid?{elevationAndroid:2*l}:{})}}},925,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,s=function(t,s,f,l){if(s&&"object"==typeof s||"function"==typeof s){var b=function(c){!u.call(t,c)&&c!==f&&o(t,c,{get:function(){return s[c]},enumerable:!(l=n(s,c))||l.enumerable})};for(var h of c(s))b(h)}return t},f={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(f,{SizableStack:function(){return l}}),m.exports=(t=f,s(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[1]).XStack,{name:"SizableStack",variants:{unstyled:{true:{hoverTheme:!1,pressTheme:!1,focusTheme:!1,elevate:!1,bordered:!1}},hoverTheme:r(d[2]).hoverTheme,pressTheme:r(d[2]).pressTheme,focusTheme:r(d[2]).focusTheme,circular:r(d[2]).circular,elevate:r(d[2]).elevate,bordered:r(d[2]).bordered,size:{"...size":function(t,o){return(0,r(d[3]).getButtonSized)(t,o)}}}})},926,[796,924,927,928]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(o,c,b,f){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!s.call(o,u)&&u!==b&&t(o,u,{get:function(){return c[u]},enumerable:!(f=n(c,u))||f.enumerable})};for(var p of u(c))l(p)}return o},b={};!(function(o,n){for(var u in n)t(o,u,{get:n[u],enumerable:!0})})(b,{bordered:function(){return l},circular:function(){return C},elevate:function(){return f},focusTheme:function(){return k},hoverTheme:function(){return y},padded:function(){return p},pressTheme:function(){return $},radiused:function(){return v}}),m.exports=(o=b,c(t({},"__esModule",{value:!0}),o));var f={true:function(o,t){return(0,r(d[0]).getElevation)(t.props.size,t)}},l=function(o,t){var n=t.props;return Object.assign({borderWidth:"number"==typeof o?o:1,borderColor:"$borderColor"},n.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},n.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},n.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}})},p={true:function(o,t){var n=t.tokens,u=t.props;return{padding:n.space[u.size]||n.space.$true}}},v={true:function(o,t){var n=t.tokens,u=t.props;return{borderRadius:n.radius[u.size]||n.radius.$true}}},h={borderRadius:1e5,padding:0},C={true:function(o,t){var n=t.props,u=t.tokens;if(!("size"in n))return h;var s="number"==typeof n.size?n.size:u.size[n.size];return Object.assign({},h,{width:s,height:s,maxWidth:s,maxHeight:s,minWidth:s,minHeight:s})}},y={true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},$={true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},k={true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}}},927,[925]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getButtonSized:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t,n){var o=n.tokens,u=n.props;if(t&&!u.circular){if("number"==typeof t)return{paddingHorizontal:.25*t,height:t,borderRadius:u.circular?1e5:.2*t};var c,f=(0,r(d[0]).getSpace)(t),p=null!==(c=o.radius[t])&&void 0!==c?c:o.radius.$true;return{paddingHorizontal:f,height:t,borderRadius:u.circular?1e5:p}}}},928,[929]); +__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,f=function(t,f,l,c){if(f&&"object"==typeof f||"function"==typeof f){var s=function(o){!a.call(t,o)&&o!==l&&n(t,o,{get:function(){return f[o]},enumerable:!(c=u(f,o))||c.enumerable})};for(var v of o(f))s(v)}return t},l={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(l,{getRadius:function(){return p},getSize:function(){return s},getSpace:function(){return v},getTokenRelative:function(){return x},stepTokenUpOrDown:function(){return k}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var c={shift:0,bounds:[0]},s=function(t,n){return x("size",t,n)},v=function(t,n){return x("space",t,n)},p=function(t,n){return x("radius",t,n)},y={},h={},b={},O={},k=function(t,n){var u,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,f=(0,r(d[0]).getTokens)({prefixed:!0})[t];if(!(t in y)){b[t]=[],y[t]=[],O[t]=[],h[t]=[];var l=Object.keys(f).map(function(t){return f[t]}).sort(function(t,n){return t.val-n.val}),s=!0,v=!1,p=void 0;try{for(var k,x=l[Symbol.iterator]();!(s=(k=x.next()).done);s=!0){var j=k.value;b[t].push(j.key),y[t].push(j)}}catch(t){v=!0,p=t}finally{try{!s&&null!=x.return&&x.return()}finally{if(v)throw p}}var w=l.filter(function(t){return!t.key.endsWith(".5")}),S=!0,P=!1,_=void 0;try{for(var M,T=w[Symbol.iterator]();!(S=(M=T.next()).done);S=!0){var z=M.value;O[t].push(z.key),h[t].push(z)}}catch(t){P=!0,_=t}finally{try{!S&&null!=T.return&&T.return()}finally{if(P)throw _}}}var D,R,$="string"==typeof n,H=(a.excludeHalfSteps?$?O:h:$?b:y)[t],N=null!==(D=null===(u=a.bounds)||void 0===u?void 0:u[0])&&void 0!==D?D:0,U=null!==(R=null===(o=a.bounds)||void 0===o?void 0:o[1])&&void 0!==R?R:H.length-1,V=H.indexOf(n),W=a.shift||0;W&&("$true"===n||(0,r(d[0]).isVariable)(n)&&"true"===n.name)&&(W+=W>0?1:-1);var q=H[Math.min(U,Math.max(N,V+W))];return("string"==typeof q?f[q]:q)||f.$true},x=k},929,[801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(t,s,l,p){if(s&&"object"==typeof s||"function"==typeof s){var b=function(u){!c.call(t,u)&&u!==l&&o(t,u,{get:function(){return s[u]},enumerable:!(p=n(s,u))||p.enumerable})};for(var f of u(s))b(f)}return t},l={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(l,{ThemeableStack:function(){return f},themeableVariants:function(){return b}}),m.exports=(t=l,s(o({},"__esModule",{value:!0}),t));var p={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent",hoverStyle:{borderColor:"transparent"}},b={backgrounded:{true:{backgroundColor:"$background"}},radiused:r(d[0]).radiused,hoverTheme:r(d[0]).hoverTheme,pressTheme:r(d[0]).pressTheme,focusTheme:r(d[0]).focusTheme,circular:r(d[0]).circular,padded:r(d[0]).padded,elevate:r(d[0]).elevate,bordered:r(d[0]).bordered,transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:p,all:Object.assign({},p,{hoverStyle:p,pressStyle:p,focusStyle:p})}},f=(0,r(d[1]).styled)(r(d[2]).YStack,{variants:b})},930,[927,796,924]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var O of c(n))p(O)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{ButtonNestingContext:function(){return s}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.createContext(!1)},931,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},932,[933]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),l=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],s=["__scopeCollapsible","children"],c=["forceMount","children","__scopeCollapsible"],p=Object.create,u=Object.defineProperty,b=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,C=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,v=function(n,t,o,l){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!O.call(n,s)&&s!==o&&u(n,s,{get:function(){return t[s]},enumerable:!(l=b(t,s))||l.enumerable})};for(var c of f(t))s(c)}return n},y={};!(function(n,t){for(var o in t)u(n,o,{get:t[o],enumerable:!0})})(y,{Collapsible:function(){return R},CollapsibleContent:function(){return I},CollapsibleContentFrame:function(){return N},CollapsibleTrigger:function(){return k},CollapsibleTriggerFrame:function(){return w}}),m.exports=(n=y,v(u({},"__esModule",{value:!0}),n));var _=r(d[2]),j=(function(n,t,o){return o=null!=n?p(C(n)):{},v(!t&&n&&n.__esModule?o:u(o,"default",{value:n,enumerable:!0}),n)})(r(d[3])),h=(0,r(d[4]).createStyledContext)(),P=h.Provider,x=h.useStyledContext,S=j.forwardRef(function(n,s){var c=n.__scopeCollapsible,p=n.open,u=n.defaultOpen,b=n.disabled,f=n.onOpenChange,C=o(n,l),O=(0,r(d[5]).useControllableState)({prop:p,defaultProp:u,onChange:f}),v=t(O,2),y=v[0],h=void 0!==y&&y,x=v[1];return(0,_.jsx)(P,{scope:c,disabled:b,contentId:j.useId(),open:h,onOpenToggle:j.useCallback(function(){return x(function(n){return!n})},[x]),children:(0,_.jsx)(r(d[4]).Stack,Object.assign({"data-state":F(h),"data-disabled":b?"":void 0},C,{ref:s}))})});S.displayName="Collapsible";var T="CollapsibleTrigger",w=(0,r(d[4]).styled)(r(d[4]).Stack,{name:T,tag:"button"}),k=w.styleable(function(n,t){var l=n.__scopeCollapsible,c=n.children,p=o(n,s),u=x(l);return(0,_.jsx)(w,Object.assign({"aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":F(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled},p,{ref:t,onPress:(0,r(d[6]).composeEventHandlers)(n.onPress,u.onOpenToggle),children:"function"==typeof c?c({open:u.open}):c}))});k.displayName=T;var M="CollapsibleContent",N=(0,r(d[4]).styled)(r(d[4]).Stack,{name:M}),I=N.styleable(function(n,t){var l=n.forceMount,s=n.children,p=n.__scopeCollapsible,u=o(n,c),b=x(p);return(0,_.jsx)(r(d[7]).AnimatePresence,Object.assign({},u,{children:l||b.open?(0,_.jsx)(N,Object.assign({ref:t},u,{children:(0,_.jsx)(r(d[7]).ResetPresence,{children:s})})):null}))});function F(n){return n?"open":"closed"}I.displayName=M;var R=(0,r(d[6]).withStaticProperties)(S,{Trigger:k,Content:I})},933,[19,207,258,128,801,918,811,934]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},934,[935,940,943,938]); +__d(function(g,r,_i,a,m,e,d){"use strict";var n,t=r(d[0]),i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=function(n,t,s,f){if(t&&"object"==typeof t||"function"==typeof t){var l=function(u){!o.call(n,u)&&u!==s&&i(n,u,{get:function(){return t[u]},enumerable:!(f=c(t,u))||f.enumerable})};for(var p of u(t))l(p)}return n},f={};!(function(n,t){for(var c in t)i(n,c,{get:t[c],enumerable:!0})})(f,{AnimatePresence:function(){return y}}),m.exports=(n=f,s(i({},"__esModule",{value:!0}),n));var l=r(d[1]),p=r(d[2]),x=function(n){return n.key||""};function h(n,t){n.forEach(function(n){var i=x(n);t.set(i,n)})}function v(n){var t=[];return p.Children.forEach(n,function(n){(0,p.isValidElement)(n)&&t.push(n)}),t}var y=function(n){var i,c=n.children,u=n.enterVariant,o=n.exitVariant,s=n.enterExitVariant,f=n.initial,y=void 0===f||f,E=n.onExitComplete,V=n.exitBeforeEnter,P=n.presenceAffectsLayout,j=void 0===P||P,O=n.custom,b=n.passThrough,C=null!==(i=(0,p.useContext)(r(d[3]).LayoutGroupContext).forceRender)&&void 0!==i?i:(0,r(d[4]).useForceUpdate)(),A=v(c),L=(0,p.useRef)(A),w=(0,p.useRef)(new Map).current,R=(0,p.useRef)(new Set).current;h(A,w);var F=(0,p.useRef)(!0);if(b)return(0,l.jsx)(l.Fragment,{children:c});if((0,r(d[5]).useIsomorphicLayoutEffect)(function(){F.current=!1},[]),F.current)return(0,l.jsx)(l.Fragment,{children:A.map(function(n){return(0,l.jsx)(r(d[6]).PresenceChild,{isPresent:!0,enterExitVariant:s,exitVariant:o,enterVariant:u,initial:!!y&&void 0,presenceAffectsLayout:j,custom:O,children:n},x(n))})});for(var _=t(A),k=L.current.map(x),z=A.map(x),I=k.length,M=0;M"u")return b.useMemo(function(){return t()},[]);var n=b.useRef(void 0);return n.current||(n.current={v:t()}),n.current.v}},939,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(n,c,f,P){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!s.call(n,u)&&u!==f&&t(n,u,{get:function(){return c[u]},enumerable:!(P=o(c,u))||P.enumerable})};for(var b of u(c))p(b)}return n},f={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(f,{PresenceContext:function(){return r(d[0]).PresenceContext},ResetPresence:function(){return r(d[0]).ResetPresence},isPresent:function(){return r(d[1]).isPresent},useIsPresent:function(){return r(d[1]).useIsPresent},usePresence:function(){return r(d[1]).usePresence}}),m.exports=(n=f,c(t({},"__esModule",{value:!0}),n))},940,[941,942]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,s=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{PresenceContext:function(){return O},ResetPresence:function(){return j}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t));var p=r(d[0]),v=(function(t,u,c){return c=null!=t?n(l(t)):{},s(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),O=v.createContext(null),j=function(t){var n=v.useContext(O);return(0,p.jsx)(O.Provider,{value:t.disable?n:null,children:t.children})}},941,[258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=function(t,n,f,l){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!s.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(l=o(n,c))||l.enumerable})};for(var P of c(n))p(P)}return t},p={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(p,{isPresent:function(){return O},useIsPresent:function(){return v},usePresence:function(){return b}}),m.exports=(t=p,l(u({},"__esModule",{value:!0}),t));var P=(function(t,o,c){return c=null!=t?n(f(t)):{},l(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function b(){var t=P.useContext(r(d[1]).PresenceContext);if(!t)return[!0,null,t];var n=t.id,u=t.isPresent,o=t.onExitComplete,c=t.register;P.useEffect(function(){return c(n)},[]);return!u&&o?[!1,function(){return null==o?void 0:o(n)},t]:[!0,void 0,t]}function v(){return O(P.useContext(r(d[1]).PresenceContext))}function O(t){return null===t||t.isPresent}},942,[128,941]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},943,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!p.call(t,u)&&u!==f&&o(t,u,{get:function(){return c[u]},enumerable:!(s=n(c,u))||s.enumerable})};for(var b of u(c))l(b)}return t},f=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},s={};m.exports=(t=s,c(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports),f(s,r(d[3]),m.exports),f(s,r(d[4]),m.exports)},944,[945,947,948,949,950]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,c,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(s){!u.call(t,s)&&s!==c&&n(t,s,{get:function(){return f[s]},enumerable:!(l=o(f,s))||l.enumerable})};for(var y of s(f))p(y)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{SizableText:function(){return l}}),m.exports=(t=c,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{name:"SizableText",fontFamily:"$body",variants:{unstyled:{false:{size:"$true",color:"$color"}},size:r(d[1]).getFontSized},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}});l.staticConfig.variants.fontFamily={"...":function(t,n){var o=n.props.size,s=n.props.fontSize,u="$true"===o&&s?s:n.props.size||"$true";return(0,r(d[1]).getFontSized)(u,n)}}},945,[801,946]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,v,c){if(f&&"object"==typeof f||"function"==typeof f){var s=function(l){!u.call(t,l)&&l!==v&&n(t,l,{get:function(){return f[l]},enumerable:!(c=o(f,l))||c.enumerable})};for(var y of l(f))s(y)}return t},v={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(v,{SizableText:function(){return s},getFontSized:function(){return c}}),m.exports=(t=v,f(n({},"__esModule",{value:!0}),t));var c=function(){var t,n,o,l,u,f,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",c=arguments.length>1?arguments[1]:void 0,s=c.font,y=c.fontFamily,b=c.props;if(!s)return{fontSize:v};var z,S,O="$true"===v?p(s):v,h={},j=s.size[O],$=null===(t=s.lineHeight)||void 0===t?void 0:t[O],w=null===(n=s.weight)||void 0===n?void 0:n[O],x=null===(o=s.letterSpacing)||void 0===o?void 0:o[O],T=null===(l=s.transform)||void 0===l?void 0:l[O],k=null!==(z=b.fontStyle)&&void 0!==z?z:null===(u=s.style)||void 0===u?void 0:u[O],F=null!==(S=b.color)&&void 0!==S?S:null===(f=s.color)||void 0===f?void 0:f[O];return k&&(h.fontStyle=k),T&&(h.textTransform=T),y&&(h.fontFamily=y),w&&(h.fontWeight=w),x&&(h.letterSpacing=x),j&&(h.fontSize=j),$&&(h.lineHeight=$),F&&(h.color=F),h},s=(0,r(d[0]).styled)(r(d[0]).Text,{name:"SizableText",fontFamily:"$body",variants:{size:{"...fontSize":c}},defaultVariants:{size:"$true"}}),y=new WeakMap;function p(t){if("object"==typeof t&&y.has(t))return y.get(t);var n="$true"in t.size?t.size:(0,r(d[0]).getTokens)().size,o=n.$true,l=o?Object.keys(n).find(function(t){return"$true"!==t&&n[t].val===o.val}):null;return o&&l?(y.set(t,l),l):Object.keys(t.size)[3]}},946,[801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(l=n(f,c))||l.enumerable})};for(var b of c(f))s(b)}return t},p={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{Paragraph:function(){return l}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[1]).SizableText,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true",whiteSpace:"normal"})},947,[801,945]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,o=function(t,o,f,c){if(o&&"object"==typeof o||"function"==typeof o){var y=function(u){!l.call(t,u)&&u!==f&&n(t,u,{get:function(){return o[u]},enumerable:!(c=s(o,u))||c.enumerable})};for(var H of u(o))y(H)}return t},f={};!(function(t,s){for(var u in s)n(t,u,{get:s[u],enumerable:!0})})(f,{H1:function(){return y},H2:function(){return H},H3:function(){return p},H4:function(){return v},H5:function(){return A},H6:function(){return E},Heading:function(){return c}}),m.exports=(t=f,o(n({},"__esModule",{value:!0}),t));var c=(0,r(d[0]).styled)(r(d[1]).Paragraph,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),y=(0,r(d[0]).styled)(c,{name:"H1",tag:"h1",variants:{unstyled:{false:{size:"$10"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),H=(0,r(d[0]).styled)(c,{name:"H2",tag:"h2",variants:{unstyled:{false:{size:"$9"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[0]).styled)(c,{name:"H3",tag:"h3",variants:{unstyled:{false:{size:"$8"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[0]).styled)(c,{name:"H4",tag:"h4",variants:{unstyled:{false:{size:"$7"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=(0,r(d[0]).styled)(c,{name:"H5",tag:"h5",variants:{unstyled:{false:{size:"$6"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),E=(0,r(d[0]).styled)(c,{name:"H6",tag:"h6",variants:{unstyled:{false:{size:"$5"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},948,[801,947]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return n[u]},enumerable:!(p=l(n,u))||p.enumerable})};for(var y of u(n))s(y)}return t},s={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(s,{wrapChildrenInText:function(){return O}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t));var y=r(d[0]),b=(function(t,l,u){return u=null!=t?n(f(t)):{},p(!l&&t&&t.__esModule?u:o(u,"default",{value:t,enumerable:!0}),t)})(r(d[1]));function O(t,n,o){var l=n.children,u=n.textProps,f=n.size,c=n.noTextWrap,p=n.color,s=n.fontFamily,O=n.fontSize,j=n.fontWeight,v=n.letterSpacing,x=n.textAlign,S=n.fontStyle,h=n.maxFontSizeMultiplier;if(c||!l)return[l];var z=Object.assign({},o);return p&&(z.color=p),s&&(z.fontFamily=s),O&&(z.fontSize=O),j&&(z.fontWeight=j),v&&(z.letterSpacing=v),x&&(z.textAlign=x),f&&(z.size=f),S&&(z.fontStyle=S),h&&(z.maxFontSizeMultiplier=h),b.default.Children.toArray(l).map(function(n,o){return"string"==typeof n?(0,y.jsx)(t,Object.assign({},z,u,{children:n}),o):n})}},949,[258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},950,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},951,[952]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["children"],l=["scope"],s=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,v=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,P=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!h.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=f(n,l))||u.enumerable})};for(var s of p(n))l(s)}return t},C={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(C,{Adapt:function(){return N},AdaptContents:function(){return I},AdaptContext:function(){return y},AdaptParent:function(){return S},AdaptPortalContents:function(){return W},ProvideAdaptContext:function(){return w},useAdaptContext:function(){return O},useAdaptIsActive:function(){return _}}),m.exports=(t=C,P(c({},"__esModule",{value:!0}),t));var b=r(d[2]),x=(function(t,n,o){return o=null!=t?s(v(t)):{},P(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),y=(0,r(d[4]).createStyledContext)({Contents:null,scopeName:"",portalName:"",platform:null,setPlatform:function(t){},when:null,setChildren:null,setWhen:function(){}}),j=(0,x.createContext)(""),w=function(t){var n=t.children,l=o(t,u),s=l.scopeName||"",c=(0,x.useContext)(j);return(0,b.jsx)(j.Provider,{value:c||l.lastScope||"",children:(0,b.jsx)(y.Provider,Object.assign({scope:s,lastScope:c||l.lastScope},l,{children:n}))})},O=function(t){var n=(0,x.useContext)(j),o=null!=t?t:n;return y.useStyledContext(o)},A=new Map,S=function(t){var o=t.children,u=t.Contents,l=t.scope,s=t.portal,c=(0,x.useId)(),f=`AdaptPortal${l}${c}`,p=(0,x.useMemo)(function(){if(u)return u;if(A.has(f))return A.get(f);var t=function(){return(0,b.jsx)(r(d[5]).PortalHost,{name:f,forwardProps:"boolean"==typeof s||null==s?void 0:s.forwardProps},c)};return A.set(f,t),t},[f,u]);(0,r(d[6]).useIsomorphicLayoutEffect)(function(){return A.set(f,p),function(){A.delete(f)}},[f]);var v=x.default.useState(null),h=n(v,2),P=h[0],C=h[1],y=x.default.useState(null),O=n(y,2),S=O[0],I=O[1],N=x.default.useState(null),W=n(N,2),E=(W[0],W[1]);return(0,b.jsx)(j.Provider,{value:l,children:(0,b.jsx)(w,{Contents:p,when:P,platform:S,setPlatform:I,setWhen:C,setChildren:E,portalName:f,scopeName:l,children:o})})},I=function(t){var n=t.scope,u=o(t,l),s=O(n);if(null==s||!s.Contents)throw new Error("tamagui.dev/docs/intro/errors#warning-002");return x.default.createElement(s.Contents,Object.assign({},u,{key:"stable"}))};I.shouldForwardSpace=!0;var N=(0,r(d[7]).withStaticProperties)(function(t){var n,o=t.platform,u=t.when,l=t.children,s=t.scope,c=O(s),f=E(t);if((0,r(d[6]).useIsomorphicLayoutEffect)(function(){var t,n;null==c||null===(t=c.setWhen)||void 0===t||t.call(c,u||f),null==c||null===(n=c.setPlatform)||void 0===n||n.call(c,o||null)},[u,o,f,c.setWhen,c.setPlatform]),(0,r(d[6]).useIsomorphicLayoutEffect)(function(){return function(){var t,n;null==c||null===(t=c.setWhen)||void 0===t||t.call(c,null),null==c||null===(n=c.setPlatform)||void 0===n||n.call(c,null)}},[]),"function"==typeof l){var p=null==c?void 0:c.Contents;n=l(p?(0,b.jsx)(p,{}):null)}else n=l;return(0,r(d[6]).useIsomorphicLayoutEffect)(function(){"function"==typeof l&&void 0!==n&&(null==c||c.setChildren(n))},[n]),(0,b.jsx)(r(d[8]).StackZIndexContext,{children:f?n:null})},{Contents:I}),W=function(t){var n=_(t.scope),o=O(t.scope).portalName;return(0,b.jsx)(r(d[5]).PortalItem,{passThrough:!n,hostName:o,children:t.children})},E=function(t){var n=t.when,o=t.platform,u=(0,r(d[4]).useMedia)();if(null==n&&null==o)return!1;if(!0===n)return!0;var l=!1;return"touch"===o?l=r(d[6]).isTouchable:"native"===o?l=!r(d[6]).isWeb:"web"===o?l=r(d[6]).isWeb:"ios"===o?l=r(d[6]).isIos:"android"===o&&(l=r(d[6]).isAndroid),(!o||0!=l)&&(n&&"string"==typeof n&&(l=u[n]),l)},_=function(t){var n=O(t);return E(n)}},952,[19,207,258,128,796,953,798,811,959]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,l){if(c&&"object"==typeof c||"function"==typeof c){var s=function(u){!f.call(t,u)&&u!==p&&o(t,u,{get:function(){return c[u]},enumerable:!(l=n(c,u))||l.enumerable})};for(var b of u(c))s(b)}return t},p=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},l={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(l,{PortalItem:function(){return r(d[0]).GorhomPortalItem},resolveViewZIndex:function(){return r(d[1]).resolveViewZIndex}}),m.exports=(t=l,c(o({},"__esModule",{value:!0}),t)),p(l,r(d[2]),m.exports),p(l,r(d[3]),m.exports),p(l,r(d[4]),m.exports),p(l,r(d[5]),m.exports)},953,[954,957,958,963,955,956]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var v of u(f))p(v)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{GorhomPortalItem:function(){return p}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var l=r(d[0]),p=function(n){var t=n.name,o=n.hostName,u=n.handleOnMount,c=n.handleOnUnmount,f=n.handleOnUpdate,s=n.children,p=n.passThrough,v=(0,r(d[1]).usePortal)(o),h=v.addPortal,O=v.removePortal,b=(0,l.useId)(),y=t||b,P=(0,r(d[2]).useEvent)(function(){u?u(function(){return h(y,s)}):h(y,s)}),j=(0,r(d[2]).useEvent)(function(){c?c(function(){return O(y)}):O(y)}),E=(0,r(d[2]).useEvent)(function(){f?f(function(){return h(y,s)}):h(y,s)});return(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(!p)return P(),function(){j()}},[]),(0,l.useEffect)(function(){p||E()},[s]),p?s:null}},954,[128,955,796,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["children"],c=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,P=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var p of f(n))c(p)}return t},h={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(h,{ACTIONS:function(){return E},INITIAL_STATE:function(){return j},PortalHost:function(){return D},PortalProvider:function(){return I},usePortal:function(){return A}}),m.exports=(t=h,P(s({},"__esModule",{value:!0}),t));var O=r(d[2]),b=(function(t,n,o){return o=null!=t?c(p(t)):{},P(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),E=(function(t){return t[t.REGISTER_HOST=0]="REGISTER_HOST",t[t.DEREGISTER_HOST=1]="DEREGISTER_HOST",t[t.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",t[t.REMOVE_PORTAL=3]="REMOVE_PORTAL",t})(E||{}),j={},y=function(t,n){return n in t||(t[n]=[]),t},T=function(t,n){return delete t[n],t},N=function(t,n,o,u){n in t||(t=y(t,n));var c=t[n].findIndex(function(t){return t.name===o});return-1!==c?t[n][c].node=u:t[n].push({name:o,node:u}),t},_=function(t,n,o){if(!(n in t))return console.info(`Failed to remove portal '${o}', '${n}' was not registered!`),t;var u=t[n].findIndex(function(t){return t.name===o});return-1!==u&&t[n].splice(u,1),t},x=function(t,n){switch(n.type){case 0:return y(Object.assign({},t),n.hostName);case 1:return T(Object.assign({},t),n.hostName);case 2:return N(Object.assign({},t),n.hostName,n.portalName,n.node);case 3:return _(Object.assign({},t),n.hostName,n.portalName);default:return t}},R=(0,b.createContext)(null),H=(0,b.createContext)(null),w=function(t){var n=(0,b.useContext)(R);if(null===n)throw new Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return n[t]||[]},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"root",n=(0,b.useContext)(H);if(null===n)throw new Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");var o=(0,b.useCallback)(function(){n({type:0,hostName:t})},[]),u=(0,b.useCallback)(function(){n({type:1,hostName:t})},[]),c=(0,b.useCallback)(function(o,u){n({type:2,hostName:t,portalName:o,node:u})},[]);return{registerHost:o,deregisterHost:u,addPortal:c,updatePortal:c,removePortal:(0,b.useCallback)(function(o){n({type:3,hostName:t,portalName:o})},[])}},C=function(t){var n=t.rootHostName,u=void 0===n?"root":n,c=t.shouldAddRootHost,s=void 0===c||c,l=t.children,f=(0,b.useReducer)(x,j),p=o(f,2),v=p[0],P=p[1],h=(0,b.useMemo)(function(){return function(t){(0,r(d[4]).startTransition)(function(){P(t)})}},[P]);return(0,O.jsx)(H.Provider,{value:h,children:(0,O.jsxs)(R.Provider,{value:v,children:[l,s&&(0,O.jsx)(D,{name:u})]})})},I=(0,b.memo)(C);I.displayName="PortalProvider";var S=function(t){return(0,O.jsx)(O.Fragment,{children:t})},D=(0,b.memo)(function(t){return r(d[5]).isWeb?(0,O.jsx)(L,Object.assign({},t)):(0,O.jsx)(k,Object.assign({},t))});function L(t){return(0,r(d[5]).useIsomorphicLayoutEffect)(function(){return function(){r(d[6]).allPortalHosts.delete(t.name)}},[t.name]),(0,O.jsx)("div",{style:{display:"contents"},ref:function(n){var o;n&&(r(d[6]).allPortalHosts.set(t.name,n),null===(o=r(d[6]).portalListeners[t.name])||void 0===o||o.forEach(function(t){return t(n)}))}})}function k(t){var o=t.name,c=t.forwardProps,s=t.render,l=void 0===s?S:s,f=w(o),p=A(t.name),v=p.registerHost,P=p.deregisterHost;return(0,r(d[5]).useIsomorphicLayoutEffect)(function(){if(!(typeof window>"u"))return v(),function(){P()}},[]),l(c?f.map(function(t){var o=t.node,s=(c.children,n(c,u));return c?b.default.Children.map(o,function(t){return b.default.isValidElement(t)?b.default.cloneElement(t,Object.assign({key:t.key},s)):t}):o}):f.map(function(t){return t.node}))}},955,[207,19,258,128,920,798,956]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var _=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))_(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{IS_FABRIC:function(){return _},USE_NATIVE_PORTAL:function(){return l},allPortalHosts:function(){return A},portalListeners:function(){return v}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p,_=typeof g<"u"&&!!(null!==(p=g._IS_FABRIC)&&void 0!==p?p:g.nativeFabricUIManager),l=!(!process.env.TAMAGUI_USE_NATIVE_PORTAL||"false"===process.env.TAMAGUI_USE_NATIVE_PORTAL)||!r(d[0]).isAndroid&&!_,A=new Map,v={}},956,[798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getStackedZIndexProps:function(){return s},resolveViewZIndex:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(t){return{stackZIndex:t.stackZIndex,zIndex:b(t.zIndex)}},b=function(t){return typeof t>"u"||"unset"===t?void 0:"number"==typeof t?t:(0,r(d[0]).getTokenValue)(t,"zIndex")}},957,[801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=function(t,o,c,f){if(o&&"object"==typeof o||"function"==typeof o){var p=function(u){!s.call(t,u)&&u!==c&&n(t,u,{get:function(){return o[u]},enumerable:!(f=l(o,u))||f.enumerable})};for(var v of u(o))p(v)}return t},p={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(p,{Portal:function(){return O}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var v=r(d[0]),h=(function(t,l,u){return u=null!=t?o(c(t)):{},f(!l&&t&&t.__esModule?u:n(u,"default",{value:t,enumerable:!0}),t)})(r(d[1])),b=r(d[2]),P=(function(){if(r(d[3]).IS_FABRIC)try{var t,o,n=r(d[4]);return null!==(o=null==n||null===(t=n.default)||void 0===t?void 0:t.createPortal)&&void 0!==o?o:n.createPortal}catch(t){return console.info("Note: error importing portal, defaulting to non-native portals",t),null}try{var l,u,c=r(d[5]);return null!==(u=null==c||null===(l=c.default)||void 0===l?void 0:l.createPortal)&&void 0!==u?u:c.createPortal}catch(t){return console.info("Note: error importing portal, defaulting to non-native portals",t),null}})(),O=function(t){var o=h.useContext(b.RootTagContext),n=(0,r(d[6]).useStackedZIndex)((0,r(d[7]).getStackedZIndexProps)(t)),l=t.children,u=t.passThrough,c=(0,v.jsx)(r(d[8]).View,{pointerEvents:"box-none",position:"absolute",inset:0,maxWidth:"100%",zIndex:n,passThrough:u,children:l});return P&&r(d[3]).USE_NATIVE_PORTAL&&o?P(c,o):(0,v.jsx)(r(d[9]).GorhomPortalItem,{passThrough:u,hostName:"root",children:c})}},958,[258,128,28,956,60,278,959,957,796,954]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},959,[960,962,961]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,s,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(o){!f.call(t,o)&&o!==s&&n(t,o,{get:function(){return c[o]},enumerable:!(l=u(c,o))||l.enumerable})};for(var v of o(c))b(v)}return t},s={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(s,{useStackedZIndex:function(){return x}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t));var l=r(d[0]),b={},v={},x=function(t){if(process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL){var n=t.stackZIndex,u=t.zIndex,o=(0,l.useId)(),f=(0,l.useMemo)(function(){if(n&&"global"!==n&&void 0===u){var t=Object.values(v).reduce(function(t,n){return Math.max(t,n)},0);return Math.max(!0===n?1:n,t+1)}return null!=u?u:1e3},[n]);return(0,l.useEffect)(function(){if("number"==typeof n)return v[o]=n,function(){delete v[o]}},[n]),f}var c,s,x=t.stackZIndex,p=t.zIndex,I=(0,l.useId)(),y=(0,l.useContext)(r(d[1]).ZIndexStackContext),O="global"===x?0:y,_=(0,l.useContext)(r(d[1]).ZIndexHardcodedContext);(c=b)[s=O]||(c[s]={});var j=b[O],M=(0,l.useMemo)(function(){if("number"==typeof p)return p;if(x){if(_)return _+1;var t=Object.values(j).reduce(function(t,n){return Math.max(t,n)},0),n=5e3*O+t+1;return"number"==typeof x?x+n:n}return 1},[O,p,x]);return(0,l.useEffect)(function(){if(x)return j[I]=M,function(){delete j[I]}},[M]),M}},960,[128,961]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))l(s)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{ZIndexHardcodedContext:function(){return s},ZIndexStackContext:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=r(d[0]),l=(0,b.createContext)(1),s=(0,b.createContext)(void 0)},961,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,x,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==x&&n(t,c,{get:function(){return f[c]},enumerable:!(l=o(f,c))||l.enumerable})};for(var v of c(f))p(v)}return t},x={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(x,{StackZIndexContext:function(){return v}}),m.exports=(t=x,f(n({},"__esModule",{value:!0}),t));var l=r(d[0]),p=r(d[1]),v=function(t){var n=t.children,o=t.zIndex,c=(0,p.useContext)(r(d[2]).ZIndexStackContext),u=(0,l.jsx)(r(d[2]).ZIndexStackContext.Provider,{value:c+1,children:n});return typeof o<"u"&&(u=(0,l.jsx)(r(d[2]).ZIndexHardcodedContext.Provider,{value:o,children:u})),u}},962,[258,128,961]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},963,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},964,[965]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["__native","onPress","__onPress"],s=["scope"],c=["scope"],u=["scope"],f=["scope","children"],p=["scope"],v=["scope"],y=["scope"],D=["scope"],b=["scope","native"],O=Object.create,j=Object.defineProperty,A=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,C=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,_=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var s=function(s){!P.call(t,s)&&s!==o&&j(t,s,{get:function(){return n[s]},enumerable:!(l=A(n,s))||l.enumerable})};for(var c of h(n))s(c)}return t},x={};!(function(t,n){for(var o in n)j(t,o,{get:n[o],enumerable:!0})})(x,{AlertDialog:function(){return X},AlertDialogAction:function(){return G},AlertDialogCancel:function(){return K},AlertDialogContent:function(){return W},AlertDialogDescription:function(){return z},AlertDialogOverlay:function(){return F},AlertDialogPortal:function(){return N},AlertDialogTitle:function(){return k},AlertDialogTrigger:function(){return V}}),m.exports=(t=x,_(j({},"__esModule",{value:!0}),t));var w=r(d[2]),T=(function(t,n,o){return o=null!=t?O(C(t)):{},_(!n&&t&&t.__esModule?o:j(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),E=r(d[4]),S="AlertDialogTrigger",R=(0,r(d[5]).styled)(r(d[5]).View,{name:S}),V=R.styleable(function(t,n){if(t.__native){t.__native;var c=t.onPress,u=t.__onPress,f=o(t,l);return(0,w.jsx)(R,Object.assign({},f,{onPress:(0,r(d[6]).composeEventHandlers)(c,u)}))}var p=t.scope,v=o(t,s);return(0,w.jsx)(r(d[7]).DialogTrigger,Object.assign({scope:p},v,{ref:n}))}),N=function(t){var n=t.scope,l=o(t,c);return(0,w.jsx)(r(d[7]).DialogPortal,Object.assign({scope:n},l))},F=(0,r(d[5]).styled)(r(d[7]).DialogOverlayFrame,{name:"AlertDialogOverlay"}).styleable(function(t,n){var l=t.scope,s=o(t,u);return(0,w.jsx)(r(d[7]).DialogOverlay,Object.assign({scope:l},s,{ref:n}))}),H=(0,r(d[5]).createStyledContext)({},"AlertDialogContext"),I=H.Provider,M=H.useStyledContext,W=T.forwardRef(function(t,n){var l=t.scope,s=t.children,c=o(t,f),u=l,p=T.useRef(null),v=(0,r(d[8]).useComposedRefs)(n,p),y=T.useRef(null);return(0,w.jsx)(r(d[7]).DialogWarningProvider,{contentName:"AlertDialogContent",titleName:L,docsSlug:"alert-dialog",children:(0,w.jsx)(I,{scope:l,cancelRef:y,children:(0,w.jsxs)(r(d[7]).DialogContent,Object.assign({role:"alertdialog",scope:u},c,{ref:v,onOpenAutoFocus:(0,r(d[6]).composeEventHandlers)(c.onOpenAutoFocus,function(t){var n;(t.preventDefault(),r(d[9]).isWeb)&&(null===(n=y.current)||void 0===n||n.focus({preventScroll:!0}))}),onPointerDownOutside:function(t){return t.preventDefault()},onInteractOutside:function(t){return t.preventDefault()},children:[(0,w.jsx)(r(d[5]).Slottable,{children:s}),!1]}))})})}),L="AlertDialogTitle",k=(0,r(d[5]).styled)(r(d[5]).View,{name:L}).styleable(function(t,n){var l=t.scope,s=o(t,p);return(0,w.jsx)(r(d[7]).DialogTitle,Object.assign({scope:l},s,{ref:n}))}),q="AlertDialogDescription",z=(0,r(d[5]).styled)(r(d[5]).View,{name:q}).styleable(function(t,n){var l=t.scope,s=o(t,v);return(0,w.jsx)(r(d[7]).DialogDescription,Object.assign({scope:l},s,{ref:n}))}),B="AlertDialogAction",G=(0,r(d[5]).styled)(r(d[5]).View,{name:B}).styleable(function(t,n){var l=t.scope,s=o(t,y);return(0,w.jsx)(r(d[7]).DialogClose,Object.assign({scope:l},s,{ref:n}))}),J="AlertDialogCancel",K=(0,r(d[5]).styled)(r(d[5]).View,{name:J}).styleable(function(t,n){var l=t.scope,s=o(t,D),c=M(l).cancelRef,u=(0,r(d[8]).useComposedRefs)(n,c);return(0,w.jsx)(r(d[7]).DialogClose,Object.assign({scope:l},s,{ref:u}))});function Q(t,n){var o=!0,l=!1,s=void 0;try{for(var c,u=t[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var f=c.value;if(T.isValidElement(f)&&n(f)){var p=f.props;p.children&&Q(T.Children.toArray(p.children),n)}}}catch(t){l=!0,s=t}finally{try{!o&&null!=u.return&&u.return()}finally{if(l)throw s}}}function U(t){var n="";return Q(T.Children.toArray(t),function(t){return"string"!=typeof t.props.children||(n=t.props.children,!1)}),n}var X=(0,r(d[6]).withStaticProperties)(function(t){var l=t.scope,s=t.native,c=o(t,b),u=l,f=(0,r(d[10]).useControllableState)({prop:t.open,defaultProp:t.defaultOpen||!1,onChange:t.onOpenChange,transition:!0}),p=n(f,2),v=p[0],y=p[1],D=null,O="",j="",A=[];return Q(T.Children.toArray(t.children),function(t){if(!T.isValidElement(t))return!1;var n=(0,r(d[5]).isTamaguiElement)(t)?t.type.staticConfig.componentName:t.type.displayName;switch(n){case S:return D=T.cloneElement(t,{__native:!0}),!1;case L:return O=U(t),!1;case q:return j=U(t),!1;case B:case J:var o=n===B?"default":"cancel",l=U(t);return A.push({style:o,text:l,onPress:function(){var n,o=t.props;null==o||null===(n=o.onPress)||void 0===n||n.call(o,{native:!0}),y(!1)}}),!1;default:return!0}}),(0,r(d[9]).useIsomorphicLayoutEffect)(function(){!v||!s||(O||j)&&E.Alert.alert(O,j,A)},[s,v]),s?T.cloneElement(D,{__onPress:function(){y(!0)}}):(0,w.jsx)(r(d[7]).Dialog,Object.assign({scope:u},c,{modal:!0}))},{Trigger:V,Portal:N,Overlay:F,Content:W,Action:G,Cancel:K,Title:k,Description:z});X.displayName="AlertDialog"},965,[19,207,258,128,28,796,811,966,860,798,918]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},966,[967]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),s=["scope"],c=["scope","forceMount","children"],l=["scope"],u=["forceMount"],p=["scope"],f=["forceMount"],v=["children","context"],h=["trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","context"],x=["scope"],b=["scope"],O=["scope","displayWhenAdapted"],j=Object.create,C=Object.defineProperty,D=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,A=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,S=function(n,t,o,s){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!P.call(n,c)&&c!==o&&C(n,c,{get:function(){return t[c]},enumerable:!(s=D(t,c))||s.enumerable})};for(var l of y(t))c(l)}return n},I={};!(function(n,t){for(var o in t)C(n,o,{get:t[o],enumerable:!0})})(I,{Dialog:function(){return se},DialogClose:function(){return ee},DialogContent:function(){return K},DialogContext:function(){return F},DialogDescription:function(){return Q},DialogOverlay:function(){return $},DialogOverlayFrame:function(){return L},DialogPortal:function(){return k},DialogPortalFrame:function(){return N},DialogProvider:function(){return w},DialogTitle:function(){return q},DialogTrigger:function(){return _},DialogWarningProvider:function(){return re},useDialogContext:function(){return T}}),m.exports=(n=I,S(C({},"__esModule",{value:!0}),n));var E=r(d[2]),R=(function(n,t,o){return o=null!=n?j(A(n)):{},S(!t&&n&&n.__esModule?o:C(o,"default",{value:n,enumerable:!0}),n)})(r(d[3])),F=(0,r(d[4]).createStyledContext)({},"Dialog__"),T=F.useStyledContext,w=F.Provider,M=(0,r(d[4]).styled)(r(d[4]).View,{name:"DialogTrigger"}),_=M.styleable(function(n,t){var c=n.scope,l=o(n,s),u=R.useContext(r(d[5]).ButtonNestingContext),p=T(c),f=(0,r(d[6]).useComposedRefs)(t,p.triggerRef);return(0,E.jsx)(r(d[5]).ButtonNestingContext.Provider,{value:!0,children:(0,E.jsx)(M,Object.assign({tag:u?"span":"button","aria-haspopup":"dialog","aria-expanded":p.open,"aria-controls":p.contentId,"data-state":ne(p.open)},l,{ref:f,onPress:(0,r(d[7]).composeEventHandlers)(n.onPress,p.onOpenToggle)}))})}),N=(0,r(d[4]).styled)(r(d[5]).YStack,{pointerEvents:"none",tag:"dialog",variants:{unstyled:{false:{alignItems:"center",justifyContent:"center",fullscreen:!0,"$platform-web":{borderWidth:0,backgroundColor:"transparent",color:"inherit",maxInlineSize:"none",margin:0,width:"auto",height:"auto",maxHeight:"100vh",position:"fixed"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),H=r(d[8]).isAndroid||r(d[8]).isIos&&!r(d[9]).USE_NATIVE_PORTAL,W=function(n){var t=n.context,o=n.children,s=(0,r(d[4]).useThemeName)(),c=(0,r(d[10]).useAdaptIsActive)(t.adaptScope),l=(0,r(d[10]).useAdaptContext)(t.adaptScope),u=(0,E.jsx)(r(d[4]).Theme,{name:s,children:o});return H&&(u=(0,E.jsx)(r(d[10]).ProvideAdaptContext,Object.assign({},l,{children:(0,E.jsx)(w,Object.assign({},t,{children:u}))}))),c?(0,E.jsx)(r(d[10]).AdaptPortalContents,{scope:t.adaptScope,children:u}):t.modal?(0,E.jsx)(r(d[9]).PortalItem,{hostName:t.modal?"root":t.adaptScope,children:u}):u},k=R.forwardRef(function(n,s){var l=n.scope,u=n.forceMount,p=n.children,f=o(n,c),v=R.useRef(null),h=(0,r(d[6]).composeRefs)(v,s),x=T(l),b=u||x.open,O=R.useState(!b),j=t(O,2),C=j[0],D=j[1],y=(0,r(d[10]).useAdaptIsActive)(x.adaptScope),A=!!b||!C;b&&C&&D(!1),r(d[8]).isWeb&&(0,r(d[8]).useIsomorphicLayoutEffect)(function(){var n=v.current;n instanceof HTMLDialogElement&&(A?n.show():n.close())},[A]);var P=R.useCallback(function(){D(!0)},[]),S=(0,r(d[4]).getExpandedShorthand)("zIndex",n),I=(0,E.jsx)(r(d[11]).StackZIndexContext,{zIndex:(0,r(d[9]).resolveViewZIndex)(S),children:(0,E.jsx)(r(d[12]).AnimatePresence,{passThrough:y,onExitComplete:P,children:b||y?p:null})}),F=C&&!y?null:(0,E.jsx)(r(d[4]).LayoutMeasurementController,{disable:!b,children:(0,E.jsx)(N,Object.assign({ref:h},r(d[8]).isWeb&&b&&{"aria-modal":!0},{pointerEvents:b?"auto":"none"},f,{className:"_no_backdrop "+(f.className||""),children:I}))});return r(d[8]).isWeb?(0,E.jsx)(r(d[9]).Portal,{zIndex:S,stackZIndex:1e3,passThrough:y,children:(0,E.jsx)(z,{passThrough:y,children:F})}):y?F:(0,E.jsx)(W,{context:x,children:F})}),z=function(n){var t=n.children,o=n.passThrough,s=(0,r(d[4]).useThemeName)();return(0,E.jsx)(r(d[4]).Theme,{passThrough:o,name:s,forceClassName:!0,children:t})},L=(0,r(d[4]).styled)(r(d[13]).Overlay,{name:"DialogOverlay"}),$=L.styleable(function(n,t){var s=n.scope,c=o(n,l),p=T(s),f=c.forceMount,v=void 0===f?p.forceMount:f,h=o(c,u),x=(0,r(d[10]).useAdaptIsActive)(p.adaptScope);return v||p.modal&&!x?(0,E.jsx)(L,Object.assign({"data-state":ne(p.open),pointerEvents:p.open?"auto":"none"},h,{ref:t})):null}),U="DialogContent",V=(0,r(d[4]).styled)(r(d[5]).ThemeableStack,{name:U,variants:{size:{"...size":function(n,t){return{}}},unstyled:{false:{position:"relative",backgrounded:!0,padded:!0,radiused:!0,elevate:!0,zIndex:1e5}}},defaultVariants:{size:"$true",unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),K=V.styleable(function(n,t){var s=n.scope,c=o(n,p),l=T(s),u=c.forceMount,v=(void 0===u&&l.forceMount,o(c,f)),h=(0,E.jsx)(E.Fragment,{children:l.modal?(0,E.jsx)(B,Object.assign({context:l},v,{ref:t})):(0,E.jsx)(Z,Object.assign({context:l},v,{ref:t}))});return!r(d[8]).isWeb||l.disableRemoveScroll?h:(0,E.jsx)(r(d[14]).RemoveScroll,{enabled:l.open,children:(0,E.jsx)("div",{"data-remove-scroll-container":!0,className:"_dsp_contents",children:h})})}),B=R.forwardRef(function(n,t){var s=n.children,c=n.context,l=o(n,v),u=R.useRef(null),p=(0,r(d[6]).useComposedRefs)(t,c.contentRef,u);return(0,E.jsx)(G,Object.assign({},l,{context:c,ref:p,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r(d[7]).composeEventHandlers)(l.onCloseAutoFocus,function(n){var t;n.preventDefault(),null===(t=c.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,r(d[7]).composeEventHandlers)(l.onPointerDownOutside,function(n){var t=n.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&n.preventDefault()}),onFocusOutside:(0,r(d[7]).composeEventHandlers)(l.onFocusOutside,function(n){return n.preventDefault()})},!l.unstyled&&{outlineStyle:"none"},{children:s}))}),Z=R.forwardRef(function(n,t){var o=R.useRef(!1);return(0,E.jsx)(G,Object.assign({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var s;if(null===(s=n.onCloseAutoFocus)||void 0===s||s.call(n,t),!t.defaultPrevented){var c;if(!o.current)null===(c=n.context.triggerRef.current)||void 0===c||c.focus();t.preventDefault()}o.current=!1},onInteractOutside:function(t){var s;null===(s=n.onInteractOutside)||void 0===s||s.call(n,t),t.defaultPrevented||(o.current=!0);var c=t.target,l=n.context.triggerRef.current;l instanceof HTMLElement&&(l.contains(c)&&t.preventDefault())}}))}),G=R.forwardRef(function(n,t){var s=n.trapFocus,c=n.onOpenAutoFocus,l=n.onCloseAutoFocus,u=n.disableOutsidePointerEvents,p=n.onEscapeKeyDown,f=n.onPointerDownOutside,v=n.onFocusOutside,x=n.onInteractOutside,b=n.context,O=o(n,h),j=R.useRef(void 0),C=(0,r(d[6]).useComposedRefs)(t,j);if((0,r(d[10]).useAdaptIsActive)(b.adaptScope))return r(d[8]).isWeb||b.open?(0,E.jsx)(W,{context:b,children:O.children}):null;var D=(0,E.jsx)(V,Object.assign({ref:C,id:b.contentId,"aria-describedby":b.descriptionId,"aria-labelledby":b.titleId,"data-state":ne(b.open)},O));return r(d[8]).isWeb?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(r(d[15]).Dismissable,{disableOutsidePointerEvents:b.open&&u,forceUnmount:!b.open,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:x,onDismiss:function(){var n;return null==b||null===(n=b.onOpenChange)||void 0===n?void 0:n.call(b,!1)},children:(0,E.jsx)(r(d[16]).FocusScope,{loop:!0,enabled:b.open,trapped:s,onMountAutoFocus:c,forceUnmount:!b.open,onUnmountAutoFocus:l,children:D})}),!1]}):D}),Y=(0,r(d[4]).styled)(r(d[17]).H2,{name:"DialogTitle"}),q=Y.styleable(function(n,t){var s=n.scope,c=o(n,x),l=T(s);return(0,E.jsx)(Y,Object.assign({id:l.titleId},c,{ref:t}))}),J=(0,r(d[4]).styled)(r(d[17]).Paragraph,{name:"DialogDescription"}),Q=J.styleable(function(n,t){var s=n.scope,c=o(n,b),l=T(s);return(0,E.jsx)(J,Object.assign({id:l.descriptionId},c,{ref:t}))}),X=(0,r(d[4]).styled)(r(d[4]).View,{name:"DialogClose",tag:"button"}),ee=X.styleable(function(n,t){var s=n.scope,c=n.displayWhenAdapted,l=o(n,O),u=T(s),p=(0,r(d[10]).useAdaptIsActive)(u.adaptScope),f=R.useContext(r(d[5]).ButtonNestingContext);return p&&!c?null:(0,E.jsx)(X,Object.assign({accessibilityLabel:"Dialog Close",tag:f?"span":"button"},l,{ref:t,onPress:(0,r(d[7]).composeEventHandlers)(n.onPress,function(){u.onOpenChange(!1)})}))});function ne(n){return n?"open":"closed"}var te=(0,r(d[18]).createContext)("DialogTitleWarning",{contentName:U,titleName:"DialogTitle",docsSlug:"dialog"}),oe=t(te,2),re=oe[0],se=(oe[1],(0,r(d[7]).withStaticProperties)(R.forwardRef(function(n,o){var s=n.scope,c=void 0===s?"":s,l=n.children,u=n.open,p=n.defaultOpen,f=void 0!==p&&p,v=n.onOpenChange,h=n.modal,x=void 0===h||h,b=n.disableRemoveScroll,O=void 0!==b&&b,j=`Dialog-${c}-${R.useId()}`,C=`${j}-content`,D=`${j}-title`,y=`${j}-description`,A=R.useRef(null),P=R.useRef(null),S=(0,r(d[19]).useControllableState)({prop:u,defaultProp:f,onChange:v}),I=t(S,2),F=I[0],T=I[1],M=R.useCallback(function(){T(function(n){return!n})},[T]),_=`DialogAdapt${c}`,N={dialogScope:c,adaptScope:_,triggerRef:A,contentRef:P,contentId:C,titleId:D,descriptionId:y,open:F,onOpenChange:T,onOpenToggle:M,modal:x,disableRemoveScroll:O};return R.useImperativeHandle(o,function(){return{open:T}},[T]),(0,E.jsx)(r(d[10]).AdaptParent,{scope:_,portal:{forwardProps:n},children:(0,E.jsx)(w,Object.assign({scope:c},N,{children:(0,E.jsx)(ae,{onOpenChange:T,scope:c,children:l})}))})}),{Trigger:_,Portal:k,Overlay:$,Content:K,Title:q,Description:Q,Close:ee,Sheet:r(d[13]).Sheet.Controlled,FocusScope:r(d[16]).FocusScopeController,Adapt:r(d[10]).Adapt})),ae=function(n){var t=T(n.scope),o=(0,r(d[10]).useAdaptIsActive)(t.adaptScope);return(0,E.jsx)(r(d[13]).SheetController,{onOpenChange:function(t){var s;o&&(null===(s=n.onOpenChange)||void 0===s||s.call(n,t))},open:t.open,hidden:!o,children:n.children})}},967,[19,207,258,128,796,923,860,811,798,953,951,959,934,968,977,991,993,944,971,918]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(t,u,c,f){if(u&&"object"==typeof u||"function"==typeof u){var x=function(p){!s.call(t,p)&&p!==c&&o(t,p,{get:function(){return u[p]},enumerable:!(f=n(u,p))||f.enumerable})};for(var l of p(u))x(l)}return t},c=function(t,o,n){return u(t,o,"default"),n&&u(n,o,"default")},f={};m.exports=(t=f,u(o({},"__esModule",{value:!0}),t)),c(f,r(d[0]),m.exports),c(f,r(d[1]),m.exports),c(f,r(d[2]),m.exports),c(f,r(d[3]),m.exports),c(f,r(d[4]),m.exports),c(f,r(d[5]),m.exports),c(f,r(d[6]),m.exports),c(f,r(d[7]),m.exports),c(f,r(d[8]),m.exports),c(f,r(d[9]),m.exports),c(f,r(d[10]),m.exports)},968,[969,989,975,990,979,982,976,986,985,974,981]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,l,f){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!s.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(f=o(c,u))||f.enumerable})};for(var y of u(c))p(y)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{Frame:function(){return y},Handle:function(){return f},Overlay:function(){return p},Sheet:function(){return v},SheetHandleFrame:function(){return S},SheetOverlayFrame:function(){return E},createSheetScope:function(){return r(d[0]).createSheetScope}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(l,r(d[1]),m.exports);var f=(0,r(d[2]).styled)(r(d[3]).XStack,{name:r(d[4]).SHEET_HANDLE_NAME,variants:{open:{true:{opacity:1,pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{height:10,borderRadius:100,backgroundColor:"$background",zIndex:10,marginHorizontal:"35%",marginBottom:"$2",opacity:.5,hoverStyle:{opacity:.7}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[2]).styled)(r(d[3]).ThemeableStack,{name:r(d[4]).SHEET_OVERLAY_NAME,variants:{open:{true:{pointerEvents:"auto"},false:{pointerEvents:"none"}},unstyled:{false:{fullscreen:!0,position:"absolute",backgrounded:!0,zIndex:99999,pointerEvents:"auto"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[2]).styled)(r(d[3]).YStack,{name:r(d[4]).SHEET_NAME,variants:{unstyled:{false:{flex:1,backgroundColor:"$background",borderTopLeftRadius:"$true",borderTopRightRadius:"$true",width:"100%",maxHeight:"100%",overflow:"hidden"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[5]).createSheet)({Frame:y,Handle:f,Overlay:p}),E=p,S=f},969,[970,974,796,923,973,975]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!f.call(t,u)&&u!==p&&o(t,u,{get:function(){return n[u]},enumerable:!(b=c(n,u))||b.enumerable})};for(var S of u(n))s(S)}return t},b={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(b,{SheetProvider:function(){return y},createSheetContext:function(){return S},createSheetScope:function(){return l},useSheetContext:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=n((0,r(d[1]).createContextScope)(r(d[2]).SHEET_NAME),2),S=s[0],l=s[1],v=n(S(r(d[2]).SHEET_NAME,{}),2),y=v[0],O=v[1]},970,[19,971,973]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},971,[972]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),u=r(d[2]),c=["children"],l=["scope","children"],f=Object.create,s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,b=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,O=function(n,t,o,u){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!h.call(n,c)&&c!==o&&s(n,c,{get:function(){return t[c]},enumerable:!(u=v(t,c))||u.enumerable})};for(var l of p(t))c(l)}return n},j={};!(function(n,t){for(var o in t)s(n,o,{get:t[o],enumerable:!0})})(j,{createContext:function(){return x},createContextScope:function(){return y}}),m.exports=(n=j,O(s({},"__esModule",{value:!0}),n));var w=r(d[3]),_=(function(n,t,o){return o=null!=n?f(b(n)):{},O(!t&&n&&n.__esModule?o:s(o,"default",{value:n,enumerable:!0}),n)})(r(d[4]));function x(n,t){var o=_.createContext(t);return[function(n){var t=n.children,l=u(n,c),f=_.useMemo(function(){return l},Object.values(l));return(0,w.jsx)(o.Provider,{value:f,children:t})},function(u){var c=_.useContext(o);if(c)return c;if(void 0!==t)return t;throw new Error(`\`${u}\` must be used within \`${n}\``)}]}function y(n){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],f=[];var s=function(){var o=f.map(function(n){return _.createContext(n)});return function(u){var c=(null==u?void 0:u[n])||o;return _.useMemo(function(){return t({},`__scope${n}`,Object.assign({},u,t({},n,c)))},[u,c])}};return s.scopeName=n,[function(t,c){var s=_.createContext(c),v=f.length;return f=[].concat(o(f),[c]),[function(t){var o,c=t.scope,f=t.children,p=u(t,l),b=(null==c||null===(o=c[n])||void 0===o?void 0:o[v])||s,h=_.useMemo(function(){return p},Object.values(p));return(0,w.jsx)(b.Provider,{value:h,children:f})},function(o,u,l){var f,p=(null==u||null===(f=u[n])||void 0===f?void 0:f[v])||s,b=_.useContext(p);if(b)return b;if(void 0!==c)return c;var h=`\`${o}\` must be used within \`${t}\``;if(null!=l&&l.fallback)return!1!==(null==l?void 0:l.warn)&&console.warn(h),l.fallback;throw new Error(h)}]},N.apply(void 0,[s].concat(o(c)))]}function N(){for(var n=arguments.length,o=new Array(n),u=0;uh?o-h:h-o;v10})();return i&&H.setParentDragging(!0),i},onPanResponderGrant:o,onPanResponderMove:function(t,i){var o=i.dy+n,u=(0,r(d[11]).resisted)(o,e);u<=e?H.setParentDragging(!1):H.setParentDragging(!0),ve.setValue(u,{type:"direct"})},onPanResponderEnd:i,onPanResponderTerminate:i,onPanResponderRelease:i})}function s(e){Ae(e),r(d[4]).isClient&&(S||(S=document.createElement("style"),typeof document.head<"u"&&document.head.appendChild(S)),S.innerText=e?":root * { user-select: none !important; -webkit-user-select: none !important; }":"")}},[Ne,re,Me,D,se,W]),ze=p.default.useCallback(function(e){var n,t=Math.min(null===(n=e.nativeEvent)||void 0===n?void 0:n.layout.height,b.Dimensions.get(P).height);t&&L(t)},[]),De=p.default.useCallback(function(e){var n,t=Math.min(null===(n=e.nativeEvent)||void 0===n?void 0:n.layout.height,b.Dimensions.get(P).height);t&&U(t)},[]),Le=ce(ve,((Ie=function(e){return{transform:[{translateY:0===D?y:e}]}}).__closure={frameSize:D,hiddenSize:y},Ie.__workletHash=4615248473798,Ie.__initData=h,Ie)),Te=p.default.useRef(null);p.default.useEffect(function(){if(!r(d[4]).isWeb&&M){var e=b.Keyboard.addListener("ios"===r(d[4]).currentPlatform?"keyboardWillShow":"keyboardDidShow",function(e){null===Te.current&&(Te.current=G||-1===F?K:se[F],ve.setValue(Math.max(Te.current-e.endCoordinates.height,0),{type:"timing",duration:250}))}),n=b.Keyboard.addListener("keyboardDidHide",function(){null!==Te.current&&(ve.setValue(Te.current,{type:"timing",duration:250}),Te.current=null)});return function(){n.remove(),e.remove()}}},[M,se,F,G]);var Ve=p.default.useState(q?1:0),Ye=n(Ve,2),Fe=Ye[0],We=Ye[1];q&&0===Fe&&We(1),p.default.useEffect(function(){if(!q){var e=setTimeout(function(){We(0)},400);return function(){clearTimeout(e)}}},[q]);var He=Y?void 0:"percent"===V?`${$}${r(d[4]).isWeb?"dvh":"%"}`:$,Ke=p.default.useCallback(function(e){xe.current=e},[]),Ue=(0,v.jsx)(r(d[9]).LayoutMeasurementController,{disable:!q,children:(0,v.jsx)(r(d[5]).ParentSheetContext.Provider,{value:me,children:(0,v.jsxs)(r(d[12]).SheetProvider,Object.assign({},z,{setHasScrollView:Ke,children:[(0,v.jsx)(r(d[13]).AnimatePresence,{custom:{open:q},children:ie||!q?null:A}),"percent"!==V&&(0,v.jsx)(b.View,{style:{opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},onLayout:De}),(0,v.jsx)(fe,Object.assign({ref:Z},null==ke?void 0:ke.panHandlers,{onLayout:ze,animation:Ee||Se?null:o,disableClassName:!0,style:[Object.assign({position:"absolute",zIndex:f,width:"100%",height:He,minHeight:He,opacity:ie?0:Fe},(ie||!q)&&{pointerEvents:"none"}),Le],children:e.children}))]}))})});if(!r(d[10]).USE_NATIVE_PORTAL){var $e=(0,r(d[14]).useAdaptContext)();Ue=(0,v.jsx)(r(d[14]).ProvideAdaptContext,Object.assign({},$e,{children:Ue}))}var qe=!O||!!Fe;if(l){var Be=(0,v.jsx)(r(d[10]).Portal,Object.assign({stackZIndex:f},I,{children:qe&&(0,v.jsx)(R,{children:(0,v.jsx)(r(d[9]).Theme,{contain:!0,forceClassName:!0,name:Re,children:Ue})})}));return r(d[4]).isWeb?Be:(0,v.jsx)(r(d[5]).SheetInsideSheetContext.Provider,{value:ue,children:Be})}return Ue});function C(e,n,t,i){if(!t||!i)return 0;if("mixed"===e){if("number"==typeof n)return t-Math.min(t,Math.max(0,n));if("fit"===n)return t-Math.min(t,i);if(n.endsWith("%")){var o=Math.min(100,Math.max(0,Number(n.slice(0,-1))))/100;return Number.isNaN(o)?(console.warn("Invalid snapPoint percentage string"),0):Math.round(t-o*t)}return console.warn("Invalid snapPoint unknown value"),0}if("fit"===e)return 0===n?t:t-Math.min(t,i);if("constant"===e&&"number"==typeof n)return t-Math.min(t,Math.max(0,n));var u=Math.min(100,Math.max(0,Number(n)))/100;return Number.isNaN(u)?(console.warn("Invalid snapPoint percentage"),0):Math.round(t-u*t)}},980,[19,258,128,28,798,981,982,983,860,796,953,984,970,934,951]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var O of c(n))p(O)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{ParentSheetContext:function(){return s},SheetInsideSheetContext:function(){return y}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.createContext({zIndex:1e5}),y=O.default.createContext(null)},981,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,c=function(n,t,c,f){if(t&&"object"==typeof t||"function"==typeof t){var s=function(u){!p.call(n,u)&&u!==c&&o(n,u,{get:function(){return t[u]},enumerable:!(f=l(t,u))||f.enumerable})};for(var v of u(t))s(v)}return n},f={};!(function(n,t){for(var l in t)o(n,l,{get:t[l],enumerable:!0})})(f,{useSheetOpenState:function(){return s}}),m.exports=(n=f,c(o({},"__esModule",{value:!0}),n));var s=function(n){var o,l,u,p=(0,r(d[1]).useSheetController)(),c=p.isHidden,f=p.controller,s=n.preferAdaptParentOpenState?null!==(o=null==f?void 0:f.open)&&void 0!==o?o:n.open:null!==(l=n.open)&&void 0!==l?l:null==f?void 0:f.open,v=(0,r(d[2]).useControllableState)({prop:s,defaultProp:null!==(u=n.defaultOpen)&&void 0!==u&&u,onChange:function(t){var o,l;null==f||null===(o=f.onOpenChange)||void 0===o||o.call(f,t),null===(l=n.onOpenChange)||void 0===l||l.call(n,t)},strategy:"most-recent-wins"}),O=t(v,2);return{open:O[0],setOpen:O[1],isHidden:c,controller:f}}},982,[19,979,918]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,O=function(n,t,o,s){if(t&&"object"==typeof t||"function"==typeof t){var f=function(c){!p.call(n,c)&&c!==o&&l(n,c,{get:function(){return t[c]},enumerable:!(s=u(t,c))||s.enumerable})};for(var O of c(t))f(O)}return n},v={};!(function(n,t){for(var o in t)l(n,o,{get:t[o],enumerable:!0})})(v,{useSheetProviderProps:function(){return S}}),m.exports=(n=v,O(l({},"__esModule",{value:!0}),n));var P=(function(n,t,o){return o=null!=n?s(f(n)):{},O(!t&&n&&n.__esModule?o:l(o,"default",{value:n,enumerable:!0}),n)})(r(d[2]));function S(n,s){var l,u,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=P.default.useRef(null),p=P.default.useRef(null),O=P.default.useState(0),v=o(O,2),S=v[0],b=v[1],y=P.default.useState(0),h=o(y,2),C=h[0],w=h[1],B=null!==(l=n.snapPointsMode)&&void 0!==l?l:"percent",_=null!==(u=n.snapPoints)&&void 0!==u?u:"percent"===B?[80]:"constant"===B?[256]:["fit"],j="fit"===_[0],D=P.default.useMemo(function(){return n.dismissOnSnapToBottom?[].concat(t(_),[0]):_},[JSON.stringify(_),n.dismissOnSnapToBottom]),M=(0,r(d[3]).useControllableState)({prop:n.position,defaultProp:n.defaultPosition||(s.open?0:-1),onChange:n.onPositionChange,strategy:"most-recent-wins"}),T=o(M,2),E=T[0],R=T[1],z=!1===s.open?-1:E,x=s.open,F=P.default.useCallback(function(t){n.dismissOnSnapToBottom&&t===D.length-1?s.setOpen(!1):R(t)},[n.dismissOnSnapToBottom,D.length,R,s.setOpen]);x&&n.dismissOnSnapToBottom&&z===D.length-1&&R(0);var Y=x&&z<0;if(P.default.useEffect(function(){Y&&F(0)},[F,Y]),!(0,r(d[4]).useConfiguration)().animationDriver)throw new Error("\u274c 008");var k,N,H,I=(0,r(d[5]).useConstant)(function(){var n=new Set,t={hasScrollableContent:!1,enabled:!1,y:0,paneY:0,paneMinY:0,scrollStartY:-1,drag:function(){},release:function(){},scrollLock:!1,isParentDragging:!1,onParentDragging:function(t){return n.add(t),function(){n.delete(t)}},setParentDragging:function(o){o!==t.isParentDragging&&(t.isParentDragging=o,n.forEach(function(n){return n(o)}))}};return t}),J=null!==(k=n.forceRemoveScrollEnabled)&&void 0!==k?k:x&&n.modal,L=D[0];return{screenSize:"percent"===B?S/(("number"==typeof L?L:100)/100):C,maxSnapPoint:L,removeScrollEnabled:J,scrollBridge:I,modal:!!n.modal,open:s.open,setOpen:s.setOpen,hidden:!!s.isHidden,contentRef:p,handleRef:f,frameSize:S,setFrameSize:b,dismissOnOverlayPress:null===(N=n.dismissOnOverlayPress)||void 0===N||N,dismissOnSnapToBottom:null!==(H=n.dismissOnSnapToBottom)&&void 0!==H&&H,onOverlayComponent:c.onOverlayComponent,scope:n.__scopeSheet,hasFit:j,position:z,snapPoints:D,snapPointsMode:B,setMaxContentSize:w,setPosition:F,setPositionImmediate:R,onlyShowFrame:!1}}},983,[32,19,128,918,796,939]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};function s(t,n){if(t>=n)return t;var o=n-t;return n-2*Math.sqrt(o)}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{resisted:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},984,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(n,s,l,f){if(s&&"object"==typeof s||"function"==typeof s){var h=function(u){!c.call(n,u)&&u!==l&&t(n,u,{get:function(){return s[u]},enumerable:!(f=o(s,u))||f.enumerable})};for(var v of u(s))h(v)}return n},l={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{getNativeSheet:function(){return j},setupNativeSheet:function(){return O}}),m.exports=(n=l,s(t({},"__esModule",{value:!0}),n));var f=r(d[0]),h=r(d[1]),v=r(d[2]),p={ios:null};function j(n){return p[n]}function O(n,t){var o=t.ModalSheetView,u=t.ModalSheetViewMainContent;"ios"===n&&(p[n]=function(n){var t=(0,r(d[3]).useSheetOpenState)(n),c=(0,r(d[4]).useSheetProviderProps)(n,t),s=t.open,l=t.setOpen,p=(0,h.useRef)(void 0);return(0,h.useEffect)(function(){var n,t;s?null===(n=p.current)||void 0===n||n.presentModal():null===(t=p.current)||void 0===t||t.dismissModal()},[s]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(r(d[5]).SheetProvider,Object.assign({setHasScrollView:S},c,{onlyShowFrame:!0,children:[(0,f.jsx)(o,{ref:p,onModalDidDismiss:function(){return t=!1,null===(o=n.onOpenChange)||void 0===o||o.call(n,s),void l(t);var t,o},children:(0,f.jsx)(u,{children:(0,f.jsx)(v.View,{style:{flex:1},children:n.children})})}),(0,f.jsx)(r(d[6]).YStack,{position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,children:n.children})]}))})})}var S=function(){}},985,[258,128,28,982,983,970,923]); +__d(function(g,r,i,_a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeSheet","children","onScroll","scrollEnabled"],l=Object.create,c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,v=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var l=function(l){!f.call(e,l)&&l!==n&&c(e,l,{get:function(){return t[l]},enumerable:!(o=a(t,l))||o.enumerable})};for(var s of u(t))l(s)}return e},S={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(S,{SheetScrollView:function(){return y}}),m.exports=(e=S,v(c({},"__esModule",{value:!0}),e));var p=r(d[2]),h=(function(e,t,n){return n=null!=e?l(s(e)):{},v(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),y=h.default.forwardRef(function(e,l){var c=e.__scopeSheet,a=e.children,u=e.onScroll,s=e.scrollEnabled,f=n(e,o),v=(0,r(d[4]).useSheetContext)("SheetScrollView",c),S=v.scrollBridge,y=v.setHasScrollView,b=(0,r(d[5]).useControllableState)({prop:s,defaultProp:!0}),E=t(b,2),P=E[0],Y=E[1],O=h.default.useRef(null),R=function(e){var t,n;null===(n=O.current)||void 0===n||null===(t=n.setNativeProps)||void 0===t||t.call(n,{scrollEnabled:e}),Y(e)},_=h.default.useRef({lastPageY:0,dragAt:0,dys:[],isScrolling:!1,isDraggingScrollArea:!1});(0,h.useEffect)(function(){return y(!0),function(){y(!1)}},[]);var j=P;(0,h.useEffect)(function(){var e;if(r(d[6]).isClient&&O.current){var t=new AbortController,n=null===(e=O.current)||void 0===e?void 0:e.getScrollableNode();if(n){n.addEventListener("touchmove",function(e){S.isParentDragging&&n.scrollTo({top:S.y,behavior:"instant"})},{signal:t.signal,passive:!1});var o=S.onParentDragging(function(e){});return function(){o(),t.abort()}}}},[O]);var w=(0,h.useState)(!0),A=t(w,2),D=A[0],M=A[1],x=(0,h.useRef)(0),C=(0,h.useRef)(0),L=function(){x.current&&C.current&&M(C.current>x.current)};return(0,h.useEffect)(function(){S.hasScrollableContent=D},[D]),(0,p.jsxs)(r(d[7]).ScrollView,Object.assign({onLayout:function(e){x.current=Math.ceil(e.nativeEvent.layout.height),L()},ref:(0,r(d[8]).composeRefs)(O,l),flex:1,scrollEventThrottle:8,onResponderRelease:function(){if(_.current.isDraggingScrollArea){_.current.isDraggingScrollArea=!1,S.scrollStartY=-1,S.scrollLock=!1,_.current.isScrolling=!1,R(!0);var e=0;if(_.current.dys.length){var t=_.current.dys.slice(-10);e=.04*((t.length?t.reduce(function(e,t){return e+t},0):0)/t.length)}_.current.dys=[],S.release({dragAt:_.current.dragAt,vy:e})}},className:"_ovs-contain",scrollEnabled:j,onScroll:function(e){var t=e.nativeEvent.contentOffset.y;S.y=t,r(d[6]).isWeb&&(S.scrollLock=t>0),t>0&&(S.scrollStartY=-1),null==u||u(e)},onStartShouldSetResponder:function(){return S.scrollStartY=-1,_.current.isDraggingScrollArea=!0,j},onMoveShouldSetResponder:function(e){return j},contentContainerStyle:{minHeight:"100%"},onResponderMove:function(e){if(r(d[6]).isWeb){var t=e.nativeEvent.pageY;_.current.isScrolling||-1===S.scrollStartY&&(S.scrollStartY=t,_.current.lastPageY=t);var n=t-S.scrollStartY,o=t-_.current.lastPageY;_.current.lastPageY=t;var l=o<0,c=S.paneY<=S.paneMinY;if(D&&(0===o||l)&&c&&!_.current.isScrolling)return _.current.isScrolling=!0,S.scrollLock=!0,void R(!0);if(!(!_.current.isScrolling&&o>0&&0===S.y)&&S.y>=0)return;R(!1),S.drag(n),_.current.dragAt=n,_.current.dys.push(o),_.current.dys.length>100&&(_.current.dys=_.current.dys.slice(-10))}}},f,{children:[(0,p.jsx)(r(d[6]).View,{position:"absolute",inset:0,pointerEvents:"none",zIndex:-1,onLayout:function(e){C.current=Math.floor(e.nativeEvent.layout.height),L()}}),a]}))})},986,[19,207,258,128,970,918,796,987,860]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},987,[988]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=function(t,u,f,s){if(u&&"object"==typeof u||"function"==typeof u){var p=function(c){!l.call(t,c)&&c!==f&&n(t,c,{get:function(){return u[c]},enumerable:!(s=o(u,c))||s.enumerable})};for(var y of c(u))p(y)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{ScrollView:function(){return p}}),m.exports=(t=f,u(n({},"__esModule",{value:!0}),t));var s=r(d[0]),p=(0,r(d[1]).styled)(s.ScrollView,{name:"ScrollView",scrollEnabled:!0,variants:{fullscreen:{true:r(d[2]).fullscreenStyle}}},{accept:{contentContainerStyle:"style"}})},988,[28,801,923]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useSheet:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(){return(0,r(d[0]).useSheetContext)("",void 0)}},989,[970]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(n,t,l,p){if(t&&"object"==typeof t||"function"==typeof t){var s=function(c){!f.call(n,c)&&c!==l&&o(n,c,{get:function(){return t[c]},enumerable:!(p=u(t,c))||p.enumerable})};for(var b of c(t))s(b)}return n},s={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(s,{SheetController:function(){return v}}),m.exports=(n=s,p(o({},"__esModule",{value:!0}),n));var b=r(d[0]),O=(function(n,u,c){return c=null!=n?t(l(n)):{},p(!u&&n&&n.__esModule?c:o(c,"default",{value:n,enumerable:!0}),n)})(r(d[1])),v=function(n){var t=n.children,o=n.onOpenChange,u=n.open,c=n.hidden,l=n.disableDrag,f=(0,r(d[2]).useEvent)(o),p=(0,O.useId)(),s=O.default.useMemo(function(){return{id:p,open:u,hidden:c,disableDrag:l,onOpenChange:f}},[p,f,u,c,l]);return(0,b.jsx)(r(d[3]).SheetControllerContext.Provider,{value:s,children:t})}},990,[258,128,796,979]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},991,[992]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(t,n,c,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(f){!l.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{Dismissable:function(){return O},DismissableBranch:function(){return y}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t));var p=(function(t,u,f){return f=null!=t?n(c(t)):{},s(!u&&t&&t.__esModule?f:o(f,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=p.default.forwardRef(function(t,n){return t.children}),y=p.default.forwardRef(function(t,n){return t.children})},992,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},993,[994,995]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var O of c(n))b(O)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{FocusScope:function(){return s}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.forwardRef(function(t,n){return t.children})},994,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,f=function(o,t,n,s){if(t&&"object"==typeof t||"function"==typeof t){var f=function(l){!p.call(o,l)&&l!==n&&u(o,l,{get:function(){return t[l]},enumerable:!(s=c(t,l))||s.enumerable})};for(var b of l(t))f(b)}return o},b={};!(function(o,t){for(var n in t)u(o,n,{get:t[n],enumerable:!0})})(b,{FocusScopeController:function(){return M},FocusScopeControllerProvider:function(){return C},createFocusScopeControllerScope:function(){return S},useFocusScopeControllerContext:function(){return P}}),m.exports=(o=b,f(u({},"__esModule",{value:!0}),o));var O=r(d[1]),v=(function(o,t,c){return c=null!=o?n(s(o)):{},f(!t&&o&&o.__esModule?c:u(c,"default",{value:o,enumerable:!0}),o)})(r(d[2])),F="FocusScopeController",j=t((0,r(d[3]).createContextScope)(F),2),y=j[0],S=j[1],_=t(y(F),2),C=_[0],P=_[1];var M=function(o){var t=o.__scopeFocusScope,n=o.children,u=o.enabled,c=o.loop,l=o.trapped,s=o.onMountAutoFocus,p=o.onUnmountAutoFocus,f=o.forceUnmount,b=o.focusOnIdle,F=(0,r(d[4]).useEvent)(s),j=(0,r(d[4]).useEvent)(p),y=v.useMemo(function(){return{enabled:u,loop:c,trapped:l,onMountAutoFocus:F,onUnmountAutoFocus:j,forceUnmount:f,focusOnIdle:b}},[u,c,l,F,j,f,b]);return(0,O.jsx)(C,Object.assign({scope:t},y,{children:n}))}},995,[19,258,128,971,900]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},996,[997]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["__scopeAvatar","src","onLoadingStatusChange"],c=["__scopeAvatar","delayMs"],s=["__scopeAvatar","size"],f=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,b=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,_=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!S.call(t,c)&&c!==o&&l(t,c,{get:function(){return n[c]},enumerable:!(u=v(n,c))||u.enumerable})};for(var s of p(n))c(s)}return t},y={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(y,{Avatar:function(){return T},AvatarFallback:function(){return M},AvatarFallbackFrame:function(){return E},AvatarFrame:function(){return R},AvatarImage:function(){return P},createAvatarScope:function(){return k}}),m.exports=(t=y,_(l({},"__esModule",{value:!0}),t));var j=r(d[2]),A=(function(t,n,o){return o=null!=t?f(b(t)):{},_(!n&&t&&t.__esModule?o:l(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="Avatar",O=(0,r(d[4]).createContextScope)(h),w=o(O,2),x=w[0],k=w[1],z=x(h),I=o(z,2),N=I[0],L=I[1],F="AvatarImage",P=A.forwardRef(function(t,c){var s,f=t.__scopeAvatar,l=t.src,v=t.onLoadingStatusChange,p=void 0===v?function(){}:v,b=n(t,u),S=L(F,f),_=A.useState("idle"),y=o(_,2),h=y[0],O=y[1],w=(0,r(d[5]).getVariableValue)(null===(s=(0,r(d[6]).getShapeSize)(S.size,{tokens:(0,r(d[5]).getTokens)()}))||void 0===s?void 0:s.width);return A.useEffect(function(){O("idle")},[JSON.stringify(l)]),A.useEffect(function(){p(h),S.onImageLoadingStatusChange(h)},[h]),(0,j.jsx)(r(d[7]).YStack,{fullscreen:!0,zIndex:1,children:(0,j.jsx)(r(d[8]).Image,Object.assign({fullscreen:!0},"number"==typeof w&&!Number.isNaN(w)&&{width:w,height:w},b,{ref:c,src:l,onError:function(){O("error")},onLoad:function(){O("loaded")}}))})});P.displayName=F;var C="AvatarFallback",E=(0,r(d[5]).styled)(r(d[7]).YStack,{name:C,position:"absolute",fullscreen:!0,zIndex:0}),M=E.extractable(A.forwardRef(function(t,u){var s=t.__scopeAvatar,f=t.delayMs,l=n(t,c),v=L(C,s),p=A.useState(void 0===f),b=o(p,2),S=b[0],_=b[1];return A.useEffect(function(){if(void 0!==f){var t=setTimeout(function(){return _(!0)},f);return function(){return clearTimeout(t)}}},[f]),S&&"loaded"!==v.imageLoadingStatus?(0,j.jsx)(E,Object.assign({},l,{ref:u})):null}));M.displayName=C;var R=(0,r(d[5]).styled)(r(d[6]).Square,{name:h,position:"relative",overflow:"hidden"}),T=(0,r(d[9]).withStaticProperties)(A.forwardRef(function(t,u){var c=t.__scopeAvatar,f=t.size,l=void 0===f?"$true":f,v=n(t,s),p=A.useState("idle"),b=o(p,2),S=b[0],_=b[1];return(0,j.jsx)(N,{size:l,scope:c,imageLoadingStatus:S,onImageLoadingStatusChange:_,children:(0,j.jsx)(R,Object.assign({size:l},v,{ref:u}))})}),{Image:P,Fallback:M});T.displayName=h},997,[207,19,258,128,971,796,998,923,1002,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},998,[999,1001,1000]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))b(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Square:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Square",alignItems:"center",justifyContent:"center",variants:{size:{"...size":r(d[2]).getShapeSize,":number":r(d[2]).getShapeSize}}},{memo:!0})},999,[801,923,1000]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var h of u(f))s(h)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{getShapeSize:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){var o,u,c=n.tokens,f=null!==(o=c.size[t])&&void 0!==o?o:t,l=null!==(u=c.size[t])&&void 0!==u?u:t;return{width:f,height:l,minWidth:f,maxWidth:f,maxHeight:l,minHeight:l}}},1000,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Circle:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).styled)(r(d[1]).Square,{name:"Circle",circular:!0})},1001,[801,999]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1002,[1003]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var t,o=r(d[1]),n=r(d[2]),u=["src","source","objectFit"],c=Object.create,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,y=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){!b.call(t,c)&&c!==n&&f(t,c,{get:function(){return o[c]},enumerable:!(u=h(o,c))||u.enumerable})};for(var s of l(o))c(s)}return t},p={};!(function(t,o){for(var n in o)f(t,n,{get:o[n],enumerable:!0})})(p,{Image:function(){return O}}),m.exports=(t=p,y(f({},"__esModule",{value:!0}),t));var j=r(d[3]),v=((function(t,o,n){n=null!=t?c(s(t)):{},y(!o&&t&&t.__esModule?n:f(n,"default",{value:t,enumerable:!0}),t)})(r(d[4])),r(d[5])),O=(0,r(d[6]).styled)(v.Image,{name:"Image"}).styleable(function(t,c){var f=(0,r(d[6]).usePropsAndStyle)(t),h=n(f,2),l=h[0],s=h[1],b=l.src,y=l.source,p=l.objectFit,O=o(l,u),I="string"==typeof b?Object.assign({uri:b},r(d[7]).isWeb&&{width:l.width||(null==s?void 0:s.width),height:l.height||(null==s?void 0:s.height)}):null!=y?y:b;if(I&&"object"==typeof I){var w,P,_,z;if(!Array.isArray(I)&&"number"==typeof I.uri&&(I=I.uri,y&&"object"==typeof y&&!Array.isArray(y)))null!==(_=(w=s).width)&&void 0!==_||(w.width=y.width),null!==(z=(P=s).height)&&void 0!==z||(P.height=y.height);I.default&&(I=I.default)}return(0,j.jsx)(v.Image,Object.assign({resizeMode:p,ref:c,source:I,style:s},O))});O.getSize=v.Image.getSize,O.getSizeWithHeaders=v.Image.getSizeWithHeaders,O.prefetch=v.Image.prefetch,O.prefetchWithMetadata=v.Image.prefetchWithMetadata,O.abortPrefetch=v.Image.abortPrefetch,O.queryCache=v.Image.queryCache},1003,[367,207,19,258,128,28,796,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1004,[1005]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=r(d[1]),l=r(d[2]),s=["textProps"],c=["icon","iconAfter","space","spaceFlex","scaleIcon","scaleSpace","separator","noTextWrap","fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","tag","ellipse","maxFontSizeMultiplier"],u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,v=function(t,o,n,l){if(o&&"object"==typeof o||"function"==typeof o){var s=function(s){!b.call(t,s)&&s!==n&&u(t,s,{get:function(){return o[s]},enumerable:!(l=p(o,s))||l.enumerable})};for(var c of f(o))s(c)}return t},S={};!(function(t,o){for(var n in o)u(t,n,{get:o[n],enumerable:!0})})(S,{Button:function(){return A},ButtonContext:function(){return h},ButtonFrame:function(){return z},ButtonIcon:function(){return T},ButtonText:function(){return C},useButton:function(){return B}}),m.exports=(t=S,v(u({},"__esModule",{value:!0}),t));var x=r(d[3]),y=r(d[4]),h=(0,r(d[5]).createStyledContext)({color:void 0,ellipse:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,size:void 0,textAlign:void 0,variant:void 0}),z=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:"Button",tag:"button",context:h,role:"button",focusable:!0,variants:{unstyled:{false:{size:"$true",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",hoverTheme:!0,pressTheme:!0,backgrounded:!0,borderWidth:1,borderColor:"transparent",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},variant:{outlined:{backgroundColor:"transparent",borderWidth:2,borderColor:"$borderColor",hoverStyle:{backgroundColor:"transparent",borderColor:"$borderColorHover"},pressStyle:{backgroundColor:"transparent",borderColor:"$borderColorPress"},focusVisibleStyle:{backgroundColor:"transparent",borderColor:"$borderColorFocus"}}},size:{"...size":r(d[7]).getButtonSized,":number":r(d[7]).getButtonSized},disabled:{true:{pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),C=(0,r(d[5]).styled)(r(d[8]).SizableText,{name:"Button",context:h,variants:{unstyled:{false:{userSelect:"none",cursor:"pointer",flexGrow:0,flexShrink:1,ellipse:!0,color:"$color"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),T=function(t){var o=t.children,n=t.scaleIcon,l=void 0===n?1:n,s=(0,y.useContext)(h),c=s.size,u=s.color,p=("number"==typeof c?.5*c:(0,r(d[9]).getFontSize)(c))*l;return(0,r(d[10]).useGetThemedIcon)({size:p,color:u})(o)},F=z.styleable(function(t,o){var n=B(t).props;return(0,x.jsx)(z,Object.assign({"data-disable-theme":!0},n,{ref:o}))}),A=(0,r(d[11]).withStaticProperties)(F,{Text:C,Icon:T});function B(t){var u=t.textProps,p=l(t,s),f=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{Text:A.Text}).Text,b=void 0===f?A.Text:f,v=(0,y.useContext)(r(d[6]).ButtonNestingContext),S=(0,r(d[5]).useProps)(p,{noNormalize:!0,noExpand:!0}),h=S.icon,z=S.iconAfter,T=S.space,F=S.spaceFlex,B=S.scaleIcon,I=void 0===B?1:B,P=S.scaleSpace,$=void 0===P?.66:P,j=S.separator,k=S.noTextWrap,W=S.fontFamily,O=S.fontSize,w=S.fontWeight,E=S.fontStyle,M=S.letterSpacing,D=S.tag,V=S.ellipse,_=S.maxFontSizeMultiplier,G=l(S,c),N=S.size||(S.unstyled?void 0:"$true"),H=S.color,L=("number"==typeof N?.5*N:(0,r(d[9]).getFontSize)(N,{font:"$"===(null==W?void 0:W[0])?W:void 0}))*I,U=(0,r(d[10]).useGetThemedIcon)({size:L,color:H}),K=[h,z].map(U),R=n(K,2),q=R[0],J=R[1],Q=null!=T?T:(0,r(d[5]).getVariableValue)(L)*$,X=k?[p.children]:(0,r(d[8]).wrapChildrenInText)(b,{children:p.children,color:H,fontFamily:W,fontSize:O,textProps:u,fontWeight:w,fontStyle:E,letterSpacing:M,ellipse:V,maxFontSizeMultiplier:_},b===C&&!0!==S.unstyled?{unstyled:"1"===process.env.TAMAGUI_HEADLESS,size:N}:void 0),Y=(0,r(d[5]).spacedChildren)({space:!1===Q?0:1==Q?"$true":Q,spaceFlex:F,ensureKeys:!0,separator:j,direction:"column"===S.flexDirection||"column-reverse"===S.flexDirection?"vertical":"horizontal",children:[q].concat(o(X),[J])});return{spaceSize:Q,isNested:v,props:Object.assign({size:N},p.disabled&&{focusable:void 0,focusVisibleStyle:{borderColor:"$background"}},{tag:null!=D?D:v?"span":"link"===S.accessibilityRole||"link"===S.role?"a":"button"},G,{children:(0,x.jsx)(r(d[6]).ButtonNestingContext.Provider,{value:!0,children:Y}),disableClassName:!0})}}},1005,[32,19,207,258,128,801,923,928,944,1006,1008,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1006,[1007]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(n,l,c,s){if(l&&"object"==typeof l||"function"==typeof l){var v=function(u){!f.call(n,u)&&u!==c&&t(n,u,{get:function(){return l[u]},enumerable:!(s=o(l,u))||s.enumerable})};for(var b of u(l))v(b)}return n},c={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(c,{getFontSize:function(){return s},getFontSizeToken:function(){return b},getFontSizeVariable:function(){return v}}),m.exports=(n=c,l(t({},"__esModule",{value:!0}),n));var s=function(n,t){var o=v(n,t);return(0,r(d[0]).isVariable)(o)?+o.val:o?+o:16},v=function(n,t){var o=b(n,t);if(!o)return n;var u=(0,r(d[0]).getConfig)(),f=u.fontsParsed[(null==t?void 0:t.font)||u.defaultFontToken];return null==f?void 0:f.size[o]},b=function(n,t){if("number"==typeof n)return null;var o,u,f=(null==t?void 0:t.relativeSize)||0,l=(0,r(d[0]).getConfig)(),c=l.fontsParsed[(null==t?void 0:t.font)||l.defaultFontToken],s=(null==c?void 0:c.size)||l.tokensParsed.size,v=null!==(o="$true"!==n||"$true"in s?n:"$4")&&void 0!==o?o:"$true"in s?"$true":"$4",b=Object.keys(s),p=b.indexOf(v);return-1===p&&v.endsWith(".5")&&(p=b.indexOf(v.replace(".5",""))),null!==(u=b[Math.min(Math.max(0,p+f),b.length-1)])&&void 0!==u?u:v}},1007,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1008,[811,1009,1010,1011]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(e,c,f,p){if(c&&"object"==typeof c||"function"==typeof c){var b=function(o){!u.call(e,o)&&o!==f&&t(e,o,{get:function(){return c[o]},enumerable:!(p=n(c,o))||p.enumerable})};for(var l of o(c))b(l)}return e},f={};!(function(e,n){for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(f,{prevent:function(){return p}}),m.exports=(e=f,c(t({},"__esModule",{value:!0}),e));var p=function(e){return[e.preventDefault(),e.stopPropagation()]}},1009,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,v){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(v=o(f,u))||v.enumerable})};for(var b of u(f))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{useCurrentColor:function(){return v}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var v=function(t){var n,o,u=(0,r(d[0]).useTheme)();return t?(0,r(d[0]).getVariable)(t):(null===(n=u[t])||void 0===n?void 0:n.get())||(null===(o=u.color)||void 0===o?void 0:o.get())}},1010,[801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,s=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var b of c(n))p(b)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{useGetThemedIcon:function(){return O}}),m.exports=(t=p,s(o({},"__esModule",{value:!0}),t));var b=(function(t,u,c){return c=null!=t?n(l(t)):{},s(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(t){var n=(0,r(d[1]).useCurrentColor)(t.color);return function(o){return o&&(b.default.isValidElement(o)?b.default.cloneElement(o,Object.assign({},t,{color:n},o.props)):b.default.createElement(o,t))}}},1011,[128,1010]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1012,[1013]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,c,f){if(l&&"object"==typeof l||"function"==typeof l){var p=function(s){!u.call(t,s)&&s!==c&&n(t,s,{get:function(){return l[s]},enumerable:!(f=o(l,s))||f.enumerable})};for(var v of s(l))p(v)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{Card:function(){return S},CardBackground:function(){return b},CardFooter:function(){return y},CardFrame:function(){return p},CardHeader:function(){return v}}),m.exports=(t=c,l(n({},"__esModule",{value:!0}),t));var f=(0,r(d[0]).createStyledContext)({size:"$true"}),p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Card",context:f,variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative"}},size:{"...size":function(t,n){var o;return{borderRadius:null!==(o=n.tokens.radius[t])&&void 0!==o?o:t}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CardHeader",context:f,variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":function(t,n){var o;return{padding:null!==(o=n.tokens.space[t])&&void 0!==o?o:t}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[0]).styled)(v,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),S=(0,r(d[0]).withStaticProperties)(p,{Header:v,Footer:y,Background:b})},1013,[801,923]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var l of c(f))s(l)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},b={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(b,{Checkbox:function(){return s}}),m.exports=(t=b,f(o({},"__esModule",{value:!0}),t)),p(b,r(d[0]),m.exports),p(b,r(d[1]),m.exports),p(b,r(d[2]),m.exports);var s=(0,r(d[0]).createCheckbox)({Frame:r(d[1]).CheckboxFrame,Indicator:r(d[1]).CheckboxIndicatorFrame})},1014,[1015,1016,1017]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["scaleSize","sizeAdjust","scaleIcon","checked","defaultChecked","onCheckedChange","native","unstyled"],c=["children","forceMount","disablePassStyles","unstyled"],u=Object.create,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,x=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(l=f(n,c))||l.enumerable})};for(var u of b(n))c(u)}return t},y={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(y,{CheckboxContext:function(){return k},createCheckbox:function(){return z}}),m.exports=(t=y,x(s({},"__esModule",{value:!0}),t));var C=r(d[2]),p=(function(t,n,o){return o=null!=t?u(h(t)):{},x(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),k=p.default.createContext({checked:!1,disabled:!1}),j=function(t){t.context||(t.context=k)};function z(t){t.disableActiveTheme;var u=t.Frame,s=void 0===u?r(d[4]).CheckboxFrame:u,f=t.Indicator,b=void 0===f?r(d[4]).CheckboxIndicatorFrame:f;j(s),j(b);var h=s.styleable(function(t,c){var u,f,b=t.scaleSize,h=void 0===b?.45:b,v=t.sizeAdjust,x=void 0===v?0:v,y=t.scaleIcon,j=t.checked,z=t.defaultChecked,P=t.onCheckedChange,I=t.native,O=t.unstyled,S=void 0!==O&&O,w=o(t,l),M=(0,r(d[5]).useProps)(w),_=p.default.useContext(r(d[6]).CheckboxStyledContext),A=0,F=0;S||(A=(0,r(d[5]).getVariableValue)((0,r(d[7]).getSize)(null!==(f=null!==(u=M.size)&&void 0!==u?u:null==_?void 0:_.size)&&void 0!==f?f:"$true",{shift:x})),F=h?Math.round(A*h):A);var E=(0,r(d[8]).useControllableState)({prop:j,defaultProp:z,onChange:P}),T=n(E,2),V=T[0],N=void 0!==V&&V,R=T[1],$=(0,r(d[9]).useCheckbox)(M,[N,R],c),D=$.checkboxProps,G=$.checkboxRef,q=$.bubbleInput;if(p.default.useEffect(function(){if(w.id&&!w.disabled)return(0,r(d[10]).registerFocusable)(w.id,{focusAndSelect:function(){null==R||R(function(t){return!t})},focus:function(){}})},[w.id,w.disabled]),"web"===(0,r(d[5]).shouldRenderNativePlatform)(I))return(0,C.jsx)("input",{type:"checkbox",defaultChecked:!(0,r(d[9]).isIndeterminate)(N)&&N,tabIndex:-1,ref:G,disabled:D.disabled,style:Object.assign({appearance:"auto",accentColor:"var(--color6)"},D.style)});var B,H,J,K=(0,p.useMemo)(function(){return{checked:N,disabled:D.disabled}},[N,D.disabled]);return(0,C.jsx)(k.Provider,{value:K,children:(0,C.jsxs)(r(d[6]).CheckboxStyledContext.Provider,{size:null!==(H=null!==(B=M.size)&&void 0!==B?B:null==_?void 0:_.size)&&void 0!==H?H:"$true",scaleIcon:null!==(J=null!=y?y:null==_?void 0:_.scaleIcon)&&void 0!==J?J:1,children:[(0,C.jsx)(s,Object.assign({},!S&&{width:F,height:F},{tag:"button",ref:G,unstyled:S},!1===S&&{size:F,theme:N?"active":null},{checked:N,disabled:D.disabled},D,{style:D.style,children:M.children})),q]})})}),v=b.styleable(function(t,n){var l=t.children,u=t.forceMount,s=t.disablePassStyles,f=t.unstyled,h=void 0!==f&&f,v=o(t,c),x=p.default.useContext(r(d[6]).CheckboxStyledContext),y=l;if(!h){var j=("number"==typeof x.size?.65*x.size:(0,r(d[11]).getFontSize)(x.size))*x.scaleIcon,z=(0,r(d[5]).useTheme)(),P=(0,r(d[12]).useGetThemedIcon)({size:j,color:z.color});y=p.default.Children.toArray(l).map(function(t){return s||!p.default.isValidElement(t)?t:P(t)})}var I=p.default.useContext(k);return u||(0,r(d[9]).isIndeterminate)(I.checked)||!0===I.checked?(0,C.jsx)(b,Object.assign({pointerEvents:"none"},v,{ref:n,children:y})):null});return(0,r(d[5]).withStaticProperties)(h,{Indicator:v})}},1015,[19,207,258,128,1016,796,1017,929,918,1018,1022,1006,1008]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(o,c,s,b){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!u.call(o,l)&&l!==s&&t(o,l,{get:function(){return c[l]},enumerable:!(b=n(c,l))||b.enumerable})};for(var C of l(c))f(C)}return o},s={};!(function(o,n){for(var l in n)t(o,l,{get:n[l],enumerable:!0})})(s,{CheckboxFrame:function(){return f},CheckboxIndicatorFrame:function(){return b}}),m.exports=(o=s,c(t({},"__esModule",{value:!0}),o));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CheckboxIndicator",context:r(d[2]).CheckboxStyledContext,variants:{unstyled:{false:{}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Checkbox",tag:"button",context:r(d[2]).CheckboxStyledContext,variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",justifyContent:"center",pressTheme:!0,focusable:!0,borderWidth:1,borderColor:"$borderColor",hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"}}},disabled:{true:{pointerEvents:"none",userSelect:"none",cursor:"not-allowed",hoverStyle:{borderColor:"$borderColor",backgroundColor:"$background"},pressStyle:{borderColor:"$borderColor",backgroundColor:"$background"},focusStyle:{outlineWidth:0}}},size:{"...size":function(o){return{borderRadius:(0,r(d[0]).getVariableValue)((0,r(d[3]).getSize)(o))/8}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1016,[796,923,1017,929]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{CheckboxStyledContext:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).createStyledContext)({size:"$true",scaleIcon:1})},1017,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1018,[1019,1026]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["labelledBy","name","required","disabled","value","onCheckedChange"],l=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!p.call(t,l)&&l!==o&&s(t,l,{get:function(){return n[l]},enumerable:!(u=c(n,l))||u.enumerable})};for(var f of b(n))l(f)}return t},y={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(y,{useCheckbox:function(){return P}}),m.exports=(t=y,v(s({},"__esModule",{value:!0}),t));var h=r(d[2]),O=(function(t,n,o){return o=null!=t?l(f(t)):{},v(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3]));function P(t,l,s){var c=o(l,2),b=c[0],f=c[1],p=t.labelledBy,v=t.name,y=t.required,P=t.disabled,j=t.value,k=void 0===j?"on":j,x=(t.onCheckedChange,n(t,u)),C=O.default.useState(null),_=o(C,2),w=_[0],D=_[1],I=(0,r(d[4]).useComposedRefs)(s,D),M=O.default.useRef(!1),S=!!r(d[5]).isWeb&&(!w||!!w.closest("form")),q=(0,r(d[6]).useLabelContext)(w),B=p||q,E=t.onKeyDown,H=(0,O.useMemo)(function(){return(0,r(d[7]).composeEventHandlers)(E,function(t){"Enter"===t.key&&t.preventDefault()})},[E]),R=(0,O.useMemo)(function(){return(0,r(d[7]).composeEventHandlers)(t.onPress,function(t){f(function(t){return!!(0,r(d[8]).isIndeterminate)(t)||!t}),S&&"isPropagationStopped"in t&&(M.current=t.isPropagationStopped(),M.current||t.stopPropagation())})},[S]);return{bubbleInput:r(d[5]).isWeb&&S?(0,h.jsx)(r(d[9]).BubbleInput,{isHidden:!0,control:w,bubbles:!M.current,name:v,value:k,checked:b,required:y,disabled:P}):null,checkboxRef:I,checkboxProps:Object.assign({role:"checkbox","aria-labelledby":B,"aria-checked":(0,r(d[8]).isIndeterminate)(b)?"mixed":b},x,r(d[5]).isWeb&&{type:"button",value:k,"data-state":(0,r(d[8]).getState)(b),"data-disabled":P?"":void 0,disabled:P,onKeyDown:P?void 0:H},{onPress:P?void 0:R})}}},1019,[207,19,258,128,860,798,1020,811,1026,1027]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1020,[1021]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["htmlFor","id"],u=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var u=function(u){!v.call(t,u)&&u!==o&&c(t,u,{get:function(){return n[u]},enumerable:!(l=s(n,u))||l.enumerable})};for(var b of f(n))u(b)}return t},y={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(y,{Label:function(){return L},LabelFrame:function(){return z},useLabelContext:function(){return R}}),m.exports=(t=y,p(c({},"__esModule",{value:!0}),t));var j=r(d[2]),O=(function(t,n,o){return o=null!=t?u(b(t)):{},p(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="Label",P=o((0,r(d[4]).createContext)(h,{id:void 0,controlRef:{current:null}}),2),x=P[0],F=P[1],z=(0,r(d[5]).styled)(r(d[6]).SizableText,{name:"Label",tag:"label",variants:{unstyled:{false:{size:"$true",color:"$color",backgroundColor:"transparent",display:"flex",alignItems:"center",userSelect:"none",cursor:"default",pressStyle:{color:"$colorPress"}}},size:{"...size":function(t,n){var o=(0,r(d[7]).getButtonSized)(t,n),l=null==o?void 0:o.height,u=(0,r(d[8]).getFontSized)(t,n);return Object.assign({},u,{lineHeight:l?n.tokens.size[l]:void 0})}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=O.forwardRef(function(t,o){var u=t.htmlFor,c=t.id,s=n(t,l),f=O.useRef(null),b=O.useRef(null),v=(0,r(d[9]).useComposedRefs)(o,b),p=O.useId(),y=null!=c?c:p;return r(d[10]).isWeb&&O.useEffect(function(){if(u){var t=document.getElementById(u);if(b.current&&t){var n=function(){return t.getAttribute("aria-labelledby")},o=[y,n()].filter(Boolean).join(" ");return t.setAttribute("aria-labelledby",o),f.current=t,function(){var o;if(y){var l=null===(o=n())||void 0===o?void 0:o.replace(y,"");""===l?t.removeAttribute("aria-labelledby"):l&&t.setAttribute("aria-labelledby",l)}}}}},[y,u]),(0,j.jsx)(x,{id:y,controlRef:f,children:(0,j.jsx)(z,Object.assign({id:y,htmlFor:u},s,{ref:v,onMouseDown:function(n){var o;null===(o=t.onMouseDown)||void 0===o||o.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()},onPress:function(n){var o;if(null===(o=t.onPress)||void 0===o||o.call(t,n),r(d[10]).isWeb){if(u||!f.current||n.defaultPrevented)return;var l=f.current.contains(n.target),c=!0===n.isTrusted;!l&&c&&(f.current.click(),f.current.focus())}else t.htmlFor&&(0,r(d[11]).focusFocusable)(t.htmlFor)}}))})});A.displayName=h;var L=z.extractable((0,r(d[5]).themeable)(A)),R=function(t){var n=F("LabelConsumer"),o=n.controlRef;return O.useEffect(function(){t&&(o.current=t)},[t,o]),n.id}},1021,[207,19,258,128,971,801,944,928,946,860,798,1022]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},1022,[1023,1024,1025]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))b(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{focusFocusable:function(){return v},registerFocusable:function(){return b},unregisterFocusable:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l=new Map,b=function(t,n){return l.set(t,n),function(){l.delete(t)}},p=function(t){l.delete(t)},v=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=l.get(t);o&&(n||!o.focusAndSelect?o.focus():o.focusAndSelect())}},1023,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(t,n,f,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(s=o(n,c))||s.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(b,{useFocusable:function(){return v}}),m.exports=(t=b,s(u({},"__esModule",{value:!0}),t));var p=(function(t,o,c){return c=null!=t?n(f(t)):{},s(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function v(t){var n=t.isInput,u=t.props,o=t.ref,c=u.id,f=u.onChangeText,l=u.value,s=u.defaultValue,b=p.default.useRef(l||s||""),v=p.default.useRef(void 0),O=p.default.useCallback(function(t){t.focus(),t.setSelection&&"string"==typeof b.current&&t.setSelection(0,b.current.length)},[]),y=p.default.useCallback(function(t){var u;!c||!t||(null===(u=v.current)||void 0===u||u.call(v),v.current=(0,r(d[1]).registerFocusable)(c,Object.assign({focus:t.focus},n&&{focusAndSelect:function(){return O(t)}})))},[c,n,O]),j=p.default.useCallback(function(t){t&&y(t)},[y]),_=(0,r(d[2]).useEvent)(function(t){b.current=t,null==f||f(t)});return p.default.useEffect(function(){return function(){var t;null===(t=v.current)||void 0===t||t.call(v)}},[]),{ref:p.default.useMemo(function(){return(0,r(d[3]).composeRefs)(o,j)},[o,j]),onChangeText:_}}},1024,[128,1023,801,860]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1025,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p={};function b(t){return"indeterminate"===t}function s(t){return b(t)?"indeterminate":t?"checked":"unchecked"}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getState:function(){return s},isIndeterminate:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1026,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["checked","bubbles","control","isHidden"],c=Object.create,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!f.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=s(n,l))||c.enumerable})};for(var p of l(n))b(p)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{BubbleInput:function(){return j}}),m.exports=(t=v,p(u({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,o){return o=null!=t?c(b(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),j=function(t){var c=t.checked,u=t.bubbles,s=void 0===u||u,l=(t.control,t.isHidden),b=n(t,o),f=O.useRef(null),p=(0,r(d[3]).usePrevious)(c);return O.useEffect(function(){var t=f.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"checked").set;if(p!==c&&o){var u=new Event("click",{bubbles:s});t.indeterminate=(0,r(d[4]).isIndeterminate)(c),o.call(t,!(0,r(d[4]).isIndeterminate)(c)&&c),t.dispatchEvent(u)}},[p,c,s]),(0,y.jsx)("input",Object.assign({type:"checkbox",defaultChecked:!(0,r(d[4]).isIndeterminate)(c)&&c},b,{tabIndex:-1,ref:f,"aria-hidden":l,style:Object.assign({},l?{position:"absolute",pointerEvents:"none",opacity:0,margin:0}:{appearance:"auto",accentColor:"var(--color6)"},t.style)}))}},1027,[207,258,128,1028,1026]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,u=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,v=function(t,u,f,v){if(u&&"object"==typeof u||"function"==typeof u){var s=function(c){!l.call(t,c)&&c!==f&&n(t,c,{get:function(){return u[c]},enumerable:!(v=o(u,c))||v.enumerable})};for(var p of c(u))s(p)}return t},s={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(s,{usePrevious:function(){return b}}),m.exports=(t=s,v(n({},"__esModule",{value:!0}),t));var p=(function(t,o,c){return c=null!=t?u(f(t)):{},v(!o&&t&&t.__esModule?c:n(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function b(t){var u=p.useRef({value:t,previous:t});return p.useMemo(function(){return u.current.value!==t&&(u.current.previous=u.current.value,u.current.value=t),u.current.previous},[t])}},1028,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1029,[1030]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeForm","children","onPress"],c=["onSubmit"],u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,l=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!b.call(e,c)&&c!==n&&u(e,c,{get:function(){return t[c]},enumerable:!(o=s(t,c))||o.enumerable})};for(var l of f(t))c(l)}return e},p={};!(function(e,t){for(var n in t)u(e,n,{get:t[n],enumerable:!0})})(p,{Form:function(){return T},FormFrame:function(){return j},FormProvider:function(){return O},FormTrigger:function(){return h},useFormContext:function(){return P}}),m.exports=(e=p,l(u({},"__esModule",{value:!0}),e));var v=r(d[2]),F="Form",j=(0,r(d[3]).styled)(r(d[3]).Stack,{name:F,tag:"form"}),y=n((0,r(d[4]).createContextScope)(F),1),_=n((0,y[0])(F),2),O=_[0],P=_[1],S="FormTrigger",x=(0,r(d[3]).styled)(r(d[3]).View,{name:S}),h=x.styleable(function(e,n){var c=e.__scopeForm,u=e.children,s=e.onPress,f=t(e,o),b=P(S,c);return(0,v.jsx)(x,Object.assign({tag:"button"},f,{ref:n,onPress:(0,r(d[5]).composeEventHandlers)(s,b.onSubmit),children:u}))}),w=j.extractable(function(e){var n=e.onSubmit,o=t(e,c);return(0,v.jsx)(O,{scope:o.__scopeForm,onSubmit:n,children:(0,v.jsx)(j,Object.assign({},o,{onSubmit:function(e){return e.preventDefault()}}))})}),T=(0,r(d[5]).withStaticProperties)(w,{Trigger:h})},1030,[207,19,258,796,971,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1031,[1032]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,i=r(d[0]),n=r(d[1]),o=["__scopeGroup","children","space","size","spaceDirection","separator","scrollable","axis","orientation","disabled","disablePassBorderRadius","borderRadius","forceUseItem"],s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,i,n,o){if(i&&"object"==typeof i||"function"==typeof i){var s=function(s){!p.call(t,s)&&s!==n&&l(t,s,{get:function(){return i[s]},enumerable:!(o=u(i,s))||o.enumerable})};for(var f of c(i))s(f)}return t},v={};!(function(t,i){for(var n in i)l(t,n,{get:i[n],enumerable:!0})})(v,{Group:function(){return C},GroupFrame:function(){return z},XGroup:function(){return F},YGroup:function(){return B},useGroupItem:function(){return V}}),m.exports=(t=v,b(l({},"__esModule",{value:!0}),t));var h=r(d[2]),j=(function(t,i,n){return n=null!=t?s(f(t)):{},b(!i&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t)})(r(d[3])),y=r(d[4]),I="Group",O=(0,r(d[5]).createContextScope)(I),R=n(O,2),x=R[0],G=(R[1],x(I)),P=n(G,2),_=P[0],w=P[1],z=(0,r(d[6]).styled)(r(d[7]).ThemeableStack,{name:"GroupFrame",variants:{unstyled:{false:{size:"$true"}},size:function(t,i){var n,o,s=i.tokens;return{borderRadius:null!==(o=null!==(n=s.radius[t])&&void 0!==n?n:t)&&void 0!==o?o:s.radius.$true}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}});function E(t){return(0,r(d[8]).withStaticProperties)(z.styleable(function(s,l){var u=(0,r(d[6]).useProps)(s),c=u.__scopeGroup,f=u.children,p=u.space,b=u.size,v=void 0===b?"$true":b,y=u.spaceDirection,I=u.separator,O=(u.scrollable,u.axis),R=void 0===O?t?"vertical":"horizontal":O,x=u.orientation,G=void 0===x?R:x,P=u.disabled,w=u.disablePassBorderRadius,E=u.borderRadius,S=u.forceUseItem,V=i(u,o),C="vertical"===G,B=(0,r(d[9]).useControllableState)({defaultProp:S?1:0}),F=n(B,2),D=F[0],M=F[1],T=D>0,U=null!=E?E:v?(0,r(d[6]).getVariableValue)((0,r(d[6]).getTokens)().radius[v])-1:void 0,$=null!=w?w:!(void 0!==U),H=j.default.Children.toArray(f),N=T?j.default.Children.toArray(f).filter(j.default.isValidElement):H.map(function(t,i){if(!j.default.isValidElement(t)||t.type===j.default.Fragment)return t;var n,o=null!==(n=t.props.disabled)&&void 0!==n?n:P,s=0===i,l=i===H.length-1,u=!0===$?null:k({isFirst:s,isLast:l,radius:U,vertical:C,disable:$}),c=Object.assign({disabled:o},u);return A(t,c)}),X=(0,r(d[10]).useIndexedChildren)((0,r(d[6]).spacedChildren)({direction:y,separator:I,space:p,children:N})),Y=j.default.useCallback(function(){return M(function(t){return t+1})},[]),q=j.default.useCallback(function(){return M(function(t){return t-1})},[]);return(0,h.jsx)(_,{disablePassBorderRadius:$,vertical:"vertical"===G,radius:U,disabled:P,onItemMount:Y,onItemUnmount:q,scope:c,children:(0,h.jsx)(z,Object.assign({ref:l,size:v,flexDirection:"horizontal"===G?"row":"column",borderRadius:E},V,{children:L(Object.assign({},u,{orientation:G}),X)}))})}),{Item:S})}var S=j.default.forwardRef(function(t,i){var n=t.__scopeGroup,o=t.children,s=t.forcePlacement,l=V({disabled:!!j.default.isValidElement(o)&&o.props.disabled},s,n);return j.default.isValidElement(o)&&o.type!==j.default.Fragment?j.default.cloneElement(o,l):o}),V=function(t,i,n){var o=(0,r(d[10]).useIndex)(),s=w("GroupItem",n);if(j.default.useEffect(function(){return s.onItemMount(),function(){s.onItemUnmount()}},[]),!o)throw Error(" should only be used within a ");var l,u="first"===i||"last"!==i&&0===o.index,c="last"===i||"first"!==i&&o.index===o.maxIndex,f={disabled:null!==(l=t.disabled)&&void 0!==l?l:s.disabled};if(!0!==s.disablePassBorderRadius){var p=k({radius:s.radius,isFirst:u,isLast:c,vertical:s.vertical,disable:s.disablePassBorderRadius});return Object.assign({},f,p)}return f},C=E(!0),B=C,F=E(!1),L=function(t,i){var n=t.scrollable,o=t.orientation,s=t.showScrollIndicator,l=void 0!==s&&s;return n?(0,h.jsx)(y.ScrollView,Object.assign({},"vertical"===o&&{showsVerticalScrollIndicator:l},"horizontal"===o&&{horizontal:!0,showsHorizontalScrollIndicator:l},{children:i})):i},k=function(t){var i=t.isFirst,n=t.isLast,o=t.radius,s=t.vertical,l=t.disable;return{borderTopLeftRadius:i&&"top"!==l&&"start"!==l?o:0,borderTopRightRadius:"top"!==l&&"end"!==l&&(s&&i||!s&&n)?o:0,borderBottomLeftRadius:"bottom"!==l&&"start"!==l&&(s&&n||!s&&i)?o:0,borderBottomRightRadius:n&&"bottom"!==l&&"end"!==l?o:0}},A=function(t,i){return j.default.cloneElement(Object.assign({},t,{props:null}),Object.assign({},t.props,i))}},1032,[207,19,258,128,28,971,796,923,811,918,1033]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var x=function(c){!s.call(t,c)&&c!==l&&u(t,c,{get:function(){return n[c]},enumerable:!(f=o(n,c))||f.enumerable})};for(var p of c(n))x(p)}return t},x={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(x,{useIndex:function(){return O},useIndexedChildren:function(){return P}}),m.exports=(t=x,f(u({},"__esModule",{value:!0}),t));var p=r(d[0]),v=(function(t,o,c){return c=null!=t?n(l(t)):{},f(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),b=v.createContext([]),h=v.createContext(null);function O(){var t=v.useContext(b),n=v.useContext(h);return v.useMemo(function(){if(null===n)return null;var u=j(n),o=t[t.length-1],c=u[u.length-1];return{maxIndex:o,maxIndexPath:t,index:c,indexPath:u,indexPathString:n,isFirst:0===c,isLast:c===o,isEven:c%2==0,isOdd:1===Math.abs(c%2)}},[t,n])}function P(t){var n=v.useContext(b),u=v.useContext(h),o=v.Children.count(t),c=v.useMemo(function(){return n.concat(o-1)},[o]);return(0,p.jsx)(b.Provider,{value:c,children:v.Children.map(t,function(t,n){return v.isValidElement(t)?(0,p.jsx)(h.Provider,{value:u?`${u}.${n.toString()}`:n.toString(),children:t},t.key):t})})}function j(t){return t.split(".").map(function(t){return Number.parseInt(t,10)})}},1033,[258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var y=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var b of c(l))y(b)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{Article:function(){return y},Aside:function(){return w},Footer:function(){return v},Header:function(){return p},Main:function(){return b},Nav:function(){return x},Section:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).styled)(r(d[0]).View,{name:"Section",tag:"section",flexDirection:"column",accessibilityRole:"summary"}),y=(0,r(d[0]).styled)(r(d[0]).View,{name:"Article",tag:"article",flexDirection:"column"}),b=(0,r(d[0]).styled)(r(d[0]).View,{name:"Main",tag:"main",flexDirection:"column"}),p=(0,r(d[0]).styled)(r(d[0]).View,{name:"Header",tag:"header",accessibilityRole:"header",flexDirection:"column"}),w=(0,r(d[0]).styled)(r(d[0]).View,{name:"Aside",tag:"aside",flexDirection:"column"}),v=(0,r(d[0]).styled)(r(d[0]).View,{name:"Footer",tag:"footer",flexDirection:"column"}),x=(0,r(d[0]).styled)(r(d[0]).View,{name:"Nav",tag:"nav",flexDirection:"column"})},1034,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1035,[1036]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),l=r(d[1]),o=["children","icon","iconAfter","noTextWrap","theme","space","spaceFlex","scaleIcon","scaleSpace","unstyled","subTitle","title","color","fontWeight","fontSize","fontFamily","letterSpacing","textAlign","ellipse"],s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,l,o){if(n&&"object"==typeof n||"function"==typeof n){var p=function(u){!f.call(t,u)&&u!==l&&s(t,u,{get:function(){return n[u]},enumerable:!(o=c(n,u))||o.enumerable})};for(var x of u(n))p(x)}return t},x={};!(function(t,n){for(var l in n)s(t,l,{get:n[l],enumerable:!0})})(x,{ListItem:function(){return j},ListItemFrame:function(){return S},ListItemSubtitle:function(){return b},ListItemText:function(){return y},ListItemTitle:function(){return v},useListItem:function(){return T}}),m.exports=(t=x,p(s({},"__esModule",{value:!0}),t));var h=r(d[2]),S=(0,r(d[3]).styled)(r(d[4]).ThemeableStack,{name:"ListItem",tag:"li",variants:{unstyled:{false:{size:"$true",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",width:"100%",borderColor:"$borderColor",maxWidth:"100%",overflow:"hidden",flexDirection:"row",backgroundColor:"$background",cursor:"default"}},size:{"...size":function(t,n){var l=n.tokens;return{minHeight:l.size[t],paddingHorizontal:l.space[t],paddingVertical:(0,r(d[5]).getSpace)(l.space[t],{shift:-4})}}},active:{true:{hoverStyle:{backgroundColor:"$background"}}},disabled:{true:{opacity:.5,pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[3]).styled)(r(d[6]).SizableText,{name:"ListItemText",variants:{unstyled:{false:{color:"$color",size:"$true",flexGrow:1,flexShrink:1,ellipse:!0,cursor:"inherit"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),b=(0,r(d[3]).styled)(y,{name:"ListItemSubtitle",variants:{unstyled:{false:{opacity:.6,maxWidth:"100%",color:"$color"}},size:{"...size":function(t,n){var l=(0,r(d[5]).getSize)(t,{shift:-1,excludeHalfSteps:!0});return(0,r(d[7]).getFontSized)(l.key,n)}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[3]).styled)(y,{name:"ListItemTitle"}),T=function(t){var s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{Text:y,Subtitle:b,Title:v},u=c.Text,f=void 0===u?y:u,p=c.Subtitle,x=void 0===p?b:p,S=c.Title,T=void 0===S?v:S,z=(0,r(d[3]).useProps)(t,{resolveValues:"none"}),j=z.children,I=z.icon,A=z.iconAfter,L=z.noTextWrap,F=(z.theme,z.space,z.spaceFlex,z.scaleIcon),w=void 0===F?1:F,k=z.scaleSpace,O=void 0===k?1:k,W=z.unstyled,$=void 0!==W&&W,E=z.subTitle,V=z.title,_=z.color,C=z.fontWeight,H=z.fontSize,P=z.fontFamily,D=z.letterSpacing,G=z.textAlign,M=z.ellipse,U=l(z,o),N={color:_,fontWeight:C,fontSize:H,fontFamily:P,letterSpacing:D,textAlign:G,ellipse:M,children:j},Y=z.size||"$true",q=(0,r(d[8]).getFontSize)(Y)*w,B=(0,r(d[9]).useGetThemedIcon)({size:q,color:_}),J=[I,A].map(B),K=n(J,2),Q=K[0],R=K[1],X=null!==(s=(0,r(d[3]).getTokens)().space[z.space])&&void 0!==s?s:q,Z=(0,r(d[3]).getVariableValue)(X)*O,ee=(0,r(d[6]).wrapChildrenInText)(f,N);return{props:Object.assign({},U,{children:(0,h.jsxs)(h.Fragment,{children:[Q?(0,h.jsxs)(h.Fragment,{children:[Q,(0,h.jsx)(r(d[3]).Spacer,{size:Z})]}):null,V||E?(0,h.jsxs)(r(d[4]).YStack,{flex:1,children:["all"===L?V:(0,h.jsx)(T,{size:Y,children:V}),E?(0,h.jsx)(h.Fragment,{children:"string"==typeof E&&"all"!==L?(0,h.jsx)(x,{unstyled:$,size:Y,children:E}):E}):null,ee]}):ee,R?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r(d[3]).Spacer,{size:Z}),R]}):null]})})}},z=S.styleable(function(t,n){var l=T(t).props;return(0,h.jsx)(S,Object.assign({ref:n},l))}),j=(0,r(d[10]).withStaticProperties)(z,{Text:y,Subtitle:b,Title:v})},1036,[19,207,258,801,923,929,944,946,1006,1008,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1037,[1038,1048]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,o=r(d[0]),t=r(d[1]),s=r(d[2]),c=["scope"],u=["scope"],l=["trapFocus","enableRemoveScroll","zIndex","scope"],p=["trapFocus","scope","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","disableFocusScope","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","children","enableRemoveScroll","freezeContentsWhenHidden","setIsFullyHidden","lazyMount","context"],v=["scope"],f=["scope"],h=["scope"],x=["scope"],b=["children","open","defaultOpen","onOpenChange","scope","keepChildrenMounted","hoverable","disableFocus","id","adaptScope"],C=["context"],O=Object.create,j=Object.defineProperty,P=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,S=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,F=function(n,o,t,s){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){!w.call(n,c)&&c!==t&&j(n,c,{get:function(){return o[c]},enumerable:!(s=P(o,c))||s.enumerable})};for(var u of A(o))c(u)}return n},R={};!(function(n,o){for(var t in o)j(n,t,{get:o[t],enumerable:!0})})(R,{Popover:function(){return B},PopoverAnchor:function(){return M},PopoverArrow:function(){return Z},PopoverClose:function(){return K},PopoverContent:function(){return D},PopoverContext:function(){return E},PopoverTrigger:function(){return z},usePopoverContext:function(){return T}}),m.exports=(n=R,F(j({},"__esModule",{value:!0}),n));var k=r(d[3]),y=(function(n,o,t){return t=null!=n?O(S(n)):{},F(!o&&n&&n.__esModule?t:j(t,"default",{value:n,enumerable:!0}),n)})(r(d[4])),I=r(d[5]).isAndroid||r(d[5]).isIos&&!r(d[6]).USE_NATIVE_PORTAL,E=(0,r(d[7]).createStyledContext)({},"Popover__"),T=E.useStyledContext,M=y.forwardRef(function(n,o){var t=n.scope,u=s(n,c),l=T(t)||{},p=l.onCustomAnchorAdd,v=l.onCustomAnchorRemove;return y.useEffect(function(){return p(),function(){return v()}},[p,v]),(0,k.jsx)(r(d[8]).PopperAnchor,Object.assign({scope:t},u,{ref:o}))}),z=y.forwardRef(function(n,o){var t=n.scope,c=s(n,u),l=T(t),p=l.anchorTo,v=(0,r(d[9]).useComposedRefs)(o,l.triggerRef);if(!n.children)return null;var f=(0,k.jsx)(r(d[7]).View,Object.assign({"aria-expanded":l.open,"data-state":L(l.open)},c,{ref:v,onPress:(0,r(d[10]).composeEventHandlers)(n.onPress,l.onOpenToggle)})),h=y.useMemo(function(){return p?{current:Object.assign({getBoundingClientRect:function(){return r(d[5]).isWeb?DOMRect.fromRect(p):p}},!r(d[5]).isWeb&&{measure:function(n){return n(null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.width,null==p?void 0:p.height)},measureInWindow:function(n){return n(null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.width,null==p?void 0:p.height)}})}:null},[l.anchorTo,null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.x,null==p?void 0:p.height,null==p?void 0:p.width]);return l.hasCustomAnchor?f:(0,k.jsx)(r(d[8]).PopperAnchor,Object.assign({},h&&{virtualRef:h},{scope:t,asChild:c.asChild,children:f}))}),D=(0,r(d[7]).styled)(r(d[8]).PopperContentFrame,{name:"Popover"}).extractable(y.forwardRef(function(n,o){var c,u=n.trapFocus,p=n.enableRemoveScroll,v=void 0!==p&&p,f=n.zIndex,h=n.scope,x=s(n,l),b=T(h),C=y.useRef(null),O=(0,r(d[9]).useComposedRefs)(o,C),j=y.useRef(!1),P=y.useState(!b.open),A=t(P,2),S=A[0],w=A[1];return b.open&&S&&w(!1),!b.keepChildrenMounted&&S?null:(0,k.jsx)(W,{passThrough:b.breakpointActive,context:b,zIndex:f,children:(0,k.jsx)(r(d[7]).Stack,{passThrough:b.breakpointActive,pointerEvents:b.open?null!==(c=x.pointerEvents)&&void 0!==c?c:"auto":"none",children:(0,k.jsx)(V,Object.assign({},x,{context:b,enableRemoveScroll:v,ref:O,setIsFullyHidden:w,scope:h,trapFocus:null!=u?u:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:!1===n.onCloseAutoFocus?void 0:(0,r(d[10]).composeEventHandlers)(n.onCloseAutoFocus,function(n){var o;n.defaultPrevented||(n.preventDefault(),j.current||null===(o=b.triggerRef.current)||void 0===o||o.focus())}),onPointerDownOutside:(0,r(d[10]).composeEventHandlers)(n.onPointerDownOutside,function(n){var o=n.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey,s=2===o.button||t;j.current=s},{checkDefaultPrevented:!1}),onFocusOutside:(0,r(d[10]).composeEventHandlers)(n.onFocusOutside,function(n){return n.preventDefault()},{checkDefaultPrevented:!1})}))})})})),H=function(n){var o=T(n);return{popperContext:(0,r(d[8]).usePopperContext)(n),adaptContext:(0,r(d[11]).useAdaptContext)(o.adaptScope),context:o}};function _(n){var o=n.adaptContext,t=n.children,s=n.context,c=n.popperContext;return(0,k.jsx)(r(d[8]).PopperProvider,Object.assign({scope:s.popoverScope},c,{children:(0,k.jsx)(E.Provider,Object.assign({},s,{children:(0,k.jsx)(r(d[11]).ProvideAdaptContext,Object.assign({},o,{children:t}))}))}))}var N=function(n){var o=n.children,t=n.context;if(I){var s=H(t.popoverScope);return(0,k.jsx)(r(d[11]).AdaptPortalContents,{scope:t.adaptScope,children:(0,k.jsx)(_,Object.assign({},s,{children:o}))})}return(0,k.jsx)(r(d[11]).AdaptPortalContents,{scope:t.adaptScope,children:o})};function W(n){var o=n.context,t=n.zIndex,s=n.passThrough,c=n.children,u=n.onPress,l=(0,r(d[7]).useThemeName)(),p=c;if(I){var v=H(o.popoverScope);p=(0,k.jsx)(_,Object.assign({},v,{children:p}))}return(0,k.jsx)(r(d[6]).Portal,{passThrough:s,stackZIndex:!0,zIndex:t,children:(0,k.jsxs)(r(d[7]).Theme,{passThrough:s,contain:!0,forceClassName:!0,name:l,children:[!!o.open&&!o.breakpointActive&&(0,k.jsx)(r(d[12]).YStack,{fullscreen:!0,onPress:(0,r(d[10]).composeEventHandlers)(u,o.onOpenToggle)}),(0,k.jsx)(r(d[13]).StackZIndexContext,{zIndex:(0,r(d[6]).resolveViewZIndex)(t),children:p})]})})}var V=y.forwardRef(function(n,o){n.trapFocus;var t=n.scope,c=(n.onOpenAutoFocus,n.onCloseAutoFocus,n.disableOutsidePointerEvents,n.disableFocusScope,n.onEscapeKeyDown,n.onPointerDownOutside,n.onFocusOutside,n.onInteractOutside,n.children),u=(n.enableRemoveScroll,n.freezeContentsWhenHidden,n.setIsFullyHidden),l=n.lazyMount,v=n.context,f=s(n,p),h=v.open,x=v.keepChildrenMounted,b=y.useCallback(function(){null==u||u(!0)},[u]),C=(0,k.jsx)(r(d[14]).ResetPresence,{disable:v.breakpointActive,children:c});return v.breakpointActive,(0,k.jsx)(r(d[15]).Animate,{type:"presence",present:!!h,keepChildrenMounted:!!x,onExitComplete:b,lazyMount:l,passThrough:v.breakpointActive,children:(0,k.jsx)(r(d[8]).PopperContent,Object.assign({scope:t,"data-state":L(h),id:v.contentId,ref:o,passThrough:v.breakpointActive},f,{children:(0,k.jsx)(N,{context:v,children:C})}),v.contentId)})}),K=y.forwardRef(function(n,o){var t=n.scope,c=s(n,v),u=T(t);return(0,k.jsx)(r(d[12]).YStack,Object.assign({},c,{ref:o,componentName:"PopoverClose",onPress:(0,r(d[10]).composeEventHandlers)(n.onPress,function(){var n;return null==u||null===(n=u.onOpenChange)||void 0===n?void 0:n.call(u,!1,"press")})}))}),Z=r(d[8]).PopperArrowFrame.styleable(function(n,o){var t=n.scope,c=s(n,f),u=T(t);return(0,r(d[11]).useAdaptIsActive)(u.adaptScope)?null:(0,k.jsx)(r(d[8]).PopperArrow,Object.assign({scope:t,componentName:"PopoverArrow"},c,{ref:o}))}),Y=y.forwardRef(function(n,o){var t=n.scope,c=s(n,h),u=T(t);return(0,k.jsx)(r(d[16]).ScrollView,Object.assign({ref:o,pointerEvents:u.breakpointActive?"none":void 0,scrollEnabled:!u.breakpointActive,passThrough:u.breakpointActive},c))}),B=(0,r(d[10]).withStaticProperties)(y.forwardRef(function(n,o){var t=n.scope,c=void 0===t?"":t,u=s(n,x),l=y.useId(),p=`PopoverAdapt${c}`;return(0,k.jsx)(r(d[11]).AdaptParent,{scope:p,portal:!0,children:(0,k.jsx)(G,Object.assign({adaptScope:p,ref:o,id:l,scope:c},u))})}),{Anchor:M,Arrow:Z,Trigger:z,Content:D,Close:K,Adapt:r(d[11]).Adapt,ScrollView:Y,Sheet:r(d[17]).Sheet.Controlled,FocusScope:r(d[18]).FocusScopeController}),G=y.forwardRef(function(n,c){var u=n.children,l=n.open,p=n.defaultOpen,v=n.onOpenChange,f=n.scope,h=void 0===f?"":f,x=n.keepChildrenMounted,C=n.hoverable,O=n.disableFocus,j=n.id,P=n.adaptScope,A=s(n,b),S=y.useRef(null),w=y.useState(!1),F=t(w,2),R=F[0],I=F[1],T=y.useRef(void 0),M=(0,r(d[19]).useControllableState)({prop:x,defaultProp:!1,transition:"lazy"===x}),z=t(M,1)[0],D=(0,r(d[19]).useControllableState)({prop:l,defaultProp:p||!1,onChange:function(n){null==v||v(n,T.current)}}),H=t(D,2),_=H[0],N=H[1],W=(0,r(d[7]).useEvent)(function(n,o){T.current=o,N(n)}),V=(0,r(d[11]).useAdaptIsActive)(P),K=(0,r(d[20]).useFloatingContext)({open:_,setOpen:W,disable:V,hoverable:C,disableFocus:O}),Z=y.useState(),Y=t(Z,2),B=Y[0],G=Y[1],L=(0,r(d[7]).useCreateShallowSetState)(G);y.useImperativeHandle(c,function(){return{anchorTo:L,toggle:function(){return N(function(n){return!n})},open:function(){return N(!0)},close:function(){return N(!1)},setOpen:N}});var $={popoverScope:h,adaptScope:P,id:j,contentId:y.useId(),triggerRef:S,open:_,breakpointActive:V,onOpenChange:W,onOpenToggle:(0,r(d[7]).useEvent)(function(){_&&V||N(!_)}),hasCustomAnchor:R,anchorTo:B,onCustomAnchorAdd:y.useCallback(function(){return I(!0)},[]),onCustomAnchorRemove:y.useCallback(function(){return I(!1)},[]),keepChildrenMounted:z},q=y.useMemo(function(){return(0,k.jsx)(E.Provider,Object.assign({scope:h},$,{children:(0,k.jsx)(U,{context:$,onOpenChange:N,children:u})}))},[h,N,u].concat(o(Object.values($)))),J=(0,k.jsx)(r(d[8]).Popper,Object.assign({open:_,passThrough:V,scope:h,stayInFrame:!0},A,{children:q}));return(0,k.jsx)(k.Fragment,{children:r(d[5]).isWeb?(0,k.jsx)(r(d[21]).FloatingOverrideContext.Provider,{value:K,children:J}):J})});function L(n){return n?"open":"closed"}var U=function(n){var o=n.context,t=s(n,C),c=$(o),u=o.breakpointActive,l=(0,r(d[7]).useGet)(c);return(0,k.jsx)(r(d[17]).SheetController,{onOpenChange:function(n){var o;l()&&(null===(o=t.onOpenChange)||void 0===o||o.call(t,n))},open:o.open,hidden:!u,children:t.children})},$=function(n){var o=(0,r(d[11]).useAdaptIsActive)(n.adaptScope);return!1!==n.open&&o}},1038,[32,19,207,258,128,798,953,796,1039,860,811,951,923,959,934,1046,987,968,993,918,1048,1041]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1039,[1040]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),o=r(d[1]),n=["scope","children"],s=["virtualRef","scope"],u=["scope","enableAnimationForPositionChange","children","passThrough"],l=["style"],c=["scope"],f=["offset","size","borderWidth"],p=Object.create,h=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,P=function(e,t,o,n){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!w.call(e,s)&&s!==o&&h(e,s,{get:function(){return t[s]},enumerable:!(n=b(t,s))||n.enumerable})};for(var u of y(t))s(u)}return e},S={};!(function(e,t){for(var o in t)h(e,o,{get:t[o],enumerable:!0})})(S,{Popper:function(){return W},PopperAnchor:function(){return I},PopperArrow:function(){return B},PopperArrowFrame:function(){return H},PopperContent:function(){return V},PopperContentFrame:function(){return D},PopperContextFast:function(){return R},PopperContextSlow:function(){return F},PopperPositionContext:function(){return r(d[2]).createStyledContext},PopperProvider:function(){return L},PopperProviderFast:function(){return A},PopperProviderSlow:function(){return E},setupPopper:function(){return _},usePopperContext:function(){return C},usePopperContextSlow:function(){return z}}),m.exports=(e=S,P(h({},"__esModule",{value:!0}),e));var j=r(d[3]),x=(function(e,t,o){return o=null!=e?p(v(e)):{},P(!t&&e&&e.__esModule?o:h(o,"default",{value:e,enumerable:!0}),e)})(r(d[4])),O=r(d[5]),R=(0,r(d[2]).createStyledContext)({},"Popper__"),C=R.useStyledContext,A=R.Provider,F=(0,r(d[2]).createStyledContext)({},"PopperSlow__"),z=F.useStyledContext,E=F.Provider,L=function(e){var t=e.scope,s=e.children,u=o(e,n),l=T(u);return(0,j.jsx)(A,Object.assign({scope:t},u,{children:(0,j.jsx)(E,Object.assign({scope:t},l,{children:s}))}))};function T(e){return{refs:e.refs,size:e.size,arrowRef:e.arrowRef,arrowStyle:e.arrowStyle,onArrowSize:e.onArrowSize,hasFloating:e.hasFloating,strategy:e.strategy,update:e.update,context:e.context,getFloatingProps:e.getFloatingProps,getReferenceProps:e.getReferenceProps,open:e.open}}var k={name:"checkFloating",fn:function(e){return{data:{hasFloating:!!e.rects.floating.width}}}},M={};function _(e){Object.assign(M,e)}function W(e){var o=e.children,n=e.size,s=e.strategy,u=void 0===s?"absolute":s,l=e.placement,c=void 0===l?"bottom":l,f=e.stayInFrame,p=e.allowFlip,h=e.offset,b=e.disableRTL,y=(e.resize,e.passThrough),v=e.open,w=e.scope,P=x.useState(null),S=t(P,2),R=S[0],C=S[1],A=x.useState(0),F=t(A,2),z=F[0],E=F[1],T=null!=h?h:z,_=(x.useRef({}),!y&&(v||!0)),W=(0,r(d[6]).useFloating)({open:_,strategy:u,placement:c,sameScrollView:!1,whileElementsMounted:_?r(d[6]).autoUpdate:void 0,platform:(null!=b?b:M.disableRTL)?Object.assign({},r(d[6]).platform,{isRTL:function(e){return!1}}):r(d[6]).platform,middleware:[f?(0,r(d[6]).shift)("boolean"==typeof f?{}:f):null,p?(0,r(d[6]).flip)("boolean"==typeof p?{}:p):null,R?(0,r(d[6]).arrow)({element:R}):null,typeof T<"u"?(0,r(d[6]).offset)(T):null,k,null].filter(Boolean)}),I=W.middlewareData,D=(0,O.useWindowDimensions)(),V=x.useState(!1),H=t(V,2),U=H[0],$=H[1];x.useEffect(function(){var e=O.Keyboard.addListener("keyboardDidShow",function(){(0,r(d[7]).startTransition)(function(){$(!0)})}),t=O.Keyboard.addListener("keyboardDidHide",function(){(0,r(d[7]).startTransition)(function(){$(!1)})});return function(){e.remove(),t.remove()}},[]),(0,r(d[8]).useIsomorphicLayoutEffect)(function(){y||W.update()},[y,D,U]);var B=x.useMemo(function(){var e;return Object.assign({size:n,arrowRef:C,arrowStyle:I.arrow,onArrowSize:E,hasFloating:null===(e=I.checkFloating)||void 0===e?void 0:e.hasFloating,open:!!v},W)},[v,n,W.x,W.y,W.placement,JSON.stringify(I.arrow||null),W.isPositioned]);return(0,j.jsx)(r(d[2]).LayoutMeasurementController,{disable:!_,children:(0,j.jsx)(L,Object.assign({scope:w},B,{children:o}))})}var I=r(d[9]).YStack.extractable(x.forwardRef(function(e,t){var n=e.virtualRef,u=e.scope,l=o(e,s),c=z(u),f=c.getReferenceProps,p=c.refs,h=c.update,b=x.useRef(null);x.useEffect(function(){n&&p.setReference(n.current)},[n]);var y=l,v=f?f(y):null,w=r(d[8]).isWeb&&u,P=(0,r(d[10]).useComposedRefs)(t,b,w?void 0:p.setReference);return(0,j.jsx)(r(d[2]).View,Object.assign({},y,v,{ref:P},w&&{onMouseEnter:function(e){var t;b.current instanceof HTMLElement&&(p.setReference(b.current),null===(t=v.onPointerEnter)||void 0===t||t.call(v,e),h())},onMouseLeave:function(e){var t;null==v||null===(t=v.onMouseLeave)||void 0===t||t.call(v,e)}}))})),D=(0,r(d[2]).styled)(r(d[9]).ThemeableStack,{name:"PopperContent",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",radiused:!0}},size:{"...size":function(e,t){var o=t.tokens;return{padding:o.space[e],borderRadius:o.radius[e]}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),V=x.forwardRef(function(e,n){var s=e.scope,c=e.enableAnimationForPositionChange,f=e.children,p=e.passThrough,h=o(e,u),b=C(s),y=b.strategy,v=b.placement,w=b.refs,P=b.x,S=b.y,O=b.getFloatingProps,R=b.size,A=b.isPositioned,F=(0,r(d[10]).useComposedRefs)(w.setFloating,n),z=x.useState(c),E=t(z,2),L=E[0],T=E[1];(0,r(d[8]).useIsomorphicLayoutEffect)(function(){L&&P&&S&&T(!1)},[L,c,P,S]);var k=0===P&&0===S,M="even-when-repositioning"===c?L:!A||L,_=x.useState(M),W=t(_,2),I=W[0],V=W[1];x.useEffect(function(){V(M)},[M]);var H=Object.assign({ref:F,x:P||0,y:S||0,top:0,left:0,position:y,opacity:1},c&&{animation:h.animation,animateOnly:I?[]:h.animateOnly,animatePresence:!1},k&&{opacity:0,animateOnly:[]}),U=O?O(H):H,$=U.style,B=o(U,l);return(0,j.jsx)(r(d[2]).View,Object.assign({passThrough:p,ref:F,contain:"layout style"},p?null:B,{children:(0,j.jsx)(D,Object.assign({passThrough:p},!p&&Object.assign({"data-placement":v,"data-strategy":y,size:R},$,h),{children:f}),"popper-content-frame")}))}),H=(0,r(d[2]).styled)(r(d[9]).YStack,{name:"PopperArrow",variants:{unstyled:{false:{borderColor:"$borderColor",backgroundColor:"$background",position:"relative"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),U=(0,r(d[2]).styled)(r(d[9]).YStack,{name:"PopperArrowOuter",variants:{unstyled:{false:{position:"absolute",zIndex:1e6,pointerEvents:"none",overflow:"hidden",alignItems:"center",justifyContent:"center"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),$={top:"bottom",right:"left",bottom:"top",left:"right"},B=x.forwardRef(function(e,t){var n,s,u=e.scope,l=o(e,c),p=(0,r(d[2]).useProps)(l),h=(p.offset,p.size),b=p.borderWidth,y=void 0===b?0:b,v=o(p,f),w=C(u),P="number"==typeof h?h:(0,r(d[2]).getVariableValue)((0,r(d[11]).getSpace)(null!=h?h:w.size,{shift:-2,bounds:[2]})),S=Math.max(0,+P),x=w.placement,O=(0,r(d[10]).useComposedRefs)(w.arrowRef,t),R=(null===(n=w.arrowStyle)||void 0===n?void 0:n.x)||0,A=(null===(s=w.arrowStyle)||void 0===s?void 0:s.y)||0,F=x?x.split("-")[0]:"top",z={x:R,y:A,width:S,height:S},E={};if(F){z["bottom"===F||"top"===F?"width":"height"]=2*S;var L=$[F];L&&(z[L]=-S,E[L]=S/2),("top"===L||"bottom"===L)&&(z.left=0),("left"===L||"right"===L)&&(z.top=0),(0,r(d[8]).useIsomorphicLayoutEffect)(function(){var e;null===(e=w.onArrowSize)||void 0===e||e.call(w,S)},[S,w.onArrowSize])}return(0,j.jsx)(U,Object.assign({ref:O},z,{children:(0,j.jsx)(H,Object.assign({width:S,height:S},v,E,{rotate:"45deg"},"bottom"===F&&{borderLeftWidth:y,borderTopWidth:y},"top"===F&&{borderBottomWidth:y,borderRightWidth:y},"right"===F&&{borderLeftWidth:y,borderBottomWidth:y},"left"===F&&{borderTopWidth:y,borderRightWidth:y}))}))})},1040,[19,207,796,258,128,28,1041,920,798,923,860,929]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,p){if(c&&"object"==typeof c||"function"==typeof c){var s=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var O of u(c))s(O)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{FloatingOverrideContext:function(){return r(d[0]).FloatingOverrideContext},arrow:function(){return r(d[1]).arrow},autoPlacement:function(){return r(d[1]).autoPlacement},autoUpdate:function(){return r(d[1]).autoUpdate},detectOverflow:function(){return r(d[1]).detectOverflow},flip:function(){return r(d[1]).flip},hide:function(){return r(d[1]).hide},inline:function(){return r(d[1]).inline},limitShift:function(){return r(d[1]).limitShift},offset:function(){return r(d[1]).offset},platform:function(){return r(d[1]).platform},shift:function(){return r(d[1]).shift},size:function(){return r(d[1]).size},useFloating:function(){return r(d[0]).useFloating}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t))},1041,[1042,1043]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,b=function(t,n,o,f){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!s.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(f=c(n,l))||f.enumerable})};for(var v of l(n))b(v)}return t},v=function(t,n,c){return c=null!=t?o(f(t)):{},b(!n&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)},O={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(O,{FloatingOverrideContext:function(){return j},useFloating:function(){return x}}),m.exports=(t=O,b(u({},"__esModule",{value:!0}),t));var p=v(r(d[1])),y=v(r(d[2])),j=p.default.createContext(null),x=function(t){var o;return null===(o=p.default.useContext(j)||y.useFloating)||void 0===o?void 0:o(Object.assign({},t,{middleware:[].concat(n(t.middleware),[{name:"rounded",fn:function(t){var n=t.x,o=t.y;return{x:Math.round(n),y:Math.round(o)}}}])}))}},1042,[32,128,1043]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==p&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var s of u(c))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{autoUpdate:function(){return l},platform:function(){return b}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(p,r(d[0]),m.exports);var l=function(){},b=null},1043,[1044]); +__d(function(g,r,_i,_a,m,_e,_d){'use strict';var e=r(_d[0]),t=r(_d[1]),n=r(_d[2]);function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if('default'!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=i(t),u={x:0,y:0},f='android'===n.Platform.OS;function c(e){return'measure'in e}var a=function(e){var t=e.offsetParent,i=e.sameScrollView,o=void 0===i||i,a=e.scrollOffsets,s=void 0===a?u:a;return{getElementRects:function(e){var i=e.reference,a=e.floating;return new Promise(function(e){var s=function(t,s){void 0===t&&(t=0),void 0===s&&(s=0),a.measure(function(a,l,d,v){var h=Object.assign({width:d,height:v},u),p=o?'measure':'measureInWindow';if(c(i))i[p](function(i,u,c,a){u=f&&!o&&n.StatusBar.currentHeight?u+n.StatusBar.currentHeight:u,e({reference:{width:c,height:a,x:i-t,y:u-s},floating:h})});else{var b=i.getBoundingClientRect(),O={width:b.width,height:b.height,x:b.x-t,y:b.y-s};e({reference:O,floating:h})}})};t?t.measure(s):s()})},getClippingRect:function(){var e=n.Dimensions.get('window'),t=e.width,i=e.height,c=n.Dimensions.get('screen').height,a=n.StatusBar.currentHeight||0,l=f?c-i-a:0;return Promise.resolve(Object.assign({width:t,height:c-l},o?s:u))},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var n=e.rect;return new Promise(function(e){var i=function(t,i){void 0===t&&(t=0),void 0===i&&(i=0),e(Object.assign({},n,{x:n.x+t,y:n.y+i}))};t?t.measure(i):i()})},getDimensions:function(e){return new Promise(function(t){return e.measure(function(e,n,i,o){return t({width:i,height:o})})})}}};function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if('function'==typeof e&&e.toString()===t.toString())return!0;var n,i,o;if(e&&t&&'object'==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!==i--;)if(!s(e[i],t[i]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!==i--;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!==i--;){var u=o[i];if(('_owner'!==u||!e.$$typeof)&&!s(e[u],t[u]))return!1}return!0}return e!=e&&t!=t}var l={x:0,y:0};var d=function(e){return{name:'arrow',options:e,fn:function(t){var n,i='function'==typeof e?e(t):e,o=i.element,u=i.padding;return o&&(n=o,{}.hasOwnProperty.call(n,'current'))?null!=o.current?r(_d[3]).arrow({element:o.current,padding:u}).fn(t):{}:o?r(_d[3]).arrow({element:o,padding:u}).fn(t):{}}}};Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return r(_d[3]).detectOverflow}}),_e.arrow=function(e,t){return Object.assign({},d(e),{options:[e,t]})},_e.autoPlacement=function(e,t){return Object.assign({},r(_d[3]).autoPlacement(e),{options:[e,t]})},_e.flip=function(e,t){return Object.assign({},r(_d[3]).flip(e),{options:[e,t]})},_e.hide=function(e,t){return Object.assign({},r(_d[3]).hide(e),{options:[e,t]})},_e.inline=function(e,t){return Object.assign({},r(_d[3]).inline(e),{options:[e,t]})},_e.limitShift=function(e,t){return Object.assign({},r(_d[3]).limitShift(e),{options:[e,t]})},_e.offset=function(e,t){return Object.assign({},r(_d[3]).offset(e),{options:[e,t]})},_e.shift=function(e,t){return Object.assign({},r(_d[3]).shift(e),{options:[e,t]})},_e.size=function(e,t){return Object.assign({},r(_d[3]).size(e),{options:[e,t]})},_e.useFloating=function(t){void 0===t&&(t={});var n=t,i=n.placement,u=void 0===i?'bottom':i,f=n.middleware,c=void 0===f?[]:f,d=n.sameScrollView,v=void 0===d||d,h=n.elements,p=(h=void 0===h?{}:h).reference,b=h.floating,O=h.offsetParent,w=o.useState(null),y=e(w,2),j=y[0],P=y[1],S=o.useState(null),R=e(S,2),x=R[0],k=R[1],C=o.useState(null),E=e(C,2),D=E[0],M=E[1],A=p||j,B=b||x,F=O||D,V=o.useCallback(function(e){e!==_.current&&(_.current=e,P(e))},[]),z=o.useCallback(function(e){e!==L.current&&(L.current=e,k(e))},[]),H=o.useCallback(function(e){e!==T.current&&(T.current=e,M(e))},[]),_=o.useRef(null),L=o.useRef(null),T=o.useRef(null),$=o.useState({x:0,y:0,placement:u,strategy:'absolute',middlewareData:{}}),q=e($,2),I=q[0],W=q[1],G=o.useState(l),J=e(G,2),K=J[0],N=J[1],Q=o.useState(c),U=e(Q,2),X=U[0],Y=U[1];s(X,c)||Y(c);var Z=o.useMemo(function(){return a({offsetParent:F,scrollOffsets:K,sameScrollView:v})},[F,K,v]),ee=o.useCallback(function(){_.current&&L.current&&r(_d[3]).computePosition(_.current,L.current,{middleware:X,platform:Z,placement:u}).then(function(e){te.current&&W(e)})},[X,Z,u]);o.useLayoutEffect(function(){A&&(_.current=A),B&&(L.current=B),F&&(T.current=F);var e=requestAnimationFrame(ee);return function(){cancelAnimationFrame(e)}},[A,B,F,ee]);var te=o.useRef(!0);o.useLayoutEffect(function(){return te.current=!0,function(){te.current=!1}},[]);var ne=o.useMemo(function(){return{reference:_,floating:L,offsetParent:T,setReference:V,setFloating:z,setOffsetParent:H}},[V,z,H]),re=o.useMemo(function(){return{reference:A,floating:B,offsetParent:F}},[A,B,F]),ie=o.useMemo(function(){return re.floating?{position:'absolute',left:I.x,top:I.y}:{position:'absolute',left:0,top:0}},[re.floating,I.x,I.y]);return o.useMemo(function(){return Object.assign({},I,{update:ee,refs:ne,elements:re,floatingStyles:ie,offsetParent:H,reference:V,floating:z,scrollProps:{onScroll:function(e){return N(e.nativeEvent.contentOffset)},scrollEventThrottle:16}})},[I,ne,re,ie,V,z,H,ee])}},1044,[19,128,28,1045]); +__d(function(g,r,_i,_a,m,e,_d){var t,n,i=r(_d[0]),o=r(_d[1]),a=r(_d[2]),l=r(_d[3]),f=["crossAxis","alignment","allowedPlacements","autoAlignment"],c=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],s=["strategy"],u=["mainAxis","crossAxis","limiter"],d=["apply"];t=this,n=function(t){'use strict';var n=['top','right','bottom','left'],p=['start','end'],v=n.reduce(function(t,n){return t.concat(n,n+"-"+p[0],n+"-"+p[1])},[]),h=Math.min,y=Math.max,x={left:'right',right:'left',bottom:'top',top:'bottom'},b={start:'end',end:'start'};function w(t,n,i){return y(t,h(n,i))}function A(t,n){return'function'==typeof t?t(n):t}function R(t){return t.split('-')[0]}function O(t){return t.split('-')[1]}function P(t){return'x'===t?'y':'x'}function D(t){return'y'===t?'height':'width'}var T=new Set(['top','bottom']);function j(t){return T.has(R(t))?'y':'x'}function k(t){return P(j(t))}function E(t,n,i){void 0===i&&(i=!1);var o=O(t),a=k(t),l=D(a),f='x'===a?o===(i?'end':'start')?'right':'left':'start'===o?'bottom':'top';return n.reference[l]>n.floating[l]&&(f=V(f)),[f,V(f)]}function L(t){var n=V(t);return[S(t),n,S(n)]}function S(t){return t.replace(/start|end/g,function(t){return b[t]})}var C=['left','right'],B=['right','left'],H=['top','bottom'],F=['bottom','top'];function z(t,n,i){switch(t){case'top':case'bottom':return i?n?B:C:n?C:B;case'left':case'right':return n?H:F;default:return[]}}function M(t,n,i,o){var a=O(t),l=z(R(t),'start'===i,o);return a&&(l=l.map(function(t){return t+"-"+a}),n&&(l=l.concat(l.map(S)))),l}function V(t){return t.replace(/left|right|bottom|top/g,function(t){return x[t]})}function W(t){return Object.assign({top:0,right:0,bottom:0,left:0},t)}function _(t){return'number'!=typeof t?W(t):{top:t,right:t,bottom:t,left:t}}function I(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{width:o,height:a,top:i,left:n,right:n+o,bottom:i+a,x:n,y:i}}function U(t,n,i){var o,a=t.reference,l=t.floating,f=j(n),c=k(n),s=D(c),u=R(n),d='y'===f,p=a.x+a.width/2-l.width/2,v=a.y+a.height/2-l.height/2,h=a[s]/2-l[s]/2;switch(u){case'top':o={x:p,y:a.y-l.height};break;case'bottom':o={x:p,y:a.y+a.height};break;case'right':o={x:a.x+a.width,y:v};break;case'left':o={x:a.x-l.width,y:v};break;default:o={x:a.x,y:a.y}}switch(O(n)){case'start':o[c]-=h*(i&&d?-1:1);break;case'end':o[c]+=h*(i&&d?-1:1)}return o}var q=(function(){var t=l(function*(t,n,i){for(var o=i.placement,l=void 0===o?'bottom':o,f=i.strategy,c=void 0===f?'absolute':f,s=i.middleware,u=void 0===s?[]:s,d=i.platform,p=u.filter(Boolean),v=yield null==d.isRTL?void 0:d.isRTL(n),h=yield d.getElementRects({reference:t,floating:n,strategy:c}),y=U(h,l,v),x=y.x,b=y.y,w=l,A={},R=0,O=0;O=0})}function X(t){var n=h.apply(void 0,o(t.map(function(t){return t.left}))),i=h.apply(void 0,o(t.map(function(t){return t.top})));return{x:n,y:i,width:y.apply(void 0,o(t.map(function(t){return t.right})))-n,height:y.apply(void 0,o(t.map(function(t){return t.bottom})))-i}}function Y(t){for(var n=t.slice().sort(function(t,n){return t.y-n.y}),i=[],o=null,a=0;ao.height/2?i.push([l]):i[i.length-1].push(l),o=l}return i.map(function(t){return I(X(t))})}var Z=new Set(['left','top']);function $(t,n){return tt.apply(this,arguments)}function tt(){return(tt=l(function*(t,n){var i=t.placement,o=t.platform,a=t.elements,l=yield null==o.isRTL?void 0:o.isRTL(a.floating),f=R(i),c=O(i),s='y'===j(i),u=Z.has(f)?-1:1,d=l&&s?-1:1,p=A(n,t),v='number'==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis},h=v.mainAxis,y=v.crossAxis,x=v.alignmentAxis;return c&&'number'==typeof x&&(y='end'===c?-1*x:x),s?{x:y*d,y:h*u}:{x:h*u,y:y*d}})).apply(this,arguments)}t.arrow=function(t){return{name:'arrow',options:t,fn:(n=l(function*(n){var i=n.x,o=n.y,l=n.placement,f=n.rects,c=n.platform,s=n.elements,u=n.middlewareData,d=A(t,n)||{},p=d.element,v=d.padding;if(null==p)return{};var y=_(void 0===v?0:v),x={x:i,y:o},b=k(l),R=D(b),P=yield c.getDimensions(p),T='y'===b,j=T?'top':'left',E=T?'bottom':'right',L=T?'clientHeight':'clientWidth',S=f.reference[R]+f.reference[b]-x[b]-f.floating[R],C=x[b]-f.reference[b],B=yield null==c.getOffsetParent?void 0:c.getOffsetParent(p),H=B?B[L]:0;H&&(yield null==c.isElement?void 0:c.isElement(B))||(H=s.floating[L]||f.floating[R]);var F=S/2-C/2,z=H/2-P[R]/2-1,M=h(y[j],z),V=h(y[E],z),W=M,I=H-P[R]-V,U=H/2-P[R]/2+F,q=w(W,U,I),G=!u.arrow&&null!=O(l)&&U!==q&&f.reference[R]/2-(U0})))return{data:{index:Y,overflows:K},reset:{placement:Z}};var $=null==(X=K.filter(function(t){return t.overflows[0]<=0}).sort(function(t,n){return t.overflows[1]-n.overflows[1]})[0])?void 0:X.placement;if(!$)switch(D){case'bestFit':var tt,et=null==(tt=K.filter(function(t){if(I){var n=j(t.placement);return n===F||'y'===n}return!0}).map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0}).reduce(function(t,n){return t+n},0)]}).sort(function(t,n){return t[1]-n[1]})[0])?void 0:tt[0];et&&($=et);break;case'initialPlacement':$=d}if(f!==$)return{reset:{placement:$}}}return{}}),function(t){return n.apply(this,arguments)})};var n},t.hide=function(t){return void 0===t&&(t={}),{name:'hide',options:t,fn:(n=l(function*(n){var o=n.rects,a=A(t,n),l=a.strategy,f=void 0===l?'referenceHidden':l,c=i(a,s);switch(f){case'referenceHidden':var u=N(yield G(n,Object.assign({},c,{elementContext:'reference'})),o.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Q(u)}};case'escaped':var d=N(yield G(n,Object.assign({},c,{altBoundary:!0})),o.floating);return{data:{escapedOffsets:d,escaped:Q(d)}};default:return{}}}),function(t){return n.apply(this,arguments)})};var n},t.inline=function(t){return void 0===t&&(t={}),{name:'inline',options:t,fn:(n=l(function*(n){var i=n.placement,a=n.elements,l=n.rects,f=n.platform,c=n.strategy,s=A(t,n),u=s.padding,d=void 0===u?2:u,p=s.x,v=s.y,x=Array.from((yield null==f.getClientRects?void 0:f.getClientRects(a.reference))||[]),b=Y(x),w=I(X(x)),O=_(d),P=yield f.getElementRects({reference:{getBoundingClientRect:function(){if(2===b.length&&b[0].left>b[1].right&&null!=p&&null!=v)return b.find(function(t){return p>t.left-O.left&&pt.top-O.top&&v=2){if('y'===j(i)){var t=b[0],n=b[b.length-1],a='top'===R(i),l=t.top,f=n.bottom,c=a?t.left:n.left,s=a?t.right:n.right;return{top:l,bottom:f,left:c,right:s,width:s-c,height:f-l,x:c,y:l}}var u='left'===R(i),d=y.apply(void 0,o(b.map(function(t){return t.right}))),x=h.apply(void 0,o(b.map(function(t){return t.left}))),A=b.filter(function(t){return u?t.left===x:t.right===d}),P=A[0].top,D=A[A.length-1].bottom;return{top:P,bottom:D,left:x,right:d,width:d-x,height:D-P,x:x,y:P}}return w}},floating:a.floating,strategy:c});return l.reference.x!==P.reference.x||l.reference.y!==P.reference.y||l.reference.width!==P.reference.width||l.reference.height!==P.reference.height?{reset:{rects:P}}:{}}),function(t){return n.apply(this,arguments)})};var n},t.limitShift=function(t){return void 0===t&&(t={}),{options:t,fn:function(n){var i=n.x,o=n.y,l=n.placement,f=n.rects,c=n.middlewareData,s=A(t,n),u=s.offset,d=void 0===u?0:u,p=s.mainAxis,v=void 0===p||p,h=s.crossAxis,y=void 0===h||h,x={x:i,y:o},b=j(l),w=P(b),O=x[w],D=x[b],T=A(d,n),k='number'==typeof T?{mainAxis:T,crossAxis:0}:Object.assign({mainAxis:0,crossAxis:0},T);if(v){var E='y'===w?'height':'width',L=f.reference[w]-f.floating[E]+k.mainAxis,S=f.reference[w]+f.reference[E]-k.mainAxis;OS&&(O=S)}if(y){var C,B,H='y'===w?'width':'height',F=Z.has(R(l)),z=f.reference[b]-f.floating[H]+(F&&(null==(C=c.offset)?void 0:C[b])||0)+(F?0:k.crossAxis),M=f.reference[b]+f.reference[H]+(F?0:(null==(B=c.offset)?void 0:B[b])||0)-(F?k.crossAxis:0);DM&&(D=M)}return a(a({},w,O),b,D)}}},t.offset=function(t){return void 0===t&&(t=0),{name:'offset',options:t,fn:(n=l(function*(n){var i,o,a=n.x,l=n.y,f=n.placement,c=n.middlewareData,s=yield $(n,t);return f===(null==(i=c.offset)?void 0:i.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:a+s.x,y:l+s.y,data:Object.assign({},s,{placement:f})}}),function(t){return n.apply(this,arguments)})};var n},t.rectToClientRect=I,t.shift=function(t){return void 0===t&&(t={}),{name:'shift',options:t,fn:(n=l(function*(n){var o=n.x,l=n.y,f=n.placement,c=A(t,n),s=c.mainAxis,d=void 0===s||s,p=c.crossAxis,v=void 0!==p&&p,h=c.limiter,y=void 0===h?{fn:function(t){return{x:t.x,y:t.y}}}:h,x=i(c,u),b={x:o,y:l},O=yield G(n,x),D=j(R(f)),T=P(D),k=b[T],E=b[D];if(d){var L='y'===T?'bottom':'right';k=w(k+O['y'===T?'top':'left'],k,k-O[L])}if(v){var S='y'===D?'bottom':'right';E=w(E+O['y'===D?'top':'left'],E,E-O[S])}var C=y.fn(Object.assign({},n,a(a({},T,k),D,E)));return Object.assign({},C,{data:{x:C.x-o,y:C.y-l,enabled:a(a({},T,d),D,v)}})}),function(t){return n.apply(this,arguments)})};var n},t.size=function(t){return void 0===t&&(t={}),{name:'size',options:t,fn:(n=l(function*(n){var o,a,l,f,c=n.placement,s=n.rects,u=n.platform,p=n.elements,v=A(t,n),x=v.apply,b=void 0===x?function(){}:x,w=i(v,d),P=yield G(n,w),D=R(c),T=O(c),k='y'===j(c),E=s.floating,L=E.width,S=E.height;'top'===D||'bottom'===D?(l=D,f=T===((yield null==u.isRTL?void 0:u.isRTL(p.floating))?'start':'end')?'left':'right'):(f=D,l='end'===T?'top':'bottom');var C=S-P.top-P.bottom,B=L-P.left-P.right,H=h(S-P[l],C),F=h(L-P[f],B),z=!n.middlewareData.shift,M=H,V=F;if(null!=(o=n.middlewareData.shift)&&o.enabled.x&&(V=B),null!=(a=n.middlewareData.shift)&&a.enabled.y&&(M=C),z&&!T){var W=y(P.left,0),_=y(P.right,0),I=y(P.top,0),U=y(P.bottom,0);k?V=L-2*(0!==W||0!==_?W+_:y(P.left,P.right)):M=S-2*(0!==I||0!==U?I+U:y(P.top,P.bottom))}yield b(Object.assign({},n,{availableWidth:V,availableHeight:M}));var q=yield u.getDimensions(p.floating);return L!==q.width||S!==q.height?{reset:{rects:!0}}:{}}),function(t){return n.apply(this,arguments)})};var n}},'object'==typeof e&&void 0!==m?n(e):'function'==typeof define&&define.amd?define(['exports'],n):n((t='undefined'!=typeof globalThis?globalThis:t||self).FloatingUICore={})},1045,[207,32,18,367]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1046,[1047]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),s=["children","lazyMount","type","present","passThrough"],c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,f=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var f=function(l){!p.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(s=u(n,l))||s.enumerable})};for(var h of l(n))f(h)}return t},h={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(h,{Animate:function(){return j}}),m.exports=(t=h,f(c({},"__esModule",{value:!0}),t));var y=r(d[2]),b=r(d[3]);function j(t){var c=t.children,u=t.lazyMount,l=t.type,p=t.present,f=t.passThrough,h=o(t,s),j=(0,b.useState)(!u&&p),x=n(j,2),v=x[0],O=x[1];(0,b.useEffect)(function(){f||u&&p&&(0,b.startTransition)(function(){O(p)})},[u,p]);var P=!!p&&(u?v:p);return"presence"===l?h.keepChildrenMounted?(0,y.jsx)(r(d[4]).PresenceChild,Object.assign({isPresent:!0},!f&&{initial:!!h.initial&&void 0,onExitComplete:h.onExitComplete,enterVariant:h.enterVariant,exitVariant:h.exitVariant,enterExitVariant:h.enterExitVariant,presenceAffectsLayout:!1,isPresent:p,custom:h.custom},{children:c})):(0,y.jsx)(r(d[4]).AnimatePresence,Object.assign({passThrough:f},h,{children:P||f?c:null})):(0,y.jsx)(y.Fragment,{children:c})}},1047,[19,207,258,128,934]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var s of c(n))p(s)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{useFloatingContext:function(){return O}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(){return s.default.useCallback(function(){},[])}},1048,[128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1049,[1050]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeProgress","animation"],u=["__scopeProgress","value","max","getValueLabel","size"],s=Object.create,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!b.call(e,u)&&u!==n&&l(e,u,{get:function(){return t[u]},enumerable:!(o=c(t,u))||o.enumerable})};for(var s of v(t))u(s)}return e},y={};!(function(e,t){for(var n in t)l(e,n,{get:t[n],enumerable:!0})})(y,{Progress:function(){return G},ProgressFrame:function(){return F},ProgressIndicator:function(){return L},ProgressIndicatorFrame:function(){return I},createProgressScope:function(){return j}}),m.exports=(e=y,p(l({},"__esModule",{value:!0}),e));var h=r(d[2]),P=(function(e,t,n){return n=null!=e?s(f(e)):{},p(!t&&e&&e.__esModule?n:l(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),w="Progress",x=(0,r(d[4]).createContextScope)(w),_=n(x,2),O=_[0],j=_[1],S=O(w),V=n(S,2),N=V[0],z=V[1],A="ProgressIndicator",I=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:A,variants:{unstyled:{false:{height:"100%",width:"100%",backgrounded:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),L=I.styleable(function(e,n){var u,s,l=e.__scopeProgress,c=e.animation,v=t(e,o),f=z(A,l),b=f.max-(null!==(u=f.value)&&void 0!==u?u:0),p=-(0===f.width?300:f.width)*(b/100);return(0,h.jsx)(I,Object.assign({"data-state":E(f.value,f.max),"data-value":null!==(s=f.value)&&void 0!==s?s:void 0,"data-max":f.max,x:p,width:f.width},!e.unstyled&&{animateOnly:["transform"],opacity:0===f.width?0:1},v,{ref:n,animation:f.width?c:null}))});function M(e,t){return`${Math.round(e/t*100)}%`}function E(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function k(e){return"number"==typeof e}function T(e){return k(e)&&!Number.isNaN(e)&&e>0}function D(e,t){return k(e)&&!Number.isNaN(e)&&e<=t&&e>=0}var F=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:"Progress",variants:{unstyled:{false:{borderRadius:1e5,overflow:"hidden",backgrounded:!0}},size:{"...size":function(e){var t=Math.round(.25*(0,r(d[5]).getVariableValue)((0,r(d[7]).getSize)(e)));return{height:t,minWidth:20*(0,r(d[5]).getVariableValue)(t),width:"100%"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),G=(0,r(d[8]).withStaticProperties)(F.styleable(function(e,o){var s=e.__scopeProgress,l=e.value,c=e.max,v=e.getValueLabel,f=void 0===v?M:v,b=e.size,p=void 0===b?"$true":b,y=t(e,u),w=T(c)?c:100,x=D(l,w)?l:null,_=k(x)?f(x,w):void 0,O=P.useState(0),j=n(O,2),S=j[0],V=j[1];return(0,h.jsx)(N,{scope:s,value:x,max:w,width:S,children:(0,h.jsx)(F,Object.assign({"aria-valuemax":w,"aria-valuemin":0,"aria-valuenow":k(x)?x:void 0,"aria-valuetext":_,role:"progressbar","data-state":E(x,w),"data-value":null!=x?x:void 0,"data-max":w},!0!==y.unstyled&&{size:p},y,{onLayout:function(e){var t;V(e.nativeEvent.layout.width),null===(t=y.onLayout)||void 0===t||t.call(y,e)},ref:o}))})}),{Indicator:L})},1050,[207,19,258,128,971,796,923,929,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=function(t,p,f,s){if(p&&"object"==typeof p||"function"==typeof p){var l=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return p[u]},enumerable:!(s=n(p,u))||s.enumerable})};for(var b of u(p))l(b)}return t},f=function(t,o,n){return p(t,o,"default"),n&&p(n,o,"default")},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{RadioGroup:function(){return l}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports);var l=(0,r(d[0]).createRadioGroup)({Frame:r(d[1]).RadioGroupFrame,Indicator:r(d[1]).RadioGroupIndicatorFrame,Item:r(d[1]).RadioGroupItemFrame})},1051,[1052,1053,1060]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=["value","defaultValue","onValueChange","required","disabled","name","native","accentColor","orientation"],u=["value","labelledBy","onPress","onKeyDown","disabled","id"],l=["forceMount","disabled"],c=["checked"],s=Object.create,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,f=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,y=function(o,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var l=function(l){!j.call(o,l)&&l!==n&&v(o,l,{get:function(){return t[l]},enumerable:!(u=b(t,l))||u.enumerable})};for(var c of p(t))l(c)}return o},G={};!(function(o,t){for(var n in t)v(o,n,{get:t[n],enumerable:!0})})(G,{createRadioGroup:function(){return F}}),m.exports=(o=G,y(v({},"__esModule",{value:!0}),o));var x=r(d[1]),I=(function(o,t,n){return n=null!=o?s(f(o)):{},y(!t&&o&&o.__esModule?n:v(n,"default",{value:o,enumerable:!0}),o)})(r(d[2])),O=function(o){o.context||(o.context=h)},h=I.default.createContext({}),R=I.default.createContext({checked:!1,disabled:!1});function F(o){o.disableActiveTheme;var s=o.Frame,v=void 0===s?r(d[3]).RadioGroupFrame:s,b=o.Indicator,p=void 0===b?r(d[3]).RadioGroupIndicatorFrame:b,f=o.Item,j=void 0===f?r(d[3]).RadioGroupItemFrame:f;O(v),O(p),O(j);var y=v.styleable(function(o,u){var l=o.value,c=o.defaultValue,s=o.onValueChange,v=o.required,b=void 0!==v&&v,p=o.disabled,f=void 0!==p&&p,j=o.name,y=o.native,G=o.accentColor,I=o.orientation,O=void 0===I?"vertical":I,R=t(o,n),F=(0,r(d[4]).useRadioGroup)({orientation:O,name:j,defaultValue:c,value:l,onValueChange:s,required:b,disabled:f,native:y,accentColor:G}),C=F.providerValue,P=F.frameAttrs,V=F.rovingFocusGroupAttrs;return(0,x.jsx)(h.Provider,{value:C,children:(0,x.jsx)(r(d[5]).RovingFocusGroup,Object.assign({},V,{children:(0,x.jsx)(r(d[3]).RadioGroupFrame,Object.assign({},P,{ref:u},R))}))})}),G=j.styleable(function(o,n){var l=o.value,c=o.labelledBy,s=o.onPress,v=o.onKeyDown,b=o.disabled,p=o.id,f=t(o,u),j=(0,r(d[4]).useRadioGroupItem)({radioGroupContext:h,value:l,id:p,labelledBy:c,disabled:b,onPress:s,onKeyDown:v}),y=j.providerValue,G=j.bubbleInput,I=j.rovingFocusGroupAttrs,O=j.frameAttrs,F=j.isFormControl,C=j.native;return(0,x.jsx)(R.Provider,{value:y,children:r(d[6]).isWeb&&C?G:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r(d[5]).RovingFocusGroup.Item,Object.assign({},I,{children:(0,x.jsx)(r(d[3]).RadioGroupItemFrame,Object.assign({},O,{ref:n},f))})),F&&G]})})});G.displayName="RadioGroupItem";var I=p.styleable(function(o,n){var u=o.forceMount,s=o.disabled,v=t(o,l),b=(0,r(d[4]).useRadioGroupItemIndicator)({radioGroupItemContext:R,disabled:s}),f=b.checked,j=t(b,c);return u||f?(0,x.jsx)(p,Object.assign({},j,{ref:n},v)):null});I.displayName="RadioIndicator";var F=(0,r(d[6]).withStaticProperties)(y,{Item:G,Indicator:I});return F.displayName="RadioGroup",F}},1052,[207,258,128,1053,1054,1058,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(o,c,s,b){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!u.call(o,l)&&l!==s&&t(o,l,{get:function(){return c[l]},enumerable:!(b=n(c,l))||b.enumerable})};for(var p of l(c))f(p)}return o},s={};!(function(o,n){for(var l in n)t(o,l,{get:n[l],enumerable:!0})})(s,{RadioGroupFrame:function(){return p},RadioGroupIndicatorFrame:function(){return f},RadioGroupItemFrame:function(){return b}}),m.exports=(o=s,c(t({},"__esModule",{value:!0}),o));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroupItem",tag:"button",variants:{unstyled:{false:{size:"$true",borderRadius:1e3,backgroundColor:"$background",alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:"$borderColor",padding:0,hoverStyle:{borderColor:"$borderColorHover",backgroundColor:"$backgroundHover"},focusStyle:{borderColor:"$borderColorHover",backgroundColor:"$backgroundHover"},focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},pressStyle:{borderColor:"$borderColorFocus",backgroundColor:"$backgroundFocus"}}},disabled:{true:{pointerEvents:"none",userSelect:"none",cursor:"not-allowed",hoverStyle:{borderColor:"$borderColor",backgroundColor:"$background"},pressStyle:{borderColor:"$borderColor",backgroundColor:"$background"},focusVisibleStyle:{outlineWidth:0}}},size:{"...size":function(o,t){var n,l=t.props,u=Math.floor((0,r(d[0]).getVariableValue)((0,r(d[2]).getSize)(o))*(null!==(n=l.scaleSize)&&void 0!==n?n:.5));return{width:u,height:u}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroupIndicator",variants:{unstyled:{false:{width:"33%",height:"33%",borderRadius:1e3,backgroundColor:"$color",pressTheme:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroup",variants:{orientation:{horizontal:{flexDirection:"row",spaceDirection:"horizontal"},vertical:{flexDirection:"column",spaceDirection:"vertical"}}}})},1053,[796,923,929]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1054,[1055,1057]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["radioGroupItemContext","disabled"],c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!f.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=s(n,l))||u.enumerable})};for(var p of l(n))b(p)}return t},p={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(p,{useRadioGroup:function(){return C},useRadioGroupItem:function(){return k},useRadioGroupItemIndicator:function(){return w}}),m.exports=(t=p,b(c({},"__esModule",{value:!0}),t));var v=r(d[2]),y=r(d[3]);function C(t){var n=t.value,u=t.onValueChange,c=t.defaultValue,s=t.required,l=t.disabled,f=t.name,b=t.native,p=t.accentColor,v=t.orientation,y=(t.ref,(0,r(d[4]).useControllableState)({prop:n,defaultProp:c,onChange:u})),C=o(y,2);return{providerValue:{value:C[0],onChange:C[1],required:s,disabled:l,name:f,native:b,accentColor:p},frameAttrs:{role:"radiogroup","aria-orientation":v,"data-disabled":l?"":void 0},rovingFocusGroupAttrs:{orientation:v,loop:!0}}}var h=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],k=function(t){var n=t.radioGroupContext,u=t.value,c=t.labelledBy,s=t.disabled,l=t.ref,f=t.id,b=t.onPress,p=t.onKeyDown,C=t.onFocus,k=(0,y.useContext)(n),w=k.value,E=k.disabled,O=k.required,j=k.onChange,x=k.name,A=k.native,P=k.accentColor,G=(0,y.useState)(null),R=o(G,2),I=R[0],F=R[1],L=(0,y.useRef)(!1),S=(0,y.useRef)(null),q=(0,r(d[5]).useComposedRefs)(l,function(t){return F(t)},S),D=(0,y.useRef)(!1),W=!!r(d[6]).isWeb&&(!I||!!I.closest("form")),H=w===u,V=(0,r(d[7]).useLabelContext)(I),_=c||V;(0,y.useEffect)(function(){if(r(d[6]).isWeb){var t=function(t){h.includes(t.key)&&(D.current=!0)},n=function(){D.current=!1};return document.addEventListener("keydown",t),document.addEventListener("keyup",n),function(){document.removeEventListener("keydown",t),document.removeEventListener("keyup",n)}}},[]),(0,y.useEffect)(function(){if(f&&!E)return(0,r(d[8]).registerFocusable)(f,{focusAndSelect:function(){null==j||j(u)},focus:function(){}})},[f,u,E]);var B=E||s;return{providerValue:{checked:H},checked:H,isFormControl:W,bubbleInput:(0,v.jsx)(r(d[9]).BubbleInput,Object.assign({isHidden:!A,control:I,bubbles:!L.current,name:x,value:u,checked:H,required:O,disabled:B},r(d[6]).isWeb&&A&&{accentColor:P,id:f})),native:A,frameAttrs:Object.assign({"data-state":(0,r(d[10]).getState)(H),"data-disabled":B?"":void 0,role:"radio","aria-labelledby":_,"aria-checked":H,"aria-required":O,disabled:B,ref:q},r(d[6]).isWeb&&{type:"button",value:u},{id:f,onPress:(0,r(d[11]).composeEventHandlers)(b,function(t){H||null==j||j(u),W&&(L.current=t.isPropagationStopped(),L.current||t.stopPropagation())})},r(d[6]).isWeb&&{onKeyDown:(0,r(d[11]).composeEventHandlers)(p,function(t){"Enter"===t.key&&t.preventDefault()}),onFocus:(0,r(d[11]).composeEventHandlers)(C,function(){var t;D.current&&(null===(t=S.current)||void 0===t||t.click())})}),rovingFocusGroupAttrs:{asChild:"expect-style",focusable:!B,active:H}}};function w(t){var o=t.radioGroupItemContext,c=t.disabled,s=n(t,u),l=(0,y.useContext)(o).checked;return Object.assign({checked:l,"data-state":(0,r(d[10]).getState)(l),"data-disabled":c?"":void 0},s)}},1055,[207,19,258,128,918,860,798,1020,1022,1056,1057,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["checked","bubbles","control","isHidden","accentColor"],c=Object.create,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var b=function(s){!f.call(t,s)&&s!==o&&u(t,s,{get:function(){return n[s]},enumerable:!(c=l(n,s))||c.enumerable})};for(var p of s(n))b(p)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{BubbleInput:function(){return j}}),m.exports=(t=v,p(u({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,o){return o=null!=t?c(b(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),j=function(t){var c=t.checked,u=t.bubbles,l=void 0===u||u,s=(t.control,t.isHidden),b=t.accentColor,f=n(t,o),p=O.default.useRef(null),v=(0,r(d[3]).usePrevious)(c);return O.default.useEffect(function(){var t=p.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"checked").set;if(v!==c&&o){var u=new Event("click",{bubbles:l});o.call(t,c),t.dispatchEvent(u)}},[v,c,l]),(0,y.jsx)("input",Object.assign({type:"radio",defaultChecked:c},f,{tabIndex:-1,ref:p,"aria-hidden":s,style:Object.assign({},s?{position:"absolute",pointerEvents:"none",opacity:0,margin:0}:{appearance:"auto",accentColor:b},t.style)}))}},1056,[207,258,128,1028]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))l(s)}return t},p={};function b(t){return t?"checked":"unchecked"}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{getState:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1057,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1058,[1059]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],u=["children"],c=Object.create,f=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&f(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var p of s(n))c(p)}return t},O={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(O,{RovingFocusGroup:function(){return w},createRovingFocusGroupScope:function(){return P}}),m.exports=(t=O,b(f({},"__esModule",{value:!0}),t));var j=r(d[1]),y=(function(t,n,o){return o=null!=t?c(p(t)):{},b(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),h=y.default.forwardRef(function(t,u){var c=t.children,f=n(t,o);return(0,j.jsx)(r(d[3]).Stack,Object.assign({},f,{children:c}))});h.displayName="RovingFocusGroupItem";var w=(0,r(d[4]).withStaticProperties)(y.default.forwardRef(function(t,o){var c=t.children,f=n(t,u);return(0,j.jsx)(r(d[3]).Stack,Object.assign({},f,{children:c}))}),{Item:h});w.displayName="RovingFocusGroup";var P=function(){return function(){return{}}}},1059,[207,258,128,796,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var y of u(f))s(y)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{RadioGroupStyledContext:function(){return l}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).createStyledContext)({size:"$true",scaleIcon:1},"RadioGroup")},1060,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1061,[1062,1063]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["scope","children","placeholder"],c=["scope"],u=["scope"],s=["scope"],p=Object.create,f=Object.defineProperty,S=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,h=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,C=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!b.call(t,c)&&c!==o&&f(t,c,{get:function(){return n[c]},enumerable:!(l=S(n,c))||l.enumerable})};for(var u of v(n))c(u)}return t},x={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(x,{Select:function(){return M},SelectGroupFrame:function(){return T},SelectIcon:function(){return R},SelectSeparator:function(){return F}}),m.exports=(t=x,C(f({},"__esModule",{value:!0}),t));var I=r(d[2]),y=(function(t,n,o){return o=null!=t?p(h(t)):{},C(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),j=(0,r(d[4]).styled)(r(d[5]).SizableText,{name:"SelectValue",userSelect:"none"}),O=j.styleable(function(t,n){var c=t.scope,u=t.children,s=t.placeholder,p=o(t,l),f=(0,r(d[6]).useSelectContext)(c),S=(0,r(d[6]).useSelectItemParentContext)(c),v=(0,r(d[7]).useComposedRefs)(n,f.onValueNodeChange),h=null!=u?u:f.selectedItem,b=(null==f.value||""===f.value)&&null!=s?s:h;return(0,I.jsx)(j,Object.assign({},!p.unstyled&&{size:S.size,ellipse:!0,pointerEvents:"none"},{ref:v},p,{children:P(b)}))});function P(t){return y.Children.map(t,function(t){if(t){var n,o,l;if((null===(o=t.type)||void 0===o||null===(n=o.staticConfig)||void 0===n?void 0:n.componentName)===r(d[8]).ITEM_TEXT_NAME)return t.props.children;if(null!==(l=t.props)&&void 0!==l&&l.children)return P(t.props.children)}return t})}var R=(0,r(d[4]).styled)(r(d[9]).XStack,{name:"SelectIcon","aria-hidden":!0,children:(0,I.jsx)(r(d[5]).Paragraph,{children:"\u25bc"})}),w=(0,r(d[4]).styled)(r(d[9]).XStack,{name:"SelectItemIndicator"}),A=y.forwardRef(function(t,n){var l=t.scope,u=o(t,c),s=(0,r(d[6]).useSelectItemParentContext)(l),p=(0,r(d[10]).useSelectItemContext)(l);return s.shouldRenderWebNative?null:p.isSelected?(0,I.jsx)(w,Object.assign({"aria-hidden":!0},u,{ref:n})):null}),N="SelectGroup",z=(0,r(d[4]).createStyledContext)({id:""},"SelectGroup"),k=z.Provider,V=z.useStyledContext,T=(0,r(d[4]).styled)(r(d[9]).YStack,{name:N,width:"100%"}),E=(0,r(d[4]).styled)(r(d[5]).SizableText,{tag:"select",backgroundColor:"$background",borderColor:"$borderColor",hoverStyle:{backgroundColor:"$backgroundHover"}}),W=(0,r(d[4]).styled)(r(d[9]).ThemeableStack,{name:"NativeSelect",bordered:!0,userSelect:"none",outlineWidth:0,paddingRight:10,variants:{size:{"...size":function(t,n){var o,l=n.tokens,c=(0,r(d[4]).getVariableValue)(l.space[t]);return{borderRadius:null!==(o=l.radius[t])&&void 0!==o?o:t,minHeight:l.size[t],paddingRight:c+20,paddingLeft:c,paddingVertical:(0,r(d[11]).getSpace)(t,{shift:-3})}}}},defaultVariants:{size:"$2"}}),_=y.forwardRef(function(t,n){var l,c=t.scope,s=o(t,u),p=y.useId(),f=(0,r(d[6]).useSelectContext)(c),S=(0,r(d[6]).useSelectItemParentContext)(c),v=null!==(l=S.size)&&void 0!==l?l:"$true",h=y.useRef(null),b=S.shouldRenderWebNative?(0,I.jsx)(W,{asChild:!0,size:v,value:f.value,id:S.id,children:(0,I.jsx)(E,{onChange:function(t){S.onChange(t.currentTarget.value)},size:v,ref:h,style:{color:"var(--color)",appearance:"none"},children:t.children})}):(0,I.jsx)(T,Object.assign({role:"group","aria-labelledby":p},s,{ref:n}));return(0,I.jsx)(k,{scope:c,id:p||"",children:b})});_.displayName=N;var $="SelectLabel",B=y.forwardRef(function(t,n){var l=t.scope,c=o(t,s),u=(0,r(d[6]).useSelectItemParentContext)(l),p=V(l);return u.shouldRenderWebNative?null:(0,I.jsx)(r(d[12]).ListItem,Object.assign({tag:"div",componentName:$,fontWeight:"800",id:p.id,size:u.size},c,{ref:n}))});B.displayName=$;var F=(0,r(d[4]).styled)(r(d[13]).Separator,{name:"SelectSeparator"}),G=function(t){var n=(0,r(d[6]).useSelectContext)(t.scope),o=(0,r(d[14]).useShowSelectSheet)(n),l=(0,r(d[15]).useAdaptIsActive)(n.adaptScope),c=(0,r(d[4]).useGet)(o);return(0,I.jsx)(r(d[16]).SheetController,{onOpenChange:function(n){c()&&t.onOpenChange(n)},open:n.open,hidden:!l,children:t.children})},L=function(t){return(0,I.jsx)(I.Fragment,{children:t.children})},M=(0,r(d[17]).withStaticProperties)(function(t){var n=`AdaptSelect${t.scope||""}`;return(0,I.jsx)(r(d[15]).AdaptParent,{scope:n,portal:!0,children:(0,I.jsx)(U,Object.assign({scope:t.scope,adaptScope:n},t))})},{Adapt:r(d[15]).Adapt,Content:r(d[18]).SelectContent,Group:_,Icon:R,Item:r(d[10]).SelectItem,ItemIndicator:A,ItemText:r(d[8]).SelectItemText,Label:B,ScrollDownButton:r(d[19]).SelectScrollDownButton,ScrollUpButton:r(d[19]).SelectScrollUpButton,Trigger:r(d[20]).SelectTrigger,Value:O,Viewport:r(d[21]).SelectViewport,Sheet:r(d[16]).Sheet.Controlled,FocusScope:r(d[22]).FocusScopeController});function D(){var t=y.useRef(null);t.current||(t.current=new Set);return[function(n){t.current.forEach(function(t){return t(n)})},y.useCallback(function(n){return t.current.add(n),function(){t.current.delete(n)}},[])]}function U(t){var o=t.scope,l=void 0===o?"":o,c=t.adaptScope,u=t.native,s=t.children,p=t.open,f=t.defaultOpen,S=t.onOpenChange,v=t.value,h=t.defaultValue,b=t.onValueChange,C=t.disablePreventBodyScroll,x=t.size,j=void 0===x?"$true":x,O=t.onActiveChange,P=t.dir,R=t.id,w=(0,r(d[15]).useAdaptIsActive)(c)||!r(d[23]).isWeb?L:r(d[24]).SelectInlineImpl,A=y.useReducer(function(){return{}},{})[1],N=y.useState(null),z=n(N,2),k=z[0],V=z[1],T=(0,r(d[25]).useControllableState)({prop:p,defaultProp:f||!1,onChange:S}),E=n(T,2),W=E[0],_=E[1],$=(0,r(d[25]).useControllableState)({prop:v,defaultProp:h||"",onChange:b,transition:!0}),B=n($,2),F=B[0],M=B[1];y.useEffect(function(){W&&K(F)},[W]),y.useEffect(function(){K(F)},[F]),y.useEffect(function(){if(t.id)return(0,r(d[26]).registerFocusable)(t.id,{focusAndSelect:function(){null==_||_(function(t){return!t})},focus:function(){}})},[t.id]);var U=y.useState(0),X=n(U,2),H=X[0],Y=X[1],q=D(),J=n(q,2),K=J[0],Q=J[1],Z=D(),ee=n(Z,2),te=ee[0],ne=ee[1],re=y.useRef(null),oe=y.useRef(null),le=y.useRef([]),ce=y.useState(0),ae=n(ce,2),ue=ae[0],ie=ae[1],se=y.useState(null),de=n(se,2),pe=de[0],fe=de[1];(0,r(d[23]).useIsomorphicLayoutEffect)(function(){re.current=ue,oe.current=H});var Se=r(d[23]).isWeb&&(!0===u||"web"===u||Array.isArray(u)&&u.includes("web")),ve=(0,r(d[27]).useDebounce)(function(t){Y(function(n){return n!==t?("number"==typeof t&&te(t),t):n})},1,{},[]);return(0,I.jsx)(r(d[6]).SelectItemParentProvider,{scopeName:l,scope:l,adaptScope:c,initialValue:y.useMemo(function(){return F},[W]),size:j,activeIndexSubscribe:ne,valueSubscribe:Q,setOpen:_,id:R,onChange:y.useCallback(function(t){M(t),K(t)},[]),onActiveChange:(0,r(d[4]).useEvent)(function(t,n){null==O||O(t,n)}),setSelectedIndex:ie,setValueAtIndex:y.useCallback(function(t,n){le.current[t]=n},[]),shouldRenderWebNative:Se,children:(0,I.jsx)(r(d[6]).SelectProvider,{scope:l,scopeName:l,adaptScope:c,disablePreventBodyScroll:C,dir:P,blockSelection:!1,fallback:!1,selectedItem:k,setSelectedItem:V,forceUpdate:A,valueNode:pe,onValueNodeChange:fe,activeIndex:H,selectedIndex:ue,setActiveIndex:ve,value:F,open:W,native:u,children:(0,I.jsx)(G,{onOpenChange:_,scope:l,children:Se?s:(0,I.jsx)(w,Object.assign({activeIndexRef:oe,listContentRef:le,selectedIndexRef:re},t,{open:W,value:F,children:s}))})})})}},1062,[19,207,258,128,796,944,1063,860,1064,923,1065,929,1035,1066,1068,951,968,811,1069,1070,1071,1072,993,798,1074,918,1022,1075]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,s,f){if(l&&"object"==typeof l||"function"==typeof l){var p=function(c){!u.call(t,c)&&c!==s&&n(t,c,{get:function(){return l[c]},enumerable:!(f=o(l,c))||f.enumerable})};for(var x of c(l))p(x)}return t},s={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(s,{ForwardSelectContext:function(){return P},SelectItemParentProvider:function(){return y},SelectProvider:function(){return x},useSelectContext:function(){return S},useSelectItemParentContext:function(){return b}}),m.exports=(t=s,l(n({},"__esModule",{value:!0}),t));var f=r(d[0]),p=(0,r(d[1]).createStyledContext)(null,"Select"),x=p.Provider,S=p.useStyledContext,v=(0,r(d[1]).createStyledContext)(null,"SelectItem"),y=v.Provider,b=v.useStyledContext,P=function(t){var n=t.context,o=t.itemContext,c=t.children;return(0,f.jsx)(x,Object.assign({isInSheet:!0,scope:n.scopeName},n,{children:(0,f.jsx)(y,Object.assign({scope:n.scopeName},o,{children:c}))}))}},1063,[258,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=["scope","className"],c=Object.create,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,n,u,c){if(n&&"object"==typeof n||"function"==typeof n){var f=function(s){!p.call(t,s)&&s!==u&&l(t,s,{get:function(){return n[s]},enumerable:!(c=o(n,s))||c.enumerable})};for(var b of s(n))f(b)}return t},v={};!(function(t,n){for(var u in n)l(t,u,{get:n[u],enumerable:!0})})(v,{ITEM_TEXT_NAME:function(){return I},SelectItemText:function(){return j},SelectItemTextFrame:function(){return S}}),m.exports=(t=v,b(l({},"__esModule",{value:!0}),t));var y=r(d[1]),x=(function(t,n,u){return u=null!=t?c(f(t)):{},b(!n&&t&&t.__esModule?u:l(u,"default",{value:t,enumerable:!0}),t)})(r(d[2])),I="SelectItemText",S=(0,r(d[3]).styled)(r(d[4]).SizableText,{name:I,variants:{unstyled:{false:{userSelect:"none",color:"$color",ellipse:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),j=S.styleable(function(t,c){var l=t.scope,o=t.className,s=n(t,u),f=(0,r(d[5]).useSelectContext)(l),p=(0,r(d[5]).useSelectItemParentContext)(l),b=x.useRef(null),v=(0,r(d[6]).useComposedRefs)(c,b),I=(0,r(d[7]).useSelectItemContext)(l),j=x.useRef(null);return j.current=(0,y.jsx)(S,Object.assign({className:o,size:p.size,id:I.textId},s,{ref:v})),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){p.initialValue===I.value&&!f.selectedIndex&&f.setSelectedItem(j.current)},[]),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){return p.valueSubscribe(function(t){t===I.value&&f.setSelectedItem(j.current)})},[I.value]),p.shouldRenderWebNative?(0,y.jsx)(y.Fragment,{children:t.children}):(0,y.jsx)(y.Fragment,{children:j.current})})},1064,[207,258,128,796,944,1063,860,1065]); +__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),u=r(d[1]),o=["scope","value","disabled","textValue","index"],c=Object.create,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==u&&i(t,c,{get:function(){return n[c]},enumerable:!(o=l(n,c))||o.enumerable})};for(var f of s(n))c(f)}return t},p={};!(function(t,n){for(var u in n)i(t,u,{get:n[u],enumerable:!0})})(p,{SelectItem:function(){return j},SelectItemContextProvider:function(){return S},useSelectItemContext:function(){return O}}),m.exports=(t=p,b(i({},"__esModule",{value:!0}),t));var y=r(d[2]),x=(function(t,n,u){return u=null!=t?c(f(t)):{},b(!n&&t&&t.__esModule?u:i(u,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="SelectItem",I=(0,r(d[4]).createStyledContext)(null,h),S=I.Provider,O=I.useStyledContext,j=r(d[5]).ListItemFrame.styleable(function(t,c){var i=t.scope,l=t.value,s=t.disabled,f=void 0!==s&&s,v=(t.textValue,t.index),b=u(t,o),p=(0,r(d[5]).useListItem)(Object.assign({},!t.unstyled&&{ellipse:!0},b)).props,I=(0,r(d[6]).useSelectItemParentContext)(i),O=I.setSelectedIndex,j=I.listRef,C=I.setOpen,P=I.onChange,T=I.activeIndexSubscribe,M=I.valueSubscribe,R=I.allowMouseUpRef,w=I.allowSelectRef,E=I.setValueAtIndex,_=I.selectTimeoutRef,k=I.dataRef,L=I.interactions,V=I.shouldRenderWebNative,D=I.size,N=I.onActiveChange,W=I.initialValue,z=x.useState(W===l),A=n(z,2),F=A[0],U=A[1];x.useEffect(function(){return T(function(t){var n;v===t&&(N(l,v),null==j||null===(n=j.current[v])||void 0===n||n.focus())})},[v]),x.useEffect(function(){return M(function(t){U(t===l)})},[l]);var H=x.useId(),K=x.useCallback(function(t){r(d[7]).isWeb&&t instanceof HTMLElement&&j&&(j.current[v]=t)},[]),$=(0,r(d[8]).useComposedRefs)(c,K);function q(){O(v),P(l),C(!1)}(0,r(d[7]).useIsomorphicLayoutEffect)(function(){E(v,l)},[v,E,l]);var B=x.useMemo(function(){return L?L.getItemProps({onTouchMove:function(){w.current=!0,R.current=!1},onTouchEnd:function(){w.current=!1,R.current=!0},onKeyDown:function(t){"Enter"!==t.key&&(" "!==t.key||null!=k&&k.current.typing)?w.current=!0:(t.preventDefault(),q())},onClick:function(){w.current&&q()},onMouseUp:function(){R.current&&(w.current&&q(),clearTimeout(_.current),_.current=setTimeout(function(){w.current=!0}))}}):{onPress:q}},[q]);return(0,y.jsx)(S,{scope:i,value:l,textId:H||"",isSelected:F,children:V?(0,y.jsx)("option",{value:l,children:t.children}):(0,y.jsx)(r(d[5]).ListItemFrame,Object.assign({tag:"div",componentName:h,ref:$,"aria-labelledby":H,"aria-selected":F,"data-state":F?"active":"inactive","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1},!t.unstyled&&{backgrounded:!0,pressTheme:!0,hoverTheme:!0,focusTheme:!0,cursor:"default",size:D,outlineOffset:-.5,focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:1,outlineStyle:"solid"}},p,B))})},{disableTheme:!0})},1065,[19,207,258,128,796,1035,1063,798,860]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1066,[1067]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,b=function(t,b,f,h){if(b&&"object"==typeof b||"function"==typeof b){var l=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return b[u]},enumerable:!(h=n(b,u))||h.enumerable})};for(var p of u(b))l(p)}return t},f={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(f,{Separator:function(){return h}}),m.exports=(t=f,b(o({},"__esModule",{value:!0}),t));var h=(0,r(d[0]).styled)(r(d[0]).Stack,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:r(d[1]).isWeb?"initial":"auto",maxHeight:r(d[1]).isWeb?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}})},1067,[796,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useShowSelectSheet:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(t){var n=(0,r(d[0]).useAdaptIsActive)(t.adaptScope);return!1!==t.open&&n}},1068,[951]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(l=o(f,c))||l.enumerable})};for(var s of c(f))b(s)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SelectContent:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return t.children}},1069,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{SelectScrollDownButton:function(){return b},SelectScrollUpButton:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t){return null},b=function(t){return null}},1070,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=["scope","disabled","unstyled"],u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var f=function(c){!b.call(t,c)&&c!==n&&s(t,c,{get:function(){return o[c]},enumerable:!(u=l(o,c))||u.enumerable})};for(var p of c(o))f(p)}return t},v={};!(function(t,o){for(var n in o)s(t,n,{get:o[n],enumerable:!0})})(v,{SelectTrigger:function(){return h}}),m.exports=(t=v,p(s({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,o,n){return n=null!=t?u(f(t)):{},p(!o&&t&&t.__esModule?n:s(n,"default",{value:t,enumerable:!0}),t)})(r(d[2])),h=(!r(d[3]).isWeb||!r(d[3]).isClient||window.matchMedia("(pointer:coarse)").matches,O.forwardRef(function(t,u){var s,l=t.scope,c=t.disabled,f=void 0!==c&&c,b=t.unstyled,p=void 0!==b&&b,v=o(t,n),O=(0,r(d[4]).useSelectContext)(l),h=(0,r(d[4]).useSelectItemParentContext)(l),j=(0,r(d[5]).useComposedRefs)(u,null===(s=O.floatingContext)||void 0===s?void 0:s.refs.setReference);return h.shouldRenderWebNative?null:(0,y.jsx)(r(d[6]).ListItem,Object.assign({componentName:"SelectTrigger",unstyled:p,tag:"button",type:"button",id:h.id},!p&&{backgrounded:!0,radiused:!0,hoverTheme:!0,pressTheme:!0,focusable:!0,focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},borderWidth:1,size:h.size},{"aria-expanded":O.open,"aria-autocomplete":"none",dir:O.dir,disabled:f,"data-disabled":f?"":void 0},v,{ref:j,onPress:function(){h.setOpen(!O.open)}}))}))},1071,[207,258,128,796,1063,860,1035]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,s=function(t,s,p,l){if(s&&"object"==typeof s||"function"==typeof s){var f=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return s[c]},enumerable:!(l=o(s,c))||l.enumerable})};for(var x of c(s))f(x)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SelectViewport:function(){return f}}),m.exports=(t=p,s(n({},"__esModule",{value:!0}),t));var l=r(d[0]),f=function(t){var n=t.scope,o=t.children,c=(0,r(d[1]).useSelectContext)(n),u=(0,r(d[1]).useSelectItemParentContext)(n),s=(0,r(d[2]).useThemeName)(),p=(0,r(d[3]).useAdaptContext)();return(0,l.jsx)(r(d[3]).AdaptPortalContents,{scope:c.adaptScope,children:(0,l.jsx)(r(d[2]).Theme,{name:s,children:(0,l.jsx)(r(d[1]).ForwardSelectContext,{itemContext:u,context:c,children:(0,l.jsx)(r(d[3]).AdaptContext.Provider,Object.assign({},p,{children:o}))})})})};f.displayName=r(d[4]).VIEWPORT_NAME},1072,[258,1063,796,951,1073]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,O,_){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==O&&n(t,u,{get:function(){return f[u]},enumerable:!(_=o(f,u))||_.enumerable})};for(var L of u(f))p(L)}return t},O={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(O,{FALLBACK_THRESHOLD:function(){return R},MIN_HEIGHT:function(){return E},SCROLL_ARROW_THRESHOLD:function(){return l},SCROLL_ARROW_VELOCITY:function(){return L},SELECT_NAME:function(){return _},VIEWPORT_NAME:function(){return b},WINDOW_PADDING:function(){return p}}),m.exports=(t=O,f(n({},"__esModule",{value:!0}),t));var _="Select",p=8,L=8,l=8,E=80,R=16,b="SelectViewport"},1073,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{SelectInlineImpl:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=r(d[0]),b=function(t){return(0,p.jsx)(p.Fragment,{children:t.children})}},1074,[258]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),u=r(d[1]),o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(n,t,u,o){if(t&&"object"==typeof t||"function"==typeof t){var s=function(l){!v.call(n,l)&&l!==u&&c(n,l,{get:function(){return t[l]},enumerable:!(o=f(t,l))||o.enumerable})};for(var p of l(t))s(p)}return n},b={};!(function(n,t){for(var u in t)c(n,u,{get:t[u],enumerable:!0})})(b,{debounce:function(){return O},useDebounce:function(){return h},useDebounceValue:function(){return _}}),m.exports=(n=b,p(c({},"__esModule",{value:!0}),n));var y=(function(n,t,u){return u=null!=n?o(s(n)):{},p(!t&&n&&n.__esModule?u:c(u,"default",{value:n,enumerable:!0}),n)})(r(d[2]));function O(n,t,u){var o,c=!1;function f(){var f=this;c=!1;var l=arguments;u&&!o&&n.apply(this,l),clearTimeout(o),o=setTimeout(function(){o=null,u||c||n.apply(f,l),c=!1},t)}return f.cancel=function(){c=!0},f}var j={leading:!1};function h(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[n],f=y.useRef(null);return y.useEffect(function(){return function(){var n;null===(n=f.current)||void 0===n||n.cancel()}},[]),y.useMemo(function(){return f.current=O(n,t,o.leading),f.current},[o.leading].concat(u(c)))}function _(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=y.useState(n),c=t(o,2),f=c[0],l=c[1];return y.useEffect(function(){var t=setTimeout(function(){l(function(t){return t===n?t:n})},u);return function(){clearTimeout(t)}},[n]),f}},1075,[19,32,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,p){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var s of u(c))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{SliderContext:function(){return r(d[0]).SliderContext},SliderFrame:function(){return r(d[1]).SliderFrame}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(l,r(d[2]),m.exports)},1076,[1077,1078,1079]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,w){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(w=o(f,u))||w.enumerable})};for(var P of u(f))s(P)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{ARROW_KEYS:function(){return O},BACK_KEYS:function(){return x},PAGE_KEYS:function(){return v},SLIDER_NAME:function(){return w},SliderContext:function(){return s},SliderOrientationProvider:function(){return A},SliderProvider:function(){return P},useSliderContext:function(){return S},useSliderOrientationContext:function(){return y}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var w="Slider",s=(0,r(d[0]).createStyledContext)({size:"$true",min:0,max:100,orientation:"horizontal"}),P=s.Provider,S=s.useStyledContext,p=(0,r(d[0]).createStyledContext)({startEdge:"left",endEdge:"right",sizeProp:"width",size:0,direction:1}),A=p.Provider,y=p.useStyledContext,v=["PageUp","PageDown"],O=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]}},1077,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,o=r(d[0]),t=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,S=function(n,o,t,u){if(o&&"object"==typeof o||"function"==typeof o){var f=function(c){!p.call(n,c)&&c!==t&&s(n,c,{get:function(){return o[c]},enumerable:!(u=l(o,c))||u.enumerable})};for(var S of c(o))f(S)}return n},v={};!(function(n,o){for(var t in o)s(n,t,{get:o[t],enumerable:!0})})(v,{SliderFrame:function(){return y},SliderImpl:function(){return h}}),m.exports=(n=v,S(s({},"__esModule",{value:!0}),n));var b=r(d[1]),R=(function(n,o,t){return t=null!=n?u(f(n)):{},S(!o&&n&&n.__esModule?t:s(t,"default",{value:n,enumerable:!0}),n)})(r(d[2])),y=(0,r(d[3]).styled)(r(d[4]).YStack,{position:"relative",variants:{orientation:{horizontal:{},vertical:{}},size:function(n,o){if(n){var t=o.props.orientation,u=Math.round((0,r(d[3]).getVariableValue)((0,r(d[5]).getSize)(n))/6);return"horizontal"===t?{height:u,borderRadius:u,justifyContent:"center"}:{width:u,borderRadius:u,alignItems:"center"}}}}}),h=R.forwardRef(function(n,u){var s=n.__scopeSlider,l=n.onSlideStart,c=n.onSlideMove,f=n.onSlideEnd,p=n.onHomeKeyDown,S=n.onEndKeyDown,v=n.onStepKeyDown,R=o(n,t),h=(0,r(d[6]).useSliderContext)(s);return(0,b.jsx)(y,Object.assign({size:"$4"},R,{"data-orientation":R.orientation,ref:u},r(d[7]).isWeb&&{onKeyDown:function(n){"Home"===n.key?(p(n),n.preventDefault()):"End"===n.key?(S(n),n.preventDefault()):r(d[6]).PAGE_KEYS.concat(r(d[6]).ARROW_KEYS).includes(n.key)&&(v(n),n.preventDefault())}},{onMoveShouldSetResponderCapture:function(){return!0},onScrollShouldSetResponder:function(){return!0},onScrollShouldSetResponderCapture:function(){return!0},onMoveShouldSetResponder:function(){return!0},onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1},onResponderGrant:(0,r(d[8]).composeEventHandlers)(n.onResponderGrant,function(n){var o=n.target,t=h.thumbs.get(o),u=void 0!==t;r(d[7]).isWeb&&o instanceof HTMLElement&&h.thumbs.has(o)&&o.focus(),!r(d[7]).isWeb&&u&&(h.valueIndexToChangeRef.current=t),l(n,u?"thumb":"track")}),onResponderMove:(0,r(d[8]).composeEventHandlers)(n.onResponderMove,function(n){n.stopPropagation(),c(n)}),onResponderRelease:(0,r(d[8]).composeEventHandlers)(n.onResponderRelease,function(n){f(n)})}))})},1078,[207,258,128,796,923,929,1077,798,811]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]),l=["min","max","dir","onSlideStart","onSlideMove","onStepKeyDown","onSlideEnd"],s=["min","max","onSlideStart","onSlideMove","onStepKeyDown","onSlideEnd"],c=["__scopeSlider"],f=["__scopeSlider"],v=["__scopeSlider","index","circular","size"],S=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","size","onSlideEnd","onSlideMove","onSlideStart"],p=Object.create,b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,E=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=function(e,n,t,o){if(n&&"object"==typeof n||"function"==typeof n){var u=function(u){!x.call(e,u)&&u!==t&&b(e,u,{get:function(){return n[u]},enumerable:!(o=h(n,u))||o.enumerable})};for(var l of y(n))u(l)}return e},T={};!(function(e,n){for(var t in n)b(e,t,{get:n[t],enumerable:!0})})(T,{Range:function(){return F},Slider:function(){return W},SliderThumb:function(){return V},SliderThumbFrame:function(){return K},SliderTrack:function(){return A},SliderTrackActive:function(){return I},SliderTrackActiveFrame:function(){return D},SliderTrackFrame:function(){return k},Thumb:function(){return N},Track:function(){return B}}),m.exports=(e=T,w(b({},"__esModule",{value:!0}),e));var z,_=r(d[4]),O=(function(e,n,t){return t=null!=e?p(E(e)):{},w(!n&&e&&e.__esModule?t:b(t,"default",{value:e,enumerable:!0}),e)})(r(d[5])),C=new Set;r(d[6]).isWeb&&r(d[6]).isClient&&!process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL&&(null===(z=setInterval)||void 0===z||z(function(){C.forEach(function(e){return e()})},1e3));var R=O.forwardRef(function(e,n){var t=e.min,s=e.max,c=e.dir,f=e.onSlideStart,v=e.onSlideMove,S=e.onStepKeyDown,p=e.onSlideEnd,b=u(e,l),h=(0,r(d[7]).useDirection)(c),y="ltr"===h,E=O.useRef(null),x=O.useState(function(){return{size:0,offset:0}}),w=o(x,2),T=w[0],z=w[1],R=(0,r(d[8]).useCreateShallowSetState)(z);function M(e){var n=[0,T.size],o=y?[t,s]:[s,t];return(0,r(d[9]).linearScale)(n,o)(e)}var k=function(){var e;null===(e=E.current)||void 0===e||e.measure(function(e,n,t,o,u,l){R({size:t,offset:u})})};return r(d[6]).isClient&&(j(k),O.useEffect(function(){var e=E.current;if(e){var n,t=function(){clearTimeout(n),n=setTimeout(function(){k()},200)},o=new IntersectionObserver(function(e){t(),null!=e&&e[0].isIntersecting?C.add(t):C.delete(t)},{root:null,rootMargin:"0px",threshold:[0,.5,1]});return o.observe(e),function(){C.delete(t),o.disconnect()}}},[])),(0,_.jsx)(r(d[10]).SliderOrientationProvider,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,sizeProp:"width",size:T.size,children:(0,_.jsx)(r(d[11]).SliderImpl,Object.assign({ref:(0,r(d[12]).composeRefs)(n,E),dir:h},b,{orientation:"horizontal",onLayout:k,onSlideStart:function(e,n){var t=M(e.nativeEvent.locationX);t&&(null==f||f(t,n,e))},onSlideMove:function(e){var n=M(e.nativeEvent.pageX-T.offset);n&&(null==v||v(n,e))},onSlideEnd:function(e){var n=M(e.nativeEvent.pageX-T.offset);n&&(null==p||p(e,n))},onStepKeyDown:function(e){var n=r(d[10]).BACK_KEYS[h].includes(e.key);null==S||S({event:e,direction:n?-1:1})}}))})});function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;O.useEffect(function(){var t,o=function(){clearTimeout(t),t=setTimeout(e,n)};return window.addEventListener("resize",o),function(){clearTimeout(t),window.removeEventListener("resize",o)}},[])}var M=O.forwardRef(function(e,n){var t=e.min,l=e.max,c=e.onSlideStart,f=e.onSlideMove,v=e.onStepKeyDown,S=e.onSlideEnd,p=u(e,s),b=O.useState(function(){return{size:0,offset:0}}),h=o(b,2),y=h[0],E=h[1],x=(0,r(d[8]).useCreateShallowSetState)(E),w=O.useRef(null);function T(e){var n=[0,y.size],o=[l,t];return(0,r(d[9]).linearScale)(n,o)(e)}var z=function(){var e;null===(e=w.current)||void 0===e||e.measure(function(e,n,t,o,u,l){x({size:o,offset:l})})};return r(d[6]).isClient&&j(z),(0,_.jsx)(r(d[10]).SliderOrientationProvider,{scope:e.__scopeSlider,startEdge:"bottom",endEdge:"top",sizeProp:"height",size:y.size,direction:1,children:(0,_.jsx)(r(d[11]).SliderImpl,Object.assign({ref:(0,r(d[12]).composeRefs)(n,w)},p,{orientation:"vertical",onLayout:z,onSlideStart:function(e,n){var t=T(e.nativeEvent.locationY);t&&(null==c||c(t,n,e))},onSlideMove:function(e){var n=T(e.nativeEvent.pageY-y.offset);n&&(null==f||f(n,e))},onSlideEnd:function(e){var n=T(e.nativeEvent.pageY-y.offset);null==S||S(e,n)},onStepKeyDown:function(e){var n=r(d[10]).BACK_KEYS.ltr.includes(e.key);null==v||v({event:e,direction:n?-1:1})}}))})}),k=(0,r(d[8]).styled)(r(d[11]).SliderFrame,{name:"SliderTrack",variants:{unstyled:{false:{height:"100%",width:"100%",backgroundColor:"$background",position:"relative",borderRadius:1e5,overflow:"hidden"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=O.forwardRef(function(e,n){var t=e.__scopeSlider,o=u(e,c),l=(0,r(d[10]).useSliderContext)(t);return(0,_.jsx)(k,Object.assign({"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,orientation:l.orientation,size:l.size},o,{ref:n}))});A.displayName="SliderTrack";var D=(0,r(d[8]).styled)(r(d[11]).SliderFrame,{name:"SliderTrackActive",backgroundColor:"$background",position:"absolute",pointerEvents:"box-none"}),I=O.forwardRef(function(e,o){var l=e.__scopeSlider,s=u(e,f),c=(0,r(d[10]).useSliderContext)(l),v=(0,r(d[10]).useSliderOrientationContext)(l),S=O.useRef(null),p=(0,r(d[12]).useComposedRefs)(o,S),b=c.values.length,h=c.values.map(function(e){return(0,r(d[9]).convertValueToPercentage)(e,c.min,c.max)}),y=b>1?Math.min.apply(Math,t(h)):0,E=100-Math.max.apply(Math,t(h));return(0,_.jsx)(D,Object.assign({orientation:c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,size:c.size,animateOnly:["left","top","right","bottom"]},s,n(n({ref:p},v.startEdge,`${y}%`),v.endEdge,`${E}%`),"width"===v.sizeProp?{height:"100%"}:{left:0,right:0}))});I.displayName="SliderTrackActive";var P=function(e){var n=(0,r(d[8]).getTokens)(),t="number"==typeof e?e:(0,r(d[13]).getSize)(n.size[e],{shift:-1});return{width:t,height:t,minWidth:t,minHeight:t}},K=(0,r(d[8]).styled)(r(d[14]).ThemeableStack,{name:"SliderThumb",variants:{size:{"...size":P},unstyled:{false:{position:"absolute",bordered:2,borderWidth:2,backgrounded:!0,pressTheme:r(d[6]).isWeb,focusTheme:r(d[6]).isWeb,hoverTheme:r(d[6]).isWeb}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),V=K.styleable(function(e,t){var l,s=e.__scopeSlider,c=e.index,f=e.circular,S=e.size,p=u(e,v),b=(0,r(d[10]).useSliderContext)(s),h=(0,r(d[10]).useSliderOrientationContext)(s),y=O.useState(null),E=o(y,2),x=E[0],w=E[1],T=(0,r(d[12]).useComposedRefs)(t,w),z=b.values[c],C=void 0===z?0:(0,r(d[9]).convertValueToPercentage)(z,b.min,b.max),R=(0,r(d[9]).getLabel)(c,b.values.length),j=null!==(l=null!=S?S:b.size)&&void 0!==l?l:"$true",M=O.useState(function(){return(0,r(d[8]).getVariableValue)(P(j).width)}),k=o(M,2),A=k[0],D=k[1],I=A?(0,r(d[9]).getThumbInBoundsOffset)(A,C,h.direction):0;O.useEffect(function(){if(x)return b.thumbs.set(x,c),function(){b.thumbs.delete(x)}},[x,b.thumbs,c]);var V="horizontal"===b.orientation?Object.assign({x:I-A/2,y:-A/2,top:"50%"},0===A&&{top:"auto",bottom:"auto"}):Object.assign({x:-A/2,y:A/2,left:"50%"},0===A&&{left:"auto",right:"auto"});return(0,_.jsx)(K,Object.assign({ref:T,role:"slider","aria-label":e["aria-label"]||R,"aria-valuemin":b.min,"aria-valuenow":z,"aria-valuemax":b.max,"aria-orientation":b.orientation,"data-orientation":b.orientation,"data-disabled":b.disabled?"":void 0,tabIndex:b.disabled?void 0:0,animateOnly:["transform","left","top","right","bottom"]},V,n(n(n({},h.startEdge,`${C}%`),"size",j),"circular",f),p,{onLayout:function(e){D(e.nativeEvent.layout[h.sizeProp])},onFocus:(0,r(d[15]).composeEventHandlers)(e.onFocus,function(){b.valueIndexToChangeRef.current=c})}))},{staticConfig:{memo:!0}}),L=O.forwardRef(function(e,n){e.name;var t=e.min,l=void 0===t?0:t,s=e.max,c=void 0===s?100:s,f=e.step,v=void 0===f?1:f,p=e.orientation,b=void 0===p?"horizontal":p,h=e.disabled,y=void 0!==h&&h,E=e.minStepsBetweenThumbs,x=void 0===E?0:E,w=e.defaultValue,T=void 0===w?[l]:w,z=e.value,C=e.onValueChange,j=void 0===C?function(){}:C,k=e.size,A=e.onSlideEnd,D=e.onSlideMove,I=e.onSlideStart,P=u(e,S),K=O.useRef(null),V=(0,r(d[12]).useComposedRefs)(K,n),L=O.useRef(new Map),W=O.useRef(0),B="horizontal"===b,F=(0,r(d[16]).useControllableState)({prop:z,defaultProp:T,transition:!0,onChange:function(e){G(W.current),j(e)}}),N=o(F,2),Y=N[0],$=void 0===Y?[]:Y,H=N[1];function G(e){if(r(d[6]).isWeb){var n=!0,t=!1,u=void 0;try{for(var l,s=L.current.entries()[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var c=o(l.value,2),f=c[0];if(c[1]===e)return void f.focus()}}catch(e){t=!0,u=e}finally{try{!n&&null!=s.return&&s.return()}finally{if(t)throw u}}}}function U(e,n){var t=(0,r(d[9]).getDecimalCount)(v),o=(0,r(d[9]).roundValue)(Math.round((e-l)/v)*v+l,t),u=(0,r(d[15]).clamp)(o,[l,c]);H(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,r(d[9]).getNextSortedValues)(e,u,n);return(0,r(d[9]).hasMinStepsBetweenValues)(t,x*v)?(W.current=t.indexOf(u),String(t)===String(e)?e:t):e})}r(d[6]).isWeb&&O.useEffect(function(){var e=K.current;if(e){var n=function(e){e.preventDefault()};return e.addEventListener("touchstart",n),function(){e.removeEventListener("touchstart",n)}}},[]);var X=B?R:M;return(0,_.jsx)(r(d[10]).SliderProvider,{scope:e.__scopeSlider,disabled:y,min:l,max:c,valueIndexToChangeRef:W,thumbs:L.current,values:$,orientation:b,size:k,children:(0,_.jsx)(X,Object.assign({"aria-disabled":y,"data-disabled":y?"":void 0},P,{ref:V,min:l,max:c,onSlideEnd:A,onSlideStart:y?void 0:function(e,n,t){"thumb"!==n&&U(e,(0,r(d[9]).getClosestValueIndex)($,e));null==I||I(t,e,n)},onSlideMove:y?void 0:function(e,n){U(e,W.current),null==D||D(n,e)},onHomeKeyDown:function(){return!y&&U(l,0)},onEndKeyDown:function(){return!y&&U(c,$.length-1)},onStepKeyDown:function(e){var n=e.event,t=e.direction;if(!y){var o=r(d[10]).PAGE_KEYS.includes(n.key)||n.shiftKey&&r(d[10]).ARROW_KEYS.includes(n.key)?10:1,u=W.current;U($[u]+v*o*t,u)}}}))})}),W=(0,r(d[15]).withStaticProperties)(L,{Track:A,TrackActive:I,Thumb:V});W.displayName=r(d[10]).SLIDER_NAME;var B=A,F=I,N=V},1079,[18,32,19,207,258,128,798,921,796,1080,1077,1078,860,929,923,811,918]); +__d(function(g,r,i,_a,m,e,d){"use strict";var n,t=r(d[0]),u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,c=function(n,t,c,l){if(t&&"object"==typeof t||"function"==typeof t){var p=function(f){!a.call(n,f)&&f!==c&&u(n,f,{get:function(){return t[f]},enumerable:!(l=o(t,f))||l.enumerable})};for(var s of f(t))p(s)}return n},l={};function p(){var n=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return o[u]=n,o.sort(function(n,t){return n-t})}function s(n,t,u){return 100/(u-t)*(n-t)}function v(n,t){return t>2?`Value ${n+1} of ${t}`:2===t?["Minimum","Maximum"][n]:void 0}function h(n,u){if(1===n.length)return 0;var o=n.map(function(n){return Math.abs(n-u)}),f=Math.min.apply(Math,t(o));return o.indexOf(f)}function b(n,t,u){var o=n/4;return(o-O([0,50],[0,o])(t)*u)*u}function M(n){return n.slice(0,-1).map(function(t,u){return n[u+1]-t})}function y(n,u){if(u>0){var o=M(n);return Math.min.apply(Math,t(o))>=u}return!0}function O(n,t){return function(u){if(n[0]===n[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(n[1]-n[0]);return t[0]+o*(u-n[0])}}function V(n){return(String(n).split(".")[1]||"").length}function j(n,t){var u=Math.pow(10,t);return Math.round(n*u)/u}!(function(n,t){for(var o in t)u(n,o,{get:t[o],enumerable:!0})})(l,{convertValueToPercentage:function(){return s},getClosestValueIndex:function(){return h},getDecimalCount:function(){return V},getLabel:function(){return v},getNextSortedValues:function(){return p},getThumbInBoundsOffset:function(){return b},hasMinStepsBetweenValues:function(){return y},linearScale:function(){return O},roundValue:function(){return j}}),m.exports=(n=l,c(u({},"__esModule",{value:!0}),n))},1080,[32]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p=function(t,n,o){return f(t,n,"default"),o&&f(o,n,"default")},b={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(b,{Switch:function(){return s}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t)),p(b,r(d[0]),m.exports),p(b,r(d[1]),m.exports),p(b,r(d[2]),m.exports);var s=(0,r(d[0]).createSwitch)({Frame:r(d[2]).SwitchFrame,Thumb:r(d[2]).SwitchThumb})},1081,[1082,1084,1083]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),l=["size","unstyled","nativeID"],u=["native","nativeProps","checked","defaultChecked","onCheckedChange"],o=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(e,t,n,l){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!v.call(e,u)&&u!==n&&c(e,u,{get:function(){return t[u]},enumerable:!(l=s(t,u))||l.enumerable})};for(var o of h(t))u(o)}return e},y={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(y,{SwitchContext:function(){return w},createSwitch:function(){return C}}),m.exports=(e=y,b(c({},"__esModule",{value:!0}),e));var S=r(d[2]),p=(function(e,t,n){return n=null!=e?o(f(e)):{},b(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),x=r(d[4]),w=p.createContext({checked:!1,disabled:!1,frameWidth:0});function C(e){var o=e.disableActiveTheme,c=e.Frame,s=void 0===c?r(d[5]).SwitchFrame:c,h=e.Thumb,f=void 0===h?r(d[5]).SwitchThumb:h;s.staticConfig.context=r(d[6]).SwitchStyledContext,f.staticConfig.context=r(d[6]).SwitchStyledContext;var v=f.styleable(function(e,u){var c,s,h=e.size,v=e.unstyled,b=(e.nativeID,n(e,l)),y=p.useContext(w),x=y.checked,C=y.disabled,j=y.frameWidth,V=r(d[6]).SwitchStyledContext.useStyledContext(),O=V.unstyled,z=V.size,P="1"===process.env.TAMAGUI_HEADLESS||null!==(c=null!=v?v:O)&&void 0!==c&&c,k=null!==(s=null!=h?h:z)&&void 0!==s?s:"$true",_=p.useRef(x).current,E=(0,r(d[7]).getVariableValue)(e.width,"size"),T=p.useState("number"==typeof E?E:0),A=t(T,2),L=A[0],D=A[1],I=j-L,M=_?x?0:-I:x?I:0;return(0,S.jsx)(f,Object.assign({ref:u,unstyled:P},!1===P&&Object.assign({size:k},!o&&!P&&{theme:x?"active":null}),{alignSelf:_?"flex-end":"flex-start",x:M,onLayout:(0,r(d[7]).composeEventHandlers)(e.onLayout,function(e){var t=e.nativeEvent.layout.width;t!==L&&D(t)}),checked:x,disabled:C},b))}),b=s.styleable(function(e,l){var c=e.native,h=e.nativeProps,f=e.checked,v=e.defaultChecked,b=e.onCheckedChange,y=n(e,u),C=(0,r(d[8]).useControllableState)({prop:f,defaultProp:v||!1,onChange:b,transition:!0}),V=t(C,2),O=V[0],z=V[1],P=p.useContext(r(d[6]).SwitchStyledContext.context),k=0,_=(0,r(d[7]).getVariableValue)((0,r(d[7]).getShorthandValue)(y,"width"),"size");if(_){var E,T,A,L,D,I,M=null!==(T=null!==(E=(0,r(d[7]).getShorthandValue)(y,"paddingHorizontal"))&&void 0!==E?E:(0,r(d[7]).getShorthandValue)(y,"padding"))&&void 0!==T?T:0,R=null!==(L=null!==(A=(0,r(d[7]).getShorthandValue)(y,"paddingLeft"))&&void 0!==A?A:M)&&void 0!==L?L:0,W=null!==(I=null!==(D=(0,r(d[7]).getShorthandValue)(y,"paddingRight"))&&void 0!==D?D:M)&&void 0!==I?I:0;k=_-(R?(0,r(d[7]).getVariableValue)(R,"size"):0)-(W?(0,r(d[7]).getVariableValue)(W,"size"):0)}var F=p.useState(k),H=t(F,2),N=H[0],$=H[1],G=(0,r(d[9]).useSwitch)(y,[O,z],l),U=G.switchProps,q=G.bubbleInput,B=G.switchRef;p.useEffect(function(){if(y.id&&!y.disabled)return(0,r(d[10]).registerFocusable)(y.id,{focusAndSelect:function(){null==z||z(function(e){return!e})},focus:function(){}})},[y.id,y.disabled]);var J=(0,r(d[7]).shouldRenderNativePlatform)(c);if("android"===J||"ios"===J)return(0,S.jsx)(x.Switch,Object.assign({value:O,onValueChange:z},h));var K,Q,X,Y,Z=y.disabled,ee=p.useMemo(function(){return{checked:O,disabled:Z,frameWidth:N}},[O,Z,N]),te=null!==(Q=null!==(K=P.unstyled)&&void 0!==K?K:y.unstyled)&&void 0!==Q&&Q;return(0,S.jsxs)(w.Provider,{value:ee,children:[(0,S.jsx)(s,Object.assign({ref:B,tag:"button"},r(d[7]).isWeb&&{type:"button"},!te&&{size:null!==(Y=null!==(X=P.size)&&void 0!==X?X:y.size)&&void 0!==Y?Y:"$true"},{unstyled:te},y,U,!o&&!y.unstyled&&{theme:O?"active":null},{checked:O,disabled:Z,children:(0,S.jsx)(x.View,{style:j,onLayout:function(e){var t=e.nativeEvent.layout.width;t!==N&&$(t)},children:N?y.children:null})})),q]})},{disableTheme:!0});return(0,r(d[7]).withStaticProperties)(b,{Thumb:v})}var j={alignSelf:"stretch",flex:1}},1082,[19,207,258,128,28,1083,1084,796,918,1085,1022]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,s,b){if(l&&"object"==typeof l||"function"==typeof l){var f=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return l[u]},enumerable:!(b=o(l,u))||b.enumerable})};for(var h of u(l))f(h)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{SwitchFrame:function(){return y},SwitchThumb:function(){return b}}),m.exports=(t=s,l(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"SwitchThumb",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",borderRadius:1e3}},checked:{true:{}},size:{"...size":function(t){var n=f(t);return{height:n,width:n}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=function(t){return Math.round(.65*(0,r(d[0]).getVariableValue)((0,r(d[2]).getSize)(t)))},h=function(t){return 2*f(t)},y=(0,r(d[0]).styled)(r(d[1]).YStack,{name:"Switch",tag:"button",tabIndex:0,variants:{unstyled:{false:{borderRadius:1e3,backgroundColor:"$background",borderWidth:2,borderColor:"$background",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},checked:{true:{}},size:{"...size":function(t){var n=f(t)+4;return{height:n,minHeight:n,width:h(t)+4}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1083,[796,923,929]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))l(y)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SwitchStyledContext:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createStyledContext)({size:void 0,unstyled:"1"===process.env.TAMAGUI_HEADLESS})},1084,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1085,[1086]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,l=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,s=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var s=function(f){!b.call(t,f)&&f!==o&&u(t,f,{get:function(){return n[f]},enumerable:!(l=c(n,f))||l.enumerable})};for(var p of f(n))s(p)}return t},p={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(p,{useSwitch:function(){return O}}),m.exports=(t=p,s(u({},"__esModule",{value:!0}),t));r(d[1]),(function(t,n,c){c=null!=t?o(l(t)):{},s(!n&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function O(t,o,u){var c=n(o,2),f=(c[0],c[1]);return{switchProps:{onPress:function(){f(function(t){return!t})}},switchRef:u,bubbleInput:null}}},1086,[19,258,128]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,b,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!f.call(t,u)&&u!==b&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var p of u(c))l(p)}return t},b=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Tabs:function(){return l}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t)),b(s,r(d[0]),m.exports),b(s,r(d[1]),m.exports);var l=(0,r(d[0]).createTabs)({ContentFrame:r(d[2]).DefaultTabsContentFrame,TabFrame:r(d[2]).DefaultTabsTabFrame,TabsFrame:r(d[2]).DefaultTabsFrame})},1087,[1088,1090,1089]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),u=["__scopeTabs","loop","children"],s=["__scopeTabs","value","disabled","onInteraction","disableActiveTheme"],c=["__scopeTabs","value","forceMount","children"],l=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode","size"],f=Object.create,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,h=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,_=function(n,t,o,u){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!T.call(n,s)&&s!==o&&v(n,s,{get:function(){return t[s]},enumerable:!(u=b(t,s))||u.enumerable})};for(var c of p(t))s(c)}return n},y={};!(function(n,t){for(var o in t)v(n,o,{get:t[o],enumerable:!0})})(y,{createTabs:function(){return O}}),m.exports=(n=y,_(v({},"__esModule",{value:!0}),n));var j=r(d[2]),C=(function(n,t,o){return o=null!=n?f(h(n)):{},_(!t&&n&&n.__esModule?o:v(o,"default",{value:n,enumerable:!0}),n)})(r(d[3]));function O(n){var f=n.ContentFrame,v=void 0===f?r(d[4]).DefaultTabsContentFrame:f,b=n.TabFrame,p=void 0===b?r(d[4]).DefaultTabsTabFrame:b,h=n.TabsFrame,T=void 0===h?r(d[4]).DefaultTabsFrame:h,_="TabsContext",y="TabsList",O=C.forwardRef(function(n,t){var s=n.__scopeTabs,c=n.loop,l=void 0===c||c,f=n.children,v=o(n,u),b=(0,r(d[5]).useTabsContext)(s);return(0,j.jsx)(r(d[6]).RovingFocusGroup,{__scopeRovingFocusGroup:s||_,orientation:b.orientation,dir:b.dir,loop:l,asChild:!0,children:(0,j.jsx)(r(d[7]).Group,Object.assign({role:"tablist",componentName:y,"aria-orientation":b.orientation,ref:t,orientation:b.orientation},v,{children:f}))})});O.displayName=y;var F=p.styleable(function(n,u){var c,l=n.__scopeTabs,f=n.value,v=n.disabled,b=void 0!==v&&v,h=n.onInteraction,T=n.disableActiveTheme,y=o(n,s),O=(0,r(d[5]).useTabsContext)(l),F=x(O.baseId,f),I=E(O.baseId,f),H=f===O.value,P=C.useState(null),w=t(P,2),D=w[0],M=w[1],R=C.useRef(null),z=(0,r(d[7]).useGroupItem)({disabled:!!b});return C.useEffect(function(){return O.registerTrigger(),function(){return O.unregisterTrigger()}},[]),C.useEffect(function(){if(R.current&&r(d[8]).isWeb){t();var n=new ResizeObserver(t);return n.observe(R.current),function(){R.current&&n.unobserve(R.current)}}function t(){R.current&&M({width:R.current.offsetWidth,height:R.current.offsetHeight,x:R.current.offsetLeft,y:R.current.offsetTop})}},[O.triggersCount]),C.useEffect(function(){H&&D&&(null==h||h("select",D))},[H,f,D]),(0,j.jsx)(r(d[9]).Theme,{name:H&&!T?"active":null,children:(0,j.jsx)(r(d[6]).RovingFocusGroup.Item,{__scopeRovingFocusGroup:l||_,asChild:!0,focusable:!b,active:H,children:(0,j.jsx)(p,Object.assign({onLayout:function(n){r(d[8]).isWeb||M(n.nativeEvent.layout)},onHoverIn:(0,r(d[10]).composeEventHandlers)(n.onHoverIn,function(){D&&(null==h||h("hover",D))}),onHoverOut:(0,r(d[10]).composeEventHandlers)(n.onHoverOut,function(){null==h||h("hover",null)}),role:"tab","aria-selected":H,"aria-controls":I,"data-state":H?"active":"inactive","data-disabled":b?"":void 0,disabled:b,id:F},!n.unstyled&&{size:O.size},H&&{forceStyle:"focus"},z,y,{ref:(0,r(d[11]).composeRefs)(u,R),onPress:(0,r(d[10]).composeEventHandlers)(null!==(c=n.onPress)&&void 0!==c?c:void 0,function(n){var t=!r(d[8]).isWeb||0===n.button&&!1===n.ctrlKey;b||H||!t?n.preventDefault():O.onChange(f)})},r(d[8]).isWeb&&{type:"button",onKeyDown:(0,r(d[10]).composeEventHandlers)(n.onKeyDown,function(n){[" ","Enter"].includes(n.key)&&(O.onChange(f),n.preventDefault())}),onFocus:(0,r(d[10]).composeEventHandlers)(n.onFocus,function(n){D&&(null==h||h("focus",D));var t="manual"!==O.activationMode;!H&&!b&&t&&O.onChange(f)}),onBlur:(0,r(d[10]).composeEventHandlers)(n.onFocus,function(){null==h||h("focus",null)})}))})})});F.displayName="TabsTrigger";var I=v.styleable(function(n,t){var u=n.__scopeTabs,s=n.value,l=n.forceMount,f=n.children,b=o(n,c),p=(0,r(d[5]).useTabsContext)(u),h=s===p.value,T=l||h,_=x(p.baseId,s),y=E(p.baseId,s);return T?(0,j.jsx)(v,Object.assign({"data-state":h?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":_,hidden:!T,id:y,tabIndex:0},b,{ref:t,children:f}),s):null}),H=T.styleable(function(n,u){var s=n.__scopeTabs,c=n.value,f=n.onValueChange,v=n.defaultValue,b=n.orientation,p=void 0===b?"horizontal":b,h=n.dir,_=n.activationMode,y=void 0===_?"automatic":_,O=n.size,x=void 0===O?"$true":O,E=o(n,l),F=(0,r(d[12]).useDirection)(h),I=(0,r(d[13]).useControllableState)({prop:c,onChange:f,defaultProp:null!=v?v:""}),H=t(I,2),P=H[0],w=H[1],D=C.useState(0),M=t(D,2),R=M[0],z=M[1],G=(0,r(d[9]).useEvent)(function(){return z(function(n){return n+1})}),S=(0,r(d[9]).useEvent)(function(){return z(function(n){return n-1})});return(0,j.jsx)(r(d[5]).TabsProvider,{scope:s,baseId:C.useId(),value:P,onChange:w,orientation:p,dir:F,activationMode:y,size:x,registerTrigger:G,triggersCount:R,unregisterTrigger:S,children:(0,j.jsx)(T,Object.assign({direction:F,"data-orientation":p},E,{ref:u}))})});return(0,r(d[10]).withStaticProperties)(H,{List:O,Trigger:F,Tab:F,Content:I})}function x(n,t){return`${n}-trigger-${t}`}function E(n,t){return`${n}-content-${t}`}},1088,[19,207,258,128,1089,1090,1058,1031,798,801,811,860,921,918]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(t,s,l,b){if(s&&"object"==typeof s||"function"==typeof s){var f=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return s[u]},enumerable:!(b=o(s,u))||b.enumerable})};for(var y of u(s))f(y)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{DefaultTabsContentFrame:function(){return y},DefaultTabsFrame:function(){return b},DefaultTabsTabFrame:function(){return f}}),m.exports=(t=l,s(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).styled)(r(d[1]).SizableStack,{name:"Tabs"}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"TabsTrigger",tag:"button",variants:{size:{"...size":r(d[2]).getButtonSized},disabled:{true:{pointerEvents:"none"}},active:{true:{hoverStyle:{backgroundColor:"$background"},focusStyle:{backgroundColor:"$background"}}},unstyled:{false:{borderWidth:0,backgroundColor:"$background",userSelect:"none",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress"},hoverStyle:{backgroundColor:"$backgroundHover"},focusStyle:{backgroundColor:"$backgroundFocus"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"TabsContent"})},1089,[796,923,928]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))p(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{TabsProvider:function(){return p},useTabsContext:function(){return l}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).createStyledContext)(),p=b.Provider,l=b.useStyledContext},1090,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!f.call(t,u)&&u!==p&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))l(b)}return t},p=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{mutateThemes:function(){return r(d[0]).mutateThemes}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t)),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1091,[1092,1093,1094,1095]); +__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var t,n=r(d[1]),o=r(d[2]),u=["themes","batch","insertCSS"],s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,l=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!h.call(t,f)&&f!==o&&s(t,f,{get:function(){return n[f]},enumerable:!(u=c(n,f))||u.enumerable})};for(var v of f(n))l(v)}return t},v={};function p(t){var n=t.themes,s=t.batch,c=t.insertCSS,f=void 0===c||c,h=o(t,u),l={},v={},p=!0,S=!1,j=void 0;try{for(var w,C=n[Symbol.iterator]();!(p=(w=C.next()).done);p=!0){var R=w.value,P=R.name,_=R.theme,x=y(Object.assign({},h,{name:P,theme:_,avoidUpdate:!0,mutationType:"add"}));x&&(l[P]=x.theme,v[P]=x.themeRaw)}}catch(t){S=!0,j=t}finally{try{!p&&null!=C.return&&C.return()}finally{if(S)throw j}}var U=f?T(v,s):[];return(0,r(d[3]).startTransition)(function(){for(var t in l){b(t,l[t])}O()}),{themes:l,themesRaw:v,cssRules:U}}function y(t){if(!r(d[4]).isServer){var o,u=(0,r(d[5]).getConfig)(),s=t.name,c=t.theme,f=t.insertCSS,h=t.mutationType,l=Object.assign({},"update"===h&&null!==(o=u.themes[s])&&void 0!==o?o:{},c);for(var v in l)(0,r(d[5]).ensureThemeVariable)(l,v);var p=(0,r(d[5]).proxyThemeToParents)(s,l),y={themeRaw:l,theme:p,cssRules:[]};return t.avoidUpdate||(f&&(y.cssRules=T(n({},s,l))),b(s,p),O()),y}}function b(t,n){var o=(0,r(d[5]).getConfig)();o.themes[t]=n,(0,r(d[5]).updateConfig)("themes",o.themes)}function O(){(0,r(d[5]).forceUpdateThemes)()}function T(t){return[]}!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(v,{_mutateTheme:function(){return y},mutateThemes:function(){return p}}),m.exports=(t=v,l(s({},"__esModule",{value:!0}),t))},1092,[32,18,207,920,798,801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var y of u(f))b(y)}return t},p={};function s(t){return(0,r(d[0])._mutateTheme)(Object.assign({},t,{insertCSS:!0,mutationType:"add"}))}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{addTheme:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1093,[1092]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var y of u(f))s(y)}return t},p={};function b(t){var n=t.name,o=t.theme;return(0,r(d[0])._mutateTheme)({name:n,theme:o,insertCSS:!0,mutationType:"update"})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{updateTheme:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1094,[1092]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};function l(t){var n=t.name,o=t.theme;return(0,r(d[0])._mutateTheme)({name:n,theme:o,insertCSS:!0,mutationType:"replace"})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{replaceTheme:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1095,[1092]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1096,[1097]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=r(d[1]),l=r(d[2]),u=["disablePassStyles"],s=["__scopeToggleGroup","value"],c=["type"],f=["value","defaultValue","onValueChange","disableDeactivation"],p=["value","defaultValue","onValueChange","disableDeactivation"],v=["__scopeToggleGroup","disabled","orientation","dir","rovingFocus","loop","unstyled","size","sizeAdjust"],b=Object.create,y=Object.defineProperty,h=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,_=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,C=function(t,o,n,l){if(o&&"object"==typeof o||"function"==typeof o){var u=function(u){!x.call(t,u)&&u!==n&&y(t,u,{get:function(){return o[u]},enumerable:!(l=h(o,u))||l.enumerable})};for(var s of j(o))u(s)}return t},G={};!(function(t,o){for(var n in o)y(t,n,{get:o[n],enumerable:!0})})(G,{ToggleGroup:function(){return R}}),m.exports=(t=G,C(y({},"__esModule",{value:!0}),t));var O=r(d[3]),T=(function(t,o,n){return n=null!=t?b(_(t)):{},C(!o&&t&&t.__esModule?n:y(n,"default",{value:t,enumerable:!0}),t)})(r(d[4])),S="ToggleGroup",P="ToggleGroup",V=(0,r(d[5]).createStyledContext)(),w=V.Provider,D=(V.useStyledContext,(0,r(d[5]).createStyledContext)()),z=D.Provider,I=D.useStyledContext,F=r(d[6]).ToggleFrame.extractable(T.default.forwardRef(function(t,o){var s,c=(0,r(d[5]).usePropsAndStyle)(t),f=l(c,2),p=(f[0],f[1].color),v=(t.disablePassStyles,n(t,u)),b=M(t.__scopeToggleGroup),y=I(t.__scopeToggleGroup),h=null==b?void 0:b.value.includes(t.value),j=y.disabled||t.disabled||!1,_=(0,r(d[7]).useGroupItem)({disabled:j}),x=null!==(s=t.size)&&void 0!==s?s:y.size,C=t.unstyled?{}:{width:void 0,height:void 0,padding:.6*(0,r(d[5]).getVariableValue)(x)},G=1.2*("number"==typeof x?.7*x:(0,r(d[8]).getFontSize)(x)),S=(0,r(d[5]).useTheme)(),V=(0,r(d[9]).useGetThemedIcon)({size:G,color:null!=p?p:S.color}),D=T.default.Children.toArray(t.children).map(function(o){return t.disablePassStyles||!T.default.isValidElement(o)?o:V(o)}),z=Object.assign({pressed:h,disabled:j},C,v,{children:D}),F=(0,O.jsx)(A,Object.assign({},z,{ref:o,tabIndex:j?-1:0,disabled:j},_));return(0,O.jsx)(w,{scope:t.__scopeToggleGroup,children:y.rovingFocus?(0,O.jsx)(r(d[10]).RovingFocusGroup.Item,{asChild:"except-style",__scopeRovingFocusGroup:t.__scopeToggleGroup||P,focusable:!j,active:h,children:F}):F})}));F.displayName="ToggleGroupItem";var A=T.default.forwardRef(function(t,o){var l=t.__scopeToggleGroup,u=t.value,c=n(t,s),f=M(l),p={"aria-pressed":void 0},v="single"===f.type?p:void 0;return(0,O.jsx)(r(d[6]).Toggle,Object.assign({},v,c,{ref:o,onPressedChange:function(t){t?f.onItemActivate(u):f.onItemDeactivate(u)}}))}),R=(0,r(d[11]).withStaticProperties)(T.default.forwardRef(function(t,o){var l=t.type,u=n(t,c);if(r(d[12]).isWeb||T.default.useEffect(function(){if(t.id)return(0,r(d[13]).registerFocusable)(t.id,{focus:function(){}})},[t.id]),"single"===l){var s=u;return(0,O.jsx)(N,Object.assign({},s,{ref:o}))}if("multiple"===l){var f=u;return(0,O.jsx)($,Object.assign({},f,{ref:o}))}throw new Error(`Missing prop \`type\` expected on \`${S}\``)}),{Item:F});R.displayName=S;var k=(0,r(d[5]).createStyledContext)(),E=k.Provider,M=k.useStyledContext,N=T.default.forwardRef(function(t,o){var u=t.value,s=t.defaultValue,c=t.onValueChange,p=void 0===c?function(){}:c,v=t.disableDeactivation,b=void 0!==v&&v,y=n(t,f),h=(0,r(d[14]).useControllableState)({prop:u,defaultProp:s,onChange:p}),j=l(h,2),_=j[0],x=j[1];return(0,O.jsx)(E,{scope:t.__scopeToggleGroup,type:"single",value:_?[_]:[],defaultValue:_,onItemActivate:x,onItemDeactivate:T.default.useCallback(function(){return b?null:x("")},[x,b]),children:(0,O.jsx)(L,Object.assign({},y,{ref:o}))})}),$=T.default.forwardRef(function(t,u){var s=t.value,c=t.defaultValue,f=t.onValueChange,v=void 0===f?function(){}:f,b=(t.disableDeactivation,n(t,p)),y=(0,r(d[14]).useControllableState)({prop:s,defaultProp:c,onChange:v}),h=l(y,2),j=h[0],_=void 0===j?[]:j,x=h[1],C=T.default.useCallback(function(t){return x(function(){return[].concat(o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),[t])})},[x]),G=T.default.useCallback(function(t){return x(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(o){return o!==t})})},[x]);return(0,O.jsx)(E,{scope:t.__scopeToggleGroup,type:"multiple",value:_,defaultValue:_,onItemActivate:C,onItemDeactivate:G,children:(0,O.jsx)(L,Object.assign({},b,{ref:u}))})});R.displayName=S;var H=(0,r(d[5]).styled)(r(d[7]).Group,{name:S,variants:{unstyled:{false:{backgroundColor:"$background"}},orientation:{vertical:{flexDirection:"column",spaceDirection:"vertical"},horizontal:{flexDirection:"row",spaceDirection:"horizontal"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),L=H.extractable(T.default.forwardRef(function(t,o){var l=t.__scopeToggleGroup,u=t.disabled,s=void 0!==u&&u,c=t.orientation,f=void 0===c?"horizontal":c,p=t.dir,b=t.rovingFocus,y=void 0===b||b,h=t.loop,j=void 0===h||h,_=t.unstyled,x=void 0!==_&&_,C=t.size,G=void 0===C?"$true":C,T=t.sizeAdjust,S=void 0===T?0:T,V=n(t,v),w=(0,r(d[15]).useDirection)(p),D=Object.assign({role:"group",dir:w},V),I=(0,r(d[5]).getVariableValue)((0,r(d[16]).getSize)(G,{shift:S})),F=Math.round(.45*I);return(0,O.jsx)(z,{scope:l,rovingFocus:y,disabled:s,size:F,children:y?(0,O.jsx)(r(d[10]).RovingFocusGroup,{asChild:"except-style",__scopeRovingFocusGroup:l||P,orientation:f,dir:w,loop:j,children:(0,O.jsx)(H,Object.assign({"aria-orientation":f,orientation:f,axis:f,ref:o,"data-disabled":s?"":void 0,unstyled:x},D))}):(0,O.jsx)(H,Object.assign({"aria-orientation":f,ref:o,orientation:f,"data-disabled":s?"":void 0,unstyled:x},D))})}))},1097,[32,207,19,258,128,801,1098,1031,1006,1008,1058,811,798,1022,918,921,929]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=r(d[1]),l=["pressed","defaultPressed","onPressedChange"],u=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(o,t,n,l){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!v.call(o,u)&&u!==n&&s(o,u,{get:function(){return t[u]},enumerable:!(l=c(t,u))||l.enumerable})};for(var b of f(t))u(b)}return o},y={};!(function(o,t){for(var n in t)s(o,n,{get:t[n],enumerable:!0})})(y,{Toggle:function(){return k},ToggleFrame:function(){return S},context:function(){return P}}),m.exports=(o=y,p(s({},"__esModule",{value:!0}),o));var C=r(d[2]),h=(function(o,t,n){return n=null!=o?u(b(o)):{},p(!t&&o&&o.__esModule?n:s(n,"default",{value:o,enumerable:!0}),o)})(r(d[3])),P=(0,r(d[4]).createStyledContext)({color:""}),S=(0,r(d[4]).styled)(r(d[5]).ThemeableStack,{name:"Toggle",tag:"button",context:P,variants:{unstyled:{false:{pressTheme:!0,backgroundColor:"$background",alignItems:"center",justifyContent:"center",display:"flex",borderColor:"$borderColor",borderWidth:1,margin:-1,hoverStyle:{backgroundColor:"$backgroundHover"},pressStyle:{backgroundColor:"$backgroundPress"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}}},color:{"...color":function(){return{}}},active:{true:{zIndex:1,hoverStyle:{backgroundColor:"$background"},focusStyle:{borderColor:"$borderColor",backgroundColor:"$background"}}},orientation:{horizontal:{flexDirection:"row",spaceDirection:"horizontal"},vertical:{flexDirection:"column",spaceDirection:"vertical"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),k=h.forwardRef(function(o,u){var s,c=o.pressed,f=o.defaultPressed,b=void 0!==f&&f,v=o.onPressedChange,p=n(o,l),y=(0,r(d[6]).useControllableState)({prop:c,onChange:v,defaultProp:b}),h=t(y,2),P=h[0],k=void 0!==P&&P,O=h[1];return(0,C.jsx)(S,Object.assign({},!o.unstyled&&{theme:k?"active":null,themeShallow:!0},{active:o.unstyled?void 0:k,"aria-pressed":k,"data-state":k?"on":"off","data-disabled":o.disabled?"":void 0},p,{ref:u,onPress:(0,r(d[7]).composeEventHandlers)(null!==(s=o.onPress)&&void 0!==s?s:void 0,function(){o.disabled||O(!k)})}))})},1098,[19,207,258,128,801,923,918,811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1099,[1100,1101]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{Tooltip:function(){return y},TooltipGroup:function(){return b},closeOpenTooltips:function(){return O}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t){return t.children},s=function(t){return null},b=function(){return null},O=function(){},y=(0,r(d[0]).withStaticProperties)(p,{Anchor:p,Arrow:s,Close:s,Content:s,Trigger:p})},1100,[811]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{TooltipSimple:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return t.children}},1101,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(n,t,f,s){if(t&&"object"==typeof t||"function"==typeof t){var b=function(c){!l.call(n,c)&&c!==f&&o(n,c,{get:function(){return t[c]},enumerable:!(s=u(t,c))||s.enumerable})};for(var p of c(t))b(p)}return n},b={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(b,{configureInitialWindowDimensions:function(){return r(d[0]).configureInitialWindowDimensions},useWindowDimensions:function(){return v}}),m.exports=(n=b,s(o({},"__esModule",{value:!0}),n));var p=(function(n,u,c){return c=null!=n?t(f(n)):{},s(!u&&n&&n.__esModule?c:o(c,"default",{value:n,enumerable:!0}),n)})(r(d[1]));function v(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).serverValue,t=void 0===n?r(d[0]).initialValue:n;return p.default.useSyncExternalStore(r(d[2]).subscribe,r(d[2]).getWindowSize,function(){return r(d[3]).isWeb?t:(0,r(d[2]).getWindowSize)()})}},1102,[1103,128,1104,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))p(b)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{configureInitialWindowDimensions:function(){return p},initialValue:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s={width:800,height:600,scale:1,fontScale:1};function p(t){Object.assign(s,t)}},1103,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var v of u(f))p(v)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{getWindowSize:function(){return p},subscribe:function(){return w}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var b=r(d[0]);function p(){return b.Dimensions.get("window")}var v=new Set;function w(n){return v.add(n),function(){return v.delete(n)}}b.Dimensions.addEventListener("change",function(n){var t=n.window;v.forEach(function(n){return n(t)})})},1104,[28]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1105,[1106]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=function(t,l,p,c){if(l&&"object"==typeof l||"function"==typeof l){var f=function(u){!s.call(t,u)&&u!==p&&n(t,u,{get:function(){return l[u]},enumerable:!(c=o(l,u))||c.enumerable})};for(var v of u(l))f(v)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{VisuallyHidden:function(){return c}}),m.exports=(t=p,l(n({},"__esModule",{value:!0}),t));var c=(0,r(d[0]).styled)(r(d[0]).Text,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});c.isVisuallyHidden=!0},1106,[801]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{createTamagui:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=r(d[0]).createTamagui},1107,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1108,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var v=function(f){!l.call(t,f)&&f!==o&&c(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))v(p)}return t},v={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(v,{TamaguiProvider:function(){return b}}),m.exports=(t=v,s(c({},"__esModule",{value:!0}),t));var p=r(d[1]),b=function(t){var c=t.children,u=n(t,o);return(0,p.jsx)(r(d[2]).TamaguiProvider,Object.assign({},u,{children:(0,p.jsx)(r(d[3]).ZIndexStackContext.Provider,{value:1,children:(0,p.jsx)(r(d[4]).PortalProvider,{shouldAddRootHost:!0,children:c})})}))}},1109,[207,258,796,959,953]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["href","target"],c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var b=function(u){!s.call(t,u)&&u!==o&&c(t,u,{get:function(){return n[u]},enumerable:!(l=f(n,u))||l.enumerable})};for(var p of u(n))b(p)}return t},b={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(b,{Anchor:function(){return O}}),m.exports=(t=b,l(c({},"__esModule",{value:!0}),t));var p=r(d[1]),v=r(d[2]),y=(0,r(d[3]).styled)(r(d[4]).SizableText,{name:"Anchor",tag:"a",accessibilityRole:"link"}),O=y.styleable(function(t,c){var f=t.href,u=t.target,s=n(t,o);return(0,p.jsx)(y,Object.assign({},s,r(d[5]).isWeb?{href:f,target:u}:{onPress:function(t){var n;null===(n=s.onPress)||void 0===n||n.call(s,t),void 0!==f&&v.Linking.openURL(f)}},{ref:c}))})},1110,[207,258,28,796,944,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,l){if(c&&"object"==typeof c||"function"==typeof c){var p=function(w){!u.call(t,w)&&w!==f&&n(t,w,{get:function(){return c[w]},enumerable:!(l=o(c,w))||l.enumerable})};for(var s of w(c))p(s)}return t},f={};!(function(t,o){for(var w in o)n(t,w,{get:o[w],enumerable:!0})})(f,{EnsureFlexed:function(){return l}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{opacity:0,lineHeight:0,height:0,display:"flex",fontSize:200,children:"wwwwwwwwwwwwwwwwwww",pointerEvents:"none"});l.isVisuallyHidden=!0},1111,[796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))p(b)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Fieldset:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).styled)(r(d[1]).YStack,{name:"Fieldset",tag:"fieldset",borderWidth:0,variants:{horizontal:{true:{flexDirection:"row",alignItems:"center"}}}})},1112,[796,923]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=function(o,t,s,f){if(t&&"object"==typeof t||"function"==typeof t){var b=function(u){!c.call(o,u)&&u!==s&&n(o,u,{get:function(){return t[u]},enumerable:!(f=l(t,u))||f.enumerable})};for(var p of u(t))b(p)}return o},b={};!(function(o,t){for(var l in t)n(o,l,{get:t[l],enumerable:!0})})(b,{Input:function(){return O},InputFrame:function(){return h},defaultStyles:function(){return C},useInputProps:function(){return j}}),m.exports=(o=b,f(n({},"__esModule",{value:!0}),o));var p=r(d[0]),v=(function(o,l,u){return u=null!=o?t(s(o)):{},f(!l&&o&&o.__esModule?u:n(u,"default",{value:o,enumerable:!0}),o)})(r(d[1])),y=r(d[2]),C=Object.assign({size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color"},r(d[3]).isWeb?{tabIndex:0}:{focusable:!0},{borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}}),h=(0,r(d[4]).styled)(y.TextInput,{name:"Input",variants:{unstyled:{false:C},size:{"...size":r(d[5]).inputSizeVariant},disabled:{true:{}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color"}}),O=h.styleable(function(o,t){var n=v.default.useRef(null),l=j(o,(0,r(d[4]).useComposedRefs)(t,n));return(0,p.jsx)(h,Object.assign({},l))});function j(o,t){var n=(0,r(d[4]).useTheme)(),l=(0,r(d[6]).useFocusable)({props:o,ref:t,isInput:!0}),u=v.default.useMemo(function(){var t,l,u,s,c=o.placeholderTextColor;return null!==(s=null!==(u=null===(t=n[c])||void 0===t?void 0:t.get())&&void 0!==u?u:c)&&void 0!==s?s:null===(l=n.placeholderColor)||void 0===l?void 0:l.get()},[o.placeholderTextColor,n]);return v.default.useMemo(function(){return Object.assign({ref:l.ref,readOnly:o.disabled},o,{placeholderTextColor:u,onChangeText:l.onChangeText})},[l.ref,l.onChangeText,o.disabled,o,u])}},1113,[258,128,28,798,796,1114,1022]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{inputSizeVariant:function(){return s},textAreaSizeVariant:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",n=arguments.length>1?arguments[1]:void 0;if(n.props.multiline||n.props.numberOfLines>1)return l(t,n);var o=(0,r(d[0]).getButtonSized)(t,n),u=(0,r(d[1]).getSpace)(t,{shift:-1,bounds:[2]}),c=(0,r(d[2]).getFontSized)(t,n);return!r(d[3]).isWeb&&c&&delete c.lineHeight,Object.assign({},c,o,{paddingHorizontal:u})},l=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",o=arguments.length>1?arguments[1]:void 0,u=o.props,c=(0,r(d[0]).getButtonSized)(n,o),f=(0,r(d[2]).getFontSized)(n,o),p=null!==(t=u.rows)&&void 0!==t?t:u.numberOfLines,s="number"==typeof p?p*(0,r(d[3]).getVariableValue)(f.lineHeight):"auto",l=(0,r(d[1]).getSpace)(n,{shift:-2,bounds:[2]}),b=(0,r(d[1]).getSpace)(n,{shift:-1,bounds:[2]});return Object.assign({},c,f,{paddingVertical:l,paddingHorizontal:b,height:s})}},1114,[928,929,946,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["size","color"],c=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var s=function(l){!b.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=f(n,l))||c.enumerable})};for(var p of l(n))s(p)}return t},O={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(O,{Spinner:function(){return _}}),m.exports=(t=O,p(u({},"__esModule",{value:!0}),t));var j=r(d[1]),v=(function(t,n,o){return o=null!=t?c(s(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),y=r(d[3]),_=r(d[4]).YStack.extractable((0,r(d[5]).themeable)(v.forwardRef(function(t,c){var u=t.size,f=t.color,l=n(t,o),s=(0,r(d[5]).useTheme)(),b=f;return b&&"$"===b[0]&&(b=(0,r(d[5]).variableToString)(s[b])),(0,j.jsx)(r(d[4]).YStack,Object.assign({ref:c},l,{children:(0,j.jsx)(y.ActivityIndicator,{size:u,color:b})}))}),{componentName:"Spinner"}))},1115,[207,258,128,28,923,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=function(t,n,u,f){if(n&&"object"==typeof n||"function"==typeof n){var p=function(l){!c.call(t,l)&&l!==u&&o(t,l,{get:function(){return n[l]},enumerable:!(f=s(n,l))||f.enumerable})};for(var b of l(n))p(b)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{TextArea:function(){return j},TextAreaFrame:function(){return v}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,s){return s=null!=t?u(f(t)):{},p(!n&&t&&t.__esModule?s:o(s,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=(0,r(d[3]).styled)(r(d[4]).InputFrame,{name:"TextArea",multiline:!0,whiteSpace:"pre-wrap",variants:{unstyled:{false:Object.assign({height:"auto"},r(d[4]).defaultStyles)},size:{"...size":r(d[5]).textAreaSizeVariant}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),j=v.styleable(function(t,u){var o=O.default.useRef(null),s=(0,r(d[3]).useComposedRefs)(u,o),l=(0,r(d[4]).useInputProps)(t,s),f=n({},r(d[6]).isWeb?"rows":"numberOfLines",t.unstyled?void 0:4);return(0,y.jsx)(v,Object.assign({},f,l))})},1116,[18,258,128,796,1113,1114,798]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var y of u(f))p(y)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Text:function(){return l}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{variants:{unstyled:{false:{color:"$color"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1117,[796]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.extensionTamaguiConfig=e.extensionSpace=e.extensionSize=e.extensionRadius=e.extensionFontSize=void 0;var $=e.extensionSize={$0:0,'$0.25':1,'$0.5':2,'$0.75':3,$1:4,'$1.5':6,$2:8,'$2.5':10,$3:12,'$3.5':14,$4:14,$true:16,'$4.5':16,$5:20,$6:24,$7:24,$8:32,$9:36,$10:40,$11:44,$12:48,$13:52,$14:56,$15:60,$16:64,$17:68,$18:72,$19:76,$20:80,$21:84,$22:88,$23:92,$24:96,$25:100,$26:104,$27:108,$28:112,$29:116,$30:120,$31:124,$32:128,$33:132,$34:136,$35:140,$36:144,$37:148,$38:152,$39:156,$40:160,$41:164,$42:168,$43:172,$44:176,$45:180,$46:184,$47:188,$48:192,$49:196,$container:400,$nav:400,$content:367,$card:71,$cardWidth:364,$cardContainer:381,$icon:53,$tab:198,$tabHeight:48,$paddingContainer:16,$paddingCard:9,$paddingCardInner:8,$gapCard:11,$gapTab:58},n=e.extensionSpace=Object.assign({},$,{'$-0.25':-1,'$-0.5':-2,'$-0.75':-3,'$-1':-4,'$-1.5':-6,'$-2':-8,'$-2.5':-10,'$-3':-12,'$-3.5':-14,'$-4':-16,'$-4.5':-18,'$-5':-20,'$-6':-24,'$-7':-28,'$-8':-32,'$-9':-36,'$-10':-40,'$-11':-44,'$-12':-48,'$-13':-52,'$-14':-56,'$-15':-60,'$-16':-64,'$-17':-68,'$-18':-72,'$-19':-76,'$-20':-80,'$-21':-84,'$-22':-88,'$-23':-92,'$-24':-96,'$-25':-100,'$-26':-104,'$-27':-108,'$-28':-112,'$-29':-116,'$-30':-120}),t=e.extensionRadius={0:0,1:4,2:9,3:13,4:16,true:18,5:22,6:27,7:31,8:36,9:40,10:44,11:49,12:53,card:18,button:27,icon:222,nav:0},o=e.extensionFontSize={xs:13,sm:16,base:18,lg:20,xl:22,'2xl':27,'3xl':31,'4xl':36,'5xl':40,'6xl':44,title:20,tab:18,body:16,small:13};e.extensionTamaguiConfig=(0,r(d[0]).createTamagui)(Object.assign({},r(d[1]).defaultConfig,{themes:r(d[2]).themes,tokens:Object.assign({},r(d[1]).defaultConfig.tokens,r(d[2]).colorTokens,{size:$,space:n,zIndex:r(d[2]).zIndex,radius:t,fontSize:o})}))},1118,[795,1119,1154]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,f,l){if(c&&"object"==typeof c||"function"==typeof c){var h=function(u){!s.call(t,u)&&u!==f&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var y of u(c))h(y)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{animations:function(){return r(d[0]).animations},breakpoints:function(){return r(d[1]).breakpoints},createSystemFont:function(){return r(d[2]).createSystemFont},createThemes:function(){return r(d[3]).createThemes},defaultConfig:function(){return y},fonts:function(){return r(d[2]).fonts},media:function(){return r(d[1]).media},mediaQueryDefaultActive:function(){return r(d[1]).mediaQueryDefaultActive},selectionStyles:function(){return l},settings:function(){return h},shorthands:function(){return r(d[4]).shorthands},tamaguiThemes:function(){return r(d[5]).tamaguiThemes},themes:function(){return r(d[5]).defaultThemes},tokens:function(){return r(d[5]).tokens}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var l=function(t){return t.color5?{backgroundColor:t.color5,color:t.color11}:null},h={mediaQueryDefaultActive:r(d[1]).mediaQueryDefaultActive,defaultFont:"body",fastSchemeChange:!0,shouldAddPrefersColorThemes:!0,allowedStyleValues:"somewhat-strict-web",themeClassNameOnRoot:!0,onlyAllowShorthands:!0,maxDarkLightNesting:2},y={animations:r(d[6]).animations,media:r(d[1]).media,shorthands:r(d[4]).shorthands,themes:r(d[5]).defaultThemes,tokens:r(d[5]).tokens,fonts:r(d[2]).fonts,selectionStyles:l,settings:h}},1119,[1120,1124,1125,1126,1147,1148,1153]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var l of c(f))b(l)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{animations:function(){return r(d[0]).animationsReactNative}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1120,[1121]); +__d(function(g,r,i,a,m,e,d){"use strict";var s,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,o=function(s,o,u,c){if(o&&"object"==typeof o||"function"==typeof o){var y=function(p){!f.call(s,p)&&p!==u&&t(s,p,{get:function(){return o[p]},enumerable:!(c=n(o,p))||c.enumerable})};for(var l of p(o))y(l)}return s},u={};!(function(s,n){for(var p in n)t(s,p,{get:n[p],enumerable:!0})})(u,{animationsReactNative:function(){return c}}),m.exports=(s=u,o(t({},"__esModule",{value:!0}),s));var c=(0,r(d[0]).createAnimations)({"75ms":{type:"timing",duration:75},"100ms":{type:"timing",duration:100},"200ms":{type:"timing",duration:200},superBouncy:{type:"spring",damping:5,mass:.7,stiffness:200},bouncy:{type:"spring",damping:9,mass:.9,stiffness:150},lazy:{type:"spring",damping:18,stiffness:50},medium:{damping:15,stiffness:120,mass:1},slowest:{type:"spring",damping:15,stiffness:10},slow:{type:"spring",damping:15,stiffness:40},quick:{type:"spring",damping:20,mass:1.2,stiffness:250},tooltip:{type:"spring",damping:10,mass:.9,stiffness:100},quicker:{type:"spring",damping:20,mass:1,stiffness:250},quickest:{damping:14,mass:.1,stiffness:380}})},1121,[1122]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1122,[1123]); +__d(function(g,_r,i,a,m,e,d){"use strict";var t,n=_r(d[0]),r=_r(d[1]),u=_r(d[2]),o=_r(d[3]),l=["type"],s=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,y=function(t,n,r,u){if(n&&"object"==typeof n||"function"==typeof n){var o=function(o){!b.call(t,o)&&o!==r&&c(t,o,{get:function(){return n[o]},enumerable:!(u=f(n,o))||u.enumerable})};for(var l of v(n))o(l)}return t},O={};!(function(t,n){for(var r in n)c(t,r,{get:n[r],enumerable:!0})})(O,{AnimatedText:function(){return N},AnimatedView:function(){return w},createAnimations:function(){return x},useAnimatedNumber:function(){return W},useAnimatedNumberReaction:function(){return P},useAnimatedNumberStyle:function(){return T}}),m.exports=(t=O,y(c({},"__esModule",{value:!0}),t));var h=(function(t,n,r){return r=null!=t?s(p(t)):{},y(!n&&t&&t.__esModule?r:c(r,"default",{value:t,enumerable:!0}),t)})(_r(d[4])),A=_r(d[5]),R={transform:!0,opacity:!0},j={backgroundColor:!0,color:!0,borderColor:!0,borderLeftColor:!0,borderRightColor:!0,borderTopColor:!0,borderBottomColor:!0},V=Object.assign({borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderTopWidth:!0,borderBottomWidth:!0},j),w=A.Animated.View,N=A.Animated.Text;function W(t){var n=h.default.useRef(null);return n.current||(n.current={composite:null,val:new A.Animated.Value(t),strategy:{type:"spring"}}),{getInstance:function(){return n.current.val},getValue:function(){return n.current.val._value},stop:function(){var t;null===(t=n.current.composite)||void 0===t||t.stop(),n.current.composite=null},setValue:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"spring"},u=r.type,s=o(r,l),c=arguments.length>2?arguments[2]:void 0,f=n.current.val,v=c?function(t){return t.finished?c():null}:void 0;if("direct"===u)f.setValue(t);else if("spring"===u){var p;null===(p=n.current.composite)||void 0===p||p.stop();var b=A.Animated.spring(f,Object.assign({},s,{toValue:t,useNativeDriver:!_r(d[6]).isWeb}));b.start(v),n.current.composite=b}else{var y;null===(y=n.current.composite)||void 0===y||y.stop();var O=A.Animated.timing(f,Object.assign({},s,{toValue:t,useNativeDriver:!_r(d[6]).isWeb}));O.start(v),n.current.composite=O}}}}var P=function(t,n){var r=t.value,u=(0,_r(d[7]).useEvent)(function(t){n(t.value)});h.default.useEffect(function(){var t=r.getInstance().addListener(u);return function(){r.getInstance().removeListener(t)}},[r,u])},T=function(t,n){return n(t.getInstance())};function x(t){return{isReactNative:!0,animations:t,View:w,Text:N,useAnimatedNumber:W,useAnimatedNumberReaction:P,useAnimatedNumberStyle:T,usePresence:_r(d[8]).usePresence,ResetPresence:_r(d[8]).ResetPresence,useAnimations:function(o){var l=o.props,s=o.onDidAnimate,c=o.style,f=o.componentState,v=o.presence,p=_r(d[6]).isWeb&&!0===f.unmounted,b=!1===(null==v?void 0:v[0]),y=null==v?void 0:v[1],O=h.default.useRef({}),w=h.default.useRef([]),N=h.default.useRef(new WeakMap),W=l.animateOnly||[],P=!!l.animateOnly,T=[JSON.stringify(c),f,b,!!s],x=h.default.useMemo(function(){return!!_r(d[6]).isWeb||Object.keys(c).some(function(t){return W?!R[t]&&-1===W.indexOf(t):!R[t]})},T),k=h.default.useMemo(function(){var o=[],s=[],f={};for(var v in c){var b=c[v];if(!p){if(null==R[v]&&!V[v]){f[v]=b;continue}if(P&&!W.includes(v)){f[v]=b;continue}if("transform"!==v){O.current[v]=q(v,O.current[v],b);continue}if(b){if("string"==typeof b){console.warn("Warning: Tamagui can't animate string transforms yet!");continue}var y=!0,h=!1,T=void 0;try{for(var k,E=b.entries()[Symbol.iterator]();!(y=(k=E.next()).done);y=!0){var I,M=u(k.value,2),S=M[0],B=M[1];if(B){var $=Object.keys(B)[0],X=null===(I=w.current[S])||void 0===I?void 0:I[$];w.current[S]=r({},$,q($,X,B[$])),w.current=n(w.current)}}}catch(t){h=!0,T=t}finally{try{!y&&null!=E.return&&E.return()}finally{if(h)throw T}}}}}var Y=Object.assign({},Object.fromEntries(Object.entries(O.current).map(function(t){var n,r=u(t,2),o=r[0],l=r[1];return[o,(null===(n=N.current.get(l))||void 0===n?void 0:n.interpolation)||l]})),{transform:w.current.map(function(t){var n,u=Object.keys(t)[0],o=(null===(n=N.current.get(t[u]))||void 0===n?void 0:n.interpolation)||t[u];return r({},u,o)})});return{runners:o,completions:s,style:[f,Y]};function q(n,r,c){var f,v,p=j[n],b=p?[0,void 0]:D(c),y=u(b,2),O=y[0],h=y[1],R=O,V=r||new A.Animated.Value(O),w=N.current.get(V);h&&(f=L(null!==(v=null==w?void 0:w.current)&&void 0!==v?v:V._value,O,h),N.current.set(V,{interpolation:V.interpolate(f),current:O}));if(p&&(R=null!=w&&w.animateToValue?0:1,f=_(null==w?void 0:w.current,c,R),N.current.set(V,{current:c,interpolation:V.interpolate(f),animateToValue:null!=w&&w.animateToValue?0:1})),V){var W,P=C(n,t,l.animation),T=new Promise(function(t){W=t});s.push(T),o.push(function(){function t(){return A.Animated[P.type||"spring"](V,Object.assign({toValue:R,useNativeDriver:!_r(d[6]).isWeb&&!x},P))}V.stopAnimation(),(P.delay?A.Animated.sequence([A.Animated.delay(P.delay),t()]):t()).start(function(t){t.finished&&W()})})}return V}},T);return(0,_r(d[6]).useIsomorphicLayoutEffect)(function(){k.runners.forEach(function(t){return t()});var t=!1;return Promise.all(k.completions).then(function(){t||(null==s||s(),b&&(null==y||y()))}),function(){t=!0}},T),k}}}function _(t,n,r){var u=[t||n,n];return 0===r&&u.reverse(),{inputRange:[0,1],outputRange:u}}function L(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"deg";n===t&&(t=n-1e-9);var u=[t,n],o=[`${t}${r}`,`${n}${r}`];return n0&&void 0!==arguments[0]?arguments[0]:{},o=t.font,c=void 0===o?{}:o,u=t.sizeLineHeight,s=void 0===u?function(t){return t+10}:u,f=t.sizeSize,b=void 0===f?function(t){return 1*t}:f,l=Object.fromEntries(Object.entries(Object.assign({},p,c.size)).map(function(t){var o=n(t,2),c=o[0],u=o[1];return[c,b(+u)]}));return(0,r(d[1]).createFont)(Object.assign({family:r(d[1]).isWeb?'-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"System",lineHeight:Object.fromEntries(Object.entries(l).map(function(t){var o=n(t,2),c=o[0],u=o[1];return[c,s((0,r(d[1]).getVariableValue)(u))]})),weight:{4:"300"},letterSpacing:{4:0}},c,{size:l}))},p={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},v={body:l(),heading:l({sizeSize:function(t){return 1.4*t}})}},1125,[19,796]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(o){!c.call(t,o)&&o!==s&&n(t,o,{get:function(){return f[o]},enumerable:!(l=u(f,o))||l.enumerable})};for(var T of o(f))p(T)}return t},s=function(t,n,u){return f(t,n,"default"),u&&f(u,n,"default")},l={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(l,{PALETTE_BACKGROUND_OFFSET:function(){return r(d[0]).PALETTE_BACKGROUND_OFFSET},createPalettes:function(){return r(d[1]).createPalettes},createStudioThemes:function(){return r(d[2]).createStudioThemes},createThemes:function(){return r(d[1]).createThemes},defaultComponentThemes:function(){return r(d[3]).defaultComponentThemes},defaultTemplates:function(){return r(d[4]).defaultTemplates},getThemeSuitePalettes:function(){return r(d[0]).getThemeSuitePalettes},masks:function(){return r(d[5]).masks}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t)),s(l,r(d[6]),m.exports),s(l,r(d[7]),m.exports)},1126,[1127,1129,1143,1132,1130,1146,1133,1134]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var h=function(c){!f.call(t,c)&&c!==o&&u(t,c,{get:function(){return n[c]},enumerable:!(s=l(n,c))||s.enumerable})};for(var v of c(n))h(v)}return t},h={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(h,{PALETTE_BACKGROUND_OFFSET:function(){return v},getThemeSuitePalettes:function(){return y}}),m.exports=(t=h,s(u({},"__esModule",{value:!0}),t));var v=6,p=function(t){var u=t.palette,l=t.scheme;if(!u)return[];var c=u.anchors,f=[],s=function(t,n,o){f.push((0,r(d[2]).hsla)(t,n,o,1))},h=Object.keys(c).length,v=!0,p=!1,y=void 0;try{for(var b,O=c.entries()[Symbol.iterator]();!(v=(b=O.next()).done);v=!0){var x=o(b.value,2),j=x[0],P=x[1],_=[P.hue[l],P.sat[l],P.lum[l]],T=_[0],w=_[1],k=_[2];if(0!==j)for(var E=c[j-1],S=P.index-E.index,A=E.hue[l],D=E.sat[l],F=E.lum[l],N=(A-T)/S,B=(D-w)/S,C=(F-k)/S,G=E.index+1;G>>0)%2341}var l=function(r){return parseInt(r.replace(/_/g,''),36)},v='1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce(function(r,t){for(var n=l(t.substring(0,3)),e=l(t.substring(3)).toString(16),a='',o=0;o<6-e.length;o++)a+='0';return r[n]=`${a}${e}`,r},{});function p(r){var t=r.toLowerCase().trim(),n=v[s(t)];if(!n)throw new c(r);return`#${n}`}var h=function(r,t){return Array.from(Array(t)).map(function(){return r}).join('')},g=new RegExp(`^#${h('([a-f0-9])',3)}([a-f0-9])?$`,'i'),z=new RegExp(`^#${h('([a-f0-9]{2})',3)}([a-f0-9]{2})?$`,'i'),y=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${h(',\\s*(\\d+)\\s*',2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,'i'),b=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,w=/^[a-z]+$/i,x=function(r){return Math.round(255*r)},k=function(r,t,n){var e=n/100;if(0===t)return[e,e,e].map(x);var a=(r%360+360)%360/60,o=(1-Math.abs(2*e-1))*(t/100),i=o*(1-Math.abs(a%2-1)),u=0,_=0,c=0;a>=0&&a<1?(u=o,_=i):a>=1&&a<2?(u=i,_=o):a>=2&&a<3?(_=o,c=i):a>=3&&a<4?(_=i,c=o):a>=4&&a<5?(u=i,c=o):a>=5&&a<6&&(u=o,c=i);var f=e-o/2;return[u+f,_+f,c+f].map(x)};function j(t){var n=f(t).map(function(r,t){return 3===t?r:r/255}),e=r(n,4),a=e[0],o=e[1],i=e[2],u=e[3],_=Math.max(a,o,i),c=Math.min(a,o,i),s=(_+c)/2;if(_===c)return[0,0,s,u];var l=_-c;return[60*(a===_?(o-i)/l+(o.5?l/(2-_-c):l/(_+c),s,u]}function $(r,t,n,e){return`hsla(${(r%360).toFixed()}, ${_(0,100,100*t).toFixed()}%, ${_(0,100,100*n).toFixed()}%, ${parseFloat(_(0,1,e).toFixed(3))})`}function q(t,n){var e=j(t),a=r(e,4);return $(a[0],a[1],a[2]-n,a[3])}function F(t,n){var e=j(t),a=r(e,4);return $(a[0],a[1]-n,a[2],a[3])}function M(t){if('transparent'===t)return 0;function n(r){var t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}var e=f(t),a=r(e,3),o=a[0],i=a[1],u=a[2];return.2126*n(o)+.7152*n(i)+.0722*n(u)}function A(r,t){var n=M(r),e=M(t);return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)}function C(r,t,n,e){return`rgba(${_(0,255,r).toFixed()}, ${_(0,255,t).toFixed()}, ${_(0,255,n).toFixed()}, ${parseFloat(_(0,1,e).toFixed(3))})`}function I(t,n,e){var a=function(r,t){return 3===t?r:r/255},o=f(t).map(a),i=r(o,4),u=i[0],_=i[1],c=i[2],s=i[3],l=f(n).map(a),v=r(l,4),p=v[0],h=v[1],g=v[2],z=v[3],y=z-s,b=2*e-1,w=((b*y===-1?b:b+y/(1+b*y))+1)/2,x=1-w;return C(255*(u*x+p*w),255*(_*x+h*w),255*(c*x+g*w),z*e+s*(1-e))}var R={decorative:1.5,readable:3,aa:4.5,aaa:7};function E(t,n){var e=f(t),a=r(e,4);return C(a[0],a[1],a[2],a[3]-n)}function B(r){return M(r)>.179}_e.ColorError=c,_e.adjustHue=function(t,n){var e=j(t),a=r(e,4);return $(a[0]+n,a[1],a[2],a[3])},_e.darken=q,_e.desaturate=F,_e.getContrast=A,_e.getLuminance=M,_e.getScale=function(){for(var r=arguments.length,t=new Array(r),n=0;n1&&void 0!==arguments[1]?arguments[1]:'aa';return A(r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:'#fff')5&&void 0!==arguments[5]&&arguments[5];if(!t[o])throw new Error(`No pallete: ${o}`);var v=Object.assign({},f);for(var l in f){var p=f[l];if("string"==typeof p&&"$"===p[0]){var O=p.split("."),y=n(O,2),j=y[0],w=y[1],_=j.slice(1),$=o.split("_")[0],M=t[_]||t[`${$}_${_}`];if(M){var P=b(M,+w);typeof P<"u"&&(v[l]=P)}}}return h(t[o],v,u,c,s)}function h(t,o,f,u){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=c?"":JSON.stringify([u,t,o,f]);if(!c&&l.has(s))return l.get(s);var v=Object.assign({},Object.fromEntries(Object.entries(o).map(function(o){var f=n(o,2),u=f[0],c=f[1];return[u,b(t,c)]})),null==f?void 0:f.nonInheritedValues);return(0,r(d[1]).setThemeInfo)(v,{palette:t,definition:o,options:f,name:u}),s&&l.set(s,v),v}var b=function(t,n){if(!t)throw new Error("No palette!");if("string"==typeof n)return n;var o=t.length-1,f=(0===n?!(0,r(d[2]).isMinusZero)(n):n>=0)?n:o+n;return t[Math.min(Math.max(0,f),o)]};function O(t,n){var o=Object.assign({},t);for(var f in t){var u=n(f,t[f]);for(var c in u)o[`${f}_${c}`]=u[c]}return o}},1135,[19,1136,1137]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,u=function(t,u,s,p){if(u&&"object"==typeof u||"function"==typeof u){var O=function(f){!c.call(t,f)&&f!==s&&n(t,f,{get:function(){return u[f]},enumerable:!(p=o(u,f))||p.enumerable})};for(var y of f(u))O(y)}return t},s={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(s,{getThemeInfo:function(){return O},setThemeInfo:function(){return y}}),m.exports=(t=s,u(n({},"__esModule",{value:!0}),t));var p=new Map,O=function(t,n){return p.get(n||JSON.stringify(t))},y=function(t,n){var o=Object.assign({},n,{cache:new Map});p.set(n.name||JSON.stringify(t),o),p.set(JSON.stringify(n.definition),o)}},1136,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p={};function b(t){return 1/t===Number.NEGATIVE_INFINITY}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isMinusZero:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1137,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,n,c,v){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!s.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(v=u(n,f))||v.enumerable})};for(var k of f(n))l(k)}return t},v={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(v,{createIdentityMask:function(){return y},createInverseMask:function(){return h},createMask:function(){return l},createShiftMask:function(){return b},createSoftenMask:function(){return O},createStrengthenMask:function(){return j},createWeakenMask:function(){return M},skipMask:function(){return k}}),m.exports=(t=v,c(o({},"__esModule",{value:!0}),t));var l=function(t){return"function"==typeof t?{name:t.name||"unnamed",mask:t}:t},k={name:"skip-mask",mask:function(t,o){var u=o.skip;return Object.fromEntries(Object.entries(t).filter(function(t){var o=n(t,1)[0];return!u||!(o in u)}).map(function(t){var u=n(t,2),f=u[0];return[f,p(f,u[1],o)]}))}};function p(t,n,o){var u,f,s=o.overrideStrategy,c=null===(u=o.overrideSwap)||void 0===u?void 0:u[t];if(typeof c<"u")f=c,s="swap";else{var v,l=null===(v=o.overrideShift)||void 0===v?void 0:v[t];if(typeof l<"u")f=l,s="shift";else{var k,p=null===(k=o.override)||void 0===k?void 0:k[t];typeof p<"u"&&(f=p,s=o.overrideStrategy)}}return typeof f>"u"||"string"==typeof f?n:"swap"===s?f:n}var y=function(){return{name:"identity-mask",mask:function(t,n){return k.mask(t,n)}}},h=function(){return{name:"inverse-mask",mask:function(t,o){var u=(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectEntries)(t).map(function(t){var o=n(t,2);return[o[0],-o[1]]}));return k.mask(u,o)}}},b=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).inverse,o=arguments.length>1?arguments[1]:void 0;return{name:"shift-mask",mask:function(u,f){var s=Object.assign({},o,f),c=s.override,v=s.overrideStrategy,l=void 0===v?"shift":v,p=s.max,y=s.palette,h=s.min,b=void 0===h?0:h,M=s.strength,O=void 0===M?1:M,j=Object.entries(u),S=null!=p?p:y?Object.values(y).length-1:Number.POSITIVE_INFINITY,w={},I=!0,x=!1,P=void 0;try{for(var _,E=j[Symbol.iterator]();!(I=(_=E.next()).done);I=!0){var N=n(_.value,2),F=N[0],T=N[1];if("string"!=typeof T){if("number"==typeof(null==c?void 0:c[F])){var D=c[F];w[F]="shift"===l?T+D:D;continue}if("string"==typeof(null==c?void 0:c[F])){w[F]=c[F];continue}var V=0===T?!(0,r(d[2]).isMinusZero)(T):T>=0,W=T+O*(V?1:-1)*(t?-1:1),Y=V?Math.max(b,Math.min(S,W)):Math.min(-b,Math.max(-S,W));w[F]=Y}}}catch(t){x=!0,P=t}finally{try{!I&&null!=E.return&&E.return()}finally{if(x)throw P}}return k.mask(w,f)}}},M=function(t){return{name:"soften-mask",mask:b({},t).mask}},O=M,j=function(t){return{name:"strengthen-mask",mask:b({inverse:!0},t).mask}}},1138,[19,1139,1137]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,b,s){if(f&&"object"==typeof f||"function"==typeof f){var j=function(c){!u.call(t,c)&&c!==b&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var p of c(f))j(p)}return t},b={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(b,{objectEntries:function(){return j},objectFromEntries:function(){return p},objectKeys:function(){return s}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t));var s=function(t){return Object.keys(t)};function j(t){return Object.entries(t)}function p(t){return Object.fromEntries(t)}},1139,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(f){!u.call(t,f)&&f!==l&&n(t,f,{get:function(){return c[f]},enumerable:!(s=o(c,f))||s.enumerable})};for(var y of f(c))p(y)}return t},l={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(l,{combineMasks:function(){return s}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=function(){for(var t=arguments.length,n=new Array(t),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0,p=arguments.length>4?arguments[4]:void 0,s=(0,r(d[0]).getThemeInfo)(t,f);if(!s)throw new Error("\u274c Err2");var u=l(s,n,o,f);return(0,r(d[0]).setThemeInfo)(u.theme,{definition:u.definition,palette:s.palette,name:p}),u.theme}function l(t,n){var o,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=arguments.length>3?arguments[3]:void 0,s=Object.assign({},f.skip);if(null!==(o=t.options)&&void 0!==o&&o.nonInheritedValues)for(var u in t.options.nonInheritedValues)s[u]=1;var c=Object.assign({parentName:p,palette:t.palette},f,{skip:s}),l=n.mask(t.definition,c),h=(0,r(d[1]).createTheme)(t.palette,l);return Object.assign({},t,{cache:new Map,definition:l,theme:h})}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(u,{applyMask:function(){return c},applyMaskStateless:function(){return l}}),m.exports=(t=u,s(n({},"__esModule",{value:!0}),t))},1141,[1136,1135]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1142,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,p,s){if(l&&"object"==typeof l||"function"==typeof l){var f=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var y of c(l))f(y)}return t},p={};function s(t){var n=(0,r(d[0]).createPalettes)(t.palettes),o="stronger"===t.templateStrategy?r(d[1]).defaultTemplatesStronger:"strongest"===t.templateStrategy?r(d[2]).defaultTemplatesStrongest:r(d[3]).defaultTemplates;return(0,r(d[0]).createSimpleThemeBuilder)({palettes:n,templates:o,componentThemes:r(d[4]).defaultComponentThemes,accentTheme:!!t.palettes.accent})}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createStudioThemes:function(){return s}}),m.exports=(t=p,l(n({},"__esModule",{value:!0}),t))},1143,[1129,1144,1145,1130,1132]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,c=r(d[0]),n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,b=function(o,c,b,t){if(c&&"object"==typeof c||"function"==typeof c){var k=function(l){!u.call(o,l)&&l!==b&&n(o,l,{get:function(){return c[l]},enumerable:!(t=s(c,l))||t.enumerable})};for(var C of l(c))k(C)}return o},t={};!(function(o,c){for(var s in c)n(o,s,{get:c[s],enumerable:!0})})(t,{defaultTemplatesStronger:function(){return f}}),m.exports=(o=t,b(n({},"__esModule",{value:!0}),o));var k,C,v=function(o){var n="light"===o?-1:1,s=-n,l={color:-6,colorHover:-7,colorPress:-6,colorFocus:-7,placeholderColor:-9,outlineColor:-2},u=Object.assign({accentBackground:0,accentColor:-0,background0:1,background02:2,background04:3,background06:4,background08:5,color1:6,color2:7,color3:8,color4:9,color5:10,color6:11,color7:12,color8:13,color9:14,color10:15,color11:16,color12:17,color0:-1,color02:-2,color04:-3,color06:-4,color08:-5,background:6,backgroundHover:6+n,backgroundPress:6+s,backgroundFocus:6+s,borderColor:9,borderColorHover:9+n,borderColorPress:9+s,borderColorFocus:9},l,{colorTransparent:-1});return{base:u,surface1:Object.assign({},l,{background:u.background+2,backgroundHover:u.backgroundHover+2,backgroundPress:u.backgroundPress+2,backgroundFocus:u.backgroundFocus+2,borderColor:u.borderColor+2,borderColorHover:u.borderColorHover+2,borderColorFocus:u.borderColorFocus+2,borderColorPress:u.borderColorPress+2}),surface2:Object.assign({},l,{background:u.background+3,backgroundHover:u.backgroundHover+3,backgroundPress:u.backgroundPress+3,backgroundFocus:u.backgroundFocus+3,borderColor:u.borderColor+3,borderColorHover:u.borderColorHover+3,borderColorFocus:u.borderColorFocus+3,borderColorPress:u.borderColorPress+3}),surface3:Object.assign({},l,{background:u.background+4,backgroundHover:u.backgroundHover+4,backgroundPress:u.backgroundPress+4,backgroundFocus:u.backgroundFocus+4,borderColor:u.borderColor+4,borderColorHover:u.borderColorHover+4,borderColorFocus:u.borderColorFocus+4,borderColorPress:u.borderColorPress+4}),alt1:{color:u.color-1,colorHover:u.colorHover-1,colorPress:u.colorPress-1,colorFocus:u.colorFocus-1},alt2:{color:u.color-2,colorHover:u.colorHover-2,colorPress:u.colorPress-2,colorFocus:u.colorFocus-2},inverse:Object.fromEntries(Object.entries(u).map(function(o){var n=c(o,2);return[n[0],-n[1]]}))}},f=(k=v("light"),C=v("dark"),Object.assign({},(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(k).map(function(o){return[`light_${o}`,k[o]]})),(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(C).map(function(o){return[`dark_${o}`,C[o]]}))))},1144,[19,1131]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,c=r(d[0]),s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,b=function(o,c,b,t){if(c&&"object"==typeof c||"function"==typeof c){var k=function(l){!u.call(o,l)&&l!==b&&s(o,l,{get:function(){return c[l]},enumerable:!(t=n(c,l))||t.enumerable})};for(var C of l(c))k(C)}return o},t={};!(function(o,c){for(var n in c)s(o,n,{get:c[n],enumerable:!0})})(t,{defaultTemplatesStrongest:function(){return f}}),m.exports=(o=t,b(s({},"__esModule",{value:!0}),o));var k,C,v=function(o){var s="light"===o?-1:1,n=-s,l={color:-6,colorHover:-7,colorPress:-6,colorFocus:-7,placeholderColor:-9,outlineColor:-2},u=Object.assign({accentBackground:0,accentColor:-0,background0:1,background02:2,background04:3,background06:4,background08:5,color1:6,color2:7,color3:8,color4:9,color5:10,color6:11,color7:12,color8:13,color9:14,color10:15,color11:16,color12:17,color0:-1,color02:-2,color04:-3,color06:-4,color08:-5,background:6,backgroundHover:6+s,backgroundPress:6+n,backgroundFocus:6+n,borderColor:9,borderColorHover:9+s,borderColorPress:9+n,borderColorFocus:9},l,{colorTransparent:-1});return{base:u,surface1:Object.assign({},l,{background:u.background+3,backgroundHover:u.backgroundHover+3,backgroundPress:u.backgroundPress+3,backgroundFocus:u.backgroundFocus+3,borderColor:u.borderColor+3,borderColorHover:u.borderColorHover+3,borderColorFocus:u.borderColorFocus+3,borderColorPress:u.borderColorPress+3}),surface2:Object.assign({},l,{background:u.background+4,backgroundHover:u.backgroundHover+4,backgroundPress:u.backgroundPress+4,backgroundFocus:u.backgroundFocus+4,borderColor:u.borderColor+4,borderColorHover:u.borderColorHover+4,borderColorFocus:u.borderColorFocus+4,borderColorPress:u.borderColorPress+4}),surface3:Object.assign({},l,{background:u.background+5,backgroundHover:u.backgroundHover+5,backgroundPress:u.backgroundPress+5,backgroundFocus:u.backgroundFocus+5,borderColor:u.borderColor+5,borderColorHover:u.borderColorHover+5,borderColorFocus:u.borderColorFocus+5,borderColorPress:u.borderColorPress+5}),alt1:{color:u.color-1,colorHover:u.colorHover-1,colorPress:u.colorPress-1,colorFocus:u.colorFocus-1},alt2:{color:u.color-2,colorHover:u.colorHover-2,colorPress:u.colorPress-2,colorFocus:u.colorFocus-2},inverse:Object.fromEntries(Object.entries(u).map(function(o){var s=c(o,2);return[s[0],-s[1]]}))}},f=(k=v("light"),C=v("dark"),Object.assign({},(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(k).map(function(o){return[`light_${o}`,k[o]]})),(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(C).map(function(o){return[`dark_${o}`,C[o]]}))))},1145,[19,1131]); +__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,b=function(o,b,l,k){if(b&&"object"==typeof b||"function"==typeof b){var f=function(n){!c.call(o,n)&&n!==l&&t(o,n,{get:function(){return b[n]},enumerable:!(k=s(b,n))||k.enumerable})};for(var C of n(b))f(C)}return o},l={};!(function(o,s){for(var n in s)t(o,n,{get:s[n],enumerable:!0})})(l,{masks:function(){return k}}),m.exports=(o=l,b(t({},"__esModule",{value:!0}),o));var k={identity:(0,r(d[0]).createIdentityMask)(),soften:(0,r(d[0]).createSoftenMask)(),soften2:(0,r(d[0]).createSoftenMask)({strength:2}),soften3:(0,r(d[0]).createSoftenMask)({strength:3}),strengthen:(0,r(d[0]).createStrengthenMask)(),inverse:(0,r(d[0]).createInverseMask)(),inverseSoften:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:2})),inverseSoften2:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:3})),inverseSoften3:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:4})),inverseStrengthen2:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createStrengthenMask)({strength:2})),strengthenButSoftenBorder:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createStrengthenMask)().mask(o,t),n=(0,r(d[0]).createSoftenMask)().mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),soften2Border1:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:1}).mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),soften3FlatBorder:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:3}).mask(o,t);return Object.assign({},n,{borderColor:s.borderColor,borderColorHover:s.borderColorHover,borderColorPress:s.borderColorPress,borderColorFocus:s.borderColorFocus})}),softenBorder:(0,r(d[0]).createMask)(function(o,t){var s=r(d[0]).skipMask.mask(o,t),n=(0,r(d[0]).createSoftenMask)().mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),softenBorder2:(0,r(d[0]).createMask)(function(o,t){var s=r(d[0]).skipMask.mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})})}},1146,[1134]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,b,p,s){if(b&&"object"==typeof b||"function"==typeof b){var c=function(l){!f.call(t,l)&&l!==p&&o(t,l,{get:function(){return b[l]},enumerable:!(s=n(b,l))||s.enumerable})};for(var u of l(b))c(u)}return t},p={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(p,{shorthands:function(){return s}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var s={text:"textAlign",b:"bottom",bg:"backgroundColor",content:"alignContent",grow:"flexGrow",items:"alignItems",justify:"justifyContent",l:"left",m:"margin",maxH:"maxHeight",maxW:"maxWidth",mb:"marginBottom",minH:"minHeight",minW:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",rounded:"borderRadius",select:"userSelect",self:"alignSelf",shrink:"flexShrink",t:"top",z:"zIndex"};Object.assign(s,Object.fromEntries([["fd","flexDirection"],["fb","flexBasis"],["bblr","borderBottomLeftRadius"],["bbrr","borderBottomRightRadius"],["fwr","flexWrap"],["col","color"],["ff","fontFamily"],["fst","fontStyle"],["tr","transform"],["tt","textTransform"],["td","textDecorationLine"],["va","verticalAlign"],["ws","whiteSpace"],["wb","wordBreak"],["ww","wordWrap"],["brc","borderRightColor"],["brw","borderRightWidth"],["bs","borderStyle"],["btc","borderTopColor"],["btlr","borderTopLeftRadius"],["btrr","borderTopRightRadius"],["btw","borderTopWidth"],["bw","borderWidth"],["o","opacity"],["cur","cursor"],["pe","pointerEvents"],["ov","overflow"],["pos","position"],["dsp","display"],["fw","fontWeight"],["fs","fontSize"],["ls","letterSpacing"],["lh","lineHeight"],["bxs","boxSizing"],["bxsh","boxShadow"],["ox","overflowX"],["oy","overflowY"]]))},1147,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))b(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{createThemes:function(){return r(d[0]).createThemes},defaultThemes:function(){return r(d[1]).themes},tamaguiThemes:function(){return r(d[2]).themes},tokens:function(){return r(d[3]).tokens}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},1148,[1126,1149,1150,1151]); +__d(function(g,r,i,_a,m,e,d){"use strict";var l,a=r(d[0]),h=Object.defineProperty,t=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=function(l,a,o,c){if(a&&"object"==typeof a||"function"==typeof a){var k=function(_){!s.call(l,_)&&_!==o&&h(l,_,{get:function(){return a[_]},enumerable:!(c=t(a,_))||c.enumerable})};for(var n of _(a))k(n)}return l},c={};function k(l){var h={},t=!0,_=!1,s=void 0;try{for(var o,c=l[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var k=a(o.value,2),u=k[0],w=k[1];h[b[u]]=n[w]}}catch(l){_=!0,s=l}finally{try{!t&&null!=c.return&&c.return()}finally{if(_)throw s}}return h}!(function(l,a){for(var t in a)h(l,t,{get:a[t],enumerable:!0})})(c,{colors:function(){return n},themes:function(){return fl}}),m.exports=(l=c,o(h({},"__esModule",{value:!0}),l));var n=["hsla(0, 0%, 10%, 1)","hsla(0, 0%, 38%, 1)","hsla(0, 0%, 100%, 0)","hsla(0, 0%, 100%, 0.2)","hsla(0, 0%, 100%, 0.4)","hsla(0, 0%, 100%, 0.6)","hsla(0, 0%, 100%, 0.8)","hsla(0, 0%, 100%, 1)","hsla(0, 0%, 95%, 1)","hsla(0, 0%, 93%, 1)","hsla(0, 0%, 91%, 1)","hsla(0, 0%, 88%, 1)","hsla(0, 0%, 85%, 1)","hsla(0, 0%, 82%, 1)","hsla(0, 0%, 76%, 1)","hsla(0, 0%, 56%, 1)","hsla(0, 0%, 50%, 1)","hsla(0, 0%, 42%, 1)","hsla(0, 0%, 9%, 1)","hsla(0, 0%, 9%, 0)","hsla(0, 0%, 9%, 0.2)","hsla(0, 0%, 9%, 0.4)","hsla(0, 0%, 9%, 0.6)","hsla(0, 0%, 9%, 0.8)","hsl(206, 100%, 99.2%)","hsl(210, 100%, 98.0%)","hsl(209, 100%, 96.5%)","hsl(210, 98.8%, 94.0%)","hsl(209, 95.0%, 90.1%)","hsl(209, 81.2%, 84.5%)","hsl(208, 77.5%, 76.9%)","hsl(206, 81.9%, 65.3%)","hsl(206, 100%, 50.0%)","hsl(208, 100%, 47.3%)","hsl(211, 100%, 43.2%)","hsl(211, 100%, 15.0%)","hsl(136, 50.0%, 98.9%)","hsl(138, 62.5%, 96.9%)","hsl(139, 55.2%, 94.5%)","hsl(140, 48.7%, 91.0%)","hsl(141, 43.7%, 86.0%)","hsl(143, 40.3%, 79.0%)","hsl(146, 38.5%, 69.0%)","hsl(151, 40.2%, 54.1%)","hsl(151, 55.0%, 41.5%)","hsl(152, 57.5%, 37.6%)","hsl(153, 67.0%, 28.5%)","hsl(155, 40.0%, 14.0%)","hsl(359, 100%, 99.4%)","hsl(359, 100%, 98.6%)","hsl(360, 100%, 96.8%)","hsl(360, 97.9%, 94.8%)","hsl(360, 90.2%, 91.9%)","hsl(360, 81.7%, 87.8%)","hsl(359, 74.2%, 81.7%)","hsl(359, 69.5%, 74.3%)","hsl(358, 75.0%, 59.0%)","hsl(358, 69.4%, 55.2%)","hsl(358, 65.0%, 48.7%)","hsl(354, 50.0%, 14.6%)","hsl(60, 54.0%, 98.5%)","hsl(52, 100%, 95.5%)","hsl(55, 100%, 90.9%)","hsl(54, 100%, 86.6%)","hsl(52, 97.9%, 82.0%)","hsl(50, 89.4%, 76.1%)","hsl(47, 80.4%, 68.0%)","hsl(48, 100%, 46.1%)","hsl(53, 92.0%, 50.0%)","hsl(50, 100%, 48.5%)","hsl(42, 100%, 29.0%)","hsl(40, 55.0%, 13.5%)","rgba(0,0,0,0.04)","rgba(0,0,0,0.08)","rgba(0,0,0,0.16)","rgba(0,0,0,0.24)","rgba(0,0,0,0.32)","rgba(0,0,0,0.4)","#050505","#151515","#191919","#232323","#282828","#323232","#424242","#494949","#545454","#626262","#a5a5a5","#fff","#f2f2f2","hsl(0, 0%, 93%)","hsl(0, 0%, 91%)","hsl(0, 0%, 88%)","hsl(0, 0%, 85%)","hsl(0, 0%, 82%)","hsl(0, 0%, 76%)","hsl(0, 0%, 56%)","hsl(0, 0%, 50%)","hsl(0, 0%, 42%)","hsl(0, 0%, 9%)","hsla(0, 0%, 2%, 1)","hsla(0, 0%, 8%, 1)","hsla(0, 0%, 14%, 1)","hsla(0, 0%, 16%, 1)","hsla(0, 0%, 20%, 1)","hsla(0, 0%, 26%, 1)","hsla(0, 0%, 29%, 1)","hsla(0, 0%, 33%, 1)","hsla(0, 0%, 65%, 1)","hsla(0, 0%, 2%, 0)","hsla(0, 0%, 2%, 0.2)","hsla(0, 0%, 2%, 0.4)","hsla(0, 0%, 2%, 0.6)","hsla(0, 0%, 2%, 0.8)","hsl(212, 35.0%, 9.2%)","hsl(216, 50.0%, 11.8%)","hsl(214, 59.4%, 15.3%)","hsl(214, 65.8%, 17.9%)","hsl(213, 71.2%, 20.2%)","hsl(212, 77.4%, 23.1%)","hsl(211, 85.1%, 27.4%)","hsl(211, 89.7%, 34.1%)","hsl(209, 100%, 60.6%)","hsl(210, 100%, 66.1%)","hsl(206, 98.0%, 95.8%)","hsl(146, 30.0%, 7.4%)","hsl(155, 44.2%, 8.4%)","hsl(155, 46.7%, 10.9%)","hsl(154, 48.4%, 12.9%)","hsl(154, 49.7%, 14.9%)","hsl(154, 50.9%, 17.6%)","hsl(153, 51.8%, 21.8%)","hsl(151, 51.7%, 28.4%)","hsl(151, 49.3%, 46.5%)","hsl(151, 50.0%, 53.2%)","hsl(137, 72.0%, 94.0%)","hsl(353, 23.0%, 9.8%)","hsl(357, 34.4%, 12.0%)","hsl(356, 43.4%, 16.4%)","hsl(356, 47.6%, 19.2%)","hsl(356, 51.1%, 21.9%)","hsl(356, 55.2%, 25.9%)","hsl(357, 60.2%, 31.8%)","hsl(358, 65.0%, 40.4%)","hsl(358, 85.3%, 64.0%)","hsl(358, 100%, 69.5%)","hsl(351, 89.0%, 96.0%)","hsl(45, 100%, 5.5%)","hsl(46, 100%, 6.7%)","hsl(45, 100%, 8.7%)","hsl(45, 100%, 10.4%)","hsl(47, 100%, 12.1%)","hsl(49, 100%, 14.3%)","hsl(49, 90.3%, 18.4%)","hsl(50, 100%, 22.0%)","hsl(54, 100%, 68.0%)","hsl(48, 100%, 47.0%)","hsl(53, 100%, 91.0%)","rgba(0,0,0,0.2)","rgba(0,0,0,0.3)","rgba(0,0,0,0.5)","rgba(0,0,0,0.6)","rgba(0,0,0,0.7)","hsla(216, 100%, 99%, 0)","hsla(216, 100%, 99%, 0.2)","hsla(216, 100%, 99%, 0.4)","hsla(216, 100%, 99%, 0.6)","hsla(216, 100%, 99%, 0.8)","hsla(210, 100%, 99%, 1)","hsla(210, 100%, 98%, 1)","hsla(210, 100%, 96%, 1)","hsla(210, 100%, 94%, 1)","hsla(209, 96%, 90%, 1)","hsla(209, 82%, 85%, 1)","hsla(208, 78%, 77%, 1)","hsla(206, 82%, 65%, 1)","hsla(206, 100%, 50%, 1)","hsla(208, 100%, 47%, 1)","hsla(211, 100%, 43%, 1)","hsla(211, 100%, 15%, 1)","hsla(211, 100%, 15%, 0)","hsla(211, 100%, 15%, 0.2)","hsla(211, 100%, 15%, 0.4)","hsla(211, 100%, 15%, 0.6)","hsla(211, 100%, 15%, 0.8)","hsla(0, 100%, 99%, 0)","hsla(0, 100%, 99%, 0.2)","hsla(0, 100%, 99%, 0.4)","hsla(0, 100%, 99%, 0.6)","hsla(0, 100%, 99%, 0.8)","hsla(0, 100%, 99%, 1)","hsla(0, 100%, 97%, 1)","hsla(0, 100%, 95%, 1)","hsla(0, 90%, 92%, 1)","hsla(0, 81%, 88%, 1)","hsla(359, 74%, 82%, 1)","hsla(359, 69%, 74%, 1)","hsla(358, 75%, 59%, 1)","hsla(358, 69%, 55%, 1)","hsla(358, 65%, 49%, 1)","hsla(355, 49%, 15%, 1)","hsla(355, 48%, 15%, 0)","hsla(355, 48%, 15%, 0.2)","hsla(355, 48%, 15%, 0.4)","hsla(355, 48%, 15%, 0.6)","hsla(355, 48%, 15%, 0.8)","hsla(60, 45%, 98%, 0)","hsla(60, 45%, 98%, 0.2)","hsla(60, 45%, 98%, 0.4)","hsla(60, 45%, 98%, 0.6)","hsla(60, 45%, 98%, 0.8)","hsla(60, 50%, 98%, 1)","hsla(52, 100%, 95%, 1)","hsla(55, 100%, 91%, 1)","hsla(54, 100%, 87%, 1)","hsla(52, 98%, 82%, 1)","hsla(50, 90%, 76%, 1)","hsla(47, 80%, 68%, 1)","hsla(48, 100%, 46%, 1)","hsla(53, 92%, 50%, 1)","hsla(50, 100%, 48%, 1)","hsla(42, 100%, 29%, 1)","hsla(41, 56%, 13%, 1)","hsla(41, 55%, 13%, 0)","hsla(41, 55%, 13%, 0.2)","hsla(41, 55%, 13%, 0.4)","hsla(41, 55%, 13%, 0.6)","hsla(41, 55%, 13%, 0.8)","hsla(140, 60%, 99%, 0)","hsla(140, 60%, 99%, 0.2)","hsla(140, 60%, 99%, 0.4)","hsla(140, 60%, 99%, 0.6)","hsla(140, 60%, 99%, 0.8)","hsla(140, 60%, 99%, 1)","hsla(138, 63%, 97%, 1)","hsla(139, 57%, 95%, 1)","hsla(139, 48%, 91%, 1)","hsla(141, 44%, 86%, 1)","hsla(142, 40%, 79%, 1)","hsla(146, 38%, 69%, 1)","hsla(151, 40%, 54%, 1)","hsla(151, 55%, 42%, 1)","hsla(152, 57%, 38%, 1)","hsla(153, 67%, 28%, 1)","hsla(155, 41%, 14%, 1)","hsla(155, 41%, 14%, 0)","hsla(155, 41%, 14%, 0.2)","hsla(155, 41%, 14%, 0.4)","hsla(155, 41%, 14%, 0.6)","hsla(155, 41%, 14%, 0.8)","hsla(214, 35%, 9%, 0)","hsla(214, 35%, 9%, 0.2)","hsla(214, 35%, 9%, 0.4)","hsla(214, 35%, 9%, 0.6)","hsla(214, 35%, 9%, 0.8)","hsla(212, 36%, 9%, 1)","hsla(216, 50%, 12%, 1)","hsla(214, 59%, 15%, 1)","hsla(214, 65%, 18%, 1)","hsla(213, 71%, 20%, 1)","hsla(212, 78%, 23%, 1)","hsla(211, 86%, 27%, 1)","hsla(211, 90%, 34%, 1)","hsla(209, 100%, 61%, 1)","hsla(210, 100%, 66%, 1)","hsla(206, 100%, 96%, 1)","hsla(207, 100%, 96%, 0)","hsla(207, 100%, 96%, 0.2)","hsla(207, 100%, 96%, 0.4)","hsla(207, 100%, 96%, 0.6)","hsla(207, 100%, 96%, 0.8)","hsla(351, 25%, 10%, 0)","hsla(351, 25%, 10%, 0.2)","hsla(351, 25%, 10%, 0.4)","hsla(351, 25%, 10%, 0.6)","hsla(351, 25%, 10%, 0.8)","hsla(350, 24%, 10%, 1)","hsla(357, 34%, 12%, 1)","hsla(357, 43%, 16%, 1)","hsla(356, 47%, 19%, 1)","hsla(356, 51%, 22%, 1)","hsla(357, 55%, 26%, 1)","hsla(357, 60%, 32%, 1)","hsla(358, 65%, 40%, 1)","hsla(358, 86%, 64%, 1)","hsla(358, 100%, 69%, 1)","hsla(353, 90%, 96%, 1)","hsla(353, 90%, 96%, 0)","hsla(353, 90%, 96%, 0.2)","hsla(353, 90%, 96%, 0.4)","hsla(353, 90%, 96%, 0.6)","hsla(353, 90%, 96%, 0.8)","hsla(46, 100%, 5%, 0)","hsla(46, 100%, 5%, 0.2)","hsla(46, 100%, 5%, 0.4)","hsla(46, 100%, 5%, 0.6)","hsla(46, 100%, 5%, 0.8)","hsla(45, 100%, 5%, 1)","hsla(46, 100%, 7%, 1)","hsla(45, 100%, 9%, 1)","hsla(45, 100%, 10%, 1)","hsla(46, 100%, 12%, 1)","hsla(49, 100%, 14%, 1)","hsla(49, 89%, 18%, 1)","hsla(50, 100%, 22%, 1)","hsla(54, 100%, 68%, 1)","hsla(48, 100%, 47%, 1)","hsla(53, 100%, 91%, 1)","hsla(53, 100%, 91%, 0)","hsla(53, 100%, 91%, 0.2)","hsla(53, 100%, 91%, 0.4)","hsla(53, 100%, 91%, 0.6)","hsla(53, 100%, 91%, 0.8)","hsla(145, 33%, 7%, 0)","hsla(145, 33%, 7%, 0.2)","hsla(145, 33%, 7%, 0.4)","hsla(145, 33%, 7%, 0.6)","hsla(145, 33%, 7%, 0.8)","hsla(145, 32%, 7%, 1)","hsla(155, 44%, 8%, 1)","hsla(155, 46%, 11%, 1)","hsla(154, 48%, 13%, 1)","hsla(155, 50%, 15%, 1)","hsla(154, 51%, 18%, 1)","hsla(153, 51%, 22%, 1)","hsla(151, 52%, 28%, 1)","hsla(151, 49%, 46%, 1)","hsla(151, 50%, 53%, 1)","hsla(136, 73%, 94%, 1)","hsla(134, 73%, 94%, 0)","hsla(134, 73%, 94%, 0.2)","hsla(134, 73%, 94%, 0.4)","hsla(134, 73%, 94%, 0.6)","hsla(134, 73%, 94%, 0.8)"],b=["accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","borderColor","borderColorHover","borderColorPress","borderColorFocus","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","colorTransparent","blue1","blue2","blue3","blue4","blue5","blue6","blue7","blue8","blue9","blue10","blue11","blue12","green1","green2","green3","green4","green5","green6","green7","green8","green9","green10","green11","green12","red1","red2","red3","red4","red5","red6","red7","red8","red9","red10","red11","red12","yellow1","yellow2","yellow3","yellow4","yellow5","yellow6","yellow7","yellow8","yellow9","yellow10","yellow11","yellow12","shadow1","shadow2","shadow3","shadow4","shadow5","shadow6","black1","black2","black3","black4","black5","black6","black7","black8","black9","black10","black11","black12","white1","white2","white3","white4","white5","white6","white7","white8","white9","white10","white11","white12","shadowColor","accent1","accent2","accent3","accent4","accent5","accent6","accent7","accent8","accent9","accent10","accent11","accent12"],u=k([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,60],[76,61],[77,62],[78,63],[79,64],[80,65],[81,66],[82,67],[83,68],[84,69],[85,70],[86,71],[87,72],[88,73],[89,74],[90,75],[91,76],[92,77],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,89],[106,90],[107,91],[108,92],[109,93],[110,94],[111,95],[112,96],[113,97],[114,98],[115,99],[116,100],[117,72],[118,101],[119,102],[120,0],[121,103],[122,104],[123,105],[124,106],[125,107],[126,108],[127,1],[128,109],[129,7]]),w=k([[0,16],[1,9],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,102],[26,114],[27,114],[28,103],[29,104],[30,0],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2],[39,115],[40,116],[41,117],[42,118],[43,119],[44,120],[45,121],[46,122],[47,32],[48,123],[49,124],[50,125],[51,126],[52,127],[53,128],[54,129],[55,130],[56,131],[57,132],[58,133],[59,44],[60,134],[61,135],[62,136],[63,137],[64,138],[65,139],[66,140],[67,141],[68,142],[69,143],[70,144],[71,56],[72,145],[73,146],[74,147],[75,148],[76,149],[77,150],[78,151],[79,152],[80,153],[81,154],[82,155],[83,68],[84,156],[85,157],[86,158],[87,159],[88,160],[89,77],[90,161],[91,162],[92,163],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,89],[106,90],[107,91],[108,92],[109,93],[110,94],[111,95],[112,96],[113,97],[114,98],[115,99],[116,100],[117,159],[118,7],[119,8],[120,9],[121,10],[122,11],[123,12],[124,13],[125,14],[126,15],[127,16],[128,17],[129,18]]),T=k([[0,9],[1,16],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,114],[26,102],[27,102],[28,103],[29,0],[30,104],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),S=k([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),p=k([[0,0],[1,1],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,114],[26,102],[27,102],[28,103],[29,0],[30,104],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),I=k([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),y=k([[0,0],[1,1],[2,164],[3,165],[4,166],[5,167],[6,168],[7,169],[8,170],[9,171],[10,172],[11,173],[12,174],[13,175],[14,176],[15,177],[16,178],[17,179],[18,180],[19,181],[20,182],[21,183],[22,184],[23,185],[24,169],[25,168],[26,170],[27,170],[28,172],[29,171],[30,173],[31,172],[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[38,181]]),C=k([[0,0],[1,1],[2,186],[3,187],[4,188],[5,189],[6,190],[7,191],[8,191],[9,192],[10,193],[11,194],[12,195],[13,196],[14,197],[15,198],[16,199],[17,200],[18,201],[19,202],[20,203],[21,204],[22,205],[23,206],[24,191],[25,190],[26,191],[27,191],[28,193],[29,192],[30,194],[31,193],[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[38,202]]),A=k([[0,0],[1,1],[2,207],[3,208],[4,209],[5,210],[6,211],[7,212],[8,213],[9,214],[10,215],[11,216],[12,217],[13,218],[14,219],[15,220],[16,221],[17,222],[18,223],[19,224],[20,225],[21,226],[22,227],[23,228],[24,212],[25,211],[26,213],[27,213],[28,215],[29,214],[30,216],[31,215],[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[38,224]]),P=k([[0,0],[1,1],[2,229],[3,230],[4,231],[5,232],[6,233],[7,234],[8,235],[9,236],[10,237],[11,238],[12,239],[13,240],[14,241],[15,242],[16,243],[17,244],[18,245],[19,246],[20,247],[21,248],[22,249],[23,250],[24,234],[25,233],[26,235],[27,235],[28,237],[29,236],[30,238],[31,237],[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[38,246]]),x=k([[0,16],[1,9],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,102],[26,114],[27,114],[28,103],[29,104],[30,0],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),v=k([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),f=k([[0,16],[1,9],[2,251],[3,252],[4,253],[5,254],[6,255],[7,256],[8,257],[9,258],[10,259],[11,260],[12,261],[13,262],[14,263],[15,177],[16,264],[17,265],[18,266],[19,267],[20,268],[21,269],[22,270],[23,271],[24,256],[25,257],[26,255],[27,255],[28,259],[29,260],[30,258],[31,259],[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[38,267]]),B=k([[0,16],[1,9],[2,272],[3,273],[4,274],[5,275],[6,276],[7,277],[8,278],[9,279],[10,280],[11,281],[12,282],[13,283],[14,284],[15,198],[16,285],[17,286],[18,287],[19,288],[20,289],[21,290],[22,291],[23,292],[24,277],[25,278],[26,276],[27,276],[28,280],[29,281],[30,279],[31,280],[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[38,288]]),G=k([[0,16],[1,9],[2,293],[3,294],[4,295],[5,296],[6,297],[7,298],[8,299],[9,300],[10,301],[11,302],[12,303],[13,304],[14,305],[15,220],[16,306],[17,307],[18,308],[19,309],[20,310],[21,311],[22,312],[23,313],[24,298],[25,299],[26,297],[27,297],[28,301],[29,302],[30,300],[31,301],[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[38,309]]),L=k([[0,16],[1,9],[2,314],[3,315],[4,316],[5,317],[6,318],[7,319],[8,320],[9,321],[10,322],[11,323],[12,324],[13,325],[14,326],[15,242],[16,327],[17,328],[18,329],[19,330],[20,331],[21,332],[22,333],[23,334],[24,319],[25,320],[26,318],[27,318],[28,322],[29,323],[30,321],[31,322],[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[38,330]]),R=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,7],[26,9],[27,9],[28,11],[29,10],[31,11],[30,12]]),O=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,9],[26,11],[27,11],[28,13],[29,12],[31,13],[30,14]]),j=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,12],[29,11],[31,12],[30,13]]),F=k([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,23],[26,17],[27,17],[28,15],[29,16],[30,14],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),H=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,102],[25,0],[26,101],[27,101],[28,104],[29,105],[31,104],[30,103]]),D=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,103],[25,104],[26,0],[27,0],[28,106],[29,107],[31,106],[30,105]]),M=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,0],[25,103],[26,102],[27,102],[28,105],[29,106],[31,105],[30,104]]),N=k([[0,9],[1,16],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,109],[26,6],[27,6],[28,108],[29,107],[30,1],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),q=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,102],[25,101],[26,0],[27,0],[28,104],[29,103],[31,104],[30,105]]),z=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,103],[25,0],[26,104],[27,104],[28,106],[29,105],[31,106],[30,107]]),E=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,0],[25,102],[26,103],[27,103],[28,105],[29,104],[31,105],[30,106]]),J=k([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,6],[26,109],[27,109],[28,108],[29,1],[30,107],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),K=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,9],[26,7],[27,7],[28,11],[29,12],[31,11],[30,10]]),Q=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,11],[26,9],[27,9],[28,13],[29,14],[31,13],[30,12]]),U=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,10],[26,8],[27,8],[28,12],[29,13],[31,12],[30,11]]),V=k([[0,0],[1,1],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),W=k([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,6],[26,109],[27,109],[28,108],[29,1],[30,107],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),X=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,170],[25,169],[26,171],[27,171],[28,173],[29,172],[31,173],[30,174]]),Y=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,172],[25,171],[26,173],[27,173],[28,175],[29,174],[31,175],[30,176]]),Z=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,171],[25,170],[26,172],[27,172],[28,174],[29,173],[31,174],[30,175]]),$=k([[0,1],[1,0],[2,181],[3,182],[4,183],[5,184],[6,185],[7,180],[8,179],[9,178],[10,177],[11,176],[12,175],[13,174],[14,173],[15,172],[16,171],[17,170],[18,169],[19,164],[20,165],[21,166],[22,167],[23,168],[24,180],[25,185],[26,179],[27,179],[28,177],[29,178],[30,176],[31,177],[32,169],[33,170],[34,169],[35,170],[36,172],[37,165],[38,164]]),ll=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,191],[25,191],[26,192],[27,192],[28,194],[29,193],[31,194],[30,195]]),el=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,193],[25,192],[26,194],[27,194],[28,196],[29,195],[31,196],[30,197]]),rl=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,192],[25,191],[26,193],[27,193],[28,195],[29,194],[31,195],[30,196]]),al=k([[0,1],[1,0],[2,202],[3,203],[4,204],[5,205],[6,206],[7,201],[8,200],[9,199],[10,198],[11,197],[12,196],[13,195],[14,194],[15,193],[16,192],[17,191],[18,191],[19,186],[20,187],[21,188],[22,189],[23,190],[24,201],[25,206],[26,200],[27,200],[28,198],[29,199],[30,197],[31,198],[32,191],[33,191],[34,191],[35,191],[36,193],[37,187],[38,186]]),hl=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,213],[25,212],[26,214],[27,214],[28,216],[29,215],[31,216],[30,217]]),tl=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,215],[25,214],[26,216],[27,216],[28,218],[29,217],[31,218],[30,219]]),_l=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,214],[25,213],[26,215],[27,215],[28,217],[29,216],[31,217],[30,218]]),il=k([[0,1],[1,0],[2,224],[3,225],[4,226],[5,227],[6,228],[7,223],[8,222],[9,221],[10,220],[11,219],[12,218],[13,217],[14,216],[15,215],[16,214],[17,213],[18,212],[19,207],[20,208],[21,209],[22,210],[23,211],[24,223],[25,228],[26,222],[27,222],[28,220],[29,221],[30,219],[31,220],[32,212],[33,213],[34,212],[35,213],[36,215],[37,208],[38,207]]),sl=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,235],[25,234],[26,236],[27,236],[28,238],[29,237],[31,238],[30,239]]),ol=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,237],[25,236],[26,238],[27,238],[28,240],[29,239],[31,240],[30,241]]),cl=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,236],[25,235],[26,237],[27,237],[28,239],[29,238],[31,239],[30,240]]),dl=k([[0,1],[1,0],[2,246],[3,247],[4,248],[5,249],[6,250],[7,245],[8,244],[9,243],[10,242],[11,241],[12,240],[13,239],[14,238],[15,237],[16,236],[17,235],[18,234],[19,229],[20,230],[21,231],[22,232],[23,233],[24,245],[25,250],[26,244],[27,244],[28,242],[29,243],[30,241],[31,242],[32,234],[33,235],[34,234],[35,235],[36,237],[37,230],[38,229]]),gl=k([[0,9],[1,16],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),kl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,257],[25,258],[26,256],[27,256],[28,260],[29,261],[31,260],[30,259]]),nl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,259],[25,260],[26,258],[27,258],[28,262],[29,263],[31,262],[30,261]]),bl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,258],[25,259],[26,257],[27,257],[28,261],[29,262],[31,261],[30,260]]),ul=k([[0,9],[1,16],[2,267],[3,268],[4,269],[5,270],[6,271],[7,266],[8,265],[9,264],[10,177],[11,263],[12,262],[13,261],[14,260],[15,259],[16,258],[17,257],[18,256],[19,251],[20,252],[21,253],[22,254],[23,255],[24,266],[25,265],[26,271],[27,271],[28,177],[29,263],[30,264],[31,177],[32,256],[33,257],[34,256],[35,257],[36,259],[37,252],[38,251]]),wl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,278],[25,279],[26,277],[27,277],[28,281],[29,282],[31,281],[30,280]]),Tl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,280],[25,281],[26,279],[27,279],[28,283],[29,284],[31,283],[30,282]]),Sl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,279],[25,280],[26,278],[27,278],[28,282],[29,283],[31,282],[30,281]]),pl=k([[0,9],[1,16],[2,288],[3,289],[4,290],[5,291],[6,292],[7,287],[8,286],[9,285],[10,198],[11,284],[12,283],[13,282],[14,281],[15,280],[16,279],[17,278],[18,277],[19,272],[20,273],[21,274],[22,275],[23,276],[24,287],[25,286],[26,292],[27,292],[28,198],[29,284],[30,285],[31,198],[32,277],[33,278],[34,277],[35,278],[36,280],[37,273],[38,272]]),ml=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,299],[25,300],[26,298],[27,298],[28,302],[29,303],[31,302],[30,301]]),Il=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,301],[25,302],[26,300],[27,300],[28,304],[29,305],[31,304],[30,303]]),yl=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,300],[25,301],[26,299],[27,299],[28,303],[29,304],[31,303],[30,302]]),Cl=k([[0,9],[1,16],[2,309],[3,310],[4,311],[5,312],[6,313],[7,308],[8,307],[9,306],[10,220],[11,305],[12,304],[13,303],[14,302],[15,301],[16,300],[17,299],[18,298],[19,293],[20,294],[21,295],[22,296],[23,297],[24,308],[25,307],[26,313],[27,313],[28,220],[29,305],[30,306],[31,220],[32,298],[33,299],[34,298],[35,299],[36,301],[37,294],[38,293]]),Al=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,320],[25,321],[26,319],[27,319],[28,323],[29,324],[31,323],[30,322]]),Pl=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,322],[25,323],[26,321],[27,321],[28,325],[29,326],[31,325],[30,324]]),xl=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,321],[25,322],[26,320],[27,320],[28,324],[29,325],[31,324],[30,323]]),vl=k([[0,9],[1,16],[2,330],[3,331],[4,332],[5,333],[6,334],[7,329],[8,328],[9,327],[10,242],[11,326],[12,325],[13,324],[14,323],[15,322],[16,321],[17,320],[18,319],[19,314],[20,315],[21,316],[22,317],[23,318],[24,329],[25,328],[26,334],[27,334],[28,242],[29,326],[30,327],[31,242],[32,319],[33,320],[34,319],[35,320],[36,322],[37,315],[38,314]]),fl={light:u,dark:w,light_accent:T,dark_accent:S,light_black:p,light_white:I,light_blue:y,light_red:C,light_yellow:A,light_green:P,dark_black:x,dark_white:v,dark_blue:f,dark_red:B,dark_yellow:G,dark_green:L,light_ListItem:R,light_SelectTrigger:R,light_Card:R,light_Progress:R,light_TooltipArrow:R,light_SliderTrack:R,light_Input:R,light_TextArea:R,light_white_ListItem:R,light_white_SelectTrigger:R,light_white_Card:R,light_white_Progress:R,light_white_TooltipArrow:R,light_white_SliderTrack:R,light_white_Input:R,light_white_TextArea:R,light_Button:O,light_SliderTrackActive:O,light_white_Button:O,light_white_SliderTrackActive:O,light_Checkbox:j,light_Switch:j,light_TooltipContent:j,light_RadioGroupItem:j,light_white_Checkbox:j,light_white_Switch:j,light_white_TooltipContent:j,light_white_RadioGroupItem:j,light_SwitchThumb:F,light_SliderThumb:F,light_Tooltip:F,light_ProgressIndicator:F,light_white_SwitchThumb:F,light_white_SliderThumb:F,light_white_Tooltip:F,light_white_ProgressIndicator:F,dark_ListItem:H,dark_SelectTrigger:H,dark_Card:H,dark_Progress:H,dark_TooltipArrow:H,dark_SliderTrack:H,dark_Input:H,dark_TextArea:H,dark_black_ListItem:H,dark_black_SelectTrigger:H,dark_black_Card:H,dark_black_Progress:H,dark_black_TooltipArrow:H,dark_black_SliderTrack:H,dark_black_Input:H,dark_black_TextArea:H,dark_Button:D,dark_SliderTrackActive:D,dark_black_Button:D,dark_black_SliderTrackActive:D,dark_Checkbox:M,dark_Switch:M,dark_TooltipContent:M,dark_RadioGroupItem:M,dark_black_Checkbox:M,dark_black_Switch:M,dark_black_TooltipContent:M,dark_black_RadioGroupItem:M,dark_SwitchThumb:N,dark_SliderThumb:N,dark_Tooltip:N,dark_ProgressIndicator:N,dark_black_SwitchThumb:N,dark_black_SliderThumb:N,dark_black_Tooltip:N,dark_black_ProgressIndicator:N,light_accent_ListItem:q,light_accent_SelectTrigger:q,light_accent_Card:q,light_accent_Progress:q,light_accent_TooltipArrow:q,light_accent_SliderTrack:q,light_accent_Input:q,light_accent_TextArea:q,light_black_ListItem:q,light_black_SelectTrigger:q,light_black_Card:q,light_black_Progress:q,light_black_TooltipArrow:q,light_black_SliderTrack:q,light_black_Input:q,light_black_TextArea:q,light_accent_Button:z,light_accent_SliderTrackActive:z,light_black_Button:z,light_black_SliderTrackActive:z,light_accent_Checkbox:E,light_accent_Switch:E,light_accent_TooltipContent:E,light_accent_RadioGroupItem:E,light_black_Checkbox:E,light_black_Switch:E,light_black_TooltipContent:E,light_black_RadioGroupItem:E,light_accent_SwitchThumb:J,light_accent_SliderThumb:J,light_accent_Tooltip:J,light_accent_ProgressIndicator:J,dark_accent_ListItem:K,dark_accent_SelectTrigger:K,dark_accent_Card:K,dark_accent_Progress:K,dark_accent_TooltipArrow:K,dark_accent_SliderTrack:K,dark_accent_Input:K,dark_accent_TextArea:K,dark_white_ListItem:K,dark_white_SelectTrigger:K,dark_white_Card:K,dark_white_Progress:K,dark_white_TooltipArrow:K,dark_white_SliderTrack:K,dark_white_Input:K,dark_white_TextArea:K,dark_accent_Button:Q,dark_accent_SliderTrackActive:Q,dark_white_Button:Q,dark_white_SliderTrackActive:Q,dark_accent_Checkbox:U,dark_accent_Switch:U,dark_accent_TooltipContent:U,dark_accent_RadioGroupItem:U,dark_white_Checkbox:U,dark_white_Switch:U,dark_white_TooltipContent:U,dark_white_RadioGroupItem:U,dark_accent_SwitchThumb:V,dark_accent_SliderThumb:V,dark_accent_Tooltip:V,dark_accent_ProgressIndicator:V,light_black_SwitchThumb:W,light_black_SliderThumb:W,light_black_Tooltip:W,light_black_ProgressIndicator:W,light_blue_ListItem:X,light_blue_SelectTrigger:X,light_blue_Card:X,light_blue_Progress:X,light_blue_TooltipArrow:X,light_blue_SliderTrack:X,light_blue_Input:X,light_blue_TextArea:X,light_blue_Button:Y,light_blue_SliderTrackActive:Y,light_blue_Checkbox:Z,light_blue_Switch:Z,light_blue_TooltipContent:Z,light_blue_RadioGroupItem:Z,light_blue_SwitchThumb:$,light_blue_SliderThumb:$,light_blue_Tooltip:$,light_blue_ProgressIndicator:$,light_red_ListItem:ll,light_red_SelectTrigger:ll,light_red_Card:ll,light_red_Progress:ll,light_red_TooltipArrow:ll,light_red_SliderTrack:ll,light_red_Input:ll,light_red_TextArea:ll,light_red_Button:el,light_red_SliderTrackActive:el,light_red_Checkbox:rl,light_red_Switch:rl,light_red_TooltipContent:rl,light_red_RadioGroupItem:rl,light_red_SwitchThumb:al,light_red_SliderThumb:al,light_red_Tooltip:al,light_red_ProgressIndicator:al,light_yellow_ListItem:hl,light_yellow_SelectTrigger:hl,light_yellow_Card:hl,light_yellow_Progress:hl,light_yellow_TooltipArrow:hl,light_yellow_SliderTrack:hl,light_yellow_Input:hl,light_yellow_TextArea:hl,light_yellow_Button:tl,light_yellow_SliderTrackActive:tl,light_yellow_Checkbox:_l,light_yellow_Switch:_l,light_yellow_TooltipContent:_l,light_yellow_RadioGroupItem:_l,light_yellow_SwitchThumb:il,light_yellow_SliderThumb:il,light_yellow_Tooltip:il,light_yellow_ProgressIndicator:il,light_green_ListItem:sl,light_green_SelectTrigger:sl,light_green_Card:sl,light_green_Progress:sl,light_green_TooltipArrow:sl,light_green_SliderTrack:sl,light_green_Input:sl,light_green_TextArea:sl,light_green_Button:ol,light_green_SliderTrackActive:ol,light_green_Checkbox:cl,light_green_Switch:cl,light_green_TooltipContent:cl,light_green_RadioGroupItem:cl,light_green_SwitchThumb:dl,light_green_SliderThumb:dl,light_green_Tooltip:dl,light_green_ProgressIndicator:dl,dark_white_SwitchThumb:gl,dark_white_SliderThumb:gl,dark_white_Tooltip:gl,dark_white_ProgressIndicator:gl,dark_blue_ListItem:kl,dark_blue_SelectTrigger:kl,dark_blue_Card:kl,dark_blue_Progress:kl,dark_blue_TooltipArrow:kl,dark_blue_SliderTrack:kl,dark_blue_Input:kl,dark_blue_TextArea:kl,dark_blue_Button:nl,dark_blue_SliderTrackActive:nl,dark_blue_Checkbox:bl,dark_blue_Switch:bl,dark_blue_TooltipContent:bl,dark_blue_RadioGroupItem:bl,dark_blue_SwitchThumb:ul,dark_blue_SliderThumb:ul,dark_blue_Tooltip:ul,dark_blue_ProgressIndicator:ul,dark_red_ListItem:wl,dark_red_SelectTrigger:wl,dark_red_Card:wl,dark_red_Progress:wl,dark_red_TooltipArrow:wl,dark_red_SliderTrack:wl,dark_red_Input:wl,dark_red_TextArea:wl,dark_red_Button:Tl,dark_red_SliderTrackActive:Tl,dark_red_Checkbox:Sl,dark_red_Switch:Sl,dark_red_TooltipContent:Sl,dark_red_RadioGroupItem:Sl,dark_red_SwitchThumb:pl,dark_red_SliderThumb:pl,dark_red_Tooltip:pl,dark_red_ProgressIndicator:pl,dark_yellow_ListItem:ml,dark_yellow_SelectTrigger:ml,dark_yellow_Card:ml,dark_yellow_Progress:ml,dark_yellow_TooltipArrow:ml,dark_yellow_SliderTrack:ml,dark_yellow_Input:ml,dark_yellow_TextArea:ml,dark_yellow_Button:Il,dark_yellow_SliderTrackActive:Il,dark_yellow_Checkbox:yl,dark_yellow_Switch:yl,dark_yellow_TooltipContent:yl,dark_yellow_RadioGroupItem:yl,dark_yellow_SwitchThumb:Cl,dark_yellow_SliderThumb:Cl,dark_yellow_Tooltip:Cl,dark_yellow_ProgressIndicator:Cl,dark_green_ListItem:Al,dark_green_SelectTrigger:Al,dark_green_Card:Al,dark_green_Progress:Al,dark_green_TooltipArrow:Al,dark_green_SliderTrack:Al,dark_green_Input:Al,dark_green_TextArea:Al,dark_green_Button:Pl,dark_green_SliderTrackActive:Pl,dark_green_Checkbox:xl,dark_green_Switch:xl,dark_green_TooltipContent:xl,dark_green_RadioGroupItem:xl,dark_green_SwitchThumb:vl,dark_green_SliderThumb:vl,dark_green_Tooltip:vl,dark_green_ProgressIndicator:vl}},1149,[19]); +__d(function(g,r,i,_a,m,e,d){"use strict";var l,a=r(d[0]),_=Object.defineProperty,h=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=function(l,a,o,k){if(a&&"object"==typeof a||"function"==typeof a){var c=function(t){!s.call(l,t)&&t!==o&&_(l,t,{get:function(){return a[t]},enumerable:!(k=h(a,t))||k.enumerable})};for(var n of t(a))c(n)}return l},k={};function c(l){var _={},h=!0,t=!1,s=void 0;try{for(var o,k=l[Symbol.iterator]();!(h=(o=k.next()).done);h=!0){var c=a(o.value,2),p=c[0],b=c[1];_[u[p]]=n[b]}}catch(l){t=!0,s=l}finally{try{!h&&null!=k.return&&k.return()}finally{if(t)throw s}}return _}!(function(l,a){for(var h in a)_(l,h,{get:a[h],enumerable:!0})})(k,{colors:function(){return n},themes:function(){return kr}}),m.exports=(l=k,o(_({},"__esModule",{value:!0}),l));var n=["hsla(0, 0%, 7%, 1)","hsla(0, 0%, 38%, 1)","hsla(0, 0%, 100%, 0)","hsla(0, 0%, 100%, 0.2)","hsla(0, 0%, 100%, 0.4)","hsla(0, 0%, 100%, 0.6)","hsla(0, 0%, 100%, 0.8)","hsla(0, 0%, 100%, 1)","hsla(0, 0%, 95%, 1)","hsla(0, 0%, 93%, 1)","hsla(0, 0%, 91%, 1)","hsla(0, 0%, 88%, 1)","hsla(0, 0%, 85%, 1)","hsla(0, 0%, 82%, 1)","hsla(0, 0%, 76%, 1)","hsla(0, 0%, 56%, 1)","hsla(0, 0%, 50%, 1)","hsla(0, 0%, 42%, 1)","hsla(0, 0%, 9%, 1)","hsla(0, 0%, 9%, 0)","hsla(0, 0%, 9%, 0.2)","hsla(0, 0%, 9%, 0.4)","hsla(0, 0%, 9%, 0.6)","hsla(0, 0%, 9%, 0.8)","hsl(206, 100%, 99.2%)","hsl(210, 100%, 98.0%)","hsl(209, 100%, 96.5%)","hsl(210, 98.8%, 94.0%)","hsl(209, 95.0%, 90.1%)","hsl(209, 81.2%, 84.5%)","hsl(208, 77.5%, 76.9%)","hsl(206, 81.9%, 65.3%)","hsl(206, 100%, 50.0%)","hsl(208, 100%, 47.3%)","hsl(211, 100%, 43.2%)","hsl(211, 100%, 15.0%)","hsl(0, 0%, 99.0%)","hsl(0, 0%, 97.3%)","hsl(0, 0%, 95.1%)","hsl(0, 0%, 93.0%)","hsl(0, 0%, 90.9%)","hsl(0, 0%, 88.7%)","hsl(0, 0%, 85.8%)","hsl(0, 0%, 78.0%)","hsl(0, 0%, 56.1%)","hsl(0, 0%, 52.3%)","hsl(0, 0%, 43.5%)","hsl(0, 0%, 9.0%)","hsla(140, 40%, 99%, 1)","hsla(138, 43%, 97%, 1)","hsla(139, 37%, 95%, 1)","hsla(139, 28%, 91%, 1)","hsla(141, 24%, 86%, 1)","hsla(142, 20%, 79%, 1)","hsla(146, 18%, 69%, 1)","hsla(151, 20%, 54%, 1)","hsla(151, 35%, 42%, 1)","hsla(152, 37%, 38%, 1)","hsla(153, 47%, 28%, 1)","hsla(155, 21%, 14%, 1)","hsl(24, 70.0%, 99.0%)","hsl(24, 83.3%, 97.6%)","hsl(24, 100%, 95.3%)","hsl(25, 100%, 92.2%)","hsl(25, 100%, 88.2%)","hsl(25, 100%, 82.8%)","hsl(24, 100%, 75.3%)","hsl(24, 94.5%, 64.3%)","hsl(24, 94.0%, 50.0%)","hsl(24, 100%, 46.5%)","hsl(24, 100%, 37.0%)","hsl(15, 60.0%, 17.0%)","hsl(322, 100%, 99.4%)","hsl(323, 100%, 98.4%)","hsl(323, 86.3%, 96.5%)","hsl(323, 78.7%, 94.2%)","hsl(323, 72.2%, 91.1%)","hsl(323, 66.3%, 86.6%)","hsl(323, 62.0%, 80.1%)","hsl(323, 60.3%, 72.4%)","hsl(322, 65.0%, 54.5%)","hsl(322, 63.9%, 50.7%)","hsl(322, 75.0%, 46.0%)","hsl(320, 70.0%, 13.5%)","hsl(280, 65.0%, 99.4%)","hsl(276, 100%, 99.0%)","hsl(276, 83.1%, 97.0%)","hsl(275, 76.4%, 94.7%)","hsl(275, 70.8%, 91.8%)","hsl(274, 65.4%, 87.8%)","hsl(273, 61.0%, 81.7%)","hsl(272, 60.0%, 73.5%)","hsl(272, 51.0%, 54.0%)","hsl(272, 46.8%, 50.3%)","hsl(272, 50.0%, 45.8%)","hsl(272, 66.0%, 16.0%)","hsl(359, 100%, 99.4%)","hsl(359, 100%, 98.6%)","hsl(360, 100%, 96.8%)","hsl(360, 97.9%, 94.8%)","hsl(360, 90.2%, 91.9%)","hsl(360, 81.7%, 87.8%)","hsl(359, 74.2%, 81.7%)","hsl(359, 69.5%, 74.3%)","hsl(358, 75.0%, 59.0%)","hsl(358, 69.4%, 55.2%)","hsl(358, 65.0%, 48.7%)","hsl(354, 50.0%, 14.6%)","hsl(60, 54.0%, 98.5%)","hsl(52, 100%, 95.5%)","hsl(55, 100%, 90.9%)","hsl(54, 100%, 86.6%)","hsl(52, 97.9%, 82.0%)","hsl(50, 89.4%, 76.1%)","hsl(47, 80.4%, 68.0%)","hsl(48, 100%, 46.1%)","hsl(53, 92.0%, 50.0%)","hsl(50, 100%, 48.5%)","hsl(42, 100%, 29.0%)","hsl(40, 55.0%, 13.5%)","rgba(0,0,0,0.04)","rgba(0,0,0,0.08)","rgba(0,0,0,0.16)","rgba(0,0,0,0.24)","rgba(0,0,0,0.32)","rgba(0,0,0,0.4)","rgba(0,0,0,0.5)","rgba(0,0,0,0.6)","rgba(0,0,0,0.7)","rgba(0,0,0,0.8)","#040404","#090909","#111","#151515","#222","#282828","#343434","#424242","#515151","#626262","#a5a5a5","#fff","#f2f2f2","hsl(0, 0%, 93%)","hsl(0, 0%, 91%)","hsl(0, 0%, 88%)","hsl(0, 0%, 85%)","hsl(0, 0%, 82%)","hsl(0, 0%, 76%)","hsl(0, 0%, 56%)","hsl(0, 0%, 50%)","hsl(0, 0%, 42%)","hsl(0, 0%, 9%)","hsla(0, 0%, 2%, 1)","hsla(0, 0%, 4%, 1)","hsla(0, 0%, 8%, 1)","hsla(0, 0%, 13%, 1)","hsla(0, 0%, 16%, 1)","hsla(0, 0%, 20%, 1)","hsla(0, 0%, 26%, 1)","hsla(0, 0%, 32%, 1)","hsla(0, 0%, 65%, 1)","hsla(0, 0%, 2%, 0)","hsla(0, 0%, 2%, 0.2)","hsla(0, 0%, 2%, 0.4)","hsla(0, 0%, 2%, 0.6)","hsla(0, 0%, 2%, 0.8)","hsl(212, 35.0%, 9.2%)","hsl(216, 50.0%, 11.8%)","hsl(214, 59.4%, 15.3%)","hsl(214, 65.8%, 17.9%)","hsl(213, 71.2%, 20.2%)","hsl(212, 77.4%, 23.1%)","hsl(211, 85.1%, 27.4%)","hsl(211, 89.7%, 34.1%)","hsl(209, 100%, 60.6%)","hsl(210, 100%, 66.1%)","hsl(206, 98.0%, 95.8%)","hsl(0, 0%, 8.5%)","hsl(0, 0%, 11.0%)","hsl(0, 0%, 13.6%)","hsl(0, 0%, 15.8%)","hsl(0, 0%, 17.9%)","hsl(0, 0%, 20.5%)","hsl(0, 0%, 24.3%)","hsl(0, 0%, 31.2%)","hsl(0, 0%, 43.9%)","hsl(0, 0%, 49.4%)","hsl(0, 0%, 62.8%)","hsla(145, 12%, 7%, 1)","hsla(155, 24%, 8%, 1)","hsla(155, 26%, 11%, 1)","hsla(154, 28%, 13%, 1)","hsla(155, 30%, 15%, 1)","hsla(154, 31%, 18%, 1)","hsla(153, 31%, 22%, 1)","hsla(151, 32%, 28%, 1)","hsla(151, 29%, 46%, 1)","hsla(151, 30%, 53%, 1)","hsla(136, 53%, 94%, 1)","hsl(30, 70.0%, 7.2%)","hsl(28, 100%, 8.4%)","hsl(26, 91.1%, 11.6%)","hsl(25, 88.3%, 14.1%)","hsl(24, 87.6%, 16.6%)","hsl(24, 88.6%, 19.8%)","hsl(24, 92.4%, 24.0%)","hsl(25, 100%, 29.0%)","hsl(24, 100%, 58.5%)","hsl(24, 100%, 62.2%)","hsl(24, 97.0%, 93.2%)","hsl(318, 25.0%, 9.6%)","hsl(319, 32.2%, 11.6%)","hsl(319, 41.0%, 16.0%)","hsl(320, 45.4%, 18.7%)","hsl(320, 49.0%, 21.1%)","hsl(321, 53.6%, 24.4%)","hsl(321, 61.1%, 29.7%)","hsl(322, 74.9%, 37.5%)","hsl(323, 72.8%, 59.2%)","hsl(325, 90.0%, 66.4%)","hsl(322, 90.0%, 95.8%)","hsl(284, 20.0%, 9.6%)","hsl(283, 30.0%, 11.8%)","hsl(281, 37.5%, 16.5%)","hsl(280, 41.2%, 20.0%)","hsl(279, 43.8%, 23.3%)","hsl(277, 46.4%, 27.5%)","hsl(275, 49.3%, 34.6%)","hsl(272, 52.1%, 45.9%)","hsl(273, 57.3%, 59.1%)","hsl(275, 80.0%, 71.0%)","hsl(279, 75.0%, 95.7%)","hsl(353, 23.0%, 9.8%)","hsl(357, 34.4%, 12.0%)","hsl(356, 43.4%, 16.4%)","hsl(356, 47.6%, 19.2%)","hsl(356, 51.1%, 21.9%)","hsl(356, 55.2%, 25.9%)","hsl(357, 60.2%, 31.8%)","hsl(358, 65.0%, 40.4%)","hsl(358, 85.3%, 64.0%)","hsl(358, 100%, 69.5%)","hsl(351, 89.0%, 96.0%)","hsl(45, 100%, 5.5%)","hsl(46, 100%, 6.7%)","hsl(45, 100%, 8.7%)","hsl(45, 100%, 10.4%)","hsl(47, 100%, 12.1%)","hsl(49, 100%, 14.3%)","hsl(49, 90.3%, 18.4%)","hsl(50, 100%, 22.0%)","hsl(54, 100%, 68.0%)","hsl(48, 100%, 47.0%)","hsl(53, 100%, 91.0%)","rgba(0,0,0,0.2)","rgba(0,0,0,0.3)","rgba(0,0,0,0.65)","rgba(0,0,0,0.75)","rgba(0,0,0,0.85)","rgba(0,0,0,0.9)","#000","hsla(0, 0%, 99%, 0)","hsla(0, 0%, 99%, 0.2)","hsla(0, 0%, 99%, 0.4)","hsla(0, 0%, 99%, 0.6)","hsla(0, 0%, 99%, 0.8)","hsla(0, 0%, 99%, 1)","hsla(0, 0%, 97%, 1)","hsla(0, 0%, 89%, 1)","hsla(0, 0%, 86%, 1)","hsla(0, 0%, 78%, 1)","hsla(0, 0%, 52%, 1)","hsla(0, 0%, 44%, 1)","hsla(216, 100%, 99%, 0)","hsla(216, 100%, 99%, 0.2)","hsla(216, 100%, 99%, 0.4)","hsla(216, 100%, 99%, 0.6)","hsla(216, 100%, 99%, 0.8)","hsla(210, 100%, 99%, 1)","hsla(210, 100%, 98%, 1)","hsla(210, 100%, 96%, 1)","hsla(210, 100%, 94%, 1)","hsla(209, 96%, 90%, 1)","hsla(209, 82%, 85%, 1)","hsla(208, 78%, 77%, 1)","hsla(206, 82%, 65%, 1)","hsla(206, 100%, 50%, 1)","hsla(208, 100%, 47%, 1)","hsla(211, 100%, 43%, 1)","hsla(211, 100%, 15%, 1)","hsla(211, 100%, 15%, 0)","hsla(211, 100%, 15%, 0.2)","hsla(211, 100%, 15%, 0.4)","hsla(211, 100%, 15%, 0.6)","hsla(211, 100%, 15%, 0.8)","hsla(20, 60%, 99%, 0)","hsla(20, 60%, 99%, 0.2)","hsla(20, 60%, 99%, 0.4)","hsla(20, 60%, 99%, 0.6)","hsla(20, 60%, 99%, 0.8)","hsla(20, 60%, 99%, 1)","hsla(24, 83%, 98%, 1)","hsla(25, 100%, 95%, 1)","hsla(25, 100%, 92%, 1)","hsla(25, 100%, 88%, 1)","hsla(25, 100%, 83%, 1)","hsla(24, 100%, 75%, 1)","hsla(24, 95%, 64%, 1)","hsla(24, 94%, 50%, 1)","hsla(24, 100%, 46%, 1)","hsla(24, 100%, 37%, 1)","hsla(15, 60%, 17%, 1)","hsla(15, 60%, 17%, 0)","hsla(15, 60%, 17%, 0.2)","hsla(15, 60%, 17%, 0.4)","hsla(15, 60%, 17%, 0.6)","hsla(15, 60%, 17%, 0.8)","hsla(0, 100%, 99%, 0)","hsla(0, 100%, 99%, 0.2)","hsla(0, 100%, 99%, 0.4)","hsla(0, 100%, 99%, 0.6)","hsla(0, 100%, 99%, 0.8)","hsla(0, 100%, 99%, 1)","hsla(0, 100%, 97%, 1)","hsla(0, 100%, 95%, 1)","hsla(0, 90%, 92%, 1)","hsla(0, 81%, 88%, 1)","hsla(359, 74%, 82%, 1)","hsla(359, 69%, 74%, 1)","hsla(358, 75%, 59%, 1)","hsla(358, 69%, 55%, 1)","hsla(358, 65%, 49%, 1)","hsla(355, 49%, 15%, 1)","hsla(355, 48%, 15%, 0)","hsla(355, 48%, 15%, 0.2)","hsla(355, 48%, 15%, 0.4)","hsla(355, 48%, 15%, 0.6)","hsla(355, 48%, 15%, 0.8)","hsla(60, 45%, 98%, 0)","hsla(60, 45%, 98%, 0.2)","hsla(60, 45%, 98%, 0.4)","hsla(60, 45%, 98%, 0.6)","hsla(60, 45%, 98%, 0.8)","hsla(60, 50%, 98%, 1)","hsla(52, 100%, 95%, 1)","hsla(55, 100%, 91%, 1)","hsla(54, 100%, 87%, 1)","hsla(52, 98%, 82%, 1)","hsla(50, 90%, 76%, 1)","hsla(47, 80%, 68%, 1)","hsla(48, 100%, 46%, 1)","hsla(53, 92%, 50%, 1)","hsla(50, 100%, 48%, 1)","hsla(42, 100%, 29%, 1)","hsla(41, 56%, 13%, 1)","hsla(41, 55%, 13%, 0)","hsla(41, 55%, 13%, 0.2)","hsla(41, 55%, 13%, 0.4)","hsla(41, 55%, 13%, 0.6)","hsla(41, 55%, 13%, 0.8)","hsla(120, 20%, 99%, 0)","hsla(120, 20%, 99%, 0.2)","hsla(120, 20%, 99%, 0.4)","hsla(120, 20%, 99%, 0.6)","hsla(120, 20%, 99%, 0.8)","hsla(150, 33%, 99%, 1)","hsla(137, 47%, 97%, 1)","hsla(140, 36%, 95%, 1)","hsla(140, 26%, 91%, 1)","hsla(143, 20%, 79%, 1)","hsla(150, 35%, 42%, 1)","hsla(156, 21%, 14%, 1)","hsla(156, 21%, 14%, 0)","hsla(156, 21%, 14%, 0.2)","hsla(156, 21%, 14%, 0.4)","hsla(156, 21%, 14%, 0.6)","hsla(156, 21%, 14%, 0.8)","hsla(300, 60%, 99%, 0)","hsla(300, 60%, 99%, 0.2)","hsla(300, 60%, 99%, 0.4)","hsla(300, 60%, 99%, 0.6)","hsla(300, 60%, 99%, 0.8)","hsla(300, 50%, 99%, 1)","hsla(276, 100%, 99%, 1)","hsla(277, 87%, 97%, 1)","hsla(274, 78%, 95%, 1)","hsla(276, 71%, 92%, 1)","hsla(274, 65%, 88%, 1)","hsla(273, 61%, 82%, 1)","hsla(272, 60%, 74%, 1)","hsla(272, 51%, 54%, 1)","hsla(272, 47%, 50%, 1)","hsla(272, 50%, 46%, 1)","hsla(272, 66%, 16%, 1)","hsla(272, 66%, 16%, 0)","hsla(272, 66%, 16%, 0.2)","hsla(272, 66%, 16%, 0.4)","hsla(272, 66%, 16%, 0.6)","hsla(272, 66%, 16%, 0.8)","hsla(324, 100%, 99%, 0)","hsla(324, 100%, 99%, 0.2)","hsla(324, 100%, 99%, 0.4)","hsla(324, 100%, 99%, 0.6)","hsla(324, 100%, 99%, 0.8)","hsla(320, 100%, 99%, 1)","hsla(322, 100%, 98%, 1)","hsla(323, 89%, 96%, 1)","hsla(323, 79%, 94%, 1)","hsla(324, 73%, 91%, 1)","hsla(323, 65%, 86%, 1)","hsla(323, 62%, 80%, 1)","hsla(323, 60%, 72%, 1)","hsla(322, 65%, 55%, 1)","hsla(322, 64%, 51%, 1)","hsla(322, 75%, 46%, 1)","hsla(321, 71%, 14%, 1)","hsla(321, 72%, 14%, 0)","hsla(321, 72%, 14%, 0.2)","hsla(321, 72%, 14%, 0.4)","hsla(321, 72%, 14%, 0.6)","hsla(321, 72%, 14%, 0.8)","hsla(30, 20%, 98%, 0)","hsla(30, 20%, 98%, 0.2)","hsla(30, 20%, 98%, 0.4)","hsla(30, 20%, 98%, 0.6)","hsla(30, 20%, 98%, 0.8)","hsla(40, 27%, 98%, 1)","hsla(43, 23%, 94%, 1)","hsla(36, 22%, 91%, 1)","hsla(38, 22%, 90%, 1)","hsla(37, 21%, 88%, 1)","hsla(36, 19%, 85%, 1)","hsla(34, 21%, 74%, 1)","hsla(35, 20%, 70%, 1)","hsla(35, 20%, 67%, 1)","hsla(34, 19%, 47%, 1)","hsla(35, 18%, 37%, 1)","hsla(33, 18%, 20%, 1)","hsla(33, 18%, 20%, 0)","hsla(33, 18%, 20%, 0.2)","hsla(33, 18%, 20%, 0.4)","hsla(33, 18%, 20%, 0.6)","hsla(33, 18%, 20%, 0.8)","hsla(0, 0%, 11%, 1)","hsla(0, 0%, 14%, 1)","hsla(0, 0%, 18%, 1)","hsla(0, 0%, 24%, 1)","hsla(0, 0%, 31%, 1)","hsla(0, 0%, 49%, 1)","hsla(0, 0%, 63%, 1)","hsla(0, 0%, 93%, 0)","hsla(0, 0%, 93%, 0.2)","hsla(0, 0%, 93%, 0.4)","hsla(0, 0%, 93%, 0.6)","hsla(0, 0%, 93%, 0.8)","hsla(214, 35%, 9%, 0)","hsla(214, 35%, 9%, 0.2)","hsla(214, 35%, 9%, 0.4)","hsla(214, 35%, 9%, 0.6)","hsla(214, 35%, 9%, 0.8)","hsla(212, 36%, 9%, 1)","hsla(216, 50%, 12%, 1)","hsla(214, 59%, 15%, 1)","hsla(214, 65%, 18%, 1)","hsla(213, 71%, 20%, 1)","hsla(212, 78%, 23%, 1)","hsla(211, 86%, 27%, 1)","hsla(211, 90%, 34%, 1)","hsla(209, 100%, 61%, 1)","hsla(210, 100%, 66%, 1)","hsla(206, 100%, 96%, 1)","hsla(207, 100%, 96%, 0)","hsla(207, 100%, 96%, 0.2)","hsla(207, 100%, 96%, 0.4)","hsla(207, 100%, 96%, 0.6)","hsla(207, 100%, 96%, 0.8)","hsla(28, 67%, 7%, 0)","hsla(28, 67%, 7%, 0.2)","hsla(28, 67%, 7%, 0.4)","hsla(28, 67%, 7%, 0.6)","hsla(28, 67%, 7%, 0.8)","hsla(29, 68%, 7%, 1)","hsla(28, 100%, 8%, 1)","hsla(26, 90%, 12%, 1)","hsla(25, 89%, 14%, 1)","hsla(24, 88%, 16%, 1)","hsla(24, 88%, 20%, 1)","hsla(24, 92%, 24%, 1)","hsla(25, 100%, 29%, 1)","hsla(24, 100%, 58%, 1)","hsla(24, 100%, 62%, 1)","hsla(24, 94%, 93%, 1)","hsla(25, 94%, 93%, 0)","hsla(25, 94%, 93%, 0.2)","hsla(25, 94%, 93%, 0.4)","hsla(25, 94%, 93%, 0.6)","hsla(25, 94%, 93%, 0.8)","hsla(351, 25%, 10%, 0)","hsla(351, 25%, 10%, 0.2)","hsla(351, 25%, 10%, 0.4)","hsla(351, 25%, 10%, 0.6)","hsla(351, 25%, 10%, 0.8)","hsla(350, 24%, 10%, 1)","hsla(357, 34%, 12%, 1)","hsla(357, 43%, 16%, 1)","hsla(356, 47%, 19%, 1)","hsla(356, 51%, 22%, 1)","hsla(357, 55%, 26%, 1)","hsla(357, 60%, 32%, 1)","hsla(358, 65%, 40%, 1)","hsla(358, 86%, 64%, 1)","hsla(358, 100%, 69%, 1)","hsla(353, 90%, 96%, 1)","hsla(353, 90%, 96%, 0)","hsla(353, 90%, 96%, 0.2)","hsla(353, 90%, 96%, 0.4)","hsla(353, 90%, 96%, 0.6)","hsla(353, 90%, 96%, 0.8)","hsla(46, 100%, 5%, 0)","hsla(46, 100%, 5%, 0.2)","hsla(46, 100%, 5%, 0.4)","hsla(46, 100%, 5%, 0.6)","hsla(46, 100%, 5%, 0.8)","hsla(45, 100%, 5%, 1)","hsla(46, 100%, 7%, 1)","hsla(45, 100%, 9%, 1)","hsla(45, 100%, 10%, 1)","hsla(46, 100%, 12%, 1)","hsla(49, 100%, 14%, 1)","hsla(49, 89%, 18%, 1)","hsla(50, 100%, 22%, 1)","hsla(54, 100%, 68%, 1)","hsla(48, 100%, 47%, 1)","hsla(53, 100%, 91%, 1)","hsla(53, 100%, 91%, 0)","hsla(53, 100%, 91%, 0.2)","hsla(53, 100%, 91%, 0.4)","hsla(53, 100%, 91%, 0.6)","hsla(53, 100%, 91%, 0.8)","hsla(135, 11%, 7%, 0)","hsla(135, 11%, 7%, 0.2)","hsla(135, 11%, 7%, 0.4)","hsla(135, 11%, 7%, 0.6)","hsla(135, 11%, 7%, 0.8)","hsla(135, 11%, 7%, 1)","hsla(153, 22%, 8%, 1)","hsla(154, 25%, 11%, 1)","hsla(153, 27%, 13%, 1)","hsla(154, 30%, 15%, 1)","hsla(154, 30%, 18%, 1)","hsla(154, 30%, 22%, 1)","hsla(151, 31%, 28%, 1)","hsla(135, 53%, 94%, 1)","hsla(135, 53%, 94%, 0)","hsla(135, 53%, 94%, 0.2)","hsla(135, 53%, 94%, 0.4)","hsla(135, 53%, 94%, 0.6)","hsla(135, 53%, 94%, 0.8)","hsla(287, 18%, 10%, 0)","hsla(287, 18%, 10%, 0.2)","hsla(287, 18%, 10%, 0.4)","hsla(287, 18%, 10%, 0.6)","hsla(287, 18%, 10%, 0.8)","hsla(287, 18%, 10%, 1)","hsla(283, 30%, 12%, 1)","hsla(281, 38%, 16%, 1)","hsla(280, 41%, 20%, 1)","hsla(279, 44%, 23%, 1)","hsla(277, 46%, 28%, 1)","hsla(274, 49%, 35%, 1)","hsla(272, 52%, 46%, 1)","hsla(273, 57%, 59%, 1)","hsla(275, 80%, 71%, 1)","hsla(281, 73%, 96%, 1)","hsla(284, 71%, 96%, 0)","hsla(284, 71%, 96%, 0.2)","hsla(284, 71%, 96%, 0.4)","hsla(284, 71%, 96%, 0.6)","hsla(284, 71%, 96%, 0.8)","hsla(318, 25%, 10%, 0)","hsla(318, 25%, 10%, 0.2)","hsla(318, 25%, 10%, 0.4)","hsla(318, 25%, 10%, 0.6)","hsla(318, 25%, 10%, 0.8)","hsla(318, 27%, 10%, 1)","hsla(319, 32%, 12%, 1)","hsla(319, 41%, 16%, 1)","hsla(320, 45%, 19%, 1)","hsla(319, 50%, 21%, 1)","hsla(321, 54%, 25%, 1)","hsla(321, 62%, 30%, 1)","hsla(322, 75%, 37%, 1)","hsla(323, 73%, 59%, 1)","hsla(325, 90%, 66%, 1)","hsla(322, 90%, 96%, 1)","hsla(323, 90%, 96%, 0)","hsla(323, 90%, 96%, 0.2)","hsla(323, 90%, 96%, 0.4)","hsla(323, 90%, 96%, 0.6)","hsla(323, 90%, 96%, 0.8)","hsla(36, 10%, 10%, 0)","hsla(36, 10%, 10%, 0.2)","hsla(36, 10%, 10%, 0.4)","hsla(36, 10%, 10%, 0.6)","hsla(36, 10%, 10%, 0.8)","hsla(36, 10%, 10%, 1)","hsla(30, 10%, 12%, 1)","hsla(30, 11%, 18%, 1)","hsla(30, 12%, 23%, 1)","hsla(30, 14%, 28%, 1)","hsla(29, 16%, 33%, 1)","hsla(31, 18%, 38%, 1)","hsla(30, 20%, 45%, 1)","hsla(31, 21%, 50%, 1)","hsla(29, 22%, 58%, 1)","hsla(34, 24%, 70%, 1)","hsla(9, 12%, 79%, 1)","hsla(9, 12%, 79%, 0)","hsla(9, 12%, 79%, 0.2)","hsla(9, 12%, 79%, 0.4)","hsla(9, 12%, 79%, 0.6)","hsla(9, 12%, 79%, 0.8)"],u=["accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","borderColor","borderColorHover","borderColorPress","borderColorFocus","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","colorTransparent","blue1","blue2","blue3","blue4","blue5","blue6","blue7","blue8","blue9","blue10","blue11","blue12","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","green1","green2","green3","green4","green5","green6","green7","green8","green9","green10","green11","green12","orange1","orange2","orange3","orange4","orange5","orange6","orange7","orange8","orange9","orange10","orange11","orange12","pink1","pink2","pink3","pink4","pink5","pink6","pink7","pink8","pink9","pink10","pink11","pink12","purple1","purple2","purple3","purple4","purple5","purple6","purple7","purple8","purple9","purple10","purple11","purple12","red1","red2","red3","red4","red5","red6","red7","red8","red9","red10","red11","red12","yellow1","yellow2","yellow3","yellow4","yellow5","yellow6","yellow7","yellow8","yellow9","yellow10","yellow11","yellow12","shadow1","shadow2","shadow3","shadow4","shadow5","shadow6","shadow7","shadow8","shadow9","shadow10","black1","black2","black3","black4","black5","black6","black7","black8","black9","black10","black11","black12","white1","white2","white3","white4","white5","white6","white7","white8","white9","white10","white11","white12","shadowColor","colorBg","accent1","accent2","accent3","accent4","accent5","accent6","accent7","accent8","accent9","accent10","accent11","accent12"],p=c([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,60],[76,61],[77,62],[78,63],[79,64],[80,65],[81,66],[82,67],[83,68],[84,69],[85,70],[86,71],[87,72],[88,73],[89,74],[90,75],[91,76],[92,77],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,90],[106,91],[107,92],[108,93],[109,94],[110,95],[111,96],[112,97],[113,98],[114,99],[115,100],[116,101],[117,102],[118,103],[119,104],[120,105],[121,106],[122,107],[123,108],[124,109],[125,110],[126,111],[127,112],[128,113],[129,114],[130,115],[131,116],[132,117],[133,118],[134,119],[135,120],[136,121],[137,122],[138,123],[139,124],[140,125],[141,126],[142,127],[143,128],[144,129],[145,130],[146,131],[147,132],[148,133],[149,134],[150,135],[151,136],[152,137],[153,138],[154,139],[155,140],[156,141],[157,141],[158,142],[159,143],[160,144],[161,145],[162,146],[163,147],[164,148],[165,149],[166,150],[167,151],[168,152],[169,120],[170,141],[171,153],[172,154],[173,0],[174,155],[175,156],[176,157],[177,158],[178,159],[179,160],[180,1],[181,161],[182,7]]),b=c([[0,16],[1,9],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,154],[26,166],[27,166],[28,155],[29,156],[30,0],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2],[39,167],[40,168],[41,169],[42,170],[43,171],[44,172],[45,173],[46,174],[47,32],[48,175],[49,176],[50,177],[51,178],[52,179],[53,180],[54,181],[55,182],[56,183],[57,184],[58,185],[59,186],[60,187],[61,188],[62,39],[63,189],[64,190],[65,191],[66,192],[67,193],[68,194],[69,195],[70,196],[71,56],[72,197],[73,198],[74,199],[75,200],[76,201],[77,202],[78,203],[79,204],[80,205],[81,206],[82,207],[83,68],[84,208],[85,209],[86,210],[87,211],[88,212],[89,213],[90,214],[91,215],[92,216],[93,217],[94,218],[95,80],[96,219],[97,220],[98,221],[99,222],[100,223],[101,224],[102,225],[103,226],[104,227],[105,228],[106,229],[107,92],[108,230],[109,231],[110,232],[111,233],[112,234],[113,235],[114,236],[115,237],[116,238],[117,239],[118,240],[119,104],[120,241],[121,242],[122,243],[123,244],[124,245],[125,246],[126,247],[127,248],[128,249],[129,250],[130,251],[131,116],[132,252],[133,253],[134,254],[135,255],[136,256],[137,125],[138,126],[139,127],[140,257],[141,258],[142,129],[143,259],[144,260],[145,130],[146,131],[147,132],[148,133],[149,134],[150,135],[151,136],[152,137],[153,138],[154,139],[155,140],[156,141],[157,141],[158,142],[159,143],[160,144],[161,145],[162,146],[163,147],[164,148],[165,149],[166,150],[167,151],[168,152],[169,255],[170,261],[171,7],[172,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18]]),T=c([[0,9],[1,16],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,166],[26,154],[27,154],[28,155],[29,0],[30,156],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),w=c([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),S=c([[0,0],[1,1],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,166],[26,154],[27,154],[28,155],[29,0],[30,156],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),y=c([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),I=c([[0,0],[1,1],[2,262],[3,263],[4,264],[5,265],[6,266],[7,267],[8,268],[9,8],[10,9],[11,10],[12,269],[13,270],[14,271],[15,15],[16,272],[17,273],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,267],[25,266],[26,268],[27,268],[28,9],[29,8],[30,10],[31,9],[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[38,19]]),f=c([[0,0],[1,1],[2,274],[3,275],[4,276],[5,277],[6,278],[7,279],[8,280],[9,281],[10,282],[11,283],[12,284],[13,285],[14,286],[15,287],[16,288],[17,289],[18,290],[19,291],[20,292],[21,293],[22,294],[23,295],[24,279],[25,278],[26,280],[27,280],[28,282],[29,281],[30,283],[31,282],[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[38,291]]),C=c([[0,0],[1,1],[2,296],[3,297],[4,298],[5,299],[6,300],[7,301],[8,302],[9,303],[10,304],[11,305],[12,306],[13,307],[14,308],[15,309],[16,310],[17,311],[18,312],[19,313],[20,314],[21,315],[22,316],[23,317],[24,301],[25,300],[26,302],[27,302],[28,304],[29,303],[30,305],[31,304],[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[38,313]]),A=c([[0,0],[1,1],[2,318],[3,319],[4,320],[5,321],[6,322],[7,323],[8,323],[9,324],[10,325],[11,326],[12,327],[13,328],[14,329],[15,330],[16,331],[17,332],[18,333],[19,334],[20,335],[21,336],[22,337],[23,338],[24,323],[25,322],[26,323],[27,323],[28,325],[29,324],[30,326],[31,325],[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[38,334]]),P=c([[0,0],[1,1],[2,339],[3,340],[4,341],[5,342],[6,343],[7,344],[8,345],[9,346],[10,347],[11,348],[12,349],[13,350],[14,351],[15,352],[16,353],[17,354],[18,355],[19,356],[20,357],[21,358],[22,359],[23,360],[24,344],[25,343],[26,345],[27,345],[28,347],[29,346],[30,348],[31,347],[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[38,356]]),x=c([[0,0],[1,1],[2,361],[3,362],[4,363],[5,364],[6,365],[7,366],[8,367],[9,368],[10,369],[11,52],[12,370],[13,54],[14,55],[15,371],[16,57],[17,58],[18,372],[19,373],[20,374],[21,375],[22,376],[23,377],[24,366],[25,365],[26,367],[27,367],[28,369],[29,368],[30,52],[31,369],[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[38,373]]),v=c([[0,0],[1,1],[2,378],[3,379],[4,380],[5,381],[6,382],[7,383],[8,384],[9,385],[10,386],[11,387],[12,388],[13,389],[14,390],[15,391],[16,392],[17,393],[18,394],[19,395],[20,396],[21,397],[22,398],[23,399],[24,383],[25,382],[26,384],[27,384],[28,386],[29,385],[30,387],[31,386],[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[38,395]]),B=c([[0,0],[1,1],[2,400],[3,401],[4,402],[5,403],[6,404],[7,405],[8,406],[9,407],[10,408],[11,409],[12,410],[13,411],[14,412],[15,413],[16,414],[17,415],[18,416],[19,417],[20,418],[21,419],[22,420],[23,421],[24,405],[25,404],[26,406],[27,406],[28,408],[29,407],[30,409],[31,408],[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[38,417]]),G=c([[0,0],[1,1],[2,422],[3,423],[4,424],[5,425],[6,426],[7,427],[8,428],[9,429],[10,430],[11,431],[12,432],[13,433],[14,434],[15,435],[16,436],[17,437],[18,438],[19,439],[20,440],[21,441],[22,442],[23,443],[24,427],[25,426],[26,428],[27,428],[28,430],[29,429],[30,431],[31,430],[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[38,439]]),L=c([[0,16],[1,9],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,154],[26,166],[27,166],[28,155],[29,156],[30,0],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),R=c([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),O=c([[0,16],[1,9],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,444],[9,445],[10,157],[11,446],[12,158],[13,447],[14,448],[15,273],[16,449],[17,450],[18,9],[19,451],[20,452],[21,453],[22,454],[23,455],[24,18],[25,444],[26,23],[27,23],[28,157],[29,446],[30,445],[31,157],[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[38,451]]),j=c([[0,16],[1,9],[2,456],[3,457],[4,458],[5,459],[6,460],[7,461],[8,462],[9,463],[10,464],[11,465],[12,466],[13,467],[14,468],[15,287],[16,469],[17,470],[18,471],[19,472],[20,473],[21,474],[22,475],[23,476],[24,461],[25,462],[26,460],[27,460],[28,464],[29,465],[30,463],[31,464],[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[38,472]]),F=c([[0,16],[1,9],[2,477],[3,478],[4,479],[5,480],[6,481],[7,482],[8,483],[9,484],[10,485],[11,486],[12,487],[13,488],[14,489],[15,309],[16,490],[17,491],[18,492],[19,493],[20,494],[21,495],[22,496],[23,497],[24,482],[25,483],[26,481],[27,481],[28,485],[29,486],[30,484],[31,485],[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[38,493]]),H=c([[0,16],[1,9],[2,498],[3,499],[4,500],[5,501],[6,502],[7,503],[8,504],[9,505],[10,506],[11,507],[12,508],[13,509],[14,510],[15,330],[16,511],[17,512],[18,513],[19,514],[20,515],[21,516],[22,517],[23,518],[24,503],[25,504],[26,502],[27,502],[28,506],[29,507],[30,505],[31,506],[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[38,514]]),D=c([[0,16],[1,9],[2,519],[3,520],[4,521],[5,522],[6,523],[7,524],[8,525],[9,526],[10,527],[11,528],[12,529],[13,530],[14,531],[15,352],[16,532],[17,533],[18,534],[19,535],[20,536],[21,537],[22,538],[23,539],[24,524],[25,525],[26,523],[27,523],[28,527],[29,528],[30,526],[31,527],[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[38,535]]),M=c([[0,16],[1,9],[2,540],[3,541],[4,542],[5,543],[6,544],[7,545],[8,546],[9,547],[10,548],[11,549],[12,550],[13,551],[14,552],[15,371],[16,197],[17,198],[18,553],[19,554],[20,555],[21,556],[22,557],[23,558],[24,545],[25,546],[26,544],[27,544],[28,548],[29,549],[30,547],[31,548],[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[38,554]]),N=c([[0,16],[1,9],[2,559],[3,560],[4,561],[5,562],[6,563],[7,564],[8,565],[9,566],[10,567],[11,568],[12,569],[13,570],[14,571],[15,391],[16,572],[17,573],[18,574],[19,575],[20,576],[21,577],[22,578],[23,579],[24,564],[25,565],[26,563],[27,563],[28,567],[29,568],[30,566],[31,567],[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[38,575]]),q=c([[0,16],[1,9],[2,580],[3,581],[4,582],[5,583],[6,584],[7,585],[8,586],[9,587],[10,588],[11,589],[12,590],[13,591],[14,592],[15,413],[16,593],[17,594],[18,595],[19,596],[20,597],[21,598],[22,599],[23,600],[24,585],[25,586],[26,584],[27,584],[28,588],[29,589],[30,587],[31,588],[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[38,596]]),z=c([[0,16],[1,9],[2,601],[3,602],[4,603],[5,604],[6,605],[7,606],[8,607],[9,608],[10,609],[11,610],[12,611],[13,612],[14,613],[15,614],[16,615],[17,616],[18,617],[19,618],[20,619],[21,620],[22,621],[23,622],[24,606],[25,607],[26,605],[27,605],[28,609],[29,610],[30,608],[31,609],[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[38,618]]),E=c([[32,17],[33,16],[34,17],[35,16]]),J=c([[32,16],[33,15],[34,16],[35,15]]),K=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,7],[26,9],[27,9],[28,11],[29,10],[31,11],[30,12]]),Q=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,12],[29,11],[31,12],[30,13]]),U=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,9],[26,11],[27,11],[28,13],[29,12],[31,13],[30,14]]),V=c([[32,161],[33,1],[34,161],[35,1]]),W=c([[32,1],[33,160],[34,1],[35,160]]),X=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,154],[25,0],[26,153],[27,153],[28,156],[29,157],[31,156],[30,155]]),Y=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,0],[25,155],[26,154],[27,154],[28,157],[29,158],[31,157],[30,156]]),Z=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,155],[25,156],[26,0],[27,0],[28,158],[29,159],[31,158],[30,157]]),$=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,154],[25,153],[26,0],[27,0],[28,156],[29,155],[31,156],[30,157]]),ll=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,0],[25,154],[26,155],[27,155],[28,157],[29,156],[31,157],[30,158]]),al=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,155],[25,0],[26,156],[27,156],[28,158],[29,157],[31,158],[30,159]]),rl=c([[32,273],[33,272],[34,273],[35,272]]),_l=c([[32,272],[33,15],[34,272],[35,15]]),hl=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,268],[25,267],[26,8],[27,8],[28,10],[29,9],[31,10],[30,269]]),el=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,8],[25,268],[26,9],[27,9],[28,269],[29,10],[31,269],[30,270]]),tl=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,270],[29,269],[31,270],[30,271]]),sl=c([[32,289],[33,288],[34,289],[35,288]]),il=c([[32,288],[33,287],[34,288],[35,287]]),ol=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,280],[25,279],[26,281],[27,281],[28,283],[29,282],[31,283],[30,284]]),gl=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,281],[25,280],[26,282],[27,282],[28,284],[29,283],[31,284],[30,285]]),dl=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,282],[25,281],[26,283],[27,283],[28,285],[29,284],[31,285],[30,286]]),kl=c([[32,311],[33,310],[34,311],[35,310]]),cl=c([[32,310],[33,309],[34,310],[35,309]]),nl=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,302],[25,301],[26,303],[27,303],[28,305],[29,304],[31,305],[30,306]]),ul=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,303],[25,302],[26,304],[27,304],[28,306],[29,305],[31,306],[30,307]]),pl=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,304],[25,303],[26,305],[27,305],[28,307],[29,306],[31,307],[30,308]]),bl=c([[32,332],[33,331],[34,332],[35,331]]),Tl=c([[32,331],[33,330],[34,331],[35,330]]),wl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,323],[25,323],[26,324],[27,324],[28,326],[29,325],[31,326],[30,327]]),Sl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,324],[25,323],[26,325],[27,325],[28,327],[29,326],[31,327],[30,328]]),yl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,325],[25,324],[26,326],[27,326],[28,328],[29,327],[31,328],[30,329]]),ml=c([[32,354],[33,353],[34,354],[35,353]]),Il=c([[32,353],[33,352],[34,353],[35,352]]),fl=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,345],[25,344],[26,346],[27,346],[28,348],[29,347],[31,348],[30,349]]),Cl=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,346],[25,345],[26,347],[27,347],[28,349],[29,348],[31,349],[30,350]]),Al=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,347],[25,346],[26,348],[27,348],[28,350],[29,349],[31,350],[30,351]]),Pl=c([[32,58],[33,57],[34,58],[35,57]]),xl=c([[32,57],[33,371],[34,57],[35,371]]),vl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,367],[25,366],[26,368],[27,368],[28,52],[29,369],[31,52],[30,370]]),Bl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,368],[25,367],[26,369],[27,369],[28,370],[29,52],[31,370],[30,54]]),Gl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,369],[25,368],[26,52],[27,52],[28,54],[29,370],[31,54],[30,55]]),Ll=c([[32,393],[33,392],[34,393],[35,392]]),Rl=c([[32,392],[33,391],[34,392],[35,391]]),Ol=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,384],[25,383],[26,385],[27,385],[28,387],[29,386],[31,387],[30,388]]),jl=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,385],[25,384],[26,386],[27,386],[28,388],[29,387],[31,388],[30,389]]),Fl=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,386],[25,385],[26,387],[27,387],[28,389],[29,388],[31,389],[30,390]]),Hl=c([[32,415],[33,414],[34,415],[35,414]]),Dl=c([[32,414],[33,413],[34,414],[35,413]]),Ml=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,406],[25,405],[26,407],[27,407],[28,409],[29,408],[31,409],[30,410]]),Nl=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,407],[25,406],[26,408],[27,408],[28,410],[29,409],[31,410],[30,411]]),ql=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,408],[25,407],[26,409],[27,409],[28,411],[29,410],[31,411],[30,412]]),zl=c([[32,437],[33,436],[34,437],[35,436]]),El=c([[32,436],[33,435],[34,436],[35,435]]),Jl=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,428],[25,427],[26,429],[27,429],[28,431],[29,430],[31,431],[30,432]]),Kl=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,429],[25,428],[26,430],[27,430],[28,432],[29,431],[31,432],[30,433]]),Ql=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,430],[25,429],[26,431],[27,431],[28,433],[29,432],[31,433],[30,434]]),Ul=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,9],[26,7],[27,7],[28,11],[29,12],[31,11],[30,10]]),Vl=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,10],[26,8],[27,8],[28,12],[29,13],[31,12],[30,11]]),Wl=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,11],[26,9],[27,9],[28,13],[29,14],[31,13],[30,12]]),Xl=c([[32,450],[33,449],[34,450],[35,449]]),Yl=c([[32,449],[33,273],[34,449],[35,273]]),Zl=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,444],[25,445],[26,18],[27,18],[28,446],[29,158],[31,446],[30,157]]),$l=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,445],[25,157],[26,444],[27,444],[28,158],[29,447],[31,158],[30,446]]),la=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,157],[25,446],[26,445],[27,445],[28,447],[29,448],[31,447],[30,158]]),aa=c([[32,470],[33,469],[34,470],[35,469]]),ra=c([[32,469],[33,287],[34,469],[35,287]]),ha=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,462],[25,463],[26,461],[27,461],[28,465],[29,466],[31,465],[30,464]]),ea=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,463],[25,464],[26,462],[27,462],[28,466],[29,467],[31,466],[30,465]]),ta=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,464],[25,465],[26,463],[27,463],[28,467],[29,468],[31,467],[30,466]]),sa=c([[32,491],[33,490],[34,491],[35,490]]),ia=c([[32,490],[33,309],[34,490],[35,309]]),oa=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,483],[25,484],[26,482],[27,482],[28,486],[29,487],[31,486],[30,485]]),ga=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,484],[25,485],[26,483],[27,483],[28,487],[29,488],[31,487],[30,486]]),da=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,485],[25,486],[26,484],[27,484],[28,488],[29,489],[31,488],[30,487]]),ka=c([[32,512],[33,511],[34,512],[35,511]]),ca=c([[32,511],[33,330],[34,511],[35,330]]),na=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,504],[25,505],[26,503],[27,503],[28,507],[29,508],[31,507],[30,506]]),ua=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,505],[25,506],[26,504],[27,504],[28,508],[29,509],[31,508],[30,507]]),pa=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,506],[25,507],[26,505],[27,505],[28,509],[29,510],[31,509],[30,508]]),ba=c([[32,533],[33,532],[34,533],[35,532]]),Ta=c([[32,532],[33,352],[34,532],[35,352]]),wa=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,525],[25,526],[26,524],[27,524],[28,528],[29,529],[31,528],[30,527]]),Sa=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,526],[25,527],[26,525],[27,525],[28,529],[29,530],[31,529],[30,528]]),ya=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,527],[25,528],[26,526],[27,526],[28,530],[29,531],[31,530],[30,529]]),ma=c([[32,198],[33,197],[34,198],[35,197]]),Ia=c([[32,197],[33,371],[34,197],[35,371]]),fa=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,546],[25,547],[26,545],[27,545],[28,549],[29,550],[31,549],[30,548]]),Ca=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,547],[25,548],[26,546],[27,546],[28,550],[29,551],[31,550],[30,549]]),Aa=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,548],[25,549],[26,547],[27,547],[28,551],[29,552],[31,551],[30,550]]),Pa=c([[32,573],[33,572],[34,573],[35,572]]),xa=c([[32,572],[33,391],[34,572],[35,391]]),va=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,565],[25,566],[26,564],[27,564],[28,568],[29,569],[31,568],[30,567]]),Ba=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,566],[25,567],[26,565],[27,565],[28,569],[29,570],[31,569],[30,568]]),Ga=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,567],[25,568],[26,566],[27,566],[28,570],[29,571],[31,570],[30,569]]),La=c([[32,594],[33,593],[34,594],[35,593]]),Ra=c([[32,593],[33,413],[34,593],[35,413]]),Oa=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,586],[25,587],[26,585],[27,585],[28,589],[29,590],[31,589],[30,588]]),ja=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,587],[25,588],[26,586],[27,586],[28,590],[29,591],[31,590],[30,589]]),Fa=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,588],[25,589],[26,587],[27,587],[28,591],[29,592],[31,591],[30,590]]),Ha=c([[32,616],[33,615],[34,616],[35,615]]),Da=c([[32,615],[33,614],[34,615],[35,614]]),Ma=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,607],[25,608],[26,606],[27,606],[28,610],[29,611],[31,610],[30,609]]),Na=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,608],[25,609],[26,607],[27,607],[28,611],[29,612],[31,611],[30,610]]),qa=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,609],[25,610],[26,608],[27,608],[28,612],[29,613],[31,612],[30,611]]),za=c([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,23],[26,17],[27,17],[28,15],[29,16],[30,14],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),Ea=c([[0,9],[1,16],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,161],[26,6],[27,6],[28,160],[29,159],[30,1],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ja=c([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,6],[26,161],[27,161],[28,160],[29,1],[30,159],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ka=c([[0,0],[1,1],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),Qa=c([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,6],[26,161],[27,161],[28,160],[29,1],[30,159],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ua=c([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,273],[9,272],[10,15],[11,271],[12,270],[13,269],[14,10],[15,9],[16,8],[17,268],[18,267],[19,262],[20,263],[21,264],[22,265],[23,266],[24,18],[25,23],[26,273],[27,273],[28,15],[29,272],[30,271],[31,15],[32,267],[33,268],[34,267],[35,268],[36,9],[37,263],[38,262]]),Va=c([[0,1],[1,0],[2,291],[3,292],[4,293],[5,294],[6,295],[7,290],[8,289],[9,288],[10,287],[11,286],[12,285],[13,284],[14,283],[15,282],[16,281],[17,280],[18,279],[19,274],[20,275],[21,276],[22,277],[23,278],[24,290],[25,295],[26,289],[27,289],[28,287],[29,288],[30,286],[31,287],[32,279],[33,280],[34,279],[35,280],[36,282],[37,275],[38,274]]),Wa=c([[0,1],[1,0],[2,313],[3,314],[4,315],[5,316],[6,317],[7,312],[8,311],[9,310],[10,309],[11,308],[12,307],[13,306],[14,305],[15,304],[16,303],[17,302],[18,301],[19,296],[20,297],[21,298],[22,299],[23,300],[24,312],[25,317],[26,311],[27,311],[28,309],[29,310],[30,308],[31,309],[32,301],[33,302],[34,301],[35,302],[36,304],[37,297],[38,296]]),Xa=c([[0,1],[1,0],[2,334],[3,335],[4,336],[5,337],[6,338],[7,333],[8,332],[9,331],[10,330],[11,329],[12,328],[13,327],[14,326],[15,325],[16,324],[17,323],[18,323],[19,318],[20,319],[21,320],[22,321],[23,322],[24,333],[25,338],[26,332],[27,332],[28,330],[29,331],[30,329],[31,330],[32,323],[33,323],[34,323],[35,323],[36,325],[37,319],[38,318]]),Ya=c([[0,1],[1,0],[2,356],[3,357],[4,358],[5,359],[6,360],[7,355],[8,354],[9,353],[10,352],[11,351],[12,350],[13,349],[14,348],[15,347],[16,346],[17,345],[18,344],[19,339],[20,340],[21,341],[22,342],[23,343],[24,355],[25,360],[26,354],[27,354],[28,352],[29,353],[30,351],[31,352],[32,344],[33,345],[34,344],[35,345],[36,347],[37,340],[38,339]]),Za=c([[0,1],[1,0],[2,373],[3,374],[4,375],[5,376],[6,377],[7,372],[8,58],[9,57],[10,371],[11,55],[12,54],[13,370],[14,52],[15,369],[16,368],[17,367],[18,366],[19,361],[20,362],[21,363],[22,364],[23,365],[24,372],[25,377],[26,58],[27,58],[28,371],[29,57],[30,55],[31,371],[32,366],[33,367],[34,366],[35,367],[36,369],[37,362],[38,361]]),$a=c([[0,1],[1,0],[2,395],[3,396],[4,397],[5,398],[6,399],[7,394],[8,393],[9,392],[10,391],[11,390],[12,389],[13,388],[14,387],[15,386],[16,385],[17,384],[18,383],[19,378],[20,379],[21,380],[22,381],[23,382],[24,394],[25,399],[26,393],[27,393],[28,391],[29,392],[30,390],[31,391],[32,383],[33,384],[34,383],[35,384],[36,386],[37,379],[38,378]]),lr=c([[0,1],[1,0],[2,417],[3,418],[4,419],[5,420],[6,421],[7,416],[8,415],[9,414],[10,413],[11,412],[12,411],[13,410],[14,409],[15,408],[16,407],[17,406],[18,405],[19,400],[20,401],[21,402],[22,403],[23,404],[24,416],[25,421],[26,415],[27,415],[28,413],[29,414],[30,412],[31,413],[32,405],[33,406],[34,405],[35,406],[36,408],[37,401],[38,400]]),ar=c([[0,1],[1,0],[2,439],[3,440],[4,441],[5,442],[6,443],[7,438],[8,437],[9,436],[10,435],[11,434],[12,433],[13,432],[14,431],[15,430],[16,429],[17,428],[18,427],[19,422],[20,423],[21,424],[22,425],[23,426],[24,438],[25,443],[26,437],[27,437],[28,435],[29,436],[30,434],[31,435],[32,427],[33,428],[34,427],[35,428],[36,430],[37,423],[38,422]]),rr=c([[0,9],[1,16],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),_r=c([[0,9],[1,16],[2,451],[3,452],[4,453],[5,454],[6,455],[7,9],[8,450],[9,449],[10,273],[11,448],[12,447],[13,158],[14,446],[15,157],[16,445],[17,444],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,9],[25,450],[26,455],[27,455],[28,273],[29,448],[30,449],[31,273],[32,18],[33,444],[34,18],[35,444],[36,157],[37,20],[38,19]]),hr=c([[0,9],[1,16],[2,472],[3,473],[4,474],[5,475],[6,476],[7,471],[8,470],[9,469],[10,287],[11,468],[12,467],[13,466],[14,465],[15,464],[16,463],[17,462],[18,461],[19,456],[20,457],[21,458],[22,459],[23,460],[24,471],[25,470],[26,476],[27,476],[28,287],[29,468],[30,469],[31,287],[32,461],[33,462],[34,461],[35,462],[36,464],[37,457],[38,456]]),er=c([[0,9],[1,16],[2,493],[3,494],[4,495],[5,496],[6,497],[7,492],[8,491],[9,490],[10,309],[11,489],[12,488],[13,487],[14,486],[15,485],[16,484],[17,483],[18,482],[19,477],[20,478],[21,479],[22,480],[23,481],[24,492],[25,491],[26,497],[27,497],[28,309],[29,489],[30,490],[31,309],[32,482],[33,483],[34,482],[35,483],[36,485],[37,478],[38,477]]),tr=c([[0,9],[1,16],[2,514],[3,515],[4,516],[5,517],[6,518],[7,513],[8,512],[9,511],[10,330],[11,510],[12,509],[13,508],[14,507],[15,506],[16,505],[17,504],[18,503],[19,498],[20,499],[21,500],[22,501],[23,502],[24,513],[25,512],[26,518],[27,518],[28,330],[29,510],[30,511],[31,330],[32,503],[33,504],[34,503],[35,504],[36,506],[37,499],[38,498]]),sr=c([[0,9],[1,16],[2,535],[3,536],[4,537],[5,538],[6,539],[7,534],[8,533],[9,532],[10,352],[11,531],[12,530],[13,529],[14,528],[15,527],[16,526],[17,525],[18,524],[19,519],[20,520],[21,521],[22,522],[23,523],[24,534],[25,533],[26,539],[27,539],[28,352],[29,531],[30,532],[31,352],[32,524],[33,525],[34,524],[35,525],[36,527],[37,520],[38,519]]),ir=c([[0,9],[1,16],[2,554],[3,555],[4,556],[5,557],[6,558],[7,553],[8,198],[9,197],[10,371],[11,552],[12,551],[13,550],[14,549],[15,548],[16,547],[17,546],[18,545],[19,540],[20,541],[21,542],[22,543],[23,544],[24,553],[25,198],[26,558],[27,558],[28,371],[29,552],[30,197],[31,371],[32,545],[33,546],[34,545],[35,546],[36,548],[37,541],[38,540]]),or=c([[0,9],[1,16],[2,575],[3,576],[4,577],[5,578],[6,579],[7,574],[8,573],[9,572],[10,391],[11,571],[12,570],[13,569],[14,568],[15,567],[16,566],[17,565],[18,564],[19,559],[20,560],[21,561],[22,562],[23,563],[24,574],[25,573],[26,579],[27,579],[28,391],[29,571],[30,572],[31,391],[32,564],[33,565],[34,564],[35,565],[36,567],[37,560],[38,559]]),gr=c([[0,9],[1,16],[2,596],[3,597],[4,598],[5,599],[6,600],[7,595],[8,594],[9,593],[10,413],[11,592],[12,591],[13,590],[14,589],[15,588],[16,587],[17,586],[18,585],[19,580],[20,581],[21,582],[22,583],[23,584],[24,595],[25,594],[26,600],[27,600],[28,413],[29,592],[30,593],[31,413],[32,585],[33,586],[34,585],[35,586],[36,588],[37,581],[38,580]]),dr=c([[0,9],[1,16],[2,618],[3,619],[4,620],[5,621],[6,622],[7,617],[8,616],[9,615],[10,614],[11,613],[12,612],[13,611],[14,610],[15,609],[16,608],[17,607],[18,606],[19,601],[20,602],[21,603],[22,604],[23,605],[24,617],[25,616],[26,622],[27,622],[28,614],[29,613],[30,615],[31,614],[32,606],[33,607],[34,606],[35,607],[36,609],[37,602],[38,601]]),kr={light:p,dark:b,light_accent:T,dark_accent:w,light_black:S,light_white:y,light_gray:I,light_blue:f,light_orange:C,light_red:A,light_yellow:P,light_green:x,light_purple:v,light_pink:B,light_tan:G,dark_black:L,dark_white:R,dark_gray:O,dark_blue:j,dark_orange:F,dark_red:H,dark_yellow:D,dark_green:M,dark_purple:N,dark_pink:q,dark_tan:z,light_alt1:E,light_white_alt1:E,dark_white_alt1:E,light_alt2:J,light_white_alt2:J,dark_white_alt2:J,light_surface1:K,light_white_surface1:K,light_ListItem:K,light_SelectTrigger:K,light_Card:K,light_Progress:K,light_TooltipArrow:K,light_SliderTrack:K,light_Input:K,light_TextArea:K,light_white_ListItem:K,light_white_SelectTrigger:K,light_white_Card:K,light_white_Progress:K,light_white_TooltipArrow:K,light_white_SliderTrack:K,light_white_Input:K,light_white_TextArea:K,light_surface2:Q,light_white_surface2:Q,light_Checkbox:Q,light_Switch:Q,light_TooltipContent:Q,light_RadioGroupItem:Q,light_white_Checkbox:Q,light_white_Switch:Q,light_white_TooltipContent:Q,light_white_RadioGroupItem:Q,light_surface3:U,light_white_surface3:U,light_Button:U,light_SliderTrackActive:U,light_white_Button:U,light_white_SliderTrackActive:U,dark_alt1:V,light_black_alt1:V,dark_black_alt1:V,dark_alt2:W,light_black_alt2:W,dark_black_alt2:W,dark_surface1:X,dark_black_surface1:X,dark_ListItem:X,dark_SelectTrigger:X,dark_Card:X,dark_Progress:X,dark_TooltipArrow:X,dark_SliderTrack:X,dark_Input:X,dark_TextArea:X,dark_black_ListItem:X,dark_black_SelectTrigger:X,dark_black_Card:X,dark_black_Progress:X,dark_black_TooltipArrow:X,dark_black_SliderTrack:X,dark_black_Input:X,dark_black_TextArea:X,dark_surface2:Y,dark_black_surface2:Y,dark_Checkbox:Y,dark_Switch:Y,dark_TooltipContent:Y,dark_RadioGroupItem:Y,dark_black_Checkbox:Y,dark_black_Switch:Y,dark_black_TooltipContent:Y,dark_black_RadioGroupItem:Y,dark_surface3:Z,dark_black_surface3:Z,dark_Button:Z,dark_SliderTrackActive:Z,dark_black_Button:Z,dark_black_SliderTrackActive:Z,light_black_surface1:$,light_accent_ListItem:$,light_accent_SelectTrigger:$,light_accent_Card:$,light_accent_Progress:$,light_accent_TooltipArrow:$,light_accent_SliderTrack:$,light_accent_Input:$,light_accent_TextArea:$,light_black_ListItem:$,light_black_SelectTrigger:$,light_black_Card:$,light_black_Progress:$,light_black_TooltipArrow:$,light_black_SliderTrack:$,light_black_Input:$,light_black_TextArea:$,light_black_surface2:ll,light_accent_Checkbox:ll,light_accent_Switch:ll,light_accent_TooltipContent:ll,light_accent_RadioGroupItem:ll,light_black_Checkbox:ll,light_black_Switch:ll,light_black_TooltipContent:ll,light_black_RadioGroupItem:ll,light_black_surface3:al,light_accent_Button:al,light_accent_SliderTrackActive:al,light_black_Button:al,light_black_SliderTrackActive:al,light_gray_alt1:rl,light_gray_alt2:_l,light_gray_surface1:hl,light_gray_ListItem:hl,light_gray_SelectTrigger:hl,light_gray_Card:hl,light_gray_Progress:hl,light_gray_TooltipArrow:hl,light_gray_SliderTrack:hl,light_gray_Input:hl,light_gray_TextArea:hl,light_gray_surface2:el,light_gray_Checkbox:el,light_gray_Switch:el,light_gray_TooltipContent:el,light_gray_RadioGroupItem:el,light_gray_surface3:tl,light_gray_Button:tl,light_gray_SliderTrackActive:tl,light_blue_alt1:sl,light_blue_alt2:il,light_blue_surface1:ol,light_blue_ListItem:ol,light_blue_SelectTrigger:ol,light_blue_Card:ol,light_blue_Progress:ol,light_blue_TooltipArrow:ol,light_blue_SliderTrack:ol,light_blue_Input:ol,light_blue_TextArea:ol,light_blue_surface2:gl,light_blue_Checkbox:gl,light_blue_Switch:gl,light_blue_TooltipContent:gl,light_blue_RadioGroupItem:gl,light_blue_surface3:dl,light_blue_Button:dl,light_blue_SliderTrackActive:dl,light_orange_alt1:kl,light_orange_alt2:cl,light_orange_surface1:nl,light_orange_ListItem:nl,light_orange_SelectTrigger:nl,light_orange_Card:nl,light_orange_Progress:nl,light_orange_TooltipArrow:nl,light_orange_SliderTrack:nl,light_orange_Input:nl,light_orange_TextArea:nl,light_orange_surface2:ul,light_orange_Checkbox:ul,light_orange_Switch:ul,light_orange_TooltipContent:ul,light_orange_RadioGroupItem:ul,light_orange_surface3:pl,light_orange_Button:pl,light_orange_SliderTrackActive:pl,light_red_alt1:bl,light_red_alt2:Tl,light_red_surface1:wl,light_red_ListItem:wl,light_red_SelectTrigger:wl,light_red_Card:wl,light_red_Progress:wl,light_red_TooltipArrow:wl,light_red_SliderTrack:wl,light_red_Input:wl,light_red_TextArea:wl,light_red_surface2:Sl,light_red_Checkbox:Sl,light_red_Switch:Sl,light_red_TooltipContent:Sl,light_red_RadioGroupItem:Sl,light_red_surface3:yl,light_red_Button:yl,light_red_SliderTrackActive:yl,light_yellow_alt1:ml,light_yellow_alt2:Il,light_yellow_surface1:fl,light_yellow_ListItem:fl,light_yellow_SelectTrigger:fl,light_yellow_Card:fl,light_yellow_Progress:fl,light_yellow_TooltipArrow:fl,light_yellow_SliderTrack:fl,light_yellow_Input:fl,light_yellow_TextArea:fl,light_yellow_surface2:Cl,light_yellow_Checkbox:Cl,light_yellow_Switch:Cl,light_yellow_TooltipContent:Cl,light_yellow_RadioGroupItem:Cl,light_yellow_surface3:Al,light_yellow_Button:Al,light_yellow_SliderTrackActive:Al,light_green_alt1:Pl,light_green_alt2:xl,light_green_surface1:vl,light_green_ListItem:vl,light_green_SelectTrigger:vl,light_green_Card:vl,light_green_Progress:vl,light_green_TooltipArrow:vl,light_green_SliderTrack:vl,light_green_Input:vl,light_green_TextArea:vl,light_green_surface2:Bl,light_green_Checkbox:Bl,light_green_Switch:Bl,light_green_TooltipContent:Bl,light_green_RadioGroupItem:Bl,light_green_surface3:Gl,light_green_Button:Gl,light_green_SliderTrackActive:Gl,light_purple_alt1:Ll,light_purple_alt2:Rl,light_purple_surface1:Ol,light_purple_ListItem:Ol,light_purple_SelectTrigger:Ol,light_purple_Card:Ol,light_purple_Progress:Ol,light_purple_TooltipArrow:Ol,light_purple_SliderTrack:Ol,light_purple_Input:Ol,light_purple_TextArea:Ol,light_purple_surface2:jl,light_purple_Checkbox:jl,light_purple_Switch:jl,light_purple_TooltipContent:jl,light_purple_RadioGroupItem:jl,light_purple_surface3:Fl,light_purple_Button:Fl,light_purple_SliderTrackActive:Fl,light_pink_alt1:Hl,light_pink_alt2:Dl,light_pink_surface1:Ml,light_pink_ListItem:Ml,light_pink_SelectTrigger:Ml,light_pink_Card:Ml,light_pink_Progress:Ml,light_pink_TooltipArrow:Ml,light_pink_SliderTrack:Ml,light_pink_Input:Ml,light_pink_TextArea:Ml,light_pink_surface2:Nl,light_pink_Checkbox:Nl,light_pink_Switch:Nl,light_pink_TooltipContent:Nl,light_pink_RadioGroupItem:Nl,light_pink_surface3:ql,light_pink_Button:ql,light_pink_SliderTrackActive:ql,light_tan_alt1:zl,light_tan_alt2:El,light_tan_surface1:Jl,light_tan_ListItem:Jl,light_tan_SelectTrigger:Jl,light_tan_Card:Jl,light_tan_Progress:Jl,light_tan_TooltipArrow:Jl,light_tan_SliderTrack:Jl,light_tan_Input:Jl,light_tan_TextArea:Jl,light_tan_surface2:Kl,light_tan_Checkbox:Kl,light_tan_Switch:Kl,light_tan_TooltipContent:Kl,light_tan_RadioGroupItem:Kl,light_tan_surface3:Ql,light_tan_Button:Ql,light_tan_SliderTrackActive:Ql,dark_white_surface1:Ul,dark_accent_ListItem:Ul,dark_accent_SelectTrigger:Ul,dark_accent_Card:Ul,dark_accent_Progress:Ul,dark_accent_TooltipArrow:Ul,dark_accent_SliderTrack:Ul,dark_accent_Input:Ul,dark_accent_TextArea:Ul,dark_white_ListItem:Ul,dark_white_SelectTrigger:Ul,dark_white_Card:Ul,dark_white_Progress:Ul,dark_white_TooltipArrow:Ul,dark_white_SliderTrack:Ul,dark_white_Input:Ul,dark_white_TextArea:Ul,dark_white_surface2:Vl,dark_accent_Checkbox:Vl,dark_accent_Switch:Vl,dark_accent_TooltipContent:Vl,dark_accent_RadioGroupItem:Vl,dark_white_Checkbox:Vl,dark_white_Switch:Vl,dark_white_TooltipContent:Vl,dark_white_RadioGroupItem:Vl,dark_white_surface3:Wl,dark_accent_Button:Wl,dark_accent_SliderTrackActive:Wl,dark_white_Button:Wl,dark_white_SliderTrackActive:Wl,dark_gray_alt1:Xl,dark_gray_alt2:Yl,dark_gray_surface1:Zl,dark_gray_ListItem:Zl,dark_gray_SelectTrigger:Zl,dark_gray_Card:Zl,dark_gray_Progress:Zl,dark_gray_TooltipArrow:Zl,dark_gray_SliderTrack:Zl,dark_gray_Input:Zl,dark_gray_TextArea:Zl,dark_gray_surface2:$l,dark_gray_Checkbox:$l,dark_gray_Switch:$l,dark_gray_TooltipContent:$l,dark_gray_RadioGroupItem:$l,dark_gray_surface3:la,dark_gray_Button:la,dark_gray_SliderTrackActive:la,dark_blue_alt1:aa,dark_blue_alt2:ra,dark_blue_surface1:ha,dark_blue_ListItem:ha,dark_blue_SelectTrigger:ha,dark_blue_Card:ha,dark_blue_Progress:ha,dark_blue_TooltipArrow:ha,dark_blue_SliderTrack:ha,dark_blue_Input:ha,dark_blue_TextArea:ha,dark_blue_surface2:ea,dark_blue_Checkbox:ea,dark_blue_Switch:ea,dark_blue_TooltipContent:ea,dark_blue_RadioGroupItem:ea,dark_blue_surface3:ta,dark_blue_Button:ta,dark_blue_SliderTrackActive:ta,dark_orange_alt1:sa,dark_orange_alt2:ia,dark_orange_surface1:oa,dark_orange_ListItem:oa,dark_orange_SelectTrigger:oa,dark_orange_Card:oa,dark_orange_Progress:oa,dark_orange_TooltipArrow:oa,dark_orange_SliderTrack:oa,dark_orange_Input:oa,dark_orange_TextArea:oa,dark_orange_surface2:ga,dark_orange_Checkbox:ga,dark_orange_Switch:ga,dark_orange_TooltipContent:ga,dark_orange_RadioGroupItem:ga,dark_orange_surface3:da,dark_orange_Button:da,dark_orange_SliderTrackActive:da,dark_red_alt1:ka,dark_red_alt2:ca,dark_red_surface1:na,dark_red_ListItem:na,dark_red_SelectTrigger:na,dark_red_Card:na,dark_red_Progress:na,dark_red_TooltipArrow:na,dark_red_SliderTrack:na,dark_red_Input:na,dark_red_TextArea:na,dark_red_surface2:ua,dark_red_Checkbox:ua,dark_red_Switch:ua,dark_red_TooltipContent:ua,dark_red_RadioGroupItem:ua,dark_red_surface3:pa,dark_red_Button:pa,dark_red_SliderTrackActive:pa,dark_yellow_alt1:ba,dark_yellow_alt2:Ta,dark_yellow_surface1:wa,dark_yellow_ListItem:wa,dark_yellow_SelectTrigger:wa,dark_yellow_Card:wa,dark_yellow_Progress:wa,dark_yellow_TooltipArrow:wa,dark_yellow_SliderTrack:wa,dark_yellow_Input:wa,dark_yellow_TextArea:wa,dark_yellow_surface2:Sa,dark_yellow_Checkbox:Sa,dark_yellow_Switch:Sa,dark_yellow_TooltipContent:Sa,dark_yellow_RadioGroupItem:Sa,dark_yellow_surface3:ya,dark_yellow_Button:ya,dark_yellow_SliderTrackActive:ya,dark_green_alt1:ma,dark_green_alt2:Ia,dark_green_surface1:fa,dark_green_ListItem:fa,dark_green_SelectTrigger:fa,dark_green_Card:fa,dark_green_Progress:fa,dark_green_TooltipArrow:fa,dark_green_SliderTrack:fa,dark_green_Input:fa,dark_green_TextArea:fa,dark_green_surface2:Ca,dark_green_Checkbox:Ca,dark_green_Switch:Ca,dark_green_TooltipContent:Ca,dark_green_RadioGroupItem:Ca,dark_green_surface3:Aa,dark_green_Button:Aa,dark_green_SliderTrackActive:Aa,dark_purple_alt1:Pa,dark_purple_alt2:xa,dark_purple_surface1:va,dark_purple_ListItem:va,dark_purple_SelectTrigger:va,dark_purple_Card:va,dark_purple_Progress:va,dark_purple_TooltipArrow:va,dark_purple_SliderTrack:va,dark_purple_Input:va,dark_purple_TextArea:va,dark_purple_surface2:Ba,dark_purple_Checkbox:Ba,dark_purple_Switch:Ba,dark_purple_TooltipContent:Ba,dark_purple_RadioGroupItem:Ba,dark_purple_surface3:Ga,dark_purple_Button:Ga,dark_purple_SliderTrackActive:Ga,dark_pink_alt1:La,dark_pink_alt2:Ra,dark_pink_surface1:Oa,dark_pink_ListItem:Oa,dark_pink_SelectTrigger:Oa,dark_pink_Card:Oa,dark_pink_Progress:Oa,dark_pink_TooltipArrow:Oa,dark_pink_SliderTrack:Oa,dark_pink_Input:Oa,dark_pink_TextArea:Oa,dark_pink_surface2:ja,dark_pink_Checkbox:ja,dark_pink_Switch:ja,dark_pink_TooltipContent:ja,dark_pink_RadioGroupItem:ja,dark_pink_surface3:Fa,dark_pink_Button:Fa,dark_pink_SliderTrackActive:Fa,dark_tan_alt1:Ha,dark_tan_alt2:Da,dark_tan_surface1:Ma,dark_tan_ListItem:Ma,dark_tan_SelectTrigger:Ma,dark_tan_Card:Ma,dark_tan_Progress:Ma,dark_tan_TooltipArrow:Ma,dark_tan_SliderTrack:Ma,dark_tan_Input:Ma,dark_tan_TextArea:Ma,dark_tan_surface2:Na,dark_tan_Checkbox:Na,dark_tan_Switch:Na,dark_tan_TooltipContent:Na,dark_tan_RadioGroupItem:Na,dark_tan_surface3:qa,dark_tan_Button:qa,dark_tan_SliderTrackActive:qa,light_SwitchThumb:za,light_SliderThumb:za,light_Tooltip:za,light_ProgressIndicator:za,light_white_SwitchThumb:za,light_white_SliderThumb:za,light_white_Tooltip:za,light_white_ProgressIndicator:za,dark_SwitchThumb:Ea,dark_SliderThumb:Ea,dark_Tooltip:Ea,dark_ProgressIndicator:Ea,dark_black_SwitchThumb:Ea,dark_black_SliderThumb:Ea,dark_black_Tooltip:Ea,dark_black_ProgressIndicator:Ea,light_accent_SwitchThumb:Ja,light_accent_SliderThumb:Ja,light_accent_Tooltip:Ja,light_accent_ProgressIndicator:Ja,dark_accent_SwitchThumb:Ka,dark_accent_SliderThumb:Ka,dark_accent_Tooltip:Ka,dark_accent_ProgressIndicator:Ka,light_black_SwitchThumb:Qa,light_black_SliderThumb:Qa,light_black_Tooltip:Qa,light_black_ProgressIndicator:Qa,light_gray_SwitchThumb:Ua,light_gray_SliderThumb:Ua,light_gray_Tooltip:Ua,light_gray_ProgressIndicator:Ua,light_blue_SwitchThumb:Va,light_blue_SliderThumb:Va,light_blue_Tooltip:Va,light_blue_ProgressIndicator:Va,light_orange_SwitchThumb:Wa,light_orange_SliderThumb:Wa,light_orange_Tooltip:Wa,light_orange_ProgressIndicator:Wa,light_red_SwitchThumb:Xa,light_red_SliderThumb:Xa,light_red_Tooltip:Xa,light_red_ProgressIndicator:Xa,light_yellow_SwitchThumb:Ya,light_yellow_SliderThumb:Ya,light_yellow_Tooltip:Ya,light_yellow_ProgressIndicator:Ya,light_green_SwitchThumb:Za,light_green_SliderThumb:Za,light_green_Tooltip:Za,light_green_ProgressIndicator:Za,light_purple_SwitchThumb:$a,light_purple_SliderThumb:$a,light_purple_Tooltip:$a,light_purple_ProgressIndicator:$a,light_pink_SwitchThumb:lr,light_pink_SliderThumb:lr,light_pink_Tooltip:lr,light_pink_ProgressIndicator:lr,light_tan_SwitchThumb:ar,light_tan_SliderThumb:ar,light_tan_Tooltip:ar,light_tan_ProgressIndicator:ar,dark_white_SwitchThumb:rr,dark_white_SliderThumb:rr,dark_white_Tooltip:rr,dark_white_ProgressIndicator:rr,dark_gray_SwitchThumb:_r,dark_gray_SliderThumb:_r,dark_gray_Tooltip:_r,dark_gray_ProgressIndicator:_r,dark_blue_SwitchThumb:hr,dark_blue_SliderThumb:hr,dark_blue_Tooltip:hr,dark_blue_ProgressIndicator:hr,dark_orange_SwitchThumb:er,dark_orange_SliderThumb:er,dark_orange_Tooltip:er,dark_orange_ProgressIndicator:er,dark_red_SwitchThumb:tr,dark_red_SliderThumb:tr,dark_red_Tooltip:tr,dark_red_ProgressIndicator:tr,dark_yellow_SwitchThumb:sr,dark_yellow_SliderThumb:sr,dark_yellow_Tooltip:sr,dark_yellow_ProgressIndicator:sr,dark_green_SwitchThumb:ir,dark_green_SliderThumb:ir,dark_green_Tooltip:ir,dark_green_ProgressIndicator:ir,dark_purple_SwitchThumb:or,dark_purple_SliderThumb:or,dark_purple_Tooltip:or,dark_purple_ProgressIndicator:or,dark_pink_SwitchThumb:gr,dark_pink_SliderThumb:gr,dark_pink_Tooltip:gr,dark_pink_ProgressIndicator:gr,dark_tan_SwitchThumb:dr,dark_tan_SliderThumb:dr,dark_tan_Tooltip:dr,dark_tan_ProgressIndicator:dr}},1150,[19]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,s=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var p=function(o){!$.call(t,o)&&o!==s&&u(t,o,{get:function(){return n[o]},enumerable:!(f=c(n,o))||f.enumerable})};for(var b of o(n))p(b)}return t},f={};!(function(t,n){for(var c in n)u(t,c,{get:n[c],enumerable:!0})})(f,{radius:function(){return v},size:function(){return p},space:function(){return j},spaces:function(){return b},spacesNegative:function(){return O},tokens:function(){return y},zIndex:function(){return l}}),m.exports=(t=f,s(u({},"__esModule",{value:!0}),t));var p={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},b=Object.entries(p).map(function(t){var u=n(t,2),c=u[0],o=u[1];return[c,(0,r(d[1]).sizeToSpace)(o)]}),O=b.slice(1).map(function(t){var u=n(t,2),c=u[0],o=u[1];return[`-${c.slice(1)}`,-o]}),j=Object.assign({},Object.fromEntries(b),Object.fromEntries(O)),l={0:0,1:100,2:200,3:300,4:400,5:500},v={0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},y={radius:v,zIndex:l,space:j,size:p}},1151,[19,1152]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,n,s,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!f.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var j of c(n))p(j)}return t},b={};function p(t,o){return Object.fromEntries(Object.entries(t).map(function(t){var u=n(t,2),c=u[0],f=u[1];return[`${c}${o}`,f]}))}function j(t){return 0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)}function O(t){return Object.fromEntries(t)}function y(t){return Object.keys(t)}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{objectFromEntries:function(){return O},objectKeys:function(){return y},postfixObjKeys:function(){return p},sizeToSpace:function(){return j}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t))},1152,[19]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var l of c(f))b(l)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{animations:function(){return r(d[0]).animationsReactNative}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1153,[1121]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.zIndex=e.themes=e.space=e.size=e.radius=e.lightTheme=e.flowColorTokens=e.darkTheme=e.colorTokens=void 0;var t={primaryLight:'#00B877',primaryDark:'#00EF8B',primary:'#00B877',primaryLight20:'rgba(0, 184, 119, 0.2)',primaryLight10:'rgba(0, 184, 119, 0.1)',primaryDark20:'rgba(0, 239, 139, 0.2)',primaryDark10:'rgba(0, 239, 139, 0.1)',surfaceLight1:'#FFFFFF',surfaceLight2:'#F2F2F7',surfaceLight3:'rgba(118, 118, 118, 0.5)',surfaceLight4:'rgba(0, 13, 7, 0.25)',surfaceDark1:'#000000',surfaceDarkDrawer:'#121212',surfaceDark2:'#1A1A1A',surfaceDark3:'rgba(255, 255, 255, 0.5)',surfaceDark4:'rgba(170, 170, 176, 0.25)',surfaceDark5:'#2a2a2a',textLight1:'#000000',textLight2:'#767676',textLight3:'rgba(0, 13, 7, 0.1)',textLight4:'#FFFFFF',textDark1:'#FFFFFF',textDark2:'#B3B3B3',textDark3:'rgba(255, 255, 255, 0.1)',textDark4:'#000D07',success:'#12B76A',warning:'#FDB022',error:'#F04438',success10:'rgba(18, 183, 106, 0.1)',warning10:'rgba(253, 176, 34, 0.1)',error10:'rgba(240, 68, 56, 0.1)',accentEVM:'#627EEA',accentEOA:'#FF8A00',white:'#ffffff',black:'#000000',light80:'rgba(255, 255, 255, 0.8)',light40:'rgba(255, 255, 255, 0.4)',light25:'rgba(255, 255, 255, 0.25)',light10:'rgba(255, 255, 255, 0.1)',light15:'rgba(255, 255, 255, 0.15)',light50:'rgba(255, 255, 255, 0.5)',light5:'rgba(255, 255, 255, 0.05)',lightBg1:'rgba(242, 242, 247, 1)',lightBorder1:'rgba(0, 0, 0, 0.1)',dark80:'rgba(0, 0, 0, 0.8)',dark40:'rgba(0, 0, 0, 0.4)',dark25:'rgba(0, 0, 0, 0.25)',dark10:'rgba(0, 0, 0, 0.1)',dark5:'rgba(0, 0, 0, 0.05)',darkBg1:'rgba(255, 255, 255, 0.1)',grayBg1:'#373737',darkBorder1:'rgba(255, 255, 255, 0.1)',light35:'rgba(255, 255, 255, 0.35)',shadowLight:'rgba(0, 0, 0, 0.1)',shadowLightHover:'rgba(0, 0, 0, 0.15)',shadowLightPress:'rgba(0, 0, 0, 0.2)',shadowLightFocus:'rgba(0, 184, 119, 0.3)',shadowDark:'rgba(0, 0, 0, 0.3)',shadowDarkHover:'rgba(0, 0, 0, 0.4)',shadowDarkPress:'rgba(0, 0, 0, 0.5)',shadowDarkFocus:'rgba(0, 184, 119, 0.3)'},o=[{light:t.surfaceLight1,dark:t.surfaceDark1},{light:t.surfaceLight2,dark:t.surfaceDark2},{light:t.surfaceLight3,dark:t.surfaceDark4},{light:t.surfaceLight4,dark:t.surfaceDark3},{light:t.textLight3,dark:t.textDark3},{light:t.textLight2,dark:t.textDark2},{light:t.textLight1,dark:t.textDark1},{light:t.lightBg1,dark:t.darkBg1},{light:t.lightBorder1,dark:t.darkBorder1},{light:t.textLight4,dark:t.textDark4},{light:t.surfaceLight1,dark:t.surfaceDarkDrawer},{light:t.black,dark:t.white},{light:t.white,dark:t.black},{light:t.dark5,dark:t.light5},{light:t.dark10,dark:t.light10},{light:t.primaryLight,dark:t.primaryDark},{light:t.primaryLight20,dark:t.primaryDark20},{light:t.primaryLight10,dark:t.primaryDark10},{light:t.shadowLight,dark:t.shadowDark},{light:t.shadowLightHover,dark:t.shadowDarkHover},{light:t.shadowLightPress,dark:t.shadowDarkPress},{light:t.shadowLightFocus,dark:t.shadowDarkFocus},{light:t.dark5,dark:t.light10},{light:t.dark10,dark:t.light15},{light:t.dark40,dark:t.light50}],s=e.size={$0:0,'$0.25':1,'$0.5':2,'$0.75':3,$1:4,'$1.5':6,$2:8,'$2.5':10,$3:12,'$3.5':14,$4:16,$true:16,'$4.25':17,'$4.5':18,$5:20,$6:24,$7:28,$7m:30,$8:32,$9:36,$10:40,$11:44,$12:48,$13:52,$14:56,$15:60,$16:64,$17:68,$18:72,$19:76,$20:80,$31:124,$32:128,$33:132,$34:136,$35:140,$36:144,$37:148,$38:152,$39:156,$40:160,$41:164,$42:168,$43:172,$44:176,$45:180,$46:184,$47:188,$48:192,$49:196,$50:200,$51:204,$52:208,$53:212,$54:216,$55:220,$56:224,$57:228,$58:232,$59:236,$60:240,$61:244,$62:248,'$84.75':339},h=(e.space=Object.assign({},s,{'$-0.25':-1,'$-0.5':-2,'$-0.75':-3,'$-1':-4,'$-1.5':-6,'$-2':-8,'$-2.5':-10,'$-3':-12,'$-3.5':-14,'$-4':-16,'$-4.5':-18,'$-5':-20,'$-6':-24,'$-7':-28,'$-8':-32,'$-9':-36,'$-10':-40,'$-11':-44,'$-12':-48,'$-13':-52,'$-14':-56,'$-15':-60,'$-16':-64,'$-17':-68,'$-18':-72,'$-19':-76,'$-20':-80}),e.zIndex={0:0,1:100,2:200,3:300,4:400,5:500},e.radius={0:0,1:4,2:8,3:12,4:14,true:16,5:20,6:24,6.75:27,7:28,8:32,9:36,10:40,11:44,12:48,13:54},(0,r(d[0]).createThemeBuilder)().addPalettes({light:o.map(function(t){return t.light}),dark:o.map(function(t){return t.dark})}).addTemplates({base:{background:0,backgroundHover:1,backgroundPress:2,backgroundFocus:17,backgroundStrong:1,background4:4,backgroundTransparent:'transparent',surface1:0,surface2:1,surface3:2,surface4:3,bg:0,bg1:7,bg2:1,bg3:2,bg4:3,bg5:11,bgDrawer:10,border1:8,borderColor:2,borderColorHover:3,borderColorPress:t.primary,borderColorFocus:t.primary,border:2,borderHover:3,borderFocus:t.primary,color:6,colorHover:6,colorPress:6,colorFocus:6,colorTransparent:'transparent',text1:6,text2:5,text3:4,text4:9,text:6,textSecondary:5,textTertiary:4,textMuted:5,placeholderColor:5,placeholder:5,outlineColor:t.primary,outline:t.primary,shadowColor:18,shadowColorHover:19,shadowColorPress:20,shadowColorFocus:21,shadow:18,shadowHover:19,shadowPress:20,shadowFocus:21,successColor:t.success,warningColor:t.warning,errorColor:t.error,success:t.success,warning:t.warning,error:t.error,success10:t.success10,warning10:t.warning10,error10:t.error10,primaryColor:15,primary20:16,primary10:17,primary:15,primaryLight:17,primaryStrong:15,white:t.white,black:t.black,accentEVM:t.accentEVM,accentEOA:t.accentEOA,light80:t.light80,light40:t.light40,light25:t.light25,light10:t.light10,light5:t.light5,dark80:t.dark80,dark40:t.dark40,dark25:t.dark25,dark10:t.dark10,dark5:t.dark5,bgGlass:22,borderGlass:23,iconGlass:24,subtleBg:13,subtleBg10:14,inverseBg:11,inverseText:12}}).addThemes({light:{template:'base',palette:'light'},dark:{template:'base',palette:'dark'}})),l=e.themes=h.build();e.lightTheme=l.light,e.darkTheme=l.dark,e.colorTokens={color:t},e.flowColorTokens=t},1154,[1126]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIAvatar=e.Avatar=function(t){var l,n=t.src,s=t.alt,c=t.size,b=void 0===c?40:c,h=t.fallback,u=t.bgColor,v=t.textColor,f=t.borderColor,j=t.borderWidth,x=t.borderRadius,p=t.style;return(0,o.jsx)(r(d[3]).YStack,{width:b,height:b,bg:u||'$bg3',items:"center",justify:"center",rounded:x||b/2,overflow:"hidden",position:"relative",borderColor:f,borderWidth:j,style:p,children:n?(0,o.jsx)(r(d[3]).Image,{src:(0,r(d[4]).convertedSVGURL)(n),alt:s,width:"100%",height:"100%",objectFit:"cover",borderRadius:x||b/2,position:"absolute"}):(0,o.jsx)(r(d[3]).Text,{color:v||'$text',fontSize:.5*b,fontWeight:"600",children:h||(null==s||null==(l=s[0])?void 0:l.toUpperCase())||'?'})})};t(r(d[1]));var o=r(d[2])},1155,[1,128,258,795,2]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIButton=e.Button=function(t){var c,b,u,y,p=t.variant,h=void 0===p?'primary':p,v=t.size,$=void 0===v?'medium':v,S=t.loading,f=void 0!==S&&S,x=t.loadingText,k=t.fullWidth,j=void 0!==k&&k,C=t.children,W=t.icon,w=t.disabled,B=t.onPress,O=(0,o.default)(t,n),T={opacity:.8,scale:.98};switch($){case'small':u='$3';break;case'large':u='$14';break;case'medium':u='$6';break;default:u='$4'}switch(h){case'secondary':y={bg:'$bg2',color:'$text',hoverStyle:{bg:'$bg3'},pressStyle:T};break;case'inverse':y={bg:'$inverseBg',color:'$inverseText',hoverStyle:{opacity:.9,bg:'$inverseBg'},pressStyle:T};break;case'destructive':y={bg:'$error',color:'$white',hoverStyle:{opacity:.9},pressStyle:T};break;case'success':y={bg:'$success',color:'$white',hoverStyle:{opacity:.9},pressStyle:T};break;case'outline':y={bg:'transparent',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg1'},pressStyle:T};break;case'ghost':y={bg:'transparent',color:'$text',hoverStyle:{bg:'$bg1'},pressStyle:T};break;default:y={bg:'$primary',color:'$black',hoverStyle:{opacity:.9},pressStyle:T}}var z=Object.assign({},y,{pressStyle:Object.assign({},null==(c=y)?void 0:c.pressStyle,T,{bg:null==(b=y)?void 0:b.bg})}),P=null==z?void 0:z.color;return(0,s.jsx)(r(d[4]).Button,Object.assign({size:u,disabled:w||f,opacity:w&&!f?.5:1,width:j?'100%':void 0,onPress:B,animation:"quick",animateOnly:['transform','opacity']},{borderWidth:0,borderColor:'transparent',outlineWidth:0,outlineColor:'transparent',focusStyle:{outlineWidth:0,outlineColor:'transparent',borderColor:'transparent'}},z,O,{children:f?(0,s.jsxs)(r(d[4]).XStack,{items:"center",gap:"$2",children:[(0,s.jsx)(r(d[4]).Spinner,{size:"small",color:null!=P?P:'currentColor'}),x&&(0,s.jsx)(r(d[4]).Text,{color:null!=P?P:'currentColor',fontWeight:"600",children:x})]}):(0,s.jsxs)(r(d[4]).XStack,{items:"center",gap:"$2",children:[W&&l.default.cloneElement(W,{color:null!=P?P:'currentColor'}),'string'==typeof C?(0,s.jsx)(r(d[4]).Text,{color:null!=P?P:'currentColor',fontWeight:"600",children:C}):C]})}))};var o=t(r(d[1])),l=t(r(d[2])),s=r(d[3]),n=["variant","size","loading","loadingText","fullWidth","children","icon","disabled","onPress"]},1156,[1,207,128,258,795]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UICard=e.Card=function(t){var s=t.variant,h=void 0===s?'default':s,l=t.children,c=(0,o.default)(t,u);return(0,n.jsx)(r(d[3]).Card,Object.assign({},(function(){switch(h){case'elevated':return{bg:'$bg',rounded:'$4',shadowColor:'$shadow',shadowOffset:{width:0,height:2},shadowOpacity:.1,shadowRadius:8,elevation:3};case'outlined':return{bg:'$bg',borderColor:'$border',borderWidth:1,rounded:'$4'};default:return{bg:'$bg',rounded:'$4'}}})(),c,{children:l}))};var o=t(r(d[1])),n=r(d[2]),u=["variant","children"]},1157,[1,207,258,795]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.UIDivider=e.Divider=function(t){return(0,n.jsx)(r(d[1]).Separator,Object.assign({},t))};var n=r(d[0])},1158,[258,1159]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UISeparator=e.Separator=function(t){var v=t.variant,c=void 0===v?'default':v,f=(0,o.default)(t,u);return(0,n.jsx)(r(d[3]).Separator,Object.assign({borderColor:'strong'===c?'$textSecondary':'$dark10',borderWidth:1},f))};var o=t(r(d[1])),n=r(d[2]),u=["variant"]},1159,[1,207,258,795]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIIconButton=e.IconButton=function(t){var b,p,y,u,$,h,v,f,S=t.icon,k=t.variant,x=void 0===k?'ghost':k,W=t.size,j=void 0===W?'medium':W,w=t.disabled,z=void 0!==w&&w,C=t.onPress,P=(0,o.default)(t,c),_=(0,r(d[4]).useTheme)();switch(j){case'small':u='$3',$=16,h=24,v='$1';break;case'large':u='$5',$=32,h=48,v='$2';break;default:u='$4',$=24,h=40,v='$1.5'}switch(x){case'secondary':f={bg:'$bg2',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg3'},pressStyle:{bg:'$bg4'}};break;case'destructive':f={bg:'$error',color:'$white',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;case'success':f={bg:'$success',color:'$white',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;case'outline':f={bg:'transparent',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2',borderColor:'$border',color:'$text'}};break;case'ghost':f={bg:'transparent',color:'$text',borderWidth:0,hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2',borderWidth:0}};break;case'primary':f={bg:'$primary',color:'$black',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;default:f={bg:'transparent',color:'$text',hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2'}}}return(0,l.jsx)(r(d[4]).Button,Object.assign({size:u,disabled:z,opacity:z?.5:1,onPress:C,circular:!0,padding:v,width:h,height:h,items:"center",justify:"center",borderWidth:0,unstyled:!1,flexShrink:0,hitSlop:{top:8,bottom:8,left:8,right:8},pressStyle:Object.assign({},f.pressStyle,{opacity:.7,transform:[{scale:.95}]})},f,P,{children:s.default.cloneElement(S,{size:S.props.size||$,color:null!=(b=null!=(p=n(S.props.color,_))?p:n(null==(y=f)?void 0:y.color,_))?b:'currentColor'})}))};var o=t(r(d[1])),s=t(r(d[2])),l=r(d[3]),c=["icon","variant","size","disabled","onPress"];function n(t,o){if(t){if('string'!=typeof t){var s=null==t?void 0:t.val;return'string'==typeof s?s:void 0}if(t.startsWith('$')){var l,c=t.slice(1),n=null==o||null==(l=o[c])?void 0:l.val;if('string'==typeof n)return n}return t}}},1160,[1,207,128,258,795]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIInput=e.Input=void 0;var t=o(r(d[1])),l=o(r(d[2])),n=r(d[3]),c=["label","error","helperText"];(e.UIInput=e.Input=l.default.forwardRef(function(o,l){var p=o.label,u=o.error,$=o.helperText,f=(0,t.default)(o,c);return(0,n.jsxs)(r(d[4]).YStack,{space:"$2",children:[p&&(0,n.jsx)(r(d[4]).Text,{fontSize:14,fontWeight:"500",color:"$textSecondary",children:p}),(0,n.jsx)(r(d[4]).Input,Object.assign({ref:l,borderColor:u?'$error':'$border',borderWidth:1,rounded:"$3",bg:"transparent",p:"$3",height:52,fontSize:16,color:"$text",placeholderTextColor:"$placeholder",focusStyle:{borderColor:u?'$error':'$primary',borderWidth:2},hoverStyle:{borderColor:u?'$error':'$borderHover'}},f)),(u||$)&&(0,n.jsx)(r(d[4]).Text,{fontSize:12,color:u?'$error':'$textSecondary',children:u||$})]})})).displayName='Input'},1161,[1,207,128,258,795]); +__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.UISkeleton=_e.Skeleton=function(e){var o,s=e.width,l=void 0===s?'100%':s,p=e.height,f=void 0===p?20:p,c=e.borderRadius,v=void 0===c?4:c,h=e.animated,y=void 0===h||h,b=e.baseBgLight,w=e.baseBgDark,O=e.animationType,_=void 0===O?'pulse':O,j=e.pulseDuration,M=void 0===j?1e3:j,k=e.pulseMinOpacity,A=void 0===k?.6:k,D=e.pulseMaxOpacity,V=void 0===D?1:D,x=(0,i.default)(e,u),B=(0,t.useRef)(new n.Animated.Value(A)).current;(0,t.useEffect)(function(){if(y&&'pulse'===_){B.stopAnimation(),B.setValue(A);var e=n.Animated.loop(n.Animated.sequence([n.Animated.timing(B,{toValue:V,duration:M,easing:n.Easing.inOut(n.Easing.quad),useNativeDriver:!1}),n.Animated.timing(B,{toValue:A,duration:M,easing:n.Easing.inOut(n.Easing.quad),useNativeDriver:!1})]));return e.start(),function(){return e.stop()}}},[y,_,B,M,A,V]);var E=null!=(o=null!=b?b:w)?o:'$subtleBg10';if(y&&'pulse'===_)return(0,r.jsx)(n.Animated.View,{style:{opacity:B},children:(0,r.jsx)(_r(d[5]).View,Object.assign({width:l,height:f,rounded:v,bg:E,overflow:"hidden"},x))});return(0,r.jsx)(_r(d[5]).View,Object.assign({width:l,height:f,rounded:v,bg:E,animation:y?'lazy':void 0,animateOnly:['opacity'],opacity:y?.8:1,overflow:"hidden"},x))};var i=e(_r(d[1])),t=(function(e,i){if("function"==typeof WeakMap)var t=new WeakMap,n=new WeakMap;return(function(e,i){if(!i&&e&&e.__esModule)return e;var r,u,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=i?n:t){if(r.has(e))return r.get(e);r.set(e,o)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((u=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(u.get||u.set)?r(o,s,u):o[s]=e[s]);return o})(e,i)})(_r(d[2])),n=_r(d[3]),r=_r(d[4]),u=["width","height","borderRadius","animated","baseBgLight","baseBgDark","animationType","pulseDuration","pulseMinOpacity","pulseMaxOpacity"]},1162,[1,207,128,28,258,795]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIText=e.Text=function(t){var c=t.variant,h=void 0===c?'body':c,l=t.weight,f=void 0===l?'normal':l,s=t.children,v=(0,n.default)(t,u);return(0,o.jsx)(r(d[4]).Text,Object.assign({},(function(){switch(h){case'heading':return{fontSize:24,fontWeight:'600',lineHeight:32};case'body':return{fontSize:16,fontWeight:'400',lineHeight:24};case'caption':return{fontSize:12,fontWeight:'400',lineHeight:16};case'label':return{fontSize:14,fontWeight:'500',lineHeight:20};default:return{}}})(),{fontWeight:(function(){switch(f){case'light':return 300;case'medium':return 500;case'semibold':return 600;case'bold':return 700;default:return 400}})()},v,{children:s}))};var n=t(r(d[1])),o=(t(r(d[2])),r(d[3])),u=["variant","weight","children"]},1163,[1,207,128,258,795]); +__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.copyToClipboard=function(o){return n.apply(this,arguments)};var t=o(r(d[1]));function n(){return(n=(0,t.default)(function*(o){try{if('undefined'==typeof window||!window.document)return console.warn('copyToClipboard called in React Native environment - handle in component'),!1;if(navigator.clipboard&&navigator.clipboard.writeText)return yield navigator.clipboard.writeText(o),!0;var t=document.createElement('textarea');t.value=o,t.style.position='fixed',t.style.opacity='0',t.style.pointerEvents='none',document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand('copy');return document.body.removeChild(t),n}catch(o){return document.body.removeChild(t),console.error('Fallback copy failed:',o),!1}}catch(o){return console.error('Failed to copy to clipboard:',o),!1}})).apply(this,arguments)}},1164,[1,367]); +__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.AccountCard=function(e){var c,l,h,u=e.account,j=e.title,f=e.isLoading,x=void 0!==f&&f,p=e.isSendTokensScreen,b=void 0!==p&&p,S=e.accounts,v=e.onAccountSelect,$=e.modalTitle,k=void 0===$?'Select Account':$,w=e.enableModalSelection,y=void 0!==w&&w,z=e.showEditButton,W=void 0!==z&&z,T=e.showCopyButton,C=void 0!==T&&T,F=e.onCopyAddress,E=(0,n.default)(e,r),A=(0,i.useState)(!1),L=(0,t.default)(A,2),M=L[0],X=L[1];if(!u)return(0,o.jsxs)(_r(d[5]).YStack,Object.assign({width:"100%",pt:"$2",px:"$1",pb:"$6",gap:"$1"},E,{children:[(0,o.jsx)(_r(d[6]).Text,{fontSize:"$3",mb:"$1",fontWeight:"400",color:"$textSecondary",lineHeight:16,children:j}),(0,o.jsx)(_r(d[6]).Text,{color:"$error",children:"No account data available"})]}));var Y=(0,o.jsxs)(_r(d[5]).YStack,Object.assign({width:"100%",rounded:"$4",pt:"$1",pb:b?'$4':'$1',gap:"$1",onPress:y?function(){return X(!0)}:void 0,cursor:y?'pointer':'default'},E,{children:[j&&(0,o.jsx)(_r(d[6]).Text,{fontSize:"$3",mb:b?'$8':'$1',fontWeight:"400",lineHeight:16,children:j}),(0,o.jsxs)(_r(d[5]).XStack,{py:"$2",pl:"$1.25",pr:0,justify:"space-between",items:"center",flex:1,children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:"$4",flex:1,children:[(0,o.jsxs)(_r(d[5]).XStack,{position:"relative",width:36,height:36,children:[(0,o.jsx)(_r(d[7]).Avatar,{src:u.avatar,fallback:(null==(c=u.emojiInfo)?void 0:c.emoji)||(null==(l=u.name)?void 0:l.charAt(0))||'?',bgColor:null==(h=u.emojiInfo)?void 0:h.color,size:36,borderColor:"$primary",borderWidth:1}),u.parentEmoji&&(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",l:-6,t:-6,width:18,height:18,rounded:9,bg:u.parentEmoji.color||'$bg2',borderWidth:2,borderColor:"$bg2",items:"center",justify:"center",overflow:"hidden",children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"600",lineHeight:12,children:u.parentEmoji.emoji})})]}),(0,o.jsxs)(_r(d[5]).YStack,{flex:1,gap:"$0.5",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:4,minH:20,children:[('child'===u.type||u.parentEmoji)&&(0,o.jsx)(_r(d[8]).Link,{size:12.8,color:"#767676",theme:"outline"}),(0,o.jsx)(_r(d[6]).Text,{color:"$text",fontSize:14,fontWeight:"600",lineHeight:17,numberOfLines:1,children:u.name||'Unnamed Account'}),'evm'===u.type&&(0,o.jsx)(_r(d[5]).XStack,{bg:"$accentEVM",rounded:"$4",px:4,items:"center",justify:"center",height:16,children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"400",color:"#FFFFFF",lineHeight:9.7,letterSpacing:.128,children:"EVM"})})]}),(0,o.jsx)(_r(d[9]).AddressText,{address:u.address,truncate:!0,startLength:6,endLength:4,color:"$textSecondary",minH:18,w:"100%"}),(0,o.jsx)(_r(d[5]).XStack,{items:"center",gap:"$2",minH:17,children:x?(0,o.jsx)(_r(d[10]).Skeleton,{width:"$12",height:"$3",borderRadius:"$2"}):u.balance?(0,o.jsxs)(_r(d[6]).Text,{color:"$textMuted",fontWeight:"400",fontSize:"$2",lineHeight:17,numberOfLines:1,flex:1,children:[s(u.balance)," FLOW"]}):null})]})]}),(0,o.jsxs)(_r(d[5]).XStack,{gap:"$2",items:"center",children:[C&&(0,o.jsx)(_r(d[11]).IconButton,{icon:(0,o.jsx)(_r(d[8]).Copy,{size:24,color:"#767676",theme:"outline"}),variant:"ghost",size:"small",onPress:function(){return null==F?void 0:F(u.address)}}),W&&(0,o.jsx)(_r(d[11]).IconButton,{icon:(0,o.jsx)(_r(d[8]).Edit,{size:24,color:"#767676",theme:"outline"}),variant:"ghost",size:"small"})]})]})]}));return(0,o.jsxs)(o.Fragment,{children:[Y,y&&S&&M&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",top:0,left:0,right:0,bottom:0,bg:"rgba(0, 0, 0, 0.5)",onPress:function(){return X(!1)},zIndex:1e3}),(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",bottom:0,left:0,right:0,alignSelf:"center",maxWidth:375,bg:"$bg2",borderTopLeftRadius:16,borderTopRightRadius:16,shadowColor:"$shadowColor",shadowOffset:{width:0,height:-2},shadowOpacity:.1,shadowRadius:8,elevation:8,pt:12,px:16,pb:20,zIndex:1001,children:(0,o.jsxs)(_r(d[5]).YStack,{gap:16,children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",justify:"space-between",pt:10,position:"relative",children:[(0,o.jsx)(_r(d[6]).Text,{fontSize:14,fontWeight:"400",color:"$white",children:k}),(0,o.jsx)(_r(d[5]).XStack,{position:"absolute",right:0,top:10,onPress:function(){return X(!1)},cursor:"pointer",children:(0,o.jsx)(_r(d[8]).Close,{size:15,color:"rgba(255, 255, 255, 0.8)",theme:"outline"})})]}),(0,o.jsx)(_r(d[5]).YStack,{maxH:400,bg:"$bg2",rounded:16,gap:2,pb:8,children:(0,o.jsx)(_r(d[5]).ScrollView,{showsVerticalScrollIndicator:!1,children:(0,o.jsx)(_r(d[5]).YStack,{children:S.map(function(e,t){var n,r,s,c=(null==u?void 0:u.address)===e.address;return(0,o.jsxs)(i.default.Fragment,{children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",justify:"space-between",gap:8,onPress:function(){return t=e,v&&v(t),void X(!1);var t},cursor:"pointer",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:8,children:[(0,o.jsxs)(_r(d[5]).XStack,{position:"relative",width:53.44,height:53.44,children:[(0,o.jsx)(_r(d[7]).Avatar,{src:e.avatar,fallback:(null==(n=e.emojiInfo)?void 0:n.emoji)||(null==(r=e.name)?void 0:r.charAt(0))||'?',bgColor:null==(s=e.emojiInfo)?void 0:s.color,size:53.44,borderColor:c?'$primary':void 0,borderWidth:c?1:void 0}),e.parentEmoji&&(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",l:-6,t:-6,width:18,height:18,rounded:9,bg:e.parentEmoji.color||'$bg2',borderWidth:2,borderColor:"$bg2",items:"center",justify:"center",overflow:"hidden",children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"600",lineHeight:12,children:e.parentEmoji.emoji})})]}),(0,o.jsxs)(_r(d[5]).YStack,{gap:2,flex:1,justify:"center",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:4,children:[('child'===e.type||e.parentEmoji)&&(0,o.jsx)(_r(d[8]).Link,{size:12.8,color:chainLinkIconColor,theme:"outline"}),(0,o.jsx)(_r(d[6]).Text,{fontSize:14,fontWeight:"600",color:"rgba(255, 255, 255, 0.8)",numberOfLines:1,ellipsizeMode:"tail",children:e.name||'Unnamed Account'}),'evm'===e.type&&(0,o.jsx)(_r(d[5]).XStack,{bg:"$accentEVM",rounded:"$4",px:4,items:"center",justify:"center",height:16,children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"400",color:"#FFFFFF",lineHeight:9.7,letterSpacing:.128,children:"EVM"})})]}),(0,o.jsx)(_r(d[9]).AddressText,{address:e.address,truncate:!0,startLength:6,endLength:4,fontSize:14,fontWeight:"400",color:"rgba(255, 255, 255, 0.8)"})]})]}),c&&(0,o.jsx)(_r(d[5]).YStack,{width:24,height:24,items:"center",justify:"center",children:(0,o.jsx)(_r(d[8]).CheckCircle,{size:24,color:"$success",theme:"filled"})})]}),t=i))break;u-=i}var l=t.slice(0,e).replace(/^\t+/,E),c=/(^|\n).*$/.exec(l),s=c&&c[0]||'',f=t.slice(e),p=/.*(\n|$)/.exec(f);return{line:o,column:u,snippet:`${s}${p&&p[0]}\n${O(' ',s.length)}^`}}var w=/[a-zA-Z0-9:_-]/,M=//g,C=/>/g,b=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,w=/"/g,T=/^(?:script|style|textarea|title)$/i,S=function(t){return function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r":"",s=x,l=0;l"===a[0]?(s=null!=i?i:x,v=-1):void 0===a[1]?v=-2:(v=s.lastIndex-a[2].length,h=a[1],s=void 0===a[3]?b:'"'===a[3]?w:M):s===w||s===M?s=b:s===N||s===C?s=x:(s=b,i=void 0);var f=s===b&&t[l+1].startsWith("/>")?" ":"";o+=s===x?u+A:v>=0?(r.push(h),u.slice(0,v)+$+u.slice(v)+c+f):u+c+(-2===v?(r.push(void 0),l):f)}return[L(t,o+(t[n]||"")+(2===e?"":"")),r]},U=(function(){return(0,u.default)(function t(e,i){var n,r=e.strings,u=e._$litType$;(0,l.default)(this,t),this.parts=[];var h=0,a=0,v=r.length-1,f=this.parts,A=P(r,u),p=(0,s.default)(A,2),y=p[0],m=p[1];if(this.el=t.createElement(y,i),R.currentNode=this.el.content,2===u){var H=this.el.content,k=H.firstChild;k.remove(),H.append.apply(H,(0,o.default)(k.childNodes))}for(;null!==(n=R.nextNode())&&f.length0){n.textContent=d?d.emptyScript:"";for(var B=0;B2&&void 0!==arguments[2]?arguments[2]:t,l=arguments.length>3?arguments[3]:void 0;if(e===I)return e;var u=void 0!==l?null===(i=s._$Co)||void 0===i?void 0:i[l]:s._$Cl,h=y(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==h&&(null===(n=null==u?void 0:u._$AO)||void 0===n||n.call(u,!1),void 0===h?u=void 0:(u=new h(t))._$AT(t,s,l),void 0!==l?(null!==(r=(o=s)._$Co)&&void 0!==r?r:o._$Co=[])[l]=u:s._$Cl=u),void 0!==u&&(e=j(t,u._$AS(t,e.values),u,l)),e}var O=(function(){return(0,u.default)(function t(e,i){(0,l.default)(this,t),this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i},[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var e,i=this._$AD,n=i.el.content,r=i.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:p).importNode(n,!0);R.currentNode=o;for(var s=R.nextNode(),l=0,u=0,h=r[0];void 0!==h;){if(l===h.index){var a=void 0;2===h.type?a=new V(s,s.nextSibling,this,t):1===h.type?a=new h.ctor(s,h.name,h.strings,this,t):6===h.type&&(a=new q(s,this,t)),this._$AV.push(a),h=r[++u]}l!==(null==h?void 0:h.index)&&(s=R.nextNode(),l++)}return R.currentNode=p,o}},{key:"v",value:function(t){var e=0;for(var i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}])})(),V=(function(){function t(e,i,n,r){var o;(0,l.default)(this,t),this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}return(0,u.default)(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),y(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(t)?this.T(t):this._(t)}},{key:"k",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"$",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}},{key:"_",value:function(t){this._$AH!==B&&y(this._$AH)?this._$AA.nextSibling.data=t:this.$(p.createTextNode(t)),this._$AH=t}},{key:"g",value:function(t){var e,i=t.values,n=t._$litType$,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=U.createElement(L(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{var o=new O(r,this),s=o.u(this.options);o.v(i),this.$(s),this._$AH=o}}},{key:"_$AC",value:function(t){var e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new U(t)),e}},{key:"T",value:function(e){m(this._$AH)||(this._$AH=[],this._$AR());var i,n=this._$AH,r=0;for(var o of e)r===n.length?n.push(i=new t(this.k(g()),this.k(g()),this,this.options)):i=n[r],i._$AI(o),r++;r0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,i=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,i);e&&e!==this._$AB;){var n=e.nextSibling;e.remove(),e=n}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}])})(),D=(function(){return(0,u.default)(function t(e,i,n,r,o){(0,l.default)(this,t),this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=i,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=B},[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=this.strings,o=!1;if(void 0===r)t=j(this,t,e,0),(o=!y(t)||t!==this._$AH&&t!==I)&&(this._$AH=t);else{var s,l,u=t;for(t=r[0],s=0;s1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:B)!==I){var i=this._$AH,n=t===B&&i!==B||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==B&&(i===B||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}])})(D),q=(function(){return(0,u.default)(function t(e,i,n){(0,l.default)(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){j(this,t)}}])})(),G=(_e2._$LH={O:$,P:c,A:_,C:1,M:P,L:O,R:H,D:j,I:V,V:D,H:Z,N:F,U:W,F:q},v.litHtmlPolyfillSupport);null==G||G(U,V),(null!==(e=v.litHtmlVersions)&&void 0!==e?e:v.litHtmlVersions=[]).push("2.8.0");_e2.render=function(t,e,i){var n,r,o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e,s=o._$litPart$;if(void 0===s){var l=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new V(e.insertBefore(g(),l),l,void 0,null!=i?i:{})}return s._$AI(t),s}},1151,[1,9,11,12,32,19,3,4]); + */var v=window,d=v.trustedTypes,f=d?d.createPolicy("lit-html",{createHTML:function(t){return t}}):void 0,$="$lit$",c=`lit$${(Math.random()+"").slice(9)}$`,_="?"+c,A=`<${_}>`,p=document,g=function(){return p.createComment("")},y=function(t){return null===t||"object"!=typeof t&&"function"!=typeof t},m=Array.isArray,H=function(t){return m(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator])},k="[ \t\n\f\r]",x=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,C=/>/g,b=RegExp(`>|${k}(?:([^\\s"'>=/]+)(${k}*=${k}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),M=/'/g,w=/"/g,T=/^(?:script|style|textarea|title)$/i,S=function(t){return function(e){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r":"",s=x,l=0;l"===a[0]?(s=null!=i?i:x,v=-1):void 0===a[1]?v=-2:(v=s.lastIndex-a[2].length,h=a[1],s=void 0===a[3]?b:'"'===a[3]?w:M):s===w||s===M?s=b:s===N||s===C?s=x:(s=b,i=void 0);var f=s===b&&t[l+1].startsWith("/>")?" ":"";o+=s===x?u+A:v>=0?(r.push(h),u.slice(0,v)+$+u.slice(v)+c+f):u+c+(-2===v?(r.push(void 0),l):f)}return[L(t,o+(t[n]||"")+(2===e?"":"")),r]},U=(function(){return(0,u.default)(function t(e,i){var n,r=e.strings,u=e._$litType$;(0,l.default)(this,t),this.parts=[];var h=0,a=0,v=r.length-1,f=this.parts,A=P(r,u),p=(0,s.default)(A,2),y=p[0],m=p[1];if(this.el=t.createElement(y,i),R.currentNode=this.el.content,2===u){var H=this.el.content,k=H.firstChild;k.remove(),H.append.apply(H,(0,o.default)(k.childNodes))}for(;null!==(n=R.nextNode())&&f.length0){n.textContent=d?d.emptyScript:"";for(var B=0;B2&&void 0!==arguments[2]?arguments[2]:t,l=arguments.length>3?arguments[3]:void 0;if(e===I)return e;var u=void 0!==l?null===(i=s._$Co)||void 0===i?void 0:i[l]:s._$Cl,h=y(e)?void 0:e._$litDirective$;return(null==u?void 0:u.constructor)!==h&&(null===(n=null==u?void 0:u._$AO)||void 0===n||n.call(u,!1),void 0===h?u=void 0:(u=new h(t))._$AT(t,s,l),void 0!==l?(null!==(r=(o=s)._$Co)&&void 0!==r?r:o._$Co=[])[l]=u:s._$Cl=u),void 0!==u&&(e=j(t,u._$AS(t,e.values),u,l)),e}var O=(function(){return(0,u.default)(function t(e,i){(0,l.default)(this,t),this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i},[{key:"parentNode",get:function(){return this._$AM.parentNode}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"u",value:function(t){var e,i=this._$AD,n=i.el.content,r=i.parts,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:p).importNode(n,!0);R.currentNode=o;for(var s=R.nextNode(),l=0,u=0,h=r[0];void 0!==h;){if(l===h.index){var a=void 0;2===h.type?a=new V(s,s.nextSibling,this,t):1===h.type?a=new h.ctor(s,h.name,h.strings,this,t):6===h.type&&(a=new q(s,this,t)),this._$AV.push(a),h=r[++u]}l!==(null==h?void 0:h.index)&&(s=R.nextNode(),l++)}return R.currentNode=p,o}},{key:"v",value:function(t){var e=0;for(var i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}])})(),V=(function(){function t(e,i,n,r){var o;(0,l.default)(this,t),this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=n,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}return(0,u.default)(t,[{key:"_$AU",get:function(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}},{key:"parentNode",get:function(){var t=this._$AA.parentNode,e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}},{key:"startNode",get:function(){return this._$AA}},{key:"endNode",get:function(){return this._$AB}},{key:"_$AI",value:function(t){t=j(this,t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:this),y(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):H(t)?this.T(t):this._(t)}},{key:"k",value:function(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}},{key:"$",value:function(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}},{key:"_",value:function(t){this._$AH!==B&&y(this._$AH)?this._$AA.nextSibling.data=t:this.$(p.createTextNode(t)),this._$AH=t}},{key:"g",value:function(t){var e,i=t.values,n=t._$litType$,r="number"==typeof n?this._$AC(t):(void 0===n.el&&(n.el=U.createElement(L(n.h,n.h[0]),this.options)),n);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{var o=new O(r,this),s=o.u(this.options);o.v(i),this.$(s),this._$AH=o}}},{key:"_$AC",value:function(t){var e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new U(t)),e}},{key:"T",value:function(e){m(this._$AH)||(this._$AH=[],this._$AR());var i,n=this._$AH,r=0;for(var o of e)r===n.length?n.push(i=new t(this.k(g()),this.k(g()),this,this.options)):i=n[r],i._$AI(o),r++;r0&&void 0!==arguments[0]?arguments[0]:this._$AA.nextSibling,i=arguments.length>1?arguments[1]:void 0;for(null===(t=this._$AP)||void 0===t||t.call(this,!1,!0,i);e&&e!==this._$AB;){var n=e.nextSibling;e.remove(),e=n}}},{key:"setConnected",value:function(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}])})(),D=(function(){return(0,u.default)(function t(e,i,n,r,o){(0,l.default)(this,t),this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=i,this._$AM=r,this.options=o,n.length>2||""!==n[0]||""!==n[1]?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=B},[{key:"tagName",get:function(){return this.element.tagName}},{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,i=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=this.strings,o=!1;if(void 0===r)t=j(this,t,e,0),(o=!y(t)||t!==this._$AH&&t!==I)&&(this._$AH=t);else{var s,l,u=t;for(t=r[0],s=0;s1&&void 0!==arguments[1]?arguments[1]:this,0))&&void 0!==e?e:B)!==I){var i=this._$AH,n=t===B&&i!==B||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==B&&(i===B||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}}},{key:"handleEvent",value:function(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}])})(D),q=(function(){return(0,u.default)(function t(e,i,n){(0,l.default)(this,t),this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=n},[{key:"_$AU",get:function(){return this._$AM._$AU}},{key:"_$AI",value:function(t){j(this,t)}}])})(),G=(_e2._$LH={O:$,P:c,A:_,C:1,M:P,L:O,R:H,D:j,I:V,V:D,H:Z,N:F,U:W,F:q},v.litHtmlPolyfillSupport);null==G||G(U,V),(null!==(e=v.litHtmlVersions)&&void 0!==e?e:v.litHtmlVersions=[]).push("2.8.0");_e2.render=function(t,e,i){var n,r,o=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:e,s=o._$litPart$;if(void 0===s){var l=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=s=new V(e.insertBefore(g(),l),l,void 0,null!=i?i:{})}return s._$AI(t),s}},1726,[1,9,11,12,32,19,3,4]); __d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0});var t={LitElement:!0,UpdatingElement:!0,_$LE:!0};_e._$LE=_e.UpdatingElement=_e.LitElement=void 0;var n,l,o=e(_r(d[1])),r=e(_r(d[2])),i=e(_r(d[3])),u=e(_r(d[4])),c=e(_r(d[5])),s=e(_r(d[6])),f=e(_r(d[7]));function p(e,t,n){return t=(0,c.default)(t),(0,u.default)(e,h()?Reflect.construct(t,n||[],(0,c.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function v(e,t,n,l){var o=(0,s.default)((0,c.default)(1&l?e.prototype:e),t,n);return 2&l&&"function"==typeof o?function(e){return o.apply(n,e)}:o} /** * @license * Copyright 2017 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */Object.keys(_r(d[8])).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[8])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[8])[e]}}))}),Object.keys(_r(d[9])).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[9])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[9])[e]}}))});_e.UpdatingElement=_r(d[8]).ReactiveElement;var y=_e.LitElement=(function(e){function t(){var e;return(0,o.default)(this,t),(e=p(this,t,arguments)).renderOptions={host:(0,i.default)(e)},e._$Do=void 0,e}return(0,f.default)(t,e),(0,r.default)(t,[{key:"createRenderRoot",value:function(){var e,n,l=v(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=l.firstChild),l}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),v(t,"update",this,3)([e]),this._$Do=(0,_r(d[9]).render)(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;v(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;v(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return _r(d[9]).noChange}}])})(_r(d[8]).ReactiveElement);y.finalized=!0,y._$litElement$=!0,null===(n=globalThis.litElementHydrateSupport)||void 0===n||n.call(globalThis,{LitElement:y});var E=globalThis.litElementPolyfillSupport;null==E||E({LitElement:y});_e._$LE={_$AK:function(e,t,n){e._$AK(t,n)},_$AL:function(e){return e._$AL}};(null!==(l=globalThis.litElementVersions)&&void 0!==l?l:globalThis.litElementVersions=[]).push("3.3.3")},1152,[1,3,4,10,9,11,42,12,1149,1151]); + */Object.keys(_r(d[8])).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[8])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[8])[e]}}))}),Object.keys(_r(d[9])).forEach(function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(t,e)||e in _e&&_e[e]===_r(d[9])[e]||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return _r(d[9])[e]}}))});_e.UpdatingElement=_r(d[8]).ReactiveElement;var y=_e.LitElement=(function(e){function t(){var e;return(0,o.default)(this,t),(e=p(this,t,arguments)).renderOptions={host:(0,i.default)(e)},e._$Do=void 0,e}return(0,f.default)(t,e),(0,r.default)(t,[{key:"createRenderRoot",value:function(){var e,n,l=v(t,"createRenderRoot",this,3)([]);return null!==(e=(n=this.renderOptions).renderBefore)&&void 0!==e||(n.renderBefore=l.firstChild),l}},{key:"update",value:function(e){var n=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),v(t,"update",this,3)([e]),this._$Do=(0,_r(d[9]).render)(n,this.renderRoot,this.renderOptions)}},{key:"connectedCallback",value:function(){var e;v(t,"connectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!0)}},{key:"disconnectedCallback",value:function(){var e;v(t,"disconnectedCallback",this,3)([]),null===(e=this._$Do)||void 0===e||e.setConnected(!1)}},{key:"render",value:function(){return _r(d[9]).noChange}}])})(_r(d[8]).ReactiveElement);y.finalized=!0,y._$litElement$=!0,null===(n=globalThis.litElementHydrateSupport)||void 0===n||n.call(globalThis,{LitElement:y});var E=globalThis.litElementPolyfillSupport;null==E||E({LitElement:y});_e._$LE={_$AK:function(e,t,n){e._$AK(t,n)},_$AL:function(e){return e._$AL}};(null!==(l=globalThis.litElementVersions)&&void 0!==l?l:globalThis.litElementVersions=[]).push("3.3.3")},1727,[1,3,4,10,9,11,42,12,1724,1726]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isServer=void 0; /** * @license * Copyright 2022 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ -e.isServer=!1},1153,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1154,[1155]); +e.isServer=!1},1728,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1729,[1730]); __d(function(g,_r,_i2,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.classMap=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),i=t(_r(d[3])),r=t(_r(d[4])),o=t(_r(d[5])),s=t(_r(d[6]));function u(t,e,n){return e=(0,o.default)(e),(0,r.default)(t,l()?Reflect.construct(e,n||[],(0,o.default)(t).constructor):e.apply(t,n))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()} /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause - */_e.classMap=(0,_r(d[7]).directive)((function(t){function r(t){var e,i;if((0,n.default)(this,r),e=u(this,r,[t]),t.type!==_r(d[7]).PartType.ATTRIBUTE||"class"!==t.name||(null===(i=t.strings)||void 0===i?void 0:i.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return e}return(0,s.default)(r,t),(0,i.default)(r,[{key:"render",value:function(t){return" "+Object.keys(t).filter(function(e){return t[e]}).join(" ")+" "}},{key:"update",value:function(t,n){var i,r,o=this,s=(0,e.default)(n,1)[0];if(void 0===this.it){for(var u in this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(function(t){return""!==t}))),s)s[u]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(u))&&this.it.add(u);return this.render(s)}var l=t.element.classList;for(var c in this.it.forEach(function(t){t in s||(l.remove(t),o.it.delete(t))}),s){var f=!!s[c];f===this.it.has(c)||(null===(r=this.nt)||void 0===r?void 0:r.has(c))||(f?(l.add(c),this.it.add(c)):(l.remove(c),this.it.delete(c)))}return _r(d[8]).noChange}}])})(_r(d[7]).Directive))},1155,[1,19,3,4,9,11,12,1156,1151]); -__d(function(g,r,_i2,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.directive=_e.PartType=_e.Directive=void 0;var t=e(r(d[1])),i=e(r(d[2])),n=e(r(d[3]));_e.PartType={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_e.directive=function(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return e}return(0,s.default)(r,t),(0,i.default)(r,[{key:"render",value:function(t){return" "+Object.keys(t).filter(function(e){return t[e]}).join(" ")+" "}},{key:"update",value:function(t,n){var i,r,o=this,s=(0,e.default)(n,1)[0];if(void 0===this.it){for(var u in this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(function(t){return""!==t}))),s)s[u]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(u))&&this.it.add(u);return this.render(s)}var l=t.element.classList;for(var c in this.it.forEach(function(t){t in s||(l.remove(t),o.it.delete(t))}),s){var f=!!s[c];f===this.it.has(c)||(null===(r=this.nt)||void 0===r?void 0:r.has(c))||(f?(l.add(c),this.it.add(c)):(l.remove(c),this.it.delete(c)))}return _r(d[8]).noChange}}])})(_r(d[7]).Directive))},1730,[1,19,3,4,9,11,12,1731,1726]); +__d(function(g,r,_i2,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.directive=_e.PartType=_e.Directive=void 0;var t=e(r(d[1])),i=e(r(d[2])),n=e(r(d[3]));_e.PartType={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},_e.directive=function(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};return r(d[0]).withControls([function(){var o=new(r(d[1]).Animation)(n,[0,1],t);return o.finished.catch(function(){}),o}],t,t.duration)}Object.defineProperty(e,'__esModule',{value:!0}),e.animate=function(t,o,u){return(r(d[2]).isFunction(t)?n:r(d[0]).animate)(t,o,u)},e.animateProgress=n},1169,[1170,1196,1177]); -__d(function(g,r,i,a,m,e,d){'use strict';e.animate=r(d[0]).animate,e.createAnimate=r(d[1]).createAnimate,e.animateStyle=r(d[2]).animateStyle,e.timeline=r(d[3]).timeline,e.stagger=r(d[4]).stagger,e.spring=r(d[5]).spring,e.glide=r(d[6]).glide,e.style=r(d[7]).style,e.inView=r(d[8]).inView,e.resize=r(d[9]).resize,e.scroll=r(d[10]).scroll,e.ScrollOffset=r(d[11]).ScrollOffset,e.withControls=r(d[12]).withControls,e.getAnimationData=r(d[13]).getAnimationData,e.getStyleName=r(d[14]).getStyleName,e.createMotionState=r(d[15]).createMotionState,e.mountedStates=r(d[15]).mountedStates,e.createStyles=r(d[16]).createStyles,e.createStyleString=r(d[17]).createStyleString},1170,[1171,1172,1202,1216,1176,1221,1231,1210,1232,1233,1236,1240,1215,1203,1208,1244,1253,1254]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createAnimate(r(d[1]).Animation);e.animate=t},1171,[1172,1196]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.createAnimate=function(n){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(t=r(d[0]).resolveElements(t)).length;r(d[1]).invariant(Boolean(l),"No valid element provided."),r(d[1]).invariant(Boolean(o),"No keyframes defined.");for(var v=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:.1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.start,u=void 0===o?0:o,s=i.from,f=void 0===s?0:s,v=i.easing;return function(i,o){var s=r(d[0]).isNumber(f)?f:n(f,o),c=Math.abs(s-i),l=t*c;if(v){var h=o*t;l=r(d[1]).getEasingFunction(v)(l/h)*h}return u+l}}},1176,[1177,1196]); -__d(function(g,r,i,a,m,e,d){'use strict';e.addUniqueItem=r(d[0]).addUniqueItem,e.removeItem=r(d[0]).removeItem,e.clamp=r(d[1]).clamp,e.defaults=r(d[2]).defaults,e.getEasingForSegment=r(d[3]).getEasingForSegment,e.interpolate=r(d[4]).interpolate,e.isCubicBezier=r(d[5]).isCubicBezier,e.isEasingGenerator=r(d[6]).isEasingGenerator,e.isEasingList=r(d[7]).isEasingList,e.isFunction=r(d[8]).isFunction,e.isNumber=r(d[9]).isNumber,e.isString=r(d[10]).isString,e.mix=r(d[11]).mix,e.noop=r(d[12]).noop,e.noopReturn=r(d[12]).noopReturn,e.defaultOffset=r(d[13]).defaultOffset,e.fillOffset=r(d[13]).fillOffset,e.progress=r(d[14]).progress,e.time=r(d[15]).time,e.velocityPerSecond=r(d[16]).velocityPerSecond,e.wrap=r(d[17]).wrap},1177,[1178,1179,1180,1181,1185,1190,1191,1182,1192,1183,1193,1188,1189,1186,1187,1194,1195,1184]); -__d(function(g,r,i,a,m,e,d){'use strict';e.addUniqueItem=function(n,t){-1===n.indexOf(t)&&n.push(t)},e.removeItem=function(n,t){var u=n.indexOf(t);u>-1&&n.splice(u,1)}},1178,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.clamp=function(t,n,c){return Math.min(Math.max(c,t),n)}},1179,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.defaults={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}},1180,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.getEasingForSegment=function(n,t){return r(d[0]).isEasingList(n)?n[r(d[1]).wrap(0,n.length,t)]:n}},1181,[1182,1184]); -__d(function(g,r,i,a,m,e,d){'use strict';e.isEasingList=function(s){return Array.isArray(s)&&!r(d[0]).isNumber(s[0])}},1182,[1183]); -__d(function(g,r,i,a,m,e,d){'use strict';e.isNumber=function(n){return"number"==typeof n}},1183,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.wrap=function(n,t,u){var c=t-n;return((u-n)%c+c)%c+n}},1184,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.interpolate=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).defaultOffset(t.length),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[1]).noopReturn,f=t.length,i=f-n.length;return i>0&&r(d[0]).fillOffset(n,i),function(i){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:[0,1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=l.easing,c=l.duration,p=void 0===c?r(d[2]).defaults.duration:c,v=l.delay,f=void 0===v?r(d[2]).defaults.delay:v,y=l.endDelay,T=void 0===y?r(d[2]).defaults.endDelay:y,k=l.repeat,S=void 0===k?r(d[2]).defaults.repeat:k,D=l.offset,R=l.direction,q=void 0===R?"normal":R,A=l.autoplay,E=void 0===A||A;if(t(this,s),this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=r(d[2]).noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(function(t,s){o.resolve=t,o.reject=s}),h=h||r(d[2]).defaults.easing,r(d[2]).isEasingGenerator(h)){var F=h.createAnimation(u);h=F.easing,u=F.keyframes||u,p=F.duration||p}this.repeat=S,this.easing=r(d[2]).isEasingList(h)?r(d[2]).noopReturn:r(d[3]).getEasingFunction(h),this.updateDuration(p);var I=r(d[2]).interpolate(u,D,r(d[2]).isEasingList(h)?h.map(r(d[3]).getEasingFunction):r(d[2]).noopReturn);this.tick=function(t){var s,u=0;u=void 0!==o.pauseTime?o.pauseTime:(t-o.startTime)*o.rate,o.t=u,u/=1e3,u=Math.max(u-f,0),"finished"===o.playState&&void 0===o.pauseTime&&(u=o.totalDuration);var l=u/o.duration,h=Math.floor(l),c=l%1;!c&&l>=1&&(c=1),1===c&&h--;var p=h%2;("reverse"===q||"alternate"===q&&p||"alternate-reverse"===q&&!p)&&(c=1-c);var v=u>=o.totalDuration?1:Math.min(c,1),y=I(o.easing(v));n(y),void 0===o.pauseTime&&("finished"===o.playState||u>=o.totalDuration+T)?(o.playState="finished",null===(s=o.resolve)||void 0===s||s.call(o,y)):"idle"!==o.playState&&(o.frameRequestId=requestAnimationFrame(o.tick))},E&&this.play()},[{key:"play",value:function(){var t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}},{key:"pause",value:function(){this.playState="paused",this.pauseTime=this.t}},{key:"finish",value:function(){this.playState="finished",this.tick(0)}},{key:"stop",value:function(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}},{key:"cancel",value:function(){this.stop(),this.tick(this.cancelTimestamp)}},{key:"reverse",value:function(){this.rate*=-1}},{key:"commitStyles",value:function(){}},{key:"updateDuration",value:function(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}},{key:"currentTime",get:function(){return this.t},set:function(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}},{key:"playbackRate",get:function(){return this.rate},set:function(t){this.rate=t}}])})();e.Animation=n},1197,[3,4,1177,1198]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),u={ease:r(d[1]).cubicBezier(.25,.1,.25,1),"ease-in":r(d[1]).cubicBezier(.42,0,1,1),"ease-in-out":r(d[1]).cubicBezier(.42,0,.58,1),"ease-out":r(d[1]).cubicBezier(0,0,.58,1)},n=/\((.*?)\)/;e.getEasingFunction=function(c){if(r(d[2]).isFunction(c))return c;if(r(d[2]).isCubicBezier(c))return r(d[1]).cubicBezier.apply(r(d[1]),t(c));var s=u[c];if(s)return s;if(c.startsWith("steps")){var o=n.exec(c);if(o){var f=o[1].split(",");return r(d[1]).steps(parseFloat(f[0]),f[1].trim())}}return r(d[2]).noopReturn}},1198,[32,1199,1177]); -__d(function(g,r,i,a,m,e,d){'use strict';e.cubicBezier=r(d[0]).cubicBezier,e.steps=r(d[1]).steps},1199,[1200,1201]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=function(n,t,u){return(((1-3*u+3*t)*n+(3*u-6*t))*n+3*t)*n};function t(t,u,i,c,o){var f,s,b=0;do{(f=n(s=u+(i-u)/2,c,o)-t)>0?i=s:u=s}while(Math.abs(f)>1e-7&&++b<12);return s}e.cubicBezier=function(u,i,c,o){return u===i&&c===o?r(d[0]).noopReturn:function(f){return 0===f||1===f?f:n(t(f,0,1,u,c),i,o)}}},1200,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';e.steps=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(c){var o=(c="end"===t?Math.min(c,.999):Math.max(c,.001))*n,u="end"===t?Math.floor(o):Math.ceil(o);return r(d[0]).clamp(0,1,u/n)}}},1201,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);e.animateStyle=function(n,s,o){var l,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=arguments.length>4?arguments[4]:void 0,c=window.__MOTION_DEV_TOOLS_RECORD,v=!1!==u.record&&c,p=u.duration,y=void 0===p?r(d[1]).defaults.duration:p,h=u.delay,E=void 0===h?r(d[1]).defaults.delay:h,D=u.endDelay,b=void 0===D?r(d[1]).defaults.endDelay:D,O=u.repeat,_=void 0===O?r(d[1]).defaults.repeat:O,w=u.easing,A=void 0===w?r(d[1]).defaults.easing:w,L=u.persist,T=void 0!==L&&L,V=u.direction,k=u.offset,C=u.allowWebkitAcceleration,F=void 0!==C&&C,N=u.autoplay,R=void 0===N||N,S=r(d[2]).getAnimationData(n),U=r(d[3]).isTransform(s),j=r(d[4]).supports.waapi();U&&r(d[3]).addTransformToElement(n,s);var G=r(d[5]).getStyleName(s),K=r(d[2]).getMotionValue(S.values,G),M=r(d[3]).transformDefinitions.get(G);return r(d[6]).stopAnimation(K.animation,!(r(d[1]).isEasingGenerator(A)&&K.generator)&&!1!==u.record),function(){var p=function(){var t,s;return null!==(s=null!==(t=r(d[7]).style.get(n,G))&&void 0!==t?t:null==M?void 0:M.initialValue)&&void 0!==s?s:0},h=r(d[8]).hydrateKeyframes(r(d[8]).keyframesList(o),p),D=r(d[9]).getUnitConverter(h,M);if(r(d[1]).isEasingGenerator(A)){var O=A.createAnimation(h,"opacity"!==s,p,G,K);A=O.easing,h=O.keyframes||h,y=O.duration||y}if(r(d[10]).isCssVar(G)&&(r(d[4]).supports.cssRegisterProperty()?r(d[10]).registerCssVariable(G):j=!1),U&&!r(d[4]).supports.linearEasing()&&(r(d[1]).isFunction(A)||r(d[1]).isEasingList(A)&&A.some(r(d[1]).isFunction))&&(j=!1),j){M&&(h=h.map(function(t){return r(d[1]).isNumber(t)?M.toDefaultUnit(t):t})),1!==h.length||r(d[4]).supports.partialKeyframes()&&!v||h.unshift(p());var w={delay:r(d[1]).time.ms(E),duration:r(d[1]).time.ms(y),endDelay:r(d[1]).time.ms(b),easing:r(d[1]).isEasingList(A)?void 0:r(d[11]).convertEasing(A,y),direction:V,iterations:_+1,fill:"both"};(l=n.animate(t(t(t({},G,h),"offset",k),"easing",r(d[1]).isEasingList(A)?A.map(function(t){return r(d[11]).convertEasing(t,y)}):void 0),w)).finished||(l.finished=new Promise(function(t,n){l.onfinish=t,l.oncancel=n}));var L=h[h.length-1];l.finished.then(function(){T||(r(d[7]).style.set(n,G,L),l.cancel())}).catch(r(d[1]).noop),F||(l.playbackRate=1.000001)}else if(f&&U)1===(h=h.map(function(t){return"string"==typeof t?parseFloat(t):t})).length&&h.unshift(parseFloat(p())),l=new f(function(t){r(d[7]).style.set(n,G,D?D(t):t)},h,Object.assign(Object.assign({},u),{duration:y,easing:A}));else{var C=h[h.length-1];r(d[7]).style.set(n,G,M&&r(d[1]).isNumber(C)?M.toDefaultUnit(C):C)}return v&&c(n,s,h,{duration:y,delay:E,easing:A,repeat:_,offset:k},"motion-one"),K.setAnimation(l),l&&!R&&l.pause(),l}}},1202,[18,1177,1203,1206,1207,1208,1209,1210,1212,1213,1211,1214]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=new WeakMap;e.getAnimationData=function(n){return t.has(n)||t.set(n,{transforms:[],values:new Map}),t.get(n)},e.getMotionValue=function(t,n){return t.has(n)||t.set(n,new(r(d[0]).MotionValue)),t.get(n)}},1203,[1204]); -__d(function(g,r,i,a,m,e,d){'use strict';e.MotionValue=r(d[0]).MotionValue},1204,[1205]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=(function(){return t(function t(){n(this,t)},[{key:"setAnimation",value:function(n){var t=this;this.animation=n,null==n||n.finished.then(function(){return t.clearAnimation()}).catch(function(){})}},{key:"clearAnimation",value:function(){this.animation=this.generator=void 0}}])})();e.MotionValue=o},1205,[3,4]); -__d(function(g,r,i,_a,m,e,d){'use strict';var n=["","X","Y","Z"],t={x:"translateX",y:"translateY",z:"translateZ"},a={syntax:"",initialValue:"0deg",toDefaultUnit:function(n){return n+"deg"}},o={translate:{syntax:"",initialValue:"0px",toDefaultUnit:function(n){return n+"px"}},rotate:a,scale:{syntax:"",initialValue:1,toDefaultUnit:r(d[0]).noopReturn},skew:a},s=new Map,u=function(n){return`--motion-${n}`},f=["x","y","z"];["translate","scale","rotate","skew"].forEach(function(t){n.forEach(function(n){f.push(t+n),s.set(u(t+n),o[t])})});var l=function(n,t){return f.indexOf(n)-f.indexOf(t)},c=new Set(f),x=function(n){return n.sort(l).reduce(p,"").trim()},p=function(n,t){return`${n} ${t}(var(${u(t)}))`};e.addTransformToElement=function(n,a){t[a]&&(a=t[a]);var o=r(d[1]).getAnimationData(n).transforms;r(d[0]).addUniqueItem(o,a),n.style.transform=x(o)},e.asTransformCssVar=u,e.axes=n,e.buildTransformTemplate=x,e.compareTransformOrder=l,e.isTransform=function(n){return c.has(n)},e.transformAlias=t,e.transformDefinitions=s},1206,[1177,1203]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=function(t,n){return document.createElement("div").animate(t,n)},n={cssRegisterProperty:function(){return"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty")},waapi:function(){return Object.hasOwnProperty.call(Element.prototype,"animate")},partialKeyframes:function(){try{t({opacity:[1]})}catch(t){return!1}return!0},finished:function(){return Boolean(t({opacity:[0,1]},{duration:.001}).finished)},linearEasing:function(){try{t({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},e={},o={},c=function(t){o[t]=function(){return void 0===e[t]&&(e[t]=n[t]()),e[t]}};for(var u in n)c(u);_e.supports=o},1207,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.getStyleName=function(s){return r(d[0]).transformAlias[s]&&(s=r(d[0]).transformAlias[s]),r(d[0]).isTransform(s)?r(d[0]).asTransformCssVar(s):s}},1208,[1206]); -__d(function(g,r,i,a,m,_e,d){'use strict';_e.stopAnimation=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&"finished"!==t.playState)try{t.stop?t.stop():(n&&t.commitStyles(),t.cancel())}catch(t){}}},1209,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={get:function(t,s){s=r(d[0]).getStyleName(s);var n=r(d[1]).isCssVar(s)?t.style.getPropertyValue(s):getComputedStyle(t)[s];if(!n&&0!==n){var l=r(d[2]).transformDefinitions.get(s);l&&(n=l.initialValue)}return n},set:function(t,s,n){s=r(d[0]).getStyleName(s),r(d[1]).isCssVar(s)?t.style.setProperty(s,n):t.style[s]=n}};e.style=t},1210,[1208,1211,1206]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=new Set;_e.isCssVar=function(t){return t.startsWith("--")},_e.registerCssVariable=function(e){if(!t.has(e)){t.add(e);try{var s=r(d[0]).transformDefinitions.has(e)?r(d[0]).transformDefinitions.get(e):{},n=s.syntax,o=s.initialValue;CSS.registerProperty({name:e,inherits:!1,syntax:n,initialValue:o})}catch(t){}}},_e.registeredProperties=t},1211,[1206]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.hydrateKeyframes=function(n,t){for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:r(d[0]).defaults.duration;return new Proxy({animations:i.map(n).filter(Boolean),duration:u,options:o},t)}},1215,[1177,1209]); -__d(function(g,r,_i2,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);function i(n){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=i.defaultOptions,u=void 0===l?{}:l,f=r(d[5]).__rest(i,["defaultOptions"]),v=[],h=new Map,c={},p=new Map,y=0,O=0,A=0,b=0;b1,"spring must be provided 2 keyframes within timeline()");var H=D.createAnimation(G,"opacity"!==C,function(){return 0},C);D=H.easing,G=H.keyframes||G,q=H.duration||q}var I=r(d[12]).resolveOption(j.delay,N,B)||0,J=O+I,P=J+q,Q=K.offset,R=void 0===Q?r(d[6]).defaultOffset(G.length):Q;1===R.length&&0===R[0]&&(R[1]=1);var U=R.length-G.length;U>0&&r(d[6]).fillOffset(R,U),1===G.length&&G.unshift(null),r(d[13]).addKeyframes(F,G,D,R,J,P),k=Math.max(I+q,k),A=Math.max(P,A)}}y=O,O+=k}else p.set(w.name,r(d[7]).calcNextTime(O,w.at,y,p))}return h.forEach(function(t,n){for(var i in t){var s=t[i];s.sort(r(d[14]).compareByTime);for(var o=[],l=[],h=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},l=i(t,o),u=l.map(function(t){return r(d[2]).animateStyle.apply(r(d[2]),n(t).concat([r(d[3]).Animation]))}).filter(Boolean);return r(d[4]).withControls(u,o,null===(s=l[0])||void 0===s?void 0:s[3].duration)}},1216,[19,32,1202,1196,1215,1217,1177,1218,1173,1212,1175,1174,1176,1219,1220]); -__d(function(_g,_r,_i,_a,_m,_e,_d){var e,t,r,n,o,i,a,c,u,f,s,l,p,y,d,h,b,v,w,_,m,j,O,g,P,S,E,x,T,I,k,D;!(function(e){var t="object"==typeof _g?_g:"object"==typeof self?self:"object"==typeof this?this:{};function r(e,r){return e!==t&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(t,n){return e[t]=r?r(t,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):"object"==typeof _m&&"object"==typeof _m.exports?e(r(t,r(_m.exports))):e(r(t))})(function(A){var R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},o=function(e,t){return function(r,n){t(r,n,e)}},i=function(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,f="getter"===u?"get":"setter"===u?"set":"value",s=!t&&e?n.static?e:e.prototype:null,l=t||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var h in n)d[h]="access"===h?{}:n[h];for(var h in n.access)d.access[h]=n.access[h];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var b=(0,r[y])("accessor"===u?{get:l.get,set:l.set}:l[f],d);if("accessor"===u){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(c=a(b.get))&&(l.get=c),(c=a(b.set))&&(l.set=c),(c=a(b.init))&&o.unshift(c)}else(c=a(b))&&("field"===u?o.unshift(c):l[f]=c)}s&&Object.defineProperty(s,n.name,l),p=!0},a=function(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){for(var e=[],t=0;t1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof w?Promise.resolve(r.value.v).then(u,f):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function u(e){c("next",e)}function f(e){c("throw",e)}function s(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},m=function(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:o?o(t):t}:o}},j=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){o(n,i,(t=e[r](t)).done,t.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}},O=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},F=function(e){return F=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},F(e)};g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=F(e),n=0;nn&&i.at0&&void 0!==arguments[0]?arguments[0]:{},s=new Map,c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=`${n}-${t}-${u}-${arguments.length>3&&void 0!==arguments[3]&&arguments[3]}`;return s.has(c)||s.set(c,o(Object.assign({from:n,to:t,velocity:u},l))),s.get(c)},v=function(n,t){return u.has(n)||u.set(n,r(d[1]).pregenerateKeyframes(n,t)),u.get(n)};return{createAnimation:function(o){var u,l,s,f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],h=arguments.length>2?arguments[2]:void 0,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4?arguments[4]:void 0,w=0,y=r(d[0]).noopReturn,N=o.length;if(f)if(y=r(d[2]).getUnitConverter(o,p?r(d[3]).transformDefinitions.get(r(d[4]).getStyleName(p)):void 0),s=t(o[N-1]),N>1&&null!==o[0])l=t(o[0]);else{var S=null==b?void 0:b.generator;if(S){var T=b.animation,$=b.generatorStartTime,j=(null==T?void 0:T.startTime)||$||0,O=(null==T?void 0:T.currentTime)||performance.now()-j,D=S(O).current;l=D,w=r(d[1]).calcGeneratorVelocity(function(n){return S(n).current},O,D)}else h&&(l=t(h()))}if(n(l)&&n(s)){var G=c(l,s,w,null==p?void 0:p.includes("scale"));u=Object.assign(Object.assign({},v(G,y)),{easing:"linear"}),b&&(b.generator=G,b.generatorStartTime=performance.now())}u||(u={easing:"ease",duration:v(c(0,100)).overshootDuration});return u}}}}},1222,[1177,1223,1213,1206,1208]); -__d(function(g,r,i,a,m,e,d){'use strict';e.glide=r(d[0]).glide,e.spring=r(d[1]).spring,e.pregenerateKeyframes=r(d[2]).pregenerateKeyframes,e.calcGeneratorVelocity=r(d[3]).calcGeneratorVelocity},1223,[1224,1225,1230,1228]); -__d(function(g,r,i,a,m,e,d){'use strict';e.glide=function(t){var n=t.from,o=void 0===n?0:n,c=t.velocity,u=void 0===c?0:c,s=t.power,v=void 0===s?.8:s,f=t.decay,h=void 0===f?.325:f,p=t.bounceDamping,b=t.bounceStiffness,l=t.changeTarget,y=t.min,M=t.max,T=t.restDistance,D=void 0===T?.5:T,R=t.restSpeed;h=r(d[0]).time.ms(h);var S={hasReachedTarget:!1,done:!1,current:o,target:o},x=function(t){return void 0===y?M:void 0===M||Math.abs(y-t)M)&&(V=t,j=r(d[1]).spring({from:S.current,to:x(S.current),velocity:r(d[2]).calcGeneratorVelocity(q,t,S.current),damping:p,stiffness:b,restDistance:D,restSpeed:R}))};return A(0),function(t){var n=!1;return j||void 0!==V||(n=!0,z(t),A(t)),void 0!==V&&t>V?(S.hasReachedTarget=!0,j(t-V)):(S.hasReachedTarget=!1,!n&&z(t),S)}}},1224,[1177,1225,1228]); -__d(function(g,r,i,a,m,e,d){'use strict';e.spring=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.stiffness,s=void 0===n?r(d[0]).defaults.stiffness:n,c=t.damping,o=void 0===c?r(d[0]).defaults.damping:c,u=t.mass,h=void 0===u?r(d[0]).defaults.mass:u,f=t.from,v=void 0===f?0:f,l=t.to,M=void 0===l?1:l,p=t.velocity,R=void 0===p?0:p,b=t.restSpeed,T=t.restDistance;R=R?r(d[1]).time.s(R):0;var q,x={done:!1,hasReachedTarget:!1,current:v,target:M},y=M-v,D=Math.sqrt(s/h)/1e3,_=r(d[2]).calcDampingRatio(s,o,h),G=Math.abs(y)<5;if(b||(b=G?.01:2),T||(T=G?.005:.5),_<1){var S=D*Math.sqrt(1-_*_);q=function(t){return M-Math.exp(-_*D*t)*((_*D*y-R)/S*Math.sin(S*t)+y*Math.cos(S*t))}}else q=function(t){return M-Math.exp(-D*t)*(y+(D*y-R)*t)};return function(t){x.current=q(t);var n=0===t?R:r(d[3]).calcGeneratorVelocity(q,t,x.current),s=Math.abs(n)<=b,c=Math.abs(M-x.current)<=T;return x.done=s&&c,x.hasReachedTarget=r(d[4]).hasReachedTarget(v,M,x.current),x}}},1225,[1226,1177,1227,1228,1229]); -__d(function(g,r,i,a,m,e,d){'use strict';e.defaults={stiffness:100,damping:10,mass:1}},1226,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.calcDampingRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(d[0]).defaults.stiffness,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).defaults.damping,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[0]).defaults.mass;return n/(2*Math.sqrt(t*s))}},1227,[1226]); -__d(function(g,r,i,a,m,e,d){'use strict';e.calcGeneratorVelocity=function(t,c,n){var o=Math.max(c-5,0);return r(d[0]).velocityPerSecond(n-t(o),c-o)}},1228,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';e.hasReachedTarget=function(t,n,c){return t=n||t>n&&c<=n}},1229,[]); -__d(function(g,r,i,a,m,e,d){'use strict';e.pregenerateKeyframes=function(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).noopReturn,o=void 0,u=10,s=n(0),c=[t(s.current)];!s.done&&u<1e4;)s=n(u),c.push(t(s.done?s.target:s.current)),void 0===o&&s.hasReachedTarget&&(o=u),u+=10;var h=u-10;return 1===c.length&&c.push(s.current),{keyframes:c,duration:h/1e3,overshootDuration:(null!=o?o:h)/1e3}}},1230,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createGeneratorEasing(r(d[1]).glide);e.glide=t},1231,[1222,1223]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={any:0,all:1};e.inView=function(t,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=s.root,u=s.margin,f=s.amount,v=void 0===f?"any":f;if("undefined"==typeof IntersectionObserver)return function(){};var l=r(d[0]).resolveElements(t),b=new WeakMap,h=new IntersectionObserver(function(n){n.forEach(function(n){var t=b.get(n.target);if(n.isIntersecting!==Boolean(t))if(n.isIntersecting){var s=o(n);r(d[1]).isFunction(s)?b.set(n.target,s):h.unobserve(n.target)}else t&&(t(n),b.delete(n.target))})},{root:c,rootMargin:u,threshold:"number"==typeof v?v:n[v]});return l.forEach(function(n){return h.observe(n)}),function(){return h.disconnect()}}},1232,[1173,1177]); -__d(function(g,r,i,_a,m,e,d){'use strict';e.resize=function(n,t){return r(d[0]).isFunction(n)?r(d[1]).resizeWindow(n):r(d[2]).resizeElement(n,t)}},1233,[1177,1234,1235]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,t=new Set;e.resizeWindow=function(o){return t.add(o),n||(n=function(){var n={width:window.innerWidth,height:window.innerHeight},o={target:window,size:n,contentSize:n};t.forEach(function(n){return n(o)})},window.addEventListener("resize",n)),function(){t.delete(o),!t.size&&n&&(n=void 0)}}},1234,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t,n=new WeakMap;function o(t,n){if(n){var o=n[0];return{width:o.inlineSize,height:o.blockSize}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function f(t){var f,u=t.target,c=t.contentRect,l=t.borderBoxSize;null===(f=n.get(u))||void 0===f||f.forEach(function(t){t({target:u,contentSize:c,get size(){return o(u,l)}})})}function u(t){t.forEach(f)}e.resizeElement=function(o,f){t||"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(u));var c=r(d[0]).resolveElements(o);return c.forEach(function(o){var u=n.get(o);u||(u=new Set,n.set(o,u)),u.add(f),null==t||t.observe(o)}),function(){c.forEach(function(o){var u=n.get(o);null==u||u.delete(f),(null==u?void 0:u.size)||null==t||t.unobserve(o)})}}},1235,[1173]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=new WeakMap,t=new WeakMap,o=new WeakMap,c=function(n){return n===document.documentElement?window:n};e.scroll=function(s){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=v.container,u=void 0===l?document.documentElement:l,f=r(d[0]).__rest(v,["container"]),w=o.get(u);w||(w=new Set,o.set(u,w));var p=r(d[1]).createScrollInfo(),E=r(d[2]).createOnScrollHandler(u,s,p,f);if(w.add(E),!n.has(u)){var z=function(){var n=performance.now();for(var t of w)t.measure();for(var o of w)o.update(n);for(var c of w)c.notify()};n.set(u,z);var L=c(u);window.addEventListener("resize",z,{passive:!0}),u!==document.documentElement&&t.set(u,r(d[3]).resize(u,z)),L.addEventListener("scroll",z,{passive:!0})}var _=n.get(u),k=requestAnimationFrame(_);return function(){var v;"function"!=typeof s&&s.stop(),cancelAnimationFrame(k);var l=o.get(u);if(l&&(l.delete(E),!l.size)){var f=n.get(u);n.delete(u),f&&(c(u).removeEventListener("scroll",f),null===(v=t.get(u))||void 0===v||v(),window.removeEventListener("resize",f))}}}},1236,[1217,1237,1238,1233]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function n(n,o,c,l){var s=c[o],f=t[o],h=f.length,u=f.position,L=s.current,p=c.time;s.current=n[`scroll${u}`],s.scrollLength=n[`scroll${h}`]-n[`client${h}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=r(d[0]).progress(0,s.scrollLength,s.current);var v=l-p;s.velocity=v>50?0:r(d[0]).velocityPerSecond(s.current-L,v)}e.createScrollInfo=function(){return{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}},e.updateScrollInfo=function(t,o,c){n(t,"x",o,c),n(t,"y",o,c),o.time=c}},1237,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=arguments.length>2?arguments[2]:void 0;if(o.x.targetOffset=0,o.y.targetOffset=0,n!==t)for(var f=n;f&&f!=t;)o.x.targetOffset+=f.offsetLeft,o.y.targetOffset+=f.offsetTop,f=f.offsetParent;o.x.targetLength=n===t?n.scrollWidth:n.clientWidth,o.y.targetLength=n===t?n.scrollHeight:n.clientHeight,o.x.containerLength=t.clientWidth,o.y.containerLength=t.clientHeight}function n(t,n){return t.pause(),t.forEachNative(function(t,n){var o,f,u=n.easing;if(t.updateDuration)u||(t.easing=r(d[2]).noopReturn),t.updateDuration(1);else{var c={duration:1e3};u||(c.easing="linear"),null===(f=null===(o=t.effect)||void 0===o?void 0:o.updateTiming)||void 0===f||f.call(o,c)}}),function(){t.currentTime=n.progress}}e.createOnScrollHandler=function(o,f,u){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=c.axis||"y";return{measure:function(){return t(o,c.target,u)},update:function(t){r(d[0]).updateScrollInfo(o,u,t),(c.offset||c.target)&&r(d[1]).resolveOffsets(o,u,c)},notify:r(d[2]).isFunction(f)?function(){return f(u)}:n(f,u[l])}}},1238,[1237,1239,1177]); -__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),i={x:0,y:0};e.resolveOffsets=function(f,o,l){var s=l.offset,h=void 0===s?r(d[1]).ScrollOffset.All:s,n=l.target,c=void 0===n?f:n,v=l.axis,p=void 0===v?"y":v,O="y"===p?"height":"width",u=c!==f?r(d[2]).calcInset(c,f):i,w=c===f?{width:f.scrollWidth,height:f.scrollHeight}:{width:c.clientWidth,height:c.clientHeight},y={width:f.clientWidth,height:f.clientHeight};o[p].offset.length=0;for(var H=!o[p].interpolate,W=h.length,x=0;x2&&void 0!==arguments[2]?arguments[2]:0,o=0;if(void 0!==t[n]&&(n=t[n]),r(d[0]).isString(n)){var u=parseFloat(n);n.endsWith("px")?o=u:n.endsWith("%")?n=u/100:n.endsWith("vw")?o=u/100*document.documentElement.clientWidth:n.endsWith("vh")?o=u/100*document.documentElement.clientHeight:n=u}return r(d[0]).isNumber(n)&&(o=s*n),c+o}},1243,[1177]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n={inView:r(d[1]).inView,hover:r(d[2]).hover,press:r(d[3]).press},o=["initial","animate"].concat(t(Object.keys(n)),["exit"]),u=new WeakMap;e.createMotionState=function(){var s,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,v=l?l.getDepth()+1:0,f={initial:!0,animate:!0},h={},p={};for(var b of o)p[b]="string"==typeof c[b]?c[b]:null==l?void 0:l.getContext()[b];var A=!1===c.initial?"animate":"initial",y=r(d[4]).resolveVariant(c[A]||p[A],c.variants)||{},E=r(d[5]).__rest(y,["transition"]),O=Object.assign({},E),w=function(t,n){return function(){f[t]=n,r(d[13]).scheduleAnimation(k)}},j=function(){for(var t in n){var o=n[t].isActive(c),u=h[t];o&&!u?h[t]=n[t].subscribe(s,{enable:w(t,!0),disable:w(t,!1)},c):!o&&u&&(u(),delete h[t])}},k={update:function(t){s&&(c=t,j(),r(d[13]).scheduleAnimation(k))},setActive:function(t,n){s&&(f[t]=n,r(d[13]).scheduleAnimation(k))},animateUpdates:function*(){var n,u,l=E;E={};var v={};for(var h of o)if(f[h]){var p=r(d[4]).resolveVariant(c[h]);if(p)for(var b in p)"transition"!==b&&(E[b]=p[b],v[b]=r(d[6]).getOptions(null!==(u=null!==(n=p.transition)&&void 0!==n?n:c.transition)&&void 0!==u?u:{},b))}var A=new Set([].concat(t(Object.keys(E)),t(Object.keys(l)))),y=[];A.forEach(function(t){var n;void 0===E[t]&&(E[t]=O[t]),r(d[7]).hasChanged(l[t],E[t])&&(null!==(n=O[t])&&void 0!==n||(O[t]=r(d[8]).style.get(s,t)),y.push(r(d[9]).animateStyle(s,t,E[t],v[t],r(d[10]).Animation)))}),yield;var w=y.map(function(t){return t()}).filter(Boolean);if(w.length){var j=E;s.dispatchEvent(r(d[11]).motionEvent("motionstart",j)),Promise.all(w.map(function(t){return t.finished})).then(function(){s.dispatchEvent(r(d[11]).motionEvent("motioncomplete",j))}).catch(r(d[12]).noop)}},getDepth:function(){return v},getTarget:function(){return E},getOptions:function(){return c},getContext:function(){return p},mount:function(t){return r(d[14]).invariant(Boolean(t),"Animation state must be mounted with valid Element"),s=t,u.set(s,k),j(),function(){for(var t in u.delete(s),r(d[13]).unscheduleAnimation(k),h)h[t]()}},isMounted:function(){return Boolean(s)}};return k},e.mountedStates=u},1244,[32,1245,1247,1248,1249,1217,1175,1251,1210,1202,1196,1246,1177,1252,1174]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={isActive:function(n){return Boolean(n.inView)},subscribe:function(n,t,c){var o=t.enable,s=t.disable,u=c.inViewOptions,v=void 0===u?{}:u,w=v.once,f=r(d[0]).__rest(v,["once"]);return r(d[1]).inView(n,function(t){if(o(),r(d[2]).dispatchViewEvent(n,"viewenter",t),!w)return function(t){s(),r(d[2]).dispatchViewEvent(n,"viewleave",t)}},f)}};e.inView=n},1245,[1217,1232,1246]); -__d(function(g,r,i,a,m,e,d){'use strict';e.dispatchPointerEvent=function(t,n,o){t.dispatchEvent(new CustomEvent(n,{detail:{originalEvent:o}}))},e.dispatchViewEvent=function(t,n,o){t.dispatchEvent(new CustomEvent(n,{detail:{originalEntry:o}}))},e.motionEvent=function(t,n){return new CustomEvent(t,{detail:{target:n}})}},1246,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=function(n,t,o){return function(v){v.pointerType&&"mouse"!==v.pointerType||(o(),r(d[0]).dispatchPointerEvent(n,t,v))}},t={isActive:function(n){return Boolean(n.hover)},subscribe:function(t,o){var v=o.enable,s=o.disable,u=n(t,"hoverstart",v),c=n(t,"hoverend",s);return t.addEventListener("pointerenter",u),t.addEventListener("pointerleave",c),function(){t.removeEventListener("pointerenter",u),t.removeEventListener("pointerleave",c)}}};e.hover=t},1247,[1246]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={isActive:function(n){return Boolean(n.press)},subscribe:function(n,t){var o=t.enable,s=t.disable,p=function(t){s(),r(d[0]).dispatchPointerEvent(n,"pressend",t),window.removeEventListener("pointerup",p)},u=function(t){o(),r(d[0]).dispatchPointerEvent(n,"pressstart",t),window.addEventListener("pointerup",p)};return n.addEventListener("pointerdown",u),function(){n.removeEventListener("pointerdown",u),window.removeEventListener("pointerup",p)}}};e.press=n},1248,[1246]); -__d(function(g,r,i,a,m,e,d){'use strict';e.resolveVariant=function(n,t){return r(d[0]).isVariant(n)?n:n&&t?t[n]:void 0}},1249,[1250]); -__d(function(g,r,i,a,m,e,d){'use strict';e.isVariant=function(t){return"object"==typeof t}},1250,[]); -__d(function(g,r,_i,_a,m,e,d){'use strict';function n(n,t){var a=t.length;if(a!==n.length)return!1;for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:{},c=r(d[0]).createStyles(t),o="";for(var u in c)o+=u.startsWith("--")?u:n(u),o+=`: ${c[u]}; `;return o}},1254,[1253]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1255,[1256]); +function(e,t,n){var o,r=e;return"object"==typeof e?(r=e.slot,o=e):o={flatten:t},n?(0,_r(d[0]).queryAssignedElements)({slot:r,flatten:t,selector:n}):(0,_r(d[1]).decorateProperty)({descriptor:function(e){return{get:function(){var e,t,n="slot"+(r?`[name=${r}]`:":not([name])"),l=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(n);return null!==(t=null==l?void 0:l.assignedNodes(o))&&void 0!==t?t:[]},enumerable:!0,configurable:!0}}})}},1742,[1741,1737]); +__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0}),e.animate=r(d[0]).animate,Object.keys(r(d[1])).forEach(function(t){'default'===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[1])[t]}})}),Object.keys(r(d[2])).forEach(function(t){'default'===t||e.hasOwnProperty(t)||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[2])[t]}})})},1743,[1744,1745,1779]); +__d(function(g,r,i,a,m,e,d){'use strict';function n(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(d[0]).withControls([function(){var o=new(r(d[1]).Animation)(n,[0,1],t);return o.finished.catch(function(){}),o}],t,t.duration)}Object.defineProperty(e,'__esModule',{value:!0}),e.animate=function(t,o,u){return(r(d[2]).isFunction(t)?n:r(d[0]).animate)(t,o,u)},e.animateProgress=n},1744,[1745,1771,1752]); +__d(function(g,r,i,a,m,e,d){'use strict';e.animate=r(d[0]).animate,e.createAnimate=r(d[1]).createAnimate,e.animateStyle=r(d[2]).animateStyle,e.timeline=r(d[3]).timeline,e.stagger=r(d[4]).stagger,e.spring=r(d[5]).spring,e.glide=r(d[6]).glide,e.style=r(d[7]).style,e.inView=r(d[8]).inView,e.resize=r(d[9]).resize,e.scroll=r(d[10]).scroll,e.ScrollOffset=r(d[11]).ScrollOffset,e.withControls=r(d[12]).withControls,e.getAnimationData=r(d[13]).getAnimationData,e.getStyleName=r(d[14]).getStyleName,e.createMotionState=r(d[15]).createMotionState,e.mountedStates=r(d[15]).mountedStates,e.createStyles=r(d[16]).createStyles,e.createStyleString=r(d[17]).createStyleString},1745,[1746,1747,1777,1791,1751,1796,1806,1785,1807,1808,1811,1815,1790,1778,1783,1819,1828,1829]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createAnimate(r(d[1]).Animation);e.animate=t},1746,[1747,1771]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.createAnimate=function(n){return function(t,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=(t=r(d[0]).resolveElements(t)).length;r(d[1]).invariant(Boolean(l),"No valid element provided."),r(d[1]).invariant(Boolean(o),"No keyframes defined.");for(var v=[],s=0;s0&&void 0!==arguments[0]?arguments[0]:.1,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.start,u=void 0===o?0:o,s=i.from,f=void 0===s?0:s,v=i.easing;return function(i,o){var s=r(d[0]).isNumber(f)?f:n(f,o),c=Math.abs(s-i),l=t*c;if(v){var h=o*t;l=r(d[1]).getEasingFunction(v)(l/h)*h}return u+l}}},1751,[1752,1771]); +__d(function(g,r,i,a,m,e,d){'use strict';e.addUniqueItem=r(d[0]).addUniqueItem,e.removeItem=r(d[0]).removeItem,e.clamp=r(d[1]).clamp,e.defaults=r(d[2]).defaults,e.getEasingForSegment=r(d[3]).getEasingForSegment,e.interpolate=r(d[4]).interpolate,e.isCubicBezier=r(d[5]).isCubicBezier,e.isEasingGenerator=r(d[6]).isEasingGenerator,e.isEasingList=r(d[7]).isEasingList,e.isFunction=r(d[8]).isFunction,e.isNumber=r(d[9]).isNumber,e.isString=r(d[10]).isString,e.mix=r(d[11]).mix,e.noop=r(d[12]).noop,e.noopReturn=r(d[12]).noopReturn,e.defaultOffset=r(d[13]).defaultOffset,e.fillOffset=r(d[13]).fillOffset,e.progress=r(d[14]).progress,e.time=r(d[15]).time,e.velocityPerSecond=r(d[16]).velocityPerSecond,e.wrap=r(d[17]).wrap},1752,[1753,1754,1755,1756,1760,1765,1766,1757,1767,1758,1768,1763,1764,1761,1762,1769,1770,1759]); +__d(function(g,r,i,a,m,e,d){'use strict';e.addUniqueItem=function(n,t){-1===n.indexOf(t)&&n.push(t)},e.removeItem=function(n,t){var u=n.indexOf(t);u>-1&&n.splice(u,1)}},1753,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.clamp=function(t,n,c){return Math.min(Math.max(c,t),n)}},1754,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.defaults={duration:.3,delay:0,endDelay:0,repeat:0,easing:"ease"}},1755,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.getEasingForSegment=function(n,t){return r(d[0]).isEasingList(n)?n[r(d[1]).wrap(0,n.length,t)]:n}},1756,[1757,1759]); +__d(function(g,r,i,a,m,e,d){'use strict';e.isEasingList=function(s){return Array.isArray(s)&&!r(d[0]).isNumber(s[0])}},1757,[1758]); +__d(function(g,r,i,a,m,e,d){'use strict';e.isNumber=function(n){return"number"==typeof n}},1758,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.wrap=function(n,t,u){var c=t-n;return((u-n)%c+c)%c+n}},1759,[]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.interpolate=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).defaultOffset(t.length),o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[1]).noopReturn,f=t.length,i=f-n.length;return i>0&&r(d[0]).fillOffset(n,i),function(i){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:[0,1],l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},h=l.easing,c=l.duration,p=void 0===c?r(d[2]).defaults.duration:c,v=l.delay,f=void 0===v?r(d[2]).defaults.delay:v,y=l.endDelay,T=void 0===y?r(d[2]).defaults.endDelay:y,k=l.repeat,S=void 0===k?r(d[2]).defaults.repeat:k,D=l.offset,R=l.direction,q=void 0===R?"normal":R,A=l.autoplay,E=void 0===A||A;if(t(this,s),this.startTime=null,this.rate=1,this.t=0,this.cancelTimestamp=null,this.easing=r(d[2]).noopReturn,this.duration=0,this.totalDuration=0,this.repeat=0,this.playState="idle",this.finished=new Promise(function(t,s){o.resolve=t,o.reject=s}),h=h||r(d[2]).defaults.easing,r(d[2]).isEasingGenerator(h)){var F=h.createAnimation(u);h=F.easing,u=F.keyframes||u,p=F.duration||p}this.repeat=S,this.easing=r(d[2]).isEasingList(h)?r(d[2]).noopReturn:r(d[3]).getEasingFunction(h),this.updateDuration(p);var I=r(d[2]).interpolate(u,D,r(d[2]).isEasingList(h)?h.map(r(d[3]).getEasingFunction):r(d[2]).noopReturn);this.tick=function(t){var s,u=0;u=void 0!==o.pauseTime?o.pauseTime:(t-o.startTime)*o.rate,o.t=u,u/=1e3,u=Math.max(u-f,0),"finished"===o.playState&&void 0===o.pauseTime&&(u=o.totalDuration);var l=u/o.duration,h=Math.floor(l),c=l%1;!c&&l>=1&&(c=1),1===c&&h--;var p=h%2;("reverse"===q||"alternate"===q&&p||"alternate-reverse"===q&&!p)&&(c=1-c);var v=u>=o.totalDuration?1:Math.min(c,1),y=I(o.easing(v));n(y),void 0===o.pauseTime&&("finished"===o.playState||u>=o.totalDuration+T)?(o.playState="finished",null===(s=o.resolve)||void 0===s||s.call(o,y)):"idle"!==o.playState&&(o.frameRequestId=requestAnimationFrame(o.tick))},E&&this.play()},[{key:"play",value:function(){var t=performance.now();this.playState="running",void 0!==this.pauseTime?this.startTime=t-this.pauseTime:this.startTime||(this.startTime=t),this.cancelTimestamp=this.startTime,this.pauseTime=void 0,this.frameRequestId=requestAnimationFrame(this.tick)}},{key:"pause",value:function(){this.playState="paused",this.pauseTime=this.t}},{key:"finish",value:function(){this.playState="finished",this.tick(0)}},{key:"stop",value:function(){var t;this.playState="idle",void 0!==this.frameRequestId&&cancelAnimationFrame(this.frameRequestId),null===(t=this.reject)||void 0===t||t.call(this,!1)}},{key:"cancel",value:function(){this.stop(),this.tick(this.cancelTimestamp)}},{key:"reverse",value:function(){this.rate*=-1}},{key:"commitStyles",value:function(){}},{key:"updateDuration",value:function(t){this.duration=t,this.totalDuration=t*(this.repeat+1)}},{key:"currentTime",get:function(){return this.t},set:function(t){void 0!==this.pauseTime||0===this.rate?this.pauseTime=t:this.startTime=performance.now()-t/this.rate}},{key:"playbackRate",get:function(){return this.rate},set:function(t){this.rate=t}}])})();e.Animation=n},1772,[3,4,1752,1773]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),u={ease:r(d[1]).cubicBezier(.25,.1,.25,1),"ease-in":r(d[1]).cubicBezier(.42,0,1,1),"ease-in-out":r(d[1]).cubicBezier(.42,0,.58,1),"ease-out":r(d[1]).cubicBezier(0,0,.58,1)},n=/\((.*?)\)/;e.getEasingFunction=function(c){if(r(d[2]).isFunction(c))return c;if(r(d[2]).isCubicBezier(c))return r(d[1]).cubicBezier.apply(r(d[1]),t(c));var s=u[c];if(s)return s;if(c.startsWith("steps")){var o=n.exec(c);if(o){var f=o[1].split(",");return r(d[1]).steps(parseFloat(f[0]),f[1].trim())}}return r(d[2]).noopReturn}},1773,[32,1774,1752]); +__d(function(g,r,i,a,m,e,d){'use strict';e.cubicBezier=r(d[0]).cubicBezier,e.steps=r(d[1]).steps},1774,[1775,1776]); +__d(function(g,r,_i,a,m,e,d){'use strict';var n=function(n,t,u){return(((1-3*u+3*t)*n+(3*u-6*t))*n+3*t)*n};function t(t,u,i,c,o){var f,s,b=0;do{(f=n(s=u+(i-u)/2,c,o)-t)>0?i=s:u=s}while(Math.abs(f)>1e-7&&++b<12);return s}e.cubicBezier=function(u,i,c,o){return u===i&&c===o?r(d[0]).noopReturn:function(f){return 0===f||1===f?f:n(t(f,0,1,u,c),i,o)}}},1775,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';e.steps=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"end";return function(c){var o=(c="end"===t?Math.min(c,.999):Math.max(c,.001))*n,u="end"===t?Math.floor(o):Math.ceil(o);return r(d[0]).clamp(0,1,u/n)}}},1776,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);e.animateStyle=function(n,s,o){var l,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},f=arguments.length>4?arguments[4]:void 0,c=window.__MOTION_DEV_TOOLS_RECORD,v=!1!==u.record&&c,p=u.duration,y=void 0===p?r(d[1]).defaults.duration:p,h=u.delay,E=void 0===h?r(d[1]).defaults.delay:h,D=u.endDelay,b=void 0===D?r(d[1]).defaults.endDelay:D,O=u.repeat,_=void 0===O?r(d[1]).defaults.repeat:O,w=u.easing,A=void 0===w?r(d[1]).defaults.easing:w,L=u.persist,T=void 0!==L&&L,V=u.direction,k=u.offset,C=u.allowWebkitAcceleration,F=void 0!==C&&C,N=u.autoplay,R=void 0===N||N,S=r(d[2]).getAnimationData(n),U=r(d[3]).isTransform(s),j=r(d[4]).supports.waapi();U&&r(d[3]).addTransformToElement(n,s);var G=r(d[5]).getStyleName(s),K=r(d[2]).getMotionValue(S.values,G),M=r(d[3]).transformDefinitions.get(G);return r(d[6]).stopAnimation(K.animation,!(r(d[1]).isEasingGenerator(A)&&K.generator)&&!1!==u.record),function(){var p=function(){var t,s;return null!==(s=null!==(t=r(d[7]).style.get(n,G))&&void 0!==t?t:null==M?void 0:M.initialValue)&&void 0!==s?s:0},h=r(d[8]).hydrateKeyframes(r(d[8]).keyframesList(o),p),D=r(d[9]).getUnitConverter(h,M);if(r(d[1]).isEasingGenerator(A)){var O=A.createAnimation(h,"opacity"!==s,p,G,K);A=O.easing,h=O.keyframes||h,y=O.duration||y}if(r(d[10]).isCssVar(G)&&(r(d[4]).supports.cssRegisterProperty()?r(d[10]).registerCssVariable(G):j=!1),U&&!r(d[4]).supports.linearEasing()&&(r(d[1]).isFunction(A)||r(d[1]).isEasingList(A)&&A.some(r(d[1]).isFunction))&&(j=!1),j){M&&(h=h.map(function(t){return r(d[1]).isNumber(t)?M.toDefaultUnit(t):t})),1!==h.length||r(d[4]).supports.partialKeyframes()&&!v||h.unshift(p());var w={delay:r(d[1]).time.ms(E),duration:r(d[1]).time.ms(y),endDelay:r(d[1]).time.ms(b),easing:r(d[1]).isEasingList(A)?void 0:r(d[11]).convertEasing(A,y),direction:V,iterations:_+1,fill:"both"};(l=n.animate(t(t(t({},G,h),"offset",k),"easing",r(d[1]).isEasingList(A)?A.map(function(t){return r(d[11]).convertEasing(t,y)}):void 0),w)).finished||(l.finished=new Promise(function(t,n){l.onfinish=t,l.oncancel=n}));var L=h[h.length-1];l.finished.then(function(){T||(r(d[7]).style.set(n,G,L),l.cancel())}).catch(r(d[1]).noop),F||(l.playbackRate=1.000001)}else if(f&&U)1===(h=h.map(function(t){return"string"==typeof t?parseFloat(t):t})).length&&h.unshift(parseFloat(p())),l=new f(function(t){r(d[7]).style.set(n,G,D?D(t):t)},h,Object.assign(Object.assign({},u),{duration:y,easing:A}));else{var C=h[h.length-1];r(d[7]).style.set(n,G,M&&r(d[1]).isNumber(C)?M.toDefaultUnit(C):C)}return v&&c(n,s,h,{duration:y,delay:E,easing:A,repeat:_,offset:k},"motion-one"),K.setAnimation(l),l&&!R&&l.pause(),l}}},1777,[18,1752,1778,1781,1782,1783,1784,1785,1787,1788,1786,1789]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=new WeakMap;e.getAnimationData=function(n){return t.has(n)||t.set(n,{transforms:[],values:new Map}),t.get(n)},e.getMotionValue=function(t,n){return t.has(n)||t.set(n,new(r(d[0]).MotionValue)),t.get(n)}},1778,[1779]); +__d(function(g,r,i,a,m,e,d){'use strict';e.MotionValue=r(d[0]).MotionValue},1779,[1780]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]),t=r(d[1]),o=(function(){return t(function t(){n(this,t)},[{key:"setAnimation",value:function(n){var t=this;this.animation=n,null==n||n.finished.then(function(){return t.clearAnimation()}).catch(function(){})}},{key:"clearAnimation",value:function(){this.animation=this.generator=void 0}}])})();e.MotionValue=o},1780,[3,4]); +__d(function(g,r,i,_a,m,e,d){'use strict';var n=["","X","Y","Z"],t={x:"translateX",y:"translateY",z:"translateZ"},a={syntax:"",initialValue:"0deg",toDefaultUnit:function(n){return n+"deg"}},o={translate:{syntax:"",initialValue:"0px",toDefaultUnit:function(n){return n+"px"}},rotate:a,scale:{syntax:"",initialValue:1,toDefaultUnit:r(d[0]).noopReturn},skew:a},s=new Map,u=function(n){return`--motion-${n}`},f=["x","y","z"];["translate","scale","rotate","skew"].forEach(function(t){n.forEach(function(n){f.push(t+n),s.set(u(t+n),o[t])})});var l=function(n,t){return f.indexOf(n)-f.indexOf(t)},c=new Set(f),x=function(n){return n.sort(l).reduce(p,"").trim()},p=function(n,t){return`${n} ${t}(var(${u(t)}))`};e.addTransformToElement=function(n,a){t[a]&&(a=t[a]);var o=r(d[1]).getAnimationData(n).transforms;r(d[0]).addUniqueItem(o,a),n.style.transform=x(o)},e.asTransformCssVar=u,e.axes=n,e.buildTransformTemplate=x,e.compareTransformOrder=l,e.isTransform=function(n){return c.has(n)},e.transformAlias=t,e.transformDefinitions=s},1781,[1752,1778]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=function(t,n){return document.createElement("div").animate(t,n)},n={cssRegisterProperty:function(){return"undefined"!=typeof CSS&&Object.hasOwnProperty.call(CSS,"registerProperty")},waapi:function(){return Object.hasOwnProperty.call(Element.prototype,"animate")},partialKeyframes:function(){try{t({opacity:[1]})}catch(t){return!1}return!0},finished:function(){return Boolean(t({opacity:[0,1]},{duration:.001}).finished)},linearEasing:function(){try{t({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}},e={},o={},c=function(t){o[t]=function(){return void 0===e[t]&&(e[t]=n[t]()),e[t]}};for(var u in n)c(u);_e.supports=o},1782,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.getStyleName=function(s){return r(d[0]).transformAlias[s]&&(s=r(d[0]).transformAlias[s]),r(d[0]).isTransform(s)?r(d[0]).asTransformCssVar(s):s}},1783,[1781]); +__d(function(g,r,i,a,m,_e,d){'use strict';_e.stopAnimation=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t&&"finished"!==t.playState)try{t.stop?t.stop():(n&&t.commitStyles(),t.cancel())}catch(t){}}},1784,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={get:function(t,s){s=r(d[0]).getStyleName(s);var n=r(d[1]).isCssVar(s)?t.style.getPropertyValue(s):getComputedStyle(t)[s];if(!n&&0!==n){var l=r(d[2]).transformDefinitions.get(s);l&&(n=l.initialValue)}return n},set:function(t,s,n){s=r(d[0]).getStyleName(s),r(d[1]).isCssVar(s)?t.style.setProperty(s,n):t.style[s]=n}};e.style=t},1785,[1783,1786,1781]); +__d(function(g,r,i,a,m,_e,d){'use strict';var t=new Set;_e.isCssVar=function(t){return t.startsWith("--")},_e.registerCssVariable=function(e){if(!t.has(e)){t.add(e);try{var s=r(d[0]).transformDefinitions.has(e)?r(d[0]).transformDefinitions.get(e):{},n=s.syntax,o=s.initialValue;CSS.registerProperty({name:e,inherits:!1,syntax:n,initialValue:o})}catch(t){}}},_e.registeredProperties=t},1786,[1781]); +__d(function(g,r,_i,a,m,e,d){'use strict';e.hydrateKeyframes=function(n,t){for(var u=0;u2&&void 0!==arguments[2]?arguments[2]:r(d[0]).defaults.duration;return new Proxy({animations:i.map(n).filter(Boolean),duration:u,options:o},t)}},1790,[1752,1784]); +__d(function(g,r,_i2,a,m,e,d){'use strict';var t=r(d[0]),n=r(d[1]);function i(n){for(var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=i.defaultOptions,u=void 0===l?{}:l,f=r(d[5]).__rest(i,["defaultOptions"]),v=[],h=new Map,c={},p=new Map,y=0,O=0,A=0,b=0;b1,"spring must be provided 2 keyframes within timeline()");var H=D.createAnimation(G,"opacity"!==C,function(){return 0},C);D=H.easing,G=H.keyframes||G,q=H.duration||q}var I=r(d[12]).resolveOption(j.delay,N,B)||0,J=O+I,P=J+q,Q=K.offset,R=void 0===Q?r(d[6]).defaultOffset(G.length):Q;1===R.length&&0===R[0]&&(R[1]=1);var U=R.length-G.length;U>0&&r(d[6]).fillOffset(R,U),1===G.length&&G.unshift(null),r(d[13]).addKeyframes(F,G,D,R,J,P),k=Math.max(I+q,k),A=Math.max(P,A)}}y=O,O+=k}else p.set(w.name,r(d[7]).calcNextTime(O,w.at,y,p))}return h.forEach(function(t,n){for(var i in t){var s=t[i];s.sort(r(d[14]).compareByTime);for(var o=[],l=[],h=[],c=0;c1&&void 0!==arguments[1]?arguments[1]:{},l=i(t,o),u=l.map(function(t){return r(d[2]).animateStyle.apply(r(d[2]),n(t).concat([r(d[3]).Animation]))}).filter(Boolean);return r(d[4]).withControls(u,o,null===(s=l[0])||void 0===s?void 0:s[3].duration)}},1791,[19,32,1777,1771,1790,1792,1752,1793,1748,1787,1750,1749,1751,1794,1795]); +__d(function(_g,_r,_i,_a,_m,_e,_d){var e,t,r,n,o,i,a,c,u,f,s,l,p,y,d,h,b,v,w,_,m,j,O,g,P,S,E,x,T,I,k,D;!(function(e){var t="object"==typeof _g?_g:"object"==typeof self?self:"object"==typeof this?this:{};function r(e,r){return e!==t&&("function"==typeof Object.create?Object.defineProperty(e,"__esModule",{value:!0}):e.__esModule=!0),function(t,n){return e[t]=r?r(t,n):n}}"function"==typeof define&&define.amd?define("tslib",["exports"],function(n){e(r(t,r(n)))}):"object"==typeof _m&&"object"==typeof _m.exports?e(r(t,r(_m.exports))):e(r(t))})(function(A){var R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])};e=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}R(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)},t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r=0;c--)(o=e[c])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a},o=function(e,t){return function(r,n){t(r,n,e)}},i=function(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,u=n.kind,f="getter"===u?"get":"setter"===u?"set":"value",s=!t&&e?n.static?e:e.prototype:null,l=t||(s?Object.getOwnPropertyDescriptor(s,n.name):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var h in n)d[h]="access"===h?{}:n[h];for(var h in n.access)d.access[h]=n.access[h];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var b=(0,r[y])("accessor"===u?{get:l.get,set:l.set}:l[f],d);if("accessor"===u){if(void 0===b)continue;if(null===b||"object"!=typeof b)throw new TypeError("Object expected");(c=a(b.get))&&(l.get=c),(c=a(b.set))&&(l.set=c),(c=a(b.init))&&o.unshift(c)}else(c=a(b))&&("field"===u?o.unshift(c):l[f]=c)}s&&Object.defineProperty(s,n.name,l),p=!0},a=function(e,t,r){for(var n=arguments.length>2,o=0;o0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a},h=function(){for(var e=[],t=0;t1||c(e,t)})},t&&(n[e]=t(n[e])))}function c(e,t){try{(r=o[e](t)).value instanceof w?Promise.resolve(r.value.v).then(u,f):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function u(e){c("next",e)}function f(e){c("throw",e)}function s(e,t){e(t),i.shift(),i.length&&c(i[0][0],i[0][1])}},m=function(e){var t,r;return t={},n("next"),n("throw",function(e){throw e}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:w(e[n](t)),done:!1}:o?o(t):t}:o}},j=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise(function(n,i){o(n,i,(t=e[r](t)).done,t.value)})}}function o(e,t,r,n){Promise.resolve(n).then(function(t){e({value:t,done:r})},t)}},O=function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e};var C=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t},F=function(e){return F=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t},F(e)};g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=F(e),n=0;nn&&i.at0&&void 0!==arguments[0]?arguments[0]:{},s=new Map,c=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=`${n}-${t}-${u}-${arguments.length>3&&void 0!==arguments[3]&&arguments[3]}`;return s.has(c)||s.set(c,o(Object.assign({from:n,to:t,velocity:u},l))),s.get(c)},v=function(n,t){return u.has(n)||u.set(n,r(d[1]).pregenerateKeyframes(n,t)),u.get(n)};return{createAnimation:function(o){var u,l,s,f=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],h=arguments.length>2?arguments[2]:void 0,p=arguments.length>3?arguments[3]:void 0,b=arguments.length>4?arguments[4]:void 0,w=0,y=r(d[0]).noopReturn,N=o.length;if(f)if(y=r(d[2]).getUnitConverter(o,p?r(d[3]).transformDefinitions.get(r(d[4]).getStyleName(p)):void 0),s=t(o[N-1]),N>1&&null!==o[0])l=t(o[0]);else{var S=null==b?void 0:b.generator;if(S){var T=b.animation,$=b.generatorStartTime,j=(null==T?void 0:T.startTime)||$||0,O=(null==T?void 0:T.currentTime)||performance.now()-j,D=S(O).current;l=D,w=r(d[1]).calcGeneratorVelocity(function(n){return S(n).current},O,D)}else h&&(l=t(h()))}if(n(l)&&n(s)){var G=c(l,s,w,null==p?void 0:p.includes("scale"));u=Object.assign(Object.assign({},v(G,y)),{easing:"linear"}),b&&(b.generator=G,b.generatorStartTime=performance.now())}u||(u={easing:"ease",duration:v(c(0,100)).overshootDuration});return u}}}}},1797,[1752,1798,1788,1781,1783]); +__d(function(g,r,i,a,m,e,d){'use strict';e.glide=r(d[0]).glide,e.spring=r(d[1]).spring,e.pregenerateKeyframes=r(d[2]).pregenerateKeyframes,e.calcGeneratorVelocity=r(d[3]).calcGeneratorVelocity},1798,[1799,1800,1805,1803]); +__d(function(g,r,i,a,m,e,d){'use strict';e.glide=function(t){var n=t.from,o=void 0===n?0:n,c=t.velocity,u=void 0===c?0:c,s=t.power,v=void 0===s?.8:s,f=t.decay,h=void 0===f?.325:f,p=t.bounceDamping,b=t.bounceStiffness,l=t.changeTarget,y=t.min,M=t.max,T=t.restDistance,D=void 0===T?.5:T,R=t.restSpeed;h=r(d[0]).time.ms(h);var S={hasReachedTarget:!1,done:!1,current:o,target:o},x=function(t){return void 0===y?M:void 0===M||Math.abs(y-t)M)&&(V=t,j=r(d[1]).spring({from:S.current,to:x(S.current),velocity:r(d[2]).calcGeneratorVelocity(q,t,S.current),damping:p,stiffness:b,restDistance:D,restSpeed:R}))};return A(0),function(t){var n=!1;return j||void 0!==V||(n=!0,z(t),A(t)),void 0!==V&&t>V?(S.hasReachedTarget=!0,j(t-V)):(S.hasReachedTarget=!1,!n&&z(t),S)}}},1799,[1752,1800,1803]); +__d(function(g,r,i,a,m,e,d){'use strict';e.spring=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.stiffness,s=void 0===n?r(d[0]).defaults.stiffness:n,c=t.damping,o=void 0===c?r(d[0]).defaults.damping:c,u=t.mass,h=void 0===u?r(d[0]).defaults.mass:u,f=t.from,v=void 0===f?0:f,l=t.to,M=void 0===l?1:l,p=t.velocity,R=void 0===p?0:p,b=t.restSpeed,T=t.restDistance;R=R?r(d[1]).time.s(R):0;var q,x={done:!1,hasReachedTarget:!1,current:v,target:M},y=M-v,D=Math.sqrt(s/h)/1e3,_=r(d[2]).calcDampingRatio(s,o,h),G=Math.abs(y)<5;if(b||(b=G?.01:2),T||(T=G?.005:.5),_<1){var S=D*Math.sqrt(1-_*_);q=function(t){return M-Math.exp(-_*D*t)*((_*D*y-R)/S*Math.sin(S*t)+y*Math.cos(S*t))}}else q=function(t){return M-Math.exp(-D*t)*(y+(D*y-R)*t)};return function(t){x.current=q(t);var n=0===t?R:r(d[3]).calcGeneratorVelocity(q,t,x.current),s=Math.abs(n)<=b,c=Math.abs(M-x.current)<=T;return x.done=s&&c,x.hasReachedTarget=r(d[4]).hasReachedTarget(v,M,x.current),x}}},1800,[1801,1752,1802,1803,1804]); +__d(function(g,r,i,a,m,e,d){'use strict';e.defaults={stiffness:100,damping:10,mass:1}},1801,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.calcDampingRatio=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r(d[0]).defaults.stiffness,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).defaults.damping,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[0]).defaults.mass;return n/(2*Math.sqrt(t*s))}},1802,[1801]); +__d(function(g,r,i,a,m,e,d){'use strict';e.calcGeneratorVelocity=function(t,c,n){var o=Math.max(c-5,0);return r(d[0]).velocityPerSecond(n-t(o),c-o)}},1803,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';e.hasReachedTarget=function(t,n,c){return t=n||t>n&&c<=n}},1804,[]); +__d(function(g,r,i,a,m,e,d){'use strict';e.pregenerateKeyframes=function(n){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r(d[0]).noopReturn,o=void 0,u=10,s=n(0),c=[t(s.current)];!s.done&&u<1e4;)s=n(u),c.push(t(s.done?s.target:s.current)),void 0===o&&s.hasReachedTarget&&(o=u),u+=10;var h=u-10;return 1===c.length&&c.push(s.current),{keyframes:c,duration:h/1e3,overshootDuration:(null!=o?o:h)/1e3}}},1805,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createGeneratorEasing(r(d[1]).glide);e.glide=t},1806,[1797,1798]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={any:0,all:1};e.inView=function(t,o){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c=s.root,u=s.margin,f=s.amount,v=void 0===f?"any":f;if("undefined"==typeof IntersectionObserver)return function(){};var l=r(d[0]).resolveElements(t),b=new WeakMap,h=new IntersectionObserver(function(n){n.forEach(function(n){var t=b.get(n.target);if(n.isIntersecting!==Boolean(t))if(n.isIntersecting){var s=o(n);r(d[1]).isFunction(s)?b.set(n.target,s):h.unobserve(n.target)}else t&&(t(n),b.delete(n.target))})},{root:c,rootMargin:u,threshold:"number"==typeof v?v:n[v]});return l.forEach(function(n){return h.observe(n)}),function(){return h.disconnect()}}},1807,[1748,1752]); +__d(function(g,r,i,_a,m,e,d){'use strict';e.resize=function(n,t){return r(d[0]).isFunction(n)?r(d[1]).resizeWindow(n):r(d[2]).resizeElement(n,t)}},1808,[1752,1809,1810]); +__d(function(g,r,i,a,m,e,d){'use strict';var n,t=new Set;e.resizeWindow=function(o){return t.add(o),n||(n=function(){var n={width:window.innerWidth,height:window.innerHeight},o={target:window,size:n,contentSize:n};t.forEach(function(n){return n(o)})},window.addEventListener("resize",n)),function(){t.delete(o),!t.size&&n&&(n=void 0)}}},1809,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var t,n=new WeakMap;function o(t,n){if(n){var o=n[0];return{width:o.inlineSize,height:o.blockSize}}return t instanceof SVGElement&&"getBBox"in t?t.getBBox():{width:t.offsetWidth,height:t.offsetHeight}}function f(t){var f,u=t.target,c=t.contentRect,l=t.borderBoxSize;null===(f=n.get(u))||void 0===f||f.forEach(function(t){t({target:u,contentSize:c,get size(){return o(u,l)}})})}function u(t){t.forEach(f)}e.resizeElement=function(o,f){t||"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(u));var c=r(d[0]).resolveElements(o);return c.forEach(function(o){var u=n.get(o);u||(u=new Set,n.set(o,u)),u.add(f),null==t||t.observe(o)}),function(){c.forEach(function(o){var u=n.get(o);null==u||u.delete(f),(null==u?void 0:u.size)||null==t||t.unobserve(o)})}}},1810,[1748]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=new WeakMap,t=new WeakMap,o=new WeakMap,c=function(n){return n===document.documentElement?window:n};e.scroll=function(s){var v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=v.container,u=void 0===l?document.documentElement:l,f=r(d[0]).__rest(v,["container"]),w=o.get(u);w||(w=new Set,o.set(u,w));var p=r(d[1]).createScrollInfo(),E=r(d[2]).createOnScrollHandler(u,s,p,f);if(w.add(E),!n.has(u)){var z=function(){var n=performance.now();for(var t of w)t.measure();for(var o of w)o.update(n);for(var c of w)c.notify()};n.set(u,z);var L=c(u);window.addEventListener("resize",z,{passive:!0}),u!==document.documentElement&&t.set(u,r(d[3]).resize(u,z)),L.addEventListener("scroll",z,{passive:!0})}var _=n.get(u),k=requestAnimationFrame(_);return function(){var v;"function"!=typeof s&&s.stop(),cancelAnimationFrame(k);var l=o.get(u);if(l&&(l.delete(E),!l.size)){var f=n.get(u);n.delete(u),f&&(c(u).removeEventListener("scroll",f),null===(v=t.get(u))||void 0===v||v(),window.removeEventListener("resize",f))}}}},1811,[1792,1812,1813,1808]); +__d(function(g,r,i,a,m,e,d){'use strict';var t={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function n(n,o,c,l){var s=c[o],f=t[o],h=f.length,u=f.position,L=s.current,p=c.time;s.current=n[`scroll${u}`],s.scrollLength=n[`scroll${h}`]-n[`client${h}`],s.offset.length=0,s.offset[0]=0,s.offset[1]=s.scrollLength,s.progress=r(d[0]).progress(0,s.scrollLength,s.current);var v=l-p;s.velocity=v>50?0:r(d[0]).velocityPerSecond(s.current-L,v)}e.createScrollInfo=function(){return{time:0,x:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0},y:{current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}}},e.updateScrollInfo=function(t,o,c){n(t,"x",o,c),n(t,"y",o,c),o.time=c}},1812,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';function t(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,o=arguments.length>2?arguments[2]:void 0;if(o.x.targetOffset=0,o.y.targetOffset=0,n!==t)for(var f=n;f&&f!=t;)o.x.targetOffset+=f.offsetLeft,o.y.targetOffset+=f.offsetTop,f=f.offsetParent;o.x.targetLength=n===t?n.scrollWidth:n.clientWidth,o.y.targetLength=n===t?n.scrollHeight:n.clientHeight,o.x.containerLength=t.clientWidth,o.y.containerLength=t.clientHeight}function n(t,n){return t.pause(),t.forEachNative(function(t,n){var o,f,u=n.easing;if(t.updateDuration)u||(t.easing=r(d[2]).noopReturn),t.updateDuration(1);else{var c={duration:1e3};u||(c.easing="linear"),null===(f=null===(o=t.effect)||void 0===o?void 0:o.updateTiming)||void 0===f||f.call(o,c)}}),function(){t.currentTime=n.progress}}e.createOnScrollHandler=function(o,f,u){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=c.axis||"y";return{measure:function(){return t(o,c.target,u)},update:function(t){r(d[0]).updateScrollInfo(o,u,t),(c.offset||c.target)&&r(d[1]).resolveOffsets(o,u,c)},notify:r(d[2]).isFunction(f)?function(){return f(u)}:n(f,u[l])}}},1813,[1812,1814,1752]); +__d(function(g,r,_i,a,m,e,d){'use strict';var t=r(d[0]),i={x:0,y:0};e.resolveOffsets=function(f,o,l){var s=l.offset,h=void 0===s?r(d[1]).ScrollOffset.All:s,n=l.target,c=void 0===n?f:n,v=l.axis,p=void 0===v?"y":v,O="y"===p?"height":"width",u=c!==f?r(d[2]).calcInset(c,f):i,w=c===f?{width:f.scrollWidth,height:f.scrollHeight}:{width:c.clientWidth,height:c.clientHeight},y={width:f.clientWidth,height:f.clientHeight};o[p].offset.length=0;for(var H=!o[p].interpolate,W=h.length,x=0;x2&&void 0!==arguments[2]?arguments[2]:0,o=0;if(void 0!==t[n]&&(n=t[n]),r(d[0]).isString(n)){var u=parseFloat(n);n.endsWith("px")?o=u:n.endsWith("%")?n=u/100:n.endsWith("vw")?o=u/100*document.documentElement.clientWidth:n.endsWith("vh")?o=u/100*document.documentElement.clientHeight:n=u}return r(d[0]).isNumber(n)&&(o=s*n),c+o}},1818,[1752]); +__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]),n={inView:r(d[1]).inView,hover:r(d[2]).hover,press:r(d[3]).press},o=["initial","animate"].concat(t(Object.keys(n)),["exit"]),u=new WeakMap;e.createMotionState=function(){var s,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,v=l?l.getDepth()+1:0,f={initial:!0,animate:!0},h={},p={};for(var b of o)p[b]="string"==typeof c[b]?c[b]:null==l?void 0:l.getContext()[b];var A=!1===c.initial?"animate":"initial",y=r(d[4]).resolveVariant(c[A]||p[A],c.variants)||{},E=r(d[5]).__rest(y,["transition"]),O=Object.assign({},E),w=function(t,n){return function(){f[t]=n,r(d[13]).scheduleAnimation(k)}},j=function(){for(var t in n){var o=n[t].isActive(c),u=h[t];o&&!u?h[t]=n[t].subscribe(s,{enable:w(t,!0),disable:w(t,!1)},c):!o&&u&&(u(),delete h[t])}},k={update:function(t){s&&(c=t,j(),r(d[13]).scheduleAnimation(k))},setActive:function(t,n){s&&(f[t]=n,r(d[13]).scheduleAnimation(k))},animateUpdates:function*(){var n,u,l=E;E={};var v={};for(var h of o)if(f[h]){var p=r(d[4]).resolveVariant(c[h]);if(p)for(var b in p)"transition"!==b&&(E[b]=p[b],v[b]=r(d[6]).getOptions(null!==(u=null!==(n=p.transition)&&void 0!==n?n:c.transition)&&void 0!==u?u:{},b))}var A=new Set([].concat(t(Object.keys(E)),t(Object.keys(l)))),y=[];A.forEach(function(t){var n;void 0===E[t]&&(E[t]=O[t]),r(d[7]).hasChanged(l[t],E[t])&&(null!==(n=O[t])&&void 0!==n||(O[t]=r(d[8]).style.get(s,t)),y.push(r(d[9]).animateStyle(s,t,E[t],v[t],r(d[10]).Animation)))}),yield;var w=y.map(function(t){return t()}).filter(Boolean);if(w.length){var j=E;s.dispatchEvent(r(d[11]).motionEvent("motionstart",j)),Promise.all(w.map(function(t){return t.finished})).then(function(){s.dispatchEvent(r(d[11]).motionEvent("motioncomplete",j))}).catch(r(d[12]).noop)}},getDepth:function(){return v},getTarget:function(){return E},getOptions:function(){return c},getContext:function(){return p},mount:function(t){return r(d[14]).invariant(Boolean(t),"Animation state must be mounted with valid Element"),s=t,u.set(s,k),j(),function(){for(var t in u.delete(s),r(d[13]).unscheduleAnimation(k),h)h[t]()}},isMounted:function(){return Boolean(s)}};return k},e.mountedStates=u},1819,[32,1820,1822,1823,1824,1792,1750,1826,1785,1777,1771,1821,1752,1827,1749]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={isActive:function(n){return Boolean(n.inView)},subscribe:function(n,t,c){var o=t.enable,s=t.disable,u=c.inViewOptions,v=void 0===u?{}:u,w=v.once,f=r(d[0]).__rest(v,["once"]);return r(d[1]).inView(n,function(t){if(o(),r(d[2]).dispatchViewEvent(n,"viewenter",t),!w)return function(t){s(),r(d[2]).dispatchViewEvent(n,"viewleave",t)}},f)}};e.inView=n},1820,[1792,1807,1821]); +__d(function(g,r,i,a,m,e,d){'use strict';e.dispatchPointerEvent=function(t,n,o){t.dispatchEvent(new CustomEvent(n,{detail:{originalEvent:o}}))},e.dispatchViewEvent=function(t,n,o){t.dispatchEvent(new CustomEvent(n,{detail:{originalEntry:o}}))},e.motionEvent=function(t,n){return new CustomEvent(t,{detail:{target:n}})}},1821,[]); +__d(function(g,r,i,a,m,e,d){'use strict';var n=function(n,t,o){return function(v){v.pointerType&&"mouse"!==v.pointerType||(o(),r(d[0]).dispatchPointerEvent(n,t,v))}},t={isActive:function(n){return Boolean(n.hover)},subscribe:function(t,o){var v=o.enable,s=o.disable,u=n(t,"hoverstart",v),c=n(t,"hoverend",s);return t.addEventListener("pointerenter",u),t.addEventListener("pointerleave",c),function(){t.removeEventListener("pointerenter",u),t.removeEventListener("pointerleave",c)}}};e.hover=t},1822,[1821]); +__d(function(g,r,i,a,m,e,d){'use strict';var n={isActive:function(n){return Boolean(n.press)},subscribe:function(n,t){var o=t.enable,s=t.disable,p=function(t){s(),r(d[0]).dispatchPointerEvent(n,"pressend",t),window.removeEventListener("pointerup",p)},u=function(t){o(),r(d[0]).dispatchPointerEvent(n,"pressstart",t),window.addEventListener("pointerup",p)};return n.addEventListener("pointerdown",u),function(){n.removeEventListener("pointerdown",u),window.removeEventListener("pointerup",p)}}};e.press=n},1823,[1821]); +__d(function(g,r,i,a,m,e,d){'use strict';e.resolveVariant=function(n,t){return r(d[0]).isVariant(n)?n:n&&t?t[n]:void 0}},1824,[1825]); +__d(function(g,r,i,a,m,e,d){'use strict';e.isVariant=function(t){return"object"==typeof t}},1825,[]); +__d(function(g,r,_i,_a,m,e,d){'use strict';function n(n,t){var a=t.length;if(a!==n.length)return!1;for(var f=0;f0&&void 0!==arguments[0]?arguments[0]:{},c=r(d[0]).createStyles(t),o="";for(var u in c)o+=u.startsWith("--")?u:n(u),o+=`: ${c[u]}; `;return o}},1829,[1828]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1830,[1831]); __d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ifDefined=void 0; /** * @license * Copyright 2018 Google LLC * SPDX-License-Identifier: BSD-3-Clause */ -e.ifDefined=function(n){return null!=n?n:r(d[0]).nothing}},1256,[1151]); -__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]);function t(n,t){var u=g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`];if(null!=u){var l=String(n);if(null!=t){var c=t[l];if(null!=c)return u(c)}}}function u(n,u){var l=t(n,u),c=function(){return r.importAll(n)};return null!=l?l.then(c):c()}function l(n,t,u){return c.apply(this,arguments)}function c(){return(c=n(function*(n,t,l){return u(n,t)})).apply(this,arguments)}l.unstable_importMaybeSync=function(n,t){return u(n,t)},l.prefetch=function(n,u,l){var c;null==(c=t(n,u))||c.then(function(){},function(){})},m.exports=l},1257,[367]); -__d(function(_g,_r1,_i3,_a2,_m,_e2,_d){"use strict";var e=_r1(_d[0]),t=_r1(_d[1]),i=_r1(_d[2]),n=_r1(_d[3]),r=_r1(_d[4]),s=_r1(_d[5]);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(_e2,"__esModule",{value:!0});var o=a(_r1(_d[6])),c=a(_r1(_d[7])),u=a(_r1(_d[8])),l="error",p="wc@2:universal_provider:",h="https://rpc.walletconnect.org/v1/",f="generic",d=`${h}bundler`,v="call_status",y="default_chain_changed";function m(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function g(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var P="[object String]",w="[object Number]",O="[object Boolean]",j="[object Arguments]";function C(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function I(e,t){return k(e,void 0,e,new Map,t)}function k(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=null==r?void 0:r(e,t,i,n);if(null!=a)return a;if(m(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){var o=new Array(e.length);n.set(e,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=[].concat(r(Object.keys(t)),r(g(t))),o=0;o1?t-1:0),n=1;n1?t-1:0),n=1;n0}))}function Z(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B(Y(ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),Y(ee(e)))}function ee(e){var t,i,n,r,a,o={};if(!_r1(_d[9]).isValidObject(e))return o;for(var c of Object.entries(e)){var u=s(c,2),l=u[0],p=u[1],h=_r1(_d[9]).isCaipNamespace(l)?[l]:p.chains,f=p.methods||[],d=p.events||[],v=p.rpcMap||{},y=_r1(_d[9]).parseNamespaceKey(l);o[y]=W(L(L({},o[y]),p),{chains:_r1(_d[9]).mergeArrays(h,null==(t=o[y])?void 0:t.chains),methods:_r1(_d[9]).mergeArrays(f,null==(i=o[y])?void 0:i.methods),events:_r1(_d[9]).mergeArrays(d,null==(n=o[y])?void 0:n.events)}),(_r1(_d[9]).isValidObject(v)||_r1(_d[9]).isValidObject((null==(r=o[y])?void 0:r.rpcMap)||{}))&&(o[y].rpcMap=L(L({},v),null==(a=o[y])?void 0:a.rpcMap))}return o}function te(e){return e.includes(":")?e.split(":")[2]:e}function ie(e){var t={};for(var i of Object.entries(e)){var n=s(i,2),r=n[0],a=n[1],o=a.methods||[],c=a.events||[],u=a.accounts||[],l=_r1(_d[9]).isCaipNamespace(r)?[r]:a.chains?a.chains:Q(a.accounts);t[r]={chains:l,methods:o,events:c,accounts:u}}return t}function ne(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):(e=e.includes(":")?e.split(":")[1]:e,isNaN(Number(e))?e:Number(e))}function re(e){try{var t=JSON.parse(e);return"object"==typeof t&&null!==t&&!Array.isArray(t)}catch(e){return!1}}var se,ae={},oe=function(e){return ae[e]},ce=function(e,t){ae[e]=t},ue=Object.defineProperty,le=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,fe=function(e,t,i){return t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},de=function(e,t){for(var i in t||(t={}))pe.call(t,i)&&fe(e,i,t[i]);if(le)for(var i of le(t))he.call(t,i)&&fe(e,i,t[i]);return e},ve="eip155",ye=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],me=function(e){return e&&e.startsWith("0x")?BigInt(e).toString(10):e},ge=function(e){return e&&e.startsWith("0x")?e:`0x${BigInt(e).toString(16)}`},be=function(e){return Object.keys(e).filter(function(e){return ye.includes(e)}).reduce(function(t,i){return t[i]=Pe(e[i]),t},{})},Pe=function(e){return"string"==typeof e&&re(e)?JSON.parse(e):e},we=function(e,t,i){var n=e.sessionProperties,r=void 0===n?{}:n,a=e.scopedProperties,o=void 0===a?{}:a,c={};if(_r1(_d[9]).isValidObject(o)||_r1(_d[9]).isValidObject(r)){var u=be(r);for(var l of i){var p=me(l);if(p){c[ge(p)]=u;var h=null==o?void 0:o[`${ve}:${p}`];if(h){var f=null==h?void 0:h[`${ve}:${p}:${t}`];c[ge(p)]=de(de({},c[ge(p)]),be(f||h))}}}for(var d of Object.entries(c)){var v=s(d,2),y=v[0],m=v[1];0===Object.keys(m).length&&delete c[y]}return Object.keys(c).length>0?c:void 0}},Oe=Object.defineProperty,je=function(e,t,i){return t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Ce=function(e,t,i){return je(e,"symbol"!=typeof t?t+"":t,i)},Ie=(function(){function e(t){i(this,e),Ce(this,"storage"),this.storage=t}return n(e,[{key:"getItem",value:(a=t(function*(e){return yield this.storage.getItem(e)}),function(e){return a.apply(this,arguments)})},{key:"setItem",value:(s=t(function*(e,t){return yield this.storage.setItem(e,t)}),function(e,t){return s.apply(this,arguments)})},{key:"removeItem",value:(r=t(function*(e){return yield this.storage.removeItem(e)}),function(e){return r.apply(this,arguments)})}],[{key:"getStorage",value:function(t){return se||(se=new e(t)),se}}]);var r,s,a})(),ke=Object.defineProperty,Se=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,qe=function(e,t,i){return t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},xe=function(e,t){for(var i in t||(t={}))Ee.call(t,i)&&qe(e,i,t[i]);if($e)for(var i of $e(t))Ne.call(t,i)&&qe(e,i,t[i]);return e},De=function(e,t){return Se(e,Ae(t))};function _e(e,t){return Fe.apply(this,arguments)}function Fe(){return(Fe=t(function*(e,t){var i=_r1(_d[9]).parseChainId(e.result.capabilities.caip345.caip2),n=e.result.capabilities.caip345.transactionHashes,r=yield Promise.allSettled(n.map(function(e){return Re(i.reference,e,t)})),s=r.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value}).filter(function(e){return e});r.filter(function(e){return"rejected"===e.status}).forEach(function(e){return console.warn("Failed to fetch transaction receipt:",e.reason)});var a,o=!s.length||s.some(function(e){return!e}),c=s.every(function(e){return"0x1"===(null==e?void 0:e.status)}),u=s.every(function(e){return"0x0"===(null==e?void 0:e.status)}),l=s.some(function(e){return"0x0"===(null==e?void 0:e.status)});return o?a=100:c?a=200:u?a=500:l&&(a=600),{id:e.result.id,version:e.request.version,atomic:e.request.atomicRequired,chainId:e.request.chainId,capabilities:e.result.capabilities,receipts:s,status:a}})).apply(this,arguments)}function Re(e,t,i){return He.apply(this,arguments)}function He(){return(He=t(function*(e,t,i){return yield i(parseInt(e)).request(_r1(_d[10]).formatJsonRpcRequest("eth_getTransactionReceipt",[t]))})).apply(this,arguments)}function Be(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=t(function*(t){var i=t.sendCalls,n=t.storage,r=yield n.getItem(v);yield n.setItem(v,De(xe({},r),e({},i.result.id,{request:i.request,result:i.result,expiry:_r1(_d[9]).calcExpiry(86400)})))})).apply(this,arguments)}function Me(e){return Te.apply(this,arguments)}function Te(){return(Te=t(function*(e){var t=e.resultId,i=e.storage,n=yield i.getItem(v);if(n){for(var r in delete n[t],yield i.setItem(v,n),n)_r1(_d[9]).isExpired(n[r].expiry)&&delete n[r];yield i.setItem(v,n)}})).apply(this,arguments)}function Ve(e){return ze.apply(this,arguments)}function ze(){return(ze=t(function*(e){var t=e.resultId,i=e.storage,n=yield i.getItem(v),r=null==n?void 0:n[t];if(r&&!_r1(_d[9]).isExpired(r.expiry))return r;yield Me({resultId:t,storage:i})})).apply(this,arguments)}var Je=Object.defineProperty,Ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Xe=function(e,t,i){return t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Ye=function(e,t){for(var i in t||(t={}))Ge.call(t,i)&&Xe(e,i,t[i]);if(We)for(var i of We(t))Qe.call(t,i)&&Xe(e,i,t[i]);return e},Ze=function(e,t){return Ke(e,Le(t))},et=function(e,t,i){return Xe(e,"symbol"!=typeof t?t+"":t,i)},tt=(function(){return n(function e(t){i(this,e),et(this,"name","eip155"),et(this,"client"),et(this,"chainId"),et(this,"namespace"),et(this,"httpProviders"),et(this,"events"),et(this,"storage"),this.namespace=t.namespace,this.events=oe("events"),this.client=oe("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=Ie.getStorage(this.client.core.storage)},[{key:"request",value:(l=t(function*(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return yield this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return yield this.getCapabilities(e);case"wallet_getCallsStatus":return yield this.getCallStatus(e);case"wallet_sendCalls":return yield this.sendCalls(e)}return this.namespace.methods.includes(e.request.method)?yield this.client.request(e):this.getHttpProvider().request(e.request)}),function(e){return l.apply(this,arguments)})},{key:"updateNamespace",value:function(e){this.namespace=Object.assign(this.namespace,e)}},{key:"setDefaultChain",value:function(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t);var i=this.chainId;this.chainId=parseInt(e),this.events.emit(y,{currentCaipChainId:`${this.name}:${e}`,previousCaipChainId:`${this.name}:${i}`})}},{key:"requestAccounts",value:function(){return this.getAccounts()}},{key:"getDefaultChain",value:function(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}},{key:"createHttpProvider",value:function(e,t){var i=t||G(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!i)throw new Error(`No RPC url provided for chainId: ${e}`);return new(_r1(_d[11]).JsonRpcProvider)(new(_r1(_d[7]).HttpConnection)(i,oe("disableProviderPing")))}},{key:"setHttpProvider",value:function(e,t){var i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}},{key:"createHttpProviders",value:function(){var e=this,t={};return this.namespace.chains.forEach(function(i){var n,r,s=parseInt((r=i).includes(":")?r.split(":")[1]:r);t[s]=e.createHttpProvider(s,null==(n=e.namespace.rpcMap)?void 0:n[i])}),t}},{key:"getAccounts",value:function(){var e=this,t=this.namespace.accounts;return t?r(new Set(t.filter(function(t){return t.split(":")[1]===e.chainId.toString()}).map(function(e){return e.split(":")[2]}))):[]}},{key:"getHttpProvider",value:function(t){var i=t||this.chainId;return this.httpProviders[i]||(this.httpProviders=Ze(Ye({},this.httpProviders),e({},i,this.createHttpProvider(i))),this.httpProviders[i])}},{key:"handleSwitchChain",value:(u=t(function*(e){var t,i,n=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;var r=parseInt(n,16);if(this.isChainApproved(r))this.setDefaultChain(`${r}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${r}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);yield this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:n}]},chainId:null==(i=this.namespace.chains)?void 0:i[0]}),this.setDefaultChain(`${r}`)}return null}),function(e){return u.apply(this,arguments)})},{key:"isChainApproved",value:function(e){return this.namespace.chains.includes(`${this.name}:${e}`)}},{key:"getCapabilities",value:(c=t(function*(t){var i,n,r,s,a,o=null==(n=null==(i=t.request)?void 0:i.params)?void 0:n[0],c=(null==(s=null==(r=t.request)?void 0:r.params)?void 0:s[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");var u,l=this.client.session.get(t.topic),p=(null==(a=null==l?void 0:l.sessionProperties)?void 0:a.capabilities)||{},h=`${o}${c.join(",")}`,f=null==p?void 0:p[h];if(f)return f;try{u=we(l,o,c)}catch(e){console.warn("Failed to extract capabilities from session",e)}if(u)return u;var d=yield this.client.request(t);try{yield this.client.session.update(t.topic,{sessionProperties:Ze(Ye({},l.sessionProperties||{}),{capabilities:Ze(Ye({},p||{}),e({},h,d))})})}catch(e){console.warn("Failed to update session with capabilities",e)}return d}),function(e){return c.apply(this,arguments)})},{key:"getCallStatus",value:(o=t(function*(e){var t,i,n,r=this.client.session.get(e.topic),s=null==(t=r.sessionProperties)?void 0:t.bundler_name;if(s){var a=this.getBundlerUrl(e.chainId,s);try{return yield this.getUserOperationReceipt(a,e)}catch(e){console.warn("Failed to fetch call status from bundler",e,a)}}var o=null==(i=r.sessionProperties)?void 0:i.bundler_url;if(o)try{return yield this.getUserOperationReceipt(o,e)}catch(a){console.warn("Failed to fetch call status from custom bundler",a,o)}var c=yield Ve({resultId:null==(n=e.request.params)?void 0:n[0],storage:this.storage});if(c)try{return yield _e(c,this.getHttpProvider.bind(this))}catch(a){console.warn("Failed to fetch call status from stored send calls",a,c)}if(this.namespace.methods.includes(e.request.method))return yield this.client.request(e);throw new Error("Fetching call status not approved by the wallet.")}),function(e){return o.apply(this,arguments)})},{key:"getUserOperationReceipt",value:(a=t(function*(e,t){var i,n=new URL(e),r=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_r1(_d[10]).formatJsonRpcRequest("eth_getUserOperationReceipt",[null==(i=t.request.params)?void 0:i[0]]))});if(!r.ok)throw new Error(`Failed to fetch user operation receipt - ${r.status}`);return yield r.json()}),function(e,t){return a.apply(this,arguments)})},{key:"getBundlerUrl",value:function(e,t){return`${d}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${t}`}},{key:"sendCalls",value:(s=t(function*(e){var t,i,n,r=yield this.client.request(e),s=null==(t=e.request.params)?void 0:t[0],a=null==r?void 0:r.id,o=(null==r?void 0:r.capabilities)||{},c=null==(i=null==o?void 0:o.caip345)?void 0:i.caip2,u=null==(n=null==o?void 0:o.caip345)?void 0:n.transactionHashes;return!a||!c||!(null!=u&&u.length)||(yield Be({sendCalls:{request:s,result:r},storage:this.storage})),r}),function(e){return s.apply(this,arguments)})}]);var s,a,o,c,u,l})(),it=Object.defineProperty,nt=function(e,t,i){return t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},rt=function(e,t,i){return nt(e,"symbol"!=typeof t?t+"":t,i)},st=(function(){return n(function e(t){i(this,e),rt(this,"name",f),rt(this,"client"),rt(this,"httpProviders"),rt(this,"events"),rt(this,"namespace"),rt(this,"chainId"),this.namespace=t.namespace,this.events=oe("events"),this.client=oe("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()},[{key:"updateNamespace",value:function(e){this.namespace.chains=r(new Set((this.namespace.chains||[]).concat(e.chains||[]))),this.namespace.accounts=r(new Set((this.namespace.accounts||[]).concat(e.accounts||[]))),this.namespace.methods=r(new Set((this.namespace.methods||[]).concat(e.methods||[]))),this.namespace.events=r(new Set((this.namespace.events||[]).concat(e.events||[]))),this.httpProviders=this.createHttpProviders()}},{key:"requestAccounts",value:function(){return this.getAccounts()}},{key:"request",value:function(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}},{key:"setDefaultChain",value:function(e,t){this.httpProviders[e]||this.setHttpProvider(e,t);var i=this.chainId;this.chainId=e,this.events.emit(y,{currentCaipChainId:`${this.name}:${e}`,previousCaipChainId:`${this.name}:${i}`})}},{key:"getDefaultChain",value:function(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}},{key:"getNamespaceName",value:function(){var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return _r1(_d[9]).parseChainId(e).namespace}},{key:"getAccounts",value:function(){var e=this,t=this.namespace.accounts;return t?r(new Set(t.filter(function(t){return t.split(":")[1]===e.chainId.toString()}).map(function(e){return e.split(":")[2]}))):[]}},{key:"createHttpProviders",value:function(){var e,t,i=this,n={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(function(e){var t,r,s=_r1(_d[9]).parseChainId(e),a=null==(r=null==(t=i.namespace)?void 0:t.rpcMap)?void 0:r[`${s.namespace}:${s.reference}`];n[s.reference]=i.createHttpProvider(e,a)}),n}},{key:"getHttpProvider",value:function(e){var t=_r1(_d[9]).parseChainId(e).reference,i=this.httpProviders[t];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return i}},{key:"setHttpProvider",value:function(e,t){var i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}},{key:"createHttpProvider",value:function(e,t){var i=t||G(e,this.namespace,this.client.core.projectId);if(!i)throw new Error(`No RPC url provided for chainId: ${e}`);return new(_r1(_d[11]).JsonRpcProvider)(new c.default(i,oe("disableProviderPing")))}}])})(),at=Object.defineProperty,ot=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ht=function(e,t,i){return t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},ft=function(e,t){for(var i in t||(t={}))lt.call(t,i)&&ht(e,i,t[i]);if(ut)for(var i of ut(t))pt.call(t,i)&&ht(e,i,t[i]);return e},dt=function(e,t){return ot(e,ct(t))},vt=function(e,t,i){return ht(e,"symbol"!=typeof t?t+"":t,i)},yt=(function(){function e(t){i(this,e),vt(this,"client"),vt(this,"namespaces"),vt(this,"optionalNamespaces"),vt(this,"sessionProperties"),vt(this,"scopedProperties"),vt(this,"events",new u.default),vt(this,"rpcProviders",{}),vt(this,"session"),vt(this,"providerOpts"),vt(this,"logger"),vt(this,"uri"),vt(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(null==t?void 0:t.logger)<"u"&&"string"!=typeof(null==t?void 0:t.logger)?t.logger:_r1(_d[12]).pino(_r1(_d[12]).getDefaultLoggerOptions({level:(null==t?void 0:t.logger)||l})),this.disableProviderPing=(null==t?void 0:t.disableProviderPing)||!1}return n(e,[{key:"request",value:($=t(function*(e,t,i){var n=this.validateChain(t),r=s(n,2),a=r[0],o=r[1];if(!this.session)throw new Error("Please call connect() before request()");return yield this.getProvider(a).request({request:ft({},e),chainId:`${a}:${o}`,topic:this.session.topic,expiry:i})}),function(e,t,i){return $.apply(this,arguments)})},{key:"sendAsync",value:function(e,t,i,n){var r=(new Date).getTime();this.request(e,i,n).then(function(e){return t(null,_r1(_d[10]).formatJsonRpcResult(r,e))}).catch(function(e){return t(e,void 0)})}},{key:"enable",value:(A=t(function*(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||(yield this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties})),yield this.requestAccounts()}),function(){return A.apply(this,arguments)})},{key:"disconnect",value:(S=t(function*(){var e;if(!this.session)throw new Error("Please call connect() before enable()");yield this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:_r1(_d[9]).getSdkError("USER_DISCONNECTED")}),yield this.cleanup()}),function(){return S.apply(this,arguments)})},{key:"connect",value:(k=t(function*(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),this.cleanupPendingPairings(),!e.skipPairing)return yield this.pair(e.pairingTopic)}),function(e){return k.apply(this,arguments)})},{key:"authenticate",value:(I=t(function*(e,t){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(e),yield this.cleanupPendingPairings();var i=yield this.client.authenticate(e,t),n=i.uri,r=i.response;n&&(this.uri=n,this.events.emit("display_uri",n));var s=yield r();if(this.session=s.session,this.session){var a=ie(this.session.namespaces);this.namespaces=Z(this.namespaces,a),yield this.persist("namespaces",this.namespaces),this.onConnect()}return s}),function(e,t){return I.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"isWalletConnect",get:function(){return!0}},{key:"pair",value:(C=t(function*(e){var t=yield this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),i=t.uri,n=t.approval;i&&(this.uri=i,this.events.emit("display_uri",i));var r=yield n();this.session=r;var s=ie(r.namespaces);return this.namespaces=Z(this.namespaces,s),yield this.persist("namespaces",this.namespaces),yield this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}),function(e){return C.apply(this,arguments)})},{key:"setDefaultChain",value:function(e,t){try{if(!this.session)return;var i=this.validateChain(e),n=s(i,2),r=n[0],a=n[1];this.getProvider(r).setDefaultChain(a,t)}catch(r){if(!/Please call connect/.test(r.message))throw r}}},{key:"cleanupPendingPairings",value:(j=t(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{this.logger.info("Cleaning up inactive pairings...");var t=this.client.pairing.getAll();if(!_r1(_d[9]).isValidArray(t))return;for(var i of t)e.deletePairings?this.client.core.expirer.set(i.topic,0):yield this.client.core.relayer.subscriber.unsubscribe(i.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}catch(t){this.logger.warn("Failed to cleanup pending pairings",t)}}),function(){return j.apply(this,arguments)})},{key:"abortPairingAttempt",value:function(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}},{key:"checkStorage",value:(O=t(function*(){this.namespaces=(yield this.getFromStore("namespaces"))||{},this.optionalNamespaces=(yield this.getFromStore("optionalNamespaces"))||{},this.session&&this.createProviders()}),function(){return O.apply(this,arguments)})},{key:"initialize",value:(w=t(function*(){this.logger.trace("Initialized"),yield this.createClient(),yield this.checkStorage(),this.registerEventListeners()}),function(){return w.apply(this,arguments)})},{key:"createClient",value:(P=t(function*(){var e,t;if(this.client=this.providerOpts.client||(yield o.default.init({core:this.providerOpts.core,logger:this.providerOpts.logger||l,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.org",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled})),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(i){throw this.logger.error("Failed to get session",i),new Error(`The provided session: ${null==(t=null==(e=this.providerOpts)?void 0:e.session)?void 0:t.topic} doesn't exist in the Sign client`)}else{var i=this.client.session.getAll();this.session=i[0]}this.logger.trace("SignClient Initialized")}),function(){return P.apply(this,arguments)})},{key:"createProviders",value:function(){var e=this;if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");var t=r(new Set(Object.keys(this.session.namespaces).map(function(e){return _r1(_d[9]).parseNamespaceKey(e)})));ce("client",this.client),ce("events",this.events),ce("disableProviderPing",this.disableProviderPing),t.forEach(function(t){if(e.session){var i=X(t,e.session);if(0!==(null==i?void 0:i.length)){var n=Q(i),r=Z(e.namespaces,e.optionalNamespaces),s=dt(ft({},r[t]),{accounts:i,chains:n});if("eip155"===t)e.rpcProviders[t]=new tt({namespace:s});else e.rpcProviders[t]=new st({namespace:s})}}})}},{key:"registerEventListeners",value:function(){var e=this;if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",function(t){var i;t.topic===(null==(i=e.session)?void 0:i.topic)&&e.events.emit("session_ping",t)}),this.client.on("session_event",function(t){var i,n=t.params;if(t.topic===(null==(i=e.session)?void 0:i.topic)){var r=n.event;if("accountsChanged"===r.name){var s=r.data;s&&_r1(_d[9]).isValidArray(s)&&e.events.emit("accountsChanged",s.map(te))}else if("chainChanged"===r.name){var a=n.chainId,o=n.event.data,c=_r1(_d[9]).parseNamespaceKey(a),u=ne(a)!==ne(o)?`${c}:${ne(o)}`:a;e.onChainChanged({currentCaipChainId:u})}else e.events.emit(r.name,r.data);e.events.emit("session_event",t)}}),this.client.on("session_update",function(t){var i,n,r=t.topic,s=t.params;if(r===(null==(i=e.session)?void 0:i.topic)){var a=s.namespaces,o=null==(n=e.client)?void 0:n.session.get(r);e.session=dt(ft({},o),{namespaces:a}),e.onSessionUpdate(),e.events.emit("session_update",{topic:r,params:s})}}),this.client.on("session_delete",(function(){var i=t(function*(t){var i;t.topic===(null==(i=e.session)?void 0:i.topic)&&(yield e.cleanup(),e.events.emit("session_delete",t),e.events.emit("disconnect",dt(ft({},_r1(_d[9]).getSdkError("USER_DISCONNECTED")),{data:t.topic})))});return function(e){return i.apply(this,arguments)}})()),this.on(y,function(t){e.onChainChanged(dt(ft({},t),{internal:!0}))})}},{key:"getProvider",value:function(e){return this.rpcProviders[e]||this.rpcProviders[f]}},{key:"onSessionUpdate",value:function(){var e=this;Object.keys(this.rpcProviders).forEach(function(t){var i;e.getProvider(t).updateNamespace(null==(i=e.session)?void 0:i.namespaces[t])})}},{key:"setNamespaces",value:function(e){var t=e.namespaces,i=void 0===t?{}:t,n=e.optionalNamespaces,r=void 0===n?{}:n,s=e.sessionProperties,a=e.scopedProperties;this.optionalNamespaces=Z(i,r),this.sessionProperties=s,this.scopedProperties=a}},{key:"validateChain",value:function(e){var t=(null==e?void 0:e.split(":"))||["",""],i=s(t,2),n=i[0],r=i[1];if(!this.namespaces||!Object.keys(this.namespaces).length)return[n,r];if(n&&!Object.keys(this.namespaces||{}).map(function(e){return _r1(_d[9]).parseNamespaceKey(e)}).includes(n))throw new Error(`Namespace '${n}' is not configured. Please call connect() first with namespace config.`);if(n&&r)return[n,r];var a=_r1(_d[9]).parseNamespaceKey(Object.keys(this.namespaces)[0]);return[a,this.rpcProviders[a].getDefaultChain()]}},{key:"requestAccounts",value:(b=t(function*(){var e=this.validateChain(),t=s(e,1)[0];return yield this.getProvider(t).requestAccounts()}),function(){return b.apply(this,arguments)})},{key:"onChainChanged",value:(g=t(function*(e){var t=e.currentCaipChainId,i=e.previousCaipChainId,n=e.internal,r=void 0!==n&&n;if(this.namespaces){var a=this.validateChain(t),o=s(a,2),c=o[0],u=o[1];u&&(this.updateNamespaceChain(c,u),r?(this.events.emit("chainChanged",u),this.emitAccountsChangedOnChainChange({namespace:c,currentCaipChainId:t,previousCaipChainId:i})):this.getProvider(c).setDefaultChain(u),yield this.persist("namespaces",this.namespaces))}}),function(e){return g.apply(this,arguments)})},{key:"emitAccountsChangedOnChainChange",value:function(e){var t,i,n=e.namespace,r=e.currentCaipChainId,s=e.previousCaipChainId;try{if(s===r)return;var a=null==(i=null==(t=this.session)?void 0:t.namespaces[n])?void 0:i.accounts;if(!a)return;var o=a.filter(function(e){return e.includes(`${r}:`)}).map(te);if(!_r1(_d[9]).isValidArray(o))return;this.events.emit("accountsChanged",o)}catch(a){this.logger.warn("Failed to emit accountsChanged on chain change",a)}}},{key:"updateNamespaceChain",value:function(e,t){if(this.namespaces){var i=this.namespaces[e]?e:`${e}:${t}`,n={chains:[],methods:[],events:[],defaultChain:t};this.namespaces[i]?this.namespaces[i]&&(this.namespaces[i].defaultChain=t):this.namespaces[i]=n}}},{key:"onConnect",value:function(){this.createProviders(),this.events.emit("connect",{session:this.session})}},{key:"cleanup",value:(m=t(function*(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,yield this.deleteFromStore("namespaces"),yield this.deleteFromStore("optionalNamespaces"),yield this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),yield this.cleanupStorage()}),function(){return m.apply(this,arguments)})},{key:"persist",value:(v=t(function*(e,t){var i,n=(null==(i=this.session)?void 0:i.topic)||"";yield this.client.core.storage.setItem(`${p}/${e}${n}`,t)}),function(e,t){return v.apply(this,arguments)})},{key:"getFromStore",value:(d=t(function*(e){var t,i=(null==(t=this.session)?void 0:t.topic)||"";return yield this.client.core.storage.getItem(`${p}/${e}${i}`)}),function(e){return d.apply(this,arguments)})},{key:"deleteFromStore",value:(h=t(function*(e){var t,i=(null==(t=this.session)?void 0:t.topic)||"";yield this.client.core.storage.removeItem(`${p}/${e}${i}`)}),function(e){return h.apply(this,arguments)})},{key:"cleanupStorage",value:(c=t(function*(){var e;try{if((null==(e=this.client)?void 0:e.session.length)>0)return;var t=yield this.client.core.storage.getKeys();for(var i of t)i.startsWith(p)&&(yield this.client.core.storage.removeItem(i))}catch(t){this.logger.warn("Failed to cleanup storage",t)}}),function(){return c.apply(this,arguments)})}],[{key:"init",value:(a=t(function*(t){var i=new e(t);return yield i.initialize(),i}),function(e){return a.apply(this,arguments)})}]);var a,c,h,d,v,m,g,b,P,w,O,j,C,I,k,S,A,$})(),mt=yt;_e2.UniversalProvider=mt,_e2.default=yt},1258,[18,367,3,4,32,19,1259,1291,1069,809,1270,1290,1283]); -__d(function(_g4,r,_i2,_a,_m,_e2,d){"use strict";var e=r(d[0]),t=r(d[1]),i=r(d[2]),n=r(d[3]),s=r(d[4]),o=r(d[5]),a=r(d[6]),c=r(d[7]),l=r(d[8]);function p(e,t,i){return t=c(t),a(e,u()?Reflect.construct(t,i||[],c(e).constructor):t.apply(e,i))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}Object.defineProperty(_e2,"__esModule",{value:!0});var g,y=(g=r(d[9]))&&"object"==typeof g&&"default"in g?g:{default:g},f="wc",h="client",v=`${f}@2:${h}:`,E={name:h,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.org"},m="WALLETCONNECT_DEEPLINK_CHOICE",_="proposal",S="Proposal expired",R="session",I="engine",T={wc_sessionPropose:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1104},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1106},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1112},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1114},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:r(d[10]).ONE_HOUR,prompt:!0,tag:1116},res:{ttl:r(d[10]).ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1119}}},N={min:r(d[10]).FIVE_MINUTES,max:r(d[10]).SEVEN_DAYS},w={idle:"IDLE",active:"ACTIVE"},P={eth_sendTransaction:{key:""},eth_sendRawTransaction:{key:""},wallet_sendCalls:{key:""},solana_signTransaction:{key:"signature"},solana_signAllTransactions:{key:"transactions"},solana_signAndSendTransaction:{key:"signature"},sui_signAndExecuteTransaction:{key:"digest"},sui_signTransaction:{key:""},hedera_signAndExecuteTransaction:{key:"transactionId"},hedera_executeTransaction:{key:"transactionId"},near_signTransaction:{key:""},near_signTransactions:{key:""},tron_signTransaction:{key:"txID"},xrpl_signTransaction:{key:""},xrpl_signTransactionFor:{key:""},algo_signTxn:{key:""},sendTransfer:{key:"txid"},stacks_stxTransfer:{key:"txId"},polkadot_signTransaction:{key:""},cosmos_signDirect:{key:""}},q="request",O=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],A="auth",V="authKeys",C="pairingTopics",b="requests",x=`wc@1.5:${A}:`,L=`${x}:PUB_KEY`,k=Object.defineProperty,D=Object.defineProperties,M=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,F=function(e,t,i){return t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Y=function(e,t){for(var i in t||(t={}))$.call(t,i)&&F(e,i,t[i]);if(U)for(var i of U(t))K.call(t,i)&&F(e,i,t[i]);return e},j=function(e,t){return D(e,M(t))},G=function(e,t,i){return F(e,"symbol"!=typeof t?t+"":t,i)},H=(function(a){function c(e){var s;return n(this,c),s=p(this,c,[e]),G(o(s),"name",I),G(o(s),"events",new y.default),G(o(s),"initialized",!1),G(o(s),"requestQueue",{state:w.idle,queue:[]}),G(o(s),"sessionRequestQueue",{state:w.idle,queue:[]}),G(o(s),"emittedSessionRequests",new(r(d[11]).LimitedSet)({limit:500})),G(o(s),"requestQueueDelay",r(d[10]).ONE_SECOND),G(o(s),"expectedPairingMethodMap",new Map),G(o(s),"recentlyDeletedMap",new Map),G(o(s),"recentlyDeletedLimit",200),G(o(s),"relayMessageCache",[]),G(o(s),"pendingSessions",new Map),G(o(s),"init",i(function*(){s.initialized||(yield s.cleanup(),s.registerRelayerEvents(),s.registerExpirerEvents(),s.registerPairingEvents(),yield s.registerLinkModeListeners(),s.client.core.pairing.register({methods:Object.keys(T)}),s.initialized=!0,setTimeout(i(function*(){yield s.processPendingMessageEvents(),s.sessionRequestQueue.queue=s.getPendingSessionRequests(),s.processSessionRequestQueue()}),r(d[10]).toMiliseconds(s.requestQueueDelay)))})),G(o(s),"connect",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();var t=j(Y({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});yield s.isValidConnect(t),t.optionalNamespaces=r(d[11]).mergeRequiredAndOptionalNamespaces(t.requiredNamespaces,t.optionalNamespaces),t.requiredNamespaces={};var i,n=t.pairingTopic,o=t.requiredNamespaces,a=t.optionalNamespaces,c=t.sessionProperties,l=t.scopedProperties,p=t.relays,u=n,g=!1;try{if(u){var y=s.client.core.pairing.pairings.get(u);s.client.logger.warn("connect() with existing pairing topic is deprecated and will be removed in the next major release."),g=y.active}}catch(y){throw s.client.logger.error(`connect() -> pairing.get(${u}) failed`),y}if(!u||!g){var f=yield s.client.core.pairing.create({internal:{skipSubscribe:!0}});u=f.topic,i=f.uri}if(!u){var h=r(d[11]).getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`).message;throw new Error(h)}var v=yield s.client.core.crypto.generateKeyPair(),E=T.wc_sessionPropose.req.ttl||r(d[10]).FIVE_MINUTES,m=r(d[11]).calcExpiry(E),_=j(Y(Y({requiredNamespaces:o,optionalNamespaces:a,relays:null!=p?p:[{protocol:r(d[12]).RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:v,metadata:s.client.metadata},expiryTimestamp:m,pairingTopic:u},c&&{sessionProperties:c}),l&&{scopedProperties:l}),{id:r(d[13]).payloadId()}),R=r(d[11]).engineEvent("session_connect",_.id),I=r(d[11]).createDelayedPromise(E,S),N=I.reject,w=I.resolve,P=I.done,q=function(e){e.id===_.id&&(s.client.events.off("proposal_expire",q),s.pendingSessions.delete(_.id),s.events.emit(R,{error:{message:S,code:0}}))};return s.client.events.on("proposal_expire",q),s.events.once(R,function(e){var t=e.error,i=e.session;s.client.events.off("proposal_expire",q),t?N(t):i&&w(i)}),yield s.sendProposeSession({proposal:_,publishOpts:{internal:{throwOnFailedPublish:!0},tvf:{correlationId:_.id}}}),yield s.setProposal(_.id,_),{uri:i,approval:P}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"pair",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{return yield s.client.core.pairing.pair(e)}catch(e){throw s.client.logger.error("pair() failed"),e}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"approve",(function(){var e=i(function*(e){var t,i,n,o=s.client.core.eventClient.createEvent({properties:{topic:null==(t=null==e?void 0:e.id)?void 0:t.toString(),trace:[r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started]}});try{s.isInitialized(),yield s.confirmOnlineStateOrThrow()}catch(e){throw o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.no_internet_connection),e}try{yield s.isValidProposalId(null==e?void 0:e.id)}catch(t){throw s.client.logger.error(`approve() -> proposal.get(${null==e?void 0:e.id}) failed`),o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.proposal_not_found),t}try{yield s.isValidApprove(e)}catch(e){throw s.client.logger.error("approve() -> isValidApprove() failed"),o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.session_approve_namespace_validation_failure),e}var a=e.id,c=e.relayProtocol,l=e.namespaces,p=e.sessionProperties,u=e.scopedProperties,g=e.sessionConfig,y=s.client.proposal.get(a);s.client.core.eventClient.deleteEvent({eventId:o.eventId});var f=y.pairingTopic,h=y.proposer,v=y.requiredNamespaces,E=y.optionalNamespaces,m=null==(i=s.client.core.eventClient)?void 0:i.getEvent({topic:f});m||(m=null==(n=s.client.core.eventClient)?void 0:n.createEvent({type:r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started,properties:{topic:f,trace:[r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started,r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_namespaces_validation_success]}}));var _=yield s.client.core.crypto.generateKeyPair(),S=h.publicKey,R=yield s.client.core.crypto.generateSharedKey(_,S),I=Y(Y(Y({relay:{protocol:null!=c?c:"irn"},namespaces:l,controller:{publicKey:_,metadata:s.client.metadata},expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)},p&&{sessionProperties:p}),u&&{scopedProperties:u}),g&&{sessionConfig:g}),T=r(d[12]).TRANSPORT_TYPES.relay;m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.subscribing_session_topic);try{yield s.client.core.relayer.subscribe(R,{transportType:T,internal:{skipSubscribe:!0}})}catch(e){throw m.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.subscribe_session_topic_failure),e}m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.subscribe_session_topic_success);var N=j(Y({},I),{topic:R,requiredNamespaces:v,optionalNamespaces:E,pairingTopic:f,acknowledged:!1,self:I.controller,peer:{publicKey:h.publicKey,metadata:h.metadata},controller:_,transportType:r(d[12]).TRANSPORT_TYPES.relay});yield s.client.session.set(R,N),m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.store_session);try{yield s.sendApproveSession({sessionTopic:R,proposal:y,pairingProposalResponse:{relay:{protocol:null!=c?c:"irn"},responderPublicKey:_},sessionSettleRequest:I,publishOpts:{internal:{throwOnFailedPublish:!0},tvf:{correlationId:a}}}),m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_publish_success)}catch(e){throw s.client.logger.error(e),s.client.session.delete(R,r(d[11]).getSdkError("USER_DISCONNECTED")),yield s.client.core.relayer.unsubscribe(R),e}return s.client.core.eventClient.deleteEvent({eventId:m.eventId}),yield s.client.core.pairing.updateMetadata({topic:f,metadata:h.metadata}),yield s.deleteProposal(a),yield s.client.core.pairing.activate({topic:f}),yield s.setExpiry(R,r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)),{topic:R,acknowledged:function(){return Promise.resolve(s.client.session.get(R))}}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"reject",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidReject(e)}catch(e){throw s.client.logger.error("reject() -> isValidReject() failed"),e}var t,i=e.id,n=e.reason;try{t=s.client.proposal.get(i).pairingTopic}catch(e){throw s.client.logger.error(`reject() -> proposal.get(${i}) failed`),e}t&&(yield s.sendError({id:i,topic:t,error:n,rpcOpts:T.wc_sessionPropose.reject})),yield s.deleteProposal(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"update",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidUpdate(e)}catch(e){throw s.client.logger.error("update() -> isValidUpdate() failed"),e}var t=e.topic,i=e.namespaces,n=r(d[11]).createDelayedPromise(),o=n.done,a=n.resolve,c=n.reject,l=r(d[13]).payloadId(),p=r(d[13]).getBigIntRpcId().toString(),u=s.client.session.get(t).namespaces;return s.events.once(r(d[11]).engineEvent("session_update",l),function(e){var t=e.error;t?c(t):a()}),yield s.client.session.update(t,{namespaces:i}),yield s.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:l,relayRpcId:p}).catch(function(e){s.client.logger.error(e),s.client.session.update(t,{namespaces:u}),c(e)}),{acknowledged:o}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"extend",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidExtend(e)}catch(e){throw s.client.logger.error("extend() -> isValidExtend() failed"),e}var t=e.topic,i=r(d[13]).payloadId(),n=r(d[11]).createDelayedPromise(),o=n.done,a=n.resolve,c=n.reject;return s.events.once(r(d[11]).engineEvent("session_extend",i),function(e){var t=e.error;t?c(t):a()}),yield s.setExpiry(t,r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)),s.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(function(e){c(e)}),{acknowledged:o}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"request",(function(){var e=i(function*(e){s.isInitialized();try{yield s.isValidRequest(e)}catch(e){throw s.client.logger.error("request() -> isValidRequest() failed"),e}var t=e.chainId,n=e.request,o=e.topic,a=e.expiry,c=void 0===a?T.wc_sessionRequest.req.ttl:a,l=s.client.session.get(o);(null==l?void 0:l.transportType)===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var p=r(d[13]).payloadId(),u=r(d[13]).getBigIntRpcId().toString(),g=r(d[11]).createDelayedPromise(c,"Request expired. Please try again."),y=g.done,f=g.resolve,h=g.reject;s.events.once(r(d[11]).engineEvent("session_request",p),function(e){var t=e.error,i=e.result;t?h(t):f(i)});var v="wc_sessionRequest",E=s.getAppLinkIfEnabled(l.peer.metadata,l.transportType);if(E)return yield s.sendRequest({clientRpcId:p,relayRpcId:u,topic:o,method:v,params:{request:j(Y({},n),{expiryTimestamp:r(d[11]).calcExpiry(c)}),chainId:t},expiry:c,throwOnFailedPublish:!0,appLink:E}).catch(function(e){return h(e)}),s.client.events.emit("session_request_sent",{topic:o,request:n,chainId:t,id:p}),yield y();var _={request:j(Y({},n),{expiryTimestamp:r(d[11]).calcExpiry(c)}),chainId:t};return yield Promise.all([new Promise((function(){var e=i(function*(e){yield s.sendRequest({clientRpcId:p,relayRpcId:u,topic:o,method:v,params:_,expiry:c,throwOnFailedPublish:!0,tvf:s.getTVFParams(p,_)}).catch(function(e){return h(e)}),s.client.events.emit("session_request_sent",{topic:o,request:n,chainId:t,id:p}),e()});return function(t){return e.apply(this,arguments)}})()),new Promise((function(){var e=i(function*(e){var t;if(null==(t=l.sessionConfig)||!t.disableDeepLink){var i=yield r(d[11]).getDeepLink(s.client.core.storage,m);yield r(d[11]).handleDeeplinkRedirect({id:p,topic:o,wcDeepLink:i})}e()});return function(t){return e.apply(this,arguments)}})()),y()]).then(function(e){return e[2]})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"respond",(function(){var e=i(function*(e){s.isInitialized(),yield s.isValidRespond(e);var t=e.topic,i=e.response,n=i.id,o=s.client.session.get(t);o.transportType===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var a=s.getAppLinkIfEnabled(o.peer.metadata,o.transportType);r(d[13]).isJsonRpcResult(i)?yield s.sendResult({id:n,topic:t,result:i.result,throwOnFailedPublish:!0,appLink:a}):r(d[13]).isJsonRpcError(i)&&(yield s.sendError({id:n,topic:t,error:i.error,appLink:a})),s.cleanupAfterResponse(e)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"ping",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidPing(e)}catch(i){throw s.client.logger.error("ping() -> isValidPing() failed"),i}var t=e.topic;if(s.client.session.keys.includes(t)){var i=r(d[13]).payloadId(),n=r(d[13]).getBigIntRpcId().toString(),o=r(d[11]).createDelayedPromise(),a=o.done,c=o.resolve,l=o.reject;s.events.once(r(d[11]).engineEvent("session_ping",i),function(e){var t=e.error;t?l(t):c()}),yield Promise.all([s.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:i,relayRpcId:n}),a()])}else s.client.core.pairing.pairings.keys.includes(t)&&(s.client.logger.warn("ping() on pairing topic is deprecated and will be removed in the next major release."),yield s.client.core.pairing.ping({topic:t}))});return function(t){return e.apply(this,arguments)}})()),G(o(s),"emit",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow(),yield s.isValidEmit(e);var t=e.topic,i=e.event,n=e.chainId,o=r(d[13]).getBigIntRpcId().toString(),a=r(d[13]).payloadId();yield s.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:i,chainId:n},throwOnFailedPublish:!0,relayRpcId:o,clientRpcId:a})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"disconnect",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow(),yield s.isValidDisconnect(e);var t=e.topic;if(s.client.session.keys.includes(t))yield s.sendRequest({topic:t,method:"wc_sessionDelete",params:r(d[11]).getSdkError("USER_DISCONNECTED"),throwOnFailedPublish:!0}),yield s.deleteSession({topic:t,emitEvent:!1});else{if(!s.client.core.pairing.pairings.keys.includes(t)){var i=r(d[11]).getInternalError("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`).message;throw new Error(i)}yield s.client.core.pairing.disconnect({topic:t})}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"find",function(e){return s.isInitialized(),s.client.session.getAll().filter(function(t){return r(d[11]).isSessionCompatible(t,e)})}),G(o(s),"getPendingSessionRequests",function(){return s.client.pendingRequest.getAll()}),G(o(s),"authenticate",(function(){var e=i(function*(e,n){var o;s.isInitialized(),s.isValidAuthenticate(e);var a=n&&s.client.core.linkModeSupportedApps.includes(n)&&(null==(o=s.client.metadata.redirect)?void 0:o.linkMode),c=a?r(d[12]).TRANSPORT_TYPES.link_mode:r(d[12]).TRANSPORT_TYPES.relay;c===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var l=e.chains,p=e.statement,u=void 0===p?"":p,g=e.uri,y=e.domain,f=e.nonce,h=e.type,v=e.exp,E=e.nbf,m=e.methods,_=void 0===m?[]:m,S=e.expiry,R=t(e.resources||[]),I=yield s.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:c}),N=I.topic,w=I.uri;s.client.logger.info({message:"Generated new pairing",pairing:{topic:N,uri:w}});var P=yield s.client.core.crypto.generateKeyPair(),q=r(d[11]).hashKey(P);if(yield Promise.all([s.client.auth.authKeys.set(L,{responseTopic:q,publicKey:P}),s.client.auth.pairingTopics.set(q,{topic:q,pairingTopic:N})]),yield s.client.core.relayer.subscribe(q,{transportType:c}),s.client.logger.info(`sending request to new pairing topic: ${N}`),_.length>0){var O=r(d[11]).parseChainId(l[0]).namespace,A=r(d[11]).createEncodedRecap(O,"request",_);r(d[11]).getRecapFromResources(R)&&(A=r(d[11]).mergeEncodedRecaps(A,R.pop())),R.push(A)}var V,C=S&&S>T.wc_sessionAuthenticate.req.ttl?S:T.wc_sessionAuthenticate.req.ttl,b={authPayload:{type:null!=h?h:"caip122",chains:l,statement:u,aud:g,domain:y,version:"1",nonce:f,iat:(new Date).toISOString(),exp:v,nbf:E,resources:R},requester:{publicKey:P,metadata:s.client.metadata},expiryTimestamp:r(d[11]).calcExpiry(C)},x={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:l,methods:t(new Set(["personal_sign"].concat(t(_)))),events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:N,proposer:{publicKey:P,metadata:s.client.metadata},expiryTimestamp:r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl),id:r(d[13]).payloadId()},k=r(d[11]).createDelayedPromise(C,"Request expired"),D=k.done,M=k.resolve,U=k.reject,$=r(d[13]).payloadId(),K=r(d[11]).engineEvent("session_connect",x.id),F=r(d[11]).engineEvent("session_request",$),G=(function(){var e=i(function*(e){var t=e.error,i=e.session;s.events.off(F,H),t?U(t):i&&M({session:i})});return function(t){return e.apply(this,arguments)}})(),H=(function(){var e=i(function*(e){var i,o,a;if(yield s.deletePendingAuthRequest($,{message:"fulfilled",code:0}),e.error){var l=r(d[11]).getSdkError("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===l.code?void 0:(s.events.off(K,G),U(e.error.message))}yield s.deleteProposal(x.id),s.events.off(K,G);var p=e.result,u=p.cacaos,g=p.responder,y=[],f=[];for(var h of u){(yield r(d[11]).validateSignedCacao({cacao:h,projectId:s.client.core.projectId}))||(s.client.logger.error(h,"Signature verification failed"),U(r(d[11]).getSdkError("SESSION_SETTLEMENT_FAILED","Signature verification failed")));var v=h.p,E=r(d[11]).getRecapFromResources(v.resources),m=[r(d[11]).getNamespacedDidChainId(v.iss)],_=r(d[11]).getDidAddress(v.iss);if(E){var S=r(d[11]).getMethodsFromRecap(E),R=r(d[11]).getChainsFromRecap(E);y.push.apply(y,t(S)),m.push.apply(m,t(R))}for(var I of m)f.push(`${I}:${_}`)}var T,w=yield s.client.core.crypto.generateSharedKey(P,g.publicKey);y.length>0&&(T={topic:w,acknowledged:!0,self:{publicKey:P,metadata:s.client.metadata},peer:g,controller:g.publicKey,expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:N,namespaces:r(d[11]).buildNamespacesFromAuth(t(new Set(y)),t(new Set(f))),transportType:c},yield s.client.core.relayer.subscribe(w,{transportType:c}),yield s.client.session.set(w,T),N&&(yield s.client.core.pairing.updateMetadata({topic:N,metadata:g.metadata})),T=s.client.session.get(w)),null!=(i=s.client.metadata.redirect)&&i.linkMode&&null!=(o=g.metadata.redirect)&&o.linkMode&&null!=(a=g.metadata.redirect)&&a.universal&&n&&(s.client.core.addLinkModeSupportedApp(g.metadata.redirect.universal),s.client.session.update(w,{transportType:r(d[12]).TRANSPORT_TYPES.link_mode})),M({auths:u,session:T})});return function(t){return e.apply(this,arguments)}})();s.events.once(K,G),s.events.once(F,H);try{if(a){var J=r(d[13]).formatJsonRpcRequest("wc_sessionAuthenticate",b,$);s.client.core.history.set(N,J);var Q=yield s.client.core.crypto.encode("",J,{type:r(d[11]).TYPE_2,encoding:r(d[11]).BASE64URL});V=r(d[11]).getLinkModeURL(n,N,Q)}else yield Promise.all([s.sendRequest({topic:N,method:"wc_sessionAuthenticate",params:b,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:$}),s.sendRequest({topic:N,method:"wc_sessionPropose",params:x,expiry:T.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:x.id})])}catch(O){throw s.events.off(K,G),s.events.off(F,H),O}return yield s.setProposal(x.id,x),yield s.setAuthRequest($,{request:j(Y({},b),{verifyContext:{}}),pairingTopic:N,transportType:c}),{uri:null!=V?V:w,response:D}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"approveSessionAuthenticate",(function(){var e=i(function*(e){var i=e.id,n=e.auths,o=s.client.core.eventClient.createEvent({properties:{topic:i.toString(),trace:[r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.authenticated_session_approve_started]}});try{s.isInitialized()}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.no_internet_connection),h}var a=s.getPendingAuthRequest(i);if(!a)throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${i}`);var c=a.transportType||r(d[12]).TRANSPORT_TYPES.relay;c===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var l=a.requester.publicKey,p=yield s.client.core.crypto.generateKeyPair(),u=r(d[11]).hashKey(l),g={type:r(d[11]).TYPE_1,receiverPublicKey:l,senderPublicKey:p},y=[],f=[];for(var h of n){if(!(yield r(d[11]).validateSignedCacao({cacao:h,projectId:s.client.core.projectId}))){o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.invalid_cacao);var v=r(d[11]).getSdkError("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw yield s.sendError({id:i,topic:u,error:v,encodeOpts:g}),new Error(v.message)}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.cacaos_verified);var E=h.p,m=r(d[11]).getRecapFromResources(E.resources),_=[r(d[11]).getNamespacedDidChainId(E.iss)],S=r(d[11]).getDidAddress(E.iss);if(m){var R=r(d[11]).getMethodsFromRecap(m),I=r(d[11]).getChainsFromRecap(m);y.push.apply(y,t(R)),_.push.apply(_,t(I))}for(var T of _)f.push(`${T}:${S}`)}var N,w=yield s.client.core.crypto.generateSharedKey(p,l);if(o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.create_authenticated_session_topic),(null==y?void 0:y.length)>0){N={topic:w,acknowledged:!0,self:{publicKey:p,metadata:s.client.metadata},peer:{publicKey:l,metadata:a.requester.metadata},controller:l,expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:a.pairingTopic,namespaces:r(d[11]).buildNamespacesFromAuth(t(new Set(y)),t(new Set(f))),transportType:c},o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.subscribing_authenticated_session_topic);try{yield s.client.core.relayer.subscribe(w,{transportType:c})}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.subscribe_authenticated_session_topic_failure),h}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.subscribe_authenticated_session_topic_success),yield s.client.session.set(w,N),o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.store_authenticated_session),yield s.client.core.pairing.updateMetadata({topic:a.pairingTopic,metadata:a.requester.metadata})}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.publishing_authenticated_session_approve);try{yield s.sendResult({topic:u,id:i,result:{cacaos:n,responder:{publicKey:p,metadata:s.client.metadata}},encodeOpts:g,throwOnFailedPublish:!0,appLink:s.getAppLinkIfEnabled(a.requester.metadata,c)})}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.authenticated_session_approve_publish_failure),h}return yield s.client.auth.requests.delete(i,{message:"fulfilled",code:0}),yield s.client.core.pairing.activate({topic:a.pairingTopic}),s.client.core.eventClient.deleteEvent({eventId:o.eventId}),{session:N}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"rejectSessionAuthenticate",(function(){var e=i(function*(e){s.isInitialized();var t=e.id,i=e.reason,n=s.getPendingAuthRequest(t);if(!n)throw new Error(`Could not find pending auth request with id ${t}`);n.transportType===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var o=n.requester.publicKey,a=yield s.client.core.crypto.generateKeyPair(),c=r(d[11]).hashKey(o),l={type:r(d[11]).TYPE_1,receiverPublicKey:o,senderPublicKey:a};yield s.sendError({id:t,topic:c,error:i,encodeOpts:l,rpcOpts:T.wc_sessionAuthenticate.reject,appLink:s.getAppLinkIfEnabled(n.requester.metadata,n.transportType)}),yield s.client.auth.requests.delete(t,{message:"rejected",code:0}),yield s.deleteProposal(t)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"formatAuthMessage",function(e){s.isInitialized();var t=e.request,i=e.iss;return r(d[11]).formatMessage(t,i)}),G(o(s),"processRelayMessageCache",function(){setTimeout(i(function*(){if(0!==s.relayMessageCache.length)for(;s.relayMessageCache.length>0;)try{var e=s.relayMessageCache.shift();e&&(yield s.onRelayMessage(e))}catch(e){s.client.logger.error(e)}}),50)}),G(o(s),"cleanupDuplicatePairings",(function(){var e=i(function*(e){if(e.pairingTopic)try{var t=s.client.core.pairing.pairings.get(e.pairingTopic),i=s.client.core.pairing.pairings.getAll().filter(function(i){var n,s;return(null==(n=i.peerMetadata)?void 0:n.url)&&(null==(s=i.peerMetadata)?void 0:s.url)===e.peer.metadata.url&&i.topic&&i.topic!==t.topic});if(0===i.length)return;s.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),yield Promise.all(i.map(function(e){return s.client.core.pairing.disconnect({topic:e.topic})})),s.client.logger.info("Duplicate pairings clean up finished")}catch(t){s.client.logger.error(t)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"deleteSession",(function(){var e=i(function*(e){var t,i=e.topic,n=e.expirerHasDeleted,o=void 0!==n&&n,a=e.emitEvent,c=void 0===a||a,l=e.id,p=void 0===l?0:l,u=s.client.session.get(i).self;yield s.client.core.relayer.unsubscribe(i),yield s.client.session.delete(i,r(d[11]).getSdkError("USER_DISCONNECTED")),s.addToRecentlyDeleted(i,"session"),s.client.core.crypto.keychain.has(u.publicKey)&&(yield s.client.core.crypto.deleteKeyPair(u.publicKey)),s.client.core.crypto.keychain.has(i)&&(yield s.client.core.crypto.deleteSymKey(i)),o||s.client.core.expirer.del(i),s.client.core.storage.removeItem(m).catch(function(e){return s.client.logger.warn(e)}),s.getPendingSessionRequests().forEach(function(e){e.topic===i&&s.deletePendingSessionRequest(e.id,r(d[11]).getSdkError("USER_DISCONNECTED"))}),i===(null==(t=s.sessionRequestQueue.queue[0])?void 0:t.topic)&&(s.sessionRequestQueue.state=w.idle),c&&s.client.events.emit("session_delete",{id:p,topic:i})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"deleteProposal",(function(){var e=i(function*(e,t){if(t)try{var i=s.client.proposal.get(e),n=s.client.core.eventClient.getEvent({topic:i.pairingTopic});null==n||n.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.proposal_expired)}catch(e){}yield Promise.all([s.client.proposal.delete(e,r(d[11]).getSdkError("USER_DISCONNECTED")),t?Promise.resolve():s.client.core.expirer.del(e)]),s.addToRecentlyDeleted(e,"proposal")});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"deletePendingSessionRequest",(function(){var e=i(function*(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];yield Promise.all([s.client.pendingRequest.delete(e,t),i?Promise.resolve():s.client.core.expirer.del(e)]),s.addToRecentlyDeleted(e,"request"),s.sessionRequestQueue.queue=s.sessionRequestQueue.queue.filter(function(t){return t.id!==e}),i&&(s.sessionRequestQueue.state=w.idle,s.client.events.emit("session_request_expire",{id:e}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"deletePendingAuthRequest",(function(){var e=i(function*(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];yield Promise.all([s.client.auth.requests.delete(e,t),i?Promise.resolve():s.client.core.expirer.del(e)])});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setExpiry",(function(){var e=i(function*(e,t){s.client.session.keys.includes(e)&&(s.client.core.expirer.set(e,t),yield s.client.session.update(e,{expiry:t}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setProposal",(function(){var e=i(function*(e,t){s.client.core.expirer.set(e,r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl)),yield s.client.proposal.set(e,t)});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setAuthRequest",(function(){var e=i(function*(e,t){var i=t.request,n=t.pairingTopic,o=t.transportType,a=void 0===o?r(d[12]).TRANSPORT_TYPES.relay:o;s.client.core.expirer.set(e,i.expiryTimestamp),yield s.client.auth.requests.set(e,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:e,pairingTopic:n,verifyContext:i.verifyContext,transportType:a})});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setPendingSessionRequest",(function(){var e=i(function*(e){var t=e.id,i=e.topic,n=e.params,o=e.verifyContext,a=n.request.expiryTimestamp||r(d[11]).calcExpiry(T.wc_sessionRequest.req.ttl);s.client.core.expirer.set(t,a),yield s.client.pendingRequest.set(t,{id:t,topic:i,params:n,verifyContext:o})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendRequest",(function(){var e=i(function*(e){var t,i,n=e.topic,o=e.method,a=e.params,c=e.expiry,l=e.relayRpcId,p=e.clientRpcId,u=e.throwOnFailedPublish,g=e.appLink,y=e.tvf,f=e.publishOpts,h=void 0===f?{}:f,v=r(d[13]).formatJsonRpcRequest(o,a,p),E=!!g;try{var m=E?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(n,v,{encoding:m})}catch(m){throw yield s.cleanup(),s.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),m}if(O.includes(o)){var _=r(d[11]).hashMessage(JSON.stringify(v)),S=r(d[11]).hashMessage(t);i=yield s.client.core.verify.register({id:S,decryptedId:_})}var R=Y(Y({},T[o].req),h);if(R.attestation=i,c&&(R.ttl=c),l&&(R.id=l),s.client.core.history.set(n,v),E){var I=r(d[11]).getLinkModeURL(g,n,t);yield _g4.Linking.openURL(I,s.client.name)}else R.tvf=j(Y({},y),{correlationId:v.id}),u?(R.internal=j(Y({},R.internal),{throwOnFailedPublish:!0}),yield s.client.core.relayer.publish(n,t,R)):s.client.core.relayer.publish(n,t,R).catch(function(e){return s.client.logger.error(e)});return v.id});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendProposeSession",(function(){var e=i(function*(e){var t=e.proposal,i=e.publishOpts,n=r(d[13]).formatJsonRpcRequest("wc_sessionPropose",t,t.id);s.client.core.history.set(t.pairingTopic,n);var o=yield s.client.core.crypto.encode(t.pairingTopic,n,{encoding:r(d[11]).BASE64}),a=r(d[11]).hashMessage(JSON.stringify(n)),c=r(d[11]).hashMessage(o),l=yield s.client.core.verify.register({id:c,decryptedId:a});yield s.client.core.relayer.publishCustom({payload:{pairingTopic:t.pairingTopic,sessionProposal:o},opts:j(Y({},i),{publishMethod:"wc_proposeSession",attestation:l})})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendApproveSession",(function(){var e=i(function*(e){var t=e.sessionTopic,i=e.pairingProposalResponse,n=e.proposal,o=e.sessionSettleRequest,a=e.publishOpts,c=r(d[13]).formatJsonRpcResult(n.id,i),l=yield s.client.core.crypto.encode(n.pairingTopic,c,{encoding:r(d[11]).BASE64}),p=r(d[13]).formatJsonRpcRequest("wc_sessionSettle",o,null==a?void 0:a.id),u=yield s.client.core.crypto.encode(t,p,{encoding:r(d[11]).BASE64});s.client.core.history.set(t,p),yield s.client.core.relayer.publishCustom({payload:{sessionTopic:t,pairingTopic:n.pairingTopic,sessionProposalResponse:l,sessionSettlementRequest:u},opts:j(Y({},a),{publishMethod:"wc_approveSession"})})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendResult",(function(){var e=i(function*(e){var t,i,n,o=e.id,a=e.topic,c=e.result,l=e.throwOnFailedPublish,p=e.encodeOpts,u=e.appLink,g=r(d[13]).formatJsonRpcResult(o,c),y=u&&typeof(null==_g4?void 0:_g4.Linking)<"u";try{var f=y?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(a,g,j(Y({},p||{}),{encoding:f}))}catch(f){throw yield s.cleanup(),s.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${a} failed`),f}try{var h=(i=yield s.client.core.history.get(a,o)).request;try{n=s.getTVFParams(o,h.params,c)}catch(m){s.client.logger.warn(`sendResult() -> getTVFParams() failed: ${null==m?void 0:m.message}`)}}catch(f){throw s.client.logger.error(`sendResult() -> history.get(${a}, ${o}) failed`),f}if(y){var v=r(d[11]).getLinkModeURL(u,a,t);yield _g4.Linking.openURL(v,s.client.name)}else{var E=i.request.method,m=T[E].res;m.tvf=j(Y({},n),{correlationId:o}),l?(m.internal=j(Y({},m.internal),{throwOnFailedPublish:!0}),yield s.client.core.relayer.publish(a,t,m)):s.client.core.relayer.publish(a,t,m).catch(function(e){return s.client.logger.error(e)})}yield s.client.core.history.resolve(g)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendError",(function(){var e=i(function*(e){var t,i,n=e.id,o=e.topic,a=e.error,c=e.encodeOpts,l=e.rpcOpts,p=e.appLink,u=r(d[13]).formatJsonRpcError(n,a),g=p&&typeof(null==_g4?void 0:_g4.Linking)<"u";try{var y=g?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(o,u,j(Y({},c||{}),{encoding:y}))}catch(y){throw yield s.cleanup(),s.client.logger.error(`sendError() -> core.crypto.encode() for topic ${o} failed`),y}try{i=yield s.client.core.history.get(o,n)}catch(y){throw s.client.logger.error(`sendError() -> history.get(${o}, ${n}) failed`),y}if(g){var f=r(d[11]).getLinkModeURL(p,o,t);yield _g4.Linking.openURL(f,s.client.name)}else{var h=i.request.method,v=l||T[h].res;s.client.core.relayer.publish(o,t,v)}yield s.client.core.history.resolve(u)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"cleanup",i(function*(){var e=[],i=[];s.client.session.getAll().forEach(function(t){var i=!1;r(d[11]).isExpired(t.expiry)&&(i=!0),s.client.core.crypto.keychain.has(t.topic)||(i=!0),i&&e.push(t.topic)}),s.client.proposal.getAll().forEach(function(e){r(d[11]).isExpired(e.expiryTimestamp)&&i.push(e.id)}),yield Promise.all([].concat(t(e.map(function(e){return s.deleteSession({topic:e})})),t(i.map(function(e){return s.deleteProposal(e)}))))})),G(o(s),"onProviderMessageEvent",(function(){var e=i(function*(e){!s.initialized||s.relayMessageCache.length>0?s.relayMessageCache.push(e):yield s.onRelayMessage(e)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventRequest",(function(){var e=i(function*(e){s.requestQueue.queue.push(e),yield s.processRequestsQueue()});return function(t){return e.apply(this,arguments)}})()),G(o(s),"processRequestsQueue",i(function*(){if(s.requestQueue.state!==w.active){for(s.client.logger.info(`Request queue starting with ${s.requestQueue.queue.length} requests`);s.requestQueue.queue.length>0;){s.requestQueue.state=w.active;var e=s.requestQueue.queue.shift();if(e)try{yield s.processRequest(e)}catch(e){s.client.logger.warn(e)}}s.requestQueue.state=w.idle}else s.client.logger.info("Request queue already active, skipping...")})),G(o(s),"processRequest",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.attestation,o=e.transportType,a=e.encryptedId,c=i.method;if(!s.shouldIgnorePairingRequest({topic:t,requestMethod:c}))switch(c){case"wc_sessionPropose":return yield s.onSessionProposeRequest({topic:t,payload:i,attestation:n,encryptedId:a});case"wc_sessionSettle":return yield s.onSessionSettleRequest(t,i);case"wc_sessionUpdate":return yield s.onSessionUpdateRequest(t,i);case"wc_sessionExtend":return yield s.onSessionExtendRequest(t,i);case"wc_sessionPing":return yield s.onSessionPingRequest(t,i);case"wc_sessionDelete":return yield s.onSessionDeleteRequest(t,i);case"wc_sessionRequest":return yield s.onSessionRequest({topic:t,payload:i,attestation:n,encryptedId:a,transportType:o});case"wc_sessionEvent":return yield s.onSessionEventRequest(t,i);case"wc_sessionAuthenticate":return yield s.onSessionAuthenticateRequest({topic:t,payload:i,attestation:n,encryptedId:a,transportType:o});default:return s.client.logger.info(`Unsupported request method ${c}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventResponse",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.transportType,o=(yield s.client.core.history.get(t,i.id)).request.method;switch(o){case"wc_sessionPropose":return s.onSessionProposeResponse(t,i,n);case"wc_sessionSettle":return s.onSessionSettleResponse(t,i);case"wc_sessionUpdate":return s.onSessionUpdateResponse(t,i);case"wc_sessionExtend":return s.onSessionExtendResponse(t,i);case"wc_sessionPing":return s.onSessionPingResponse(t,i);case"wc_sessionRequest":return s.onSessionRequestResponse(t,i);case"wc_sessionAuthenticate":return s.onSessionAuthenticateResponse(t,i);default:return s.client.logger.info(`Unsupported response method ${o}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventUnknownPayload",function(e){var t=e.topic,i=r(d[11]).getInternalError("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`).message;throw new Error(i)}),G(o(s),"shouldIgnorePairingRequest",function(e){var t=e.topic,i=e.requestMethod,n=s.expectedPairingMethodMap.get(t);return!(!n||n.includes(i))&&!!(n.includes("wc_sessionAuthenticate")&&s.client.events.listenerCount("session_authenticate")>0)}),G(o(s),"onSessionProposeRequest",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.attestation,o=e.encryptedId,a=i.params,c=i.id;try{var l=s.client.core.eventClient.getEvent({topic:t});0===s.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),null!=l&&l.setError(r(d[12]).EVENT_CLIENT_PAIRING_ERRORS.proposal_listener_not_found)),s.isValidConnect(Y({},i.params));var p=a.expiryTimestamp||r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl),u=Y({id:c,pairingTopic:t,expiryTimestamp:p,attestation:n,encryptedId:o},a);yield s.setProposal(c,u);var g=yield s.getVerifyContext({attestationId:n,hash:r(d[11]).hashMessage(JSON.stringify(i)),encryptedId:o,metadata:u.proposer.metadata});null!=l&&l.addTrace(r(d[12]).EVENT_CLIENT_PAIRING_TRACES.emit_session_proposal),s.client.events.emit("session_proposal",{id:c,params:u,verifyContext:g})}catch(l){yield s.sendError({id:c,topic:t,error:l,rpcOpts:T.wc_sessionPropose.autoReject}),s.client.logger.error(l)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onSessionProposeResponse",(function(){var e=i(function*(e,t,i){var n=t.id;if(r(d[13]).isJsonRpcResult(t)){var o=t.result;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});var a=s.client.proposal.get(n);s.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:a});var c=a.proposer.publicKey;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:c});var l=o.responderPublicKey;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:l});var p=yield s.client.core.crypto.generateSharedKey(c,l);s.pendingSessions.set(n,{sessionTopic:p,pairingTopic:e,proposalId:n,publicKey:c});var u=yield s.client.core.relayer.subscribe(p,{transportType:i});s.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:u}),yield s.client.core.pairing.activate({topic:e})}else if(r(d[13]).isJsonRpcError(t)){yield s.deleteProposal(n);var g=r(d[11]).engineEvent("session_connect",n);if(0===s.events.listenerCount(g))throw new Error(`emitting ${g} without any listeners, 954`);s.events.emit(g,{error:t.error})}});return function(t,i,n){return e.apply(this,arguments)}})()),G(o(s),"onSessionSettleRequest",(function(){var e=i(function*(e,i){var n=i.id,o=i.params;try{s.isValidSessionSettleRequest(o);var a=i.params,c=a.relay,l=a.controller,p=a.expiry,u=a.namespaces,g=a.sessionProperties,y=a.scopedProperties,f=a.sessionConfig,h=t(s.pendingSessions.values()).find(function(t){return t.sessionTopic===e});if(!h)return s.client.logger.error(`Pending session not found for topic ${e}`);var v=s.client.proposal.get(h.proposalId),E=j(Y(Y(Y({topic:e,relay:c,expiry:p,namespaces:u,acknowledged:!0,pairingTopic:h.pairingTopic,requiredNamespaces:v.requiredNamespaces,optionalNamespaces:v.optionalNamespaces,controller:l.publicKey,self:{publicKey:h.publicKey,metadata:s.client.metadata},peer:{publicKey:l.publicKey,metadata:l.metadata}},g&&{sessionProperties:g}),y&&{scopedProperties:y}),f&&{sessionConfig:f}),{transportType:r(d[12]).TRANSPORT_TYPES.relay});yield s.client.session.set(E.topic,E),yield s.setExpiry(E.topic,E.expiry),yield s.client.core.pairing.updateMetadata({topic:h.pairingTopic,metadata:E.peer.metadata}),s.client.events.emit("session_connect",{session:E}),s.events.emit(r(d[11]).engineEvent("session_connect",h.proposalId),{session:E}),s.pendingSessions.delete(h.proposalId),s.deleteProposal(h.proposalId,!1),s.cleanupDuplicatePairings(E),yield s.sendResult({id:i.id,topic:e,result:!0})}catch(c){yield s.sendError({id:n,topic:e,error:c}),s.client.logger.error(c)}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"onSessionSettleResponse",(function(){var e=i(function*(e,t){var i=t.id;r(d[13]).isJsonRpcResult(t)?(yield s.client.session.update(e,{acknowledged:!0}),s.events.emit(r(d[11]).engineEvent("session_approve",i),{})):r(d[13]).isJsonRpcError(t)&&(yield s.client.session.delete(e,r(d[11]).getSdkError("USER_DISCONNECTED")),s.events.emit(r(d[11]).engineEvent("session_approve",i),{error:t.error}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"onSessionUpdateRequest",(function(){var e=i(function*(e,t){var i=t.params,n=t.id;try{var o=`${e}_session_update`,a=r(d[11]).MemoryStore.get(o);if(a&&s.isRequestOutOfSync(a,n))return s.client.logger.warn(`Discarding out of sync request - ${n}`),void s.sendError({id:n,topic:e,error:r(d[11]).getSdkError("INVALID_UPDATE_REQUEST")});s.isValidUpdate(Y({topic:e},i));try{r(d[11]).MemoryStore.set(o,n),yield s.client.session.update(e,{namespaces:i.namespaces}),yield s.sendResult({id:n,topic:e,result:!0})}catch(e){throw r(d[11]).MemoryStore.delete(o),e}s.client.events.emit("session_update",{id:n,topic:e,params:i})}catch(o){yield s.sendError({id:n,topic:e,error:o}),s.client.logger.error(o)}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"isRequestOutOfSync",function(e,t){return t.toString().slice(0,-3)0&&n.filter(function(e){return e.topic===t&&"wc_sessionRequest"===e.request.method}).forEach(function(e){var t=e.request.id,n=r(d[11]).engineEvent("session_request",t);if(0===s.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);s.events.emit(r(d[11]).engineEvent("session_request",e.request.id),{error:i})})}),G(o(s),"processSessionRequestQueue",function(){if(s.sessionRequestQueue.state!==w.active){var e=s.sessionRequestQueue.queue[0];if(e)try{s.emitSessionRequest(e)}catch(e){s.client.logger.error(e)}else s.client.logger.info("session request queue is empty.")}else s.client.logger.info("session request queue is already active.")}),G(o(s),"emitSessionRequest",function(e){s.emittedSessionRequests.has(e.id)?s.client.logger.warn({id:e.id},`Skipping emitting \`session_request\` event for duplicate request. id: ${e.id}`):(s.sessionRequestQueue.state=w.active,s.emittedSessionRequests.add(e.id),s.client.events.emit("session_request",e))}),G(o(s),"onPairingCreated",function(e){if(e.methods&&s.expectedPairingMethodMap.set(e.topic,e.methods),!e.active){var t=s.client.proposal.getAll().find(function(t){return t.pairingTopic===e.topic});t&&s.onSessionProposeRequest({topic:e.topic,payload:r(d[13]).formatJsonRpcRequest("wc_sessionPropose",j(Y({},t),{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties,scopedProperties:t.scopedProperties}),t.id),attestation:t.attestation,encryptedId:t.encryptedId})}}),G(o(s),"isValidConnect",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`).message;throw new Error(t)}var i=e.pairingTopic,n=e.requiredNamespaces,o=e.optionalNamespaces,a=e.sessionProperties,c=e.scopedProperties,l=e.relays;if(r(d[11]).isUndefined(i)||(yield s.isValidPairingTopic(i)),!r(d[11]).isValidRelays(l,!0)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`connect() relays: ${l}`).message;throw new Error(p)}if(!r(d[11]).isUndefined(n)&&0!==r(d[11]).isValidObject(n)){var u="requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces";["fatal","error","silent"].includes(s.client.logger.level)?console.warn(u):s.client.logger.warn(u),s.validateNamespaces(n,"requiredNamespaces")}if(!r(d[11]).isUndefined(o)&&0!==r(d[11]).isValidObject(o)&&s.validateNamespaces(o,"optionalNamespaces"),r(d[11]).isUndefined(a)||s.validateSessionProps(a,"sessionProperties"),!r(d[11]).isUndefined(c)){s.validateSessionProps(c,"scopedProperties");var g=Object.keys(n||{}).concat(Object.keys(o||{}));if(!Object.keys(c).every(function(e){return g.includes(e.split(":")[0])}))throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(c)}, required/optional namespaces: ${JSON.stringify(g)}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"validateNamespaces",function(e,t){var i=r(d[11]).isValidRequiredNamespaces(e,"connect()",t);if(i)throw new Error(i.message)}),G(o(s),"isValidApprove",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e))throw new Error(r(d[11]).getInternalError("MISSING_OR_INVALID",`approve() params: ${e}`).message);var t=e.id,i=e.namespaces,n=e.relayProtocol,o=e.sessionProperties,a=e.scopedProperties;s.checkRecentlyDeleted(t),yield s.isValidProposalId(t);var c=s.client.proposal.get(t),l=r(d[11]).isValidNamespaces(i,"approve()");if(l)throw new Error(l.message);var p=r(d[11]).isConformingNamespaces(c.requiredNamespaces,i,"approve()");if(p)throw new Error(p.message);if(!r(d[11]).isValidString(n,!0)){var u=r(d[11]).getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`).message;throw new Error(u)}if(r(d[11]).isUndefined(o)||s.validateSessionProps(o,"sessionProperties"),!r(d[11]).isUndefined(a)){s.validateSessionProps(a,"scopedProperties");var g=new Set(Object.keys(i));if(!Object.keys(a).every(function(e){return g.has(e.split(":")[0])}))throw new Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(a)}, approved namespaces: ${Array.from(g).join(", ")}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidReject",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`reject() params: ${e}`).message;throw new Error(t)}var i=e.id,n=e.reason;if(s.checkRecentlyDeleted(i),yield s.isValidProposalId(i),!r(d[11]).isValidErrorReason(n)){var o=r(d[11]).getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(n)}`).message;throw new Error(o)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidSessionSettleRequest",function(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`).message;throw new Error(t)}var i=e.relay,n=e.controller,s=e.namespaces,o=e.expiry;if(!r(d[11]).isValidRelay(i)){var a=r(d[11]).getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string").message;throw new Error(a)}var c=r(d[11]).isValidController(n,"onSessionSettleRequest()");if(c)throw new Error(c.message);var l=r(d[11]).isValidNamespaces(s,"onSessionSettleRequest()");if(l)throw new Error(l.message);if(r(d[11]).isExpired(o)){var p=r(d[11]).getInternalError("EXPIRED","onSessionSettleRequest()").message;throw new Error(p)}}),G(o(s),"isValidUpdate",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`update() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.namespaces;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i);var o=s.client.session.get(i),a=r(d[11]).isValidNamespaces(n,"update()");if(a)throw new Error(a.message);var c=r(d[11]).isConformingNamespaces(o.requiredNamespaces,n,"update()");if(c)throw new Error(c.message)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidExtend",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`extend() params: ${e}`).message;throw new Error(t)}var i=e.topic;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidRequest",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.request,o=e.chainId,a=e.expiry;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i);var c=s.client.session.get(i).namespaces;if(!r(d[11]).isValidNamespacesChainId(c,o)){var l=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() chainId: ${o}`).message;throw new Error(l)}if(!r(d[11]).isValidRequest(n)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(n)}`).message;throw new Error(p)}if(!r(d[11]).isValidNamespacesRequest(c,o,n.method)){var u=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() method: ${n.method}`).message;throw new Error(u)}if(a&&!r(d[11]).isValidRequestExpiry(a,N)){var g=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() expiry: ${a}. Expiry must be a number (in seconds) between ${N.min} and ${N.max}`).message;throw new Error(g)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidRespond",(function(){var e=i(function*(e){var t;if(!r(d[11]).isValidParams(e)){var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`respond() params: ${e}`).message;throw new Error(i)}var n=e.topic,o=e.response;try{yield s.isValidSessionTopic(n)}catch(i){throw null!=(t=null==e?void 0:e.response)&&t.id&&s.cleanupAfterResponse(e),i}if(!r(d[11]).isValidResponse(o)){var a=r(d[11]).getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`).message;throw new Error(a)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidPing",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`ping() params: ${e}`).message;throw new Error(t)}var i=e.topic;yield s.isValidSessionOrPairingTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidEmit",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.event,o=e.chainId;yield s.isValidSessionTopic(i);var a=s.client.session.get(i).namespaces;if(!r(d[11]).isValidNamespacesChainId(a,o)){var c=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() chainId: ${o}`).message;throw new Error(c)}if(!r(d[11]).isValidEvent(n)){var l=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`).message;throw new Error(l)}if(!r(d[11]).isValidNamespacesEvent(a,o,n.name)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`).message;throw new Error(p)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidDisconnect",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`disconnect() params: ${e}`).message;throw new Error(t)}var i=e.topic;yield s.isValidSessionOrPairingTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidAuthenticate",function(e){var i=e.chains,n=e.uri,s=e.domain,o=e.nonce;if(!Array.isArray(i)||0===i.length)throw new Error("chains is required and must be a non-empty array");if(!r(d[11]).isValidString(n,!1))throw new Error("uri is required parameter");if(!r(d[11]).isValidString(s,!1))throw new Error("domain is required parameter");if(!r(d[11]).isValidString(o,!1))throw new Error("nonce is required parameter");if(t(new Set(i.map(function(e){return r(d[11]).parseChainId(e).namespace}))).length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");if("eip155"!==r(d[11]).parseChainId(i[0]).namespace)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")}),G(o(s),"getVerifyContext",(function(){var e=i(function*(e){var t=e.attestationId,i=e.hash,n=e.encryptedId,o=e.metadata,a=e.transportType,c={verified:{verifyUrl:o.verifyUrl||r(d[12]).VERIFY_SERVER,validation:"UNKNOWN",origin:o.url||""}};try{if(a===r(d[12]).TRANSPORT_TYPES.link_mode){var l=s.getAppLinkIfEnabled(o,a);return c.verified.validation=l&&new URL(l).origin===new URL(o.url).origin?"VALID":"INVALID",c}var p=yield s.client.core.verify.resolve({attestationId:t,hash:i,encryptedId:n,verifyUrl:o.verifyUrl});p&&(c.verified.origin=p.origin,c.verified.isScam=p.isScam,c.verified.validation=p.origin===new URL(o.url).origin?"VALID":"INVALID")}catch(p){s.client.logger.warn(p)}return s.client.logger.debug(`Verify context: ${JSON.stringify(c)}`),c});return function(t){return e.apply(this,arguments)}})()),G(o(s),"validateSessionProps",function(e,t){Object.values(e).forEach(function(i,n){if(null==i){var s=r(d[11]).getInternalError("MISSING_OR_INVALID",`${t} must contain an existing value for each key. Received: ${i} for key ${Object.keys(e)[n]}`).message;throw new Error(s)}})}),G(o(s),"getPendingAuthRequest",function(e){var t=s.client.auth.requests.get(e);return"object"==typeof t?t:void 0}),G(o(s),"addToRecentlyDeleted",function(e,t){if(s.recentlyDeletedMap.set(e,t),s.recentlyDeletedMap.size>=s.recentlyDeletedLimit){var i=0,n=s.recentlyDeletedLimit/2;for(var o of s.recentlyDeletedMap.keys()){if(i++>=n)break;s.recentlyDeletedMap.delete(o)}}}),G(o(s),"checkRecentlyDeleted",function(e){var t=s.recentlyDeletedMap.get(e);if(t){var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`).message;throw new Error(i)}}),G(o(s),"isLinkModeEnabled",function(e,t){var i,n,o,a,c,l,p,u,g;return!(!e||t!==r(d[12]).TRANSPORT_TYPES.link_mode)&&(!0===(null==(n=null==(i=s.client.metadata)?void 0:i.redirect)?void 0:n.linkMode)&&void 0!==(null==(a=null==(o=s.client.metadata)?void 0:o.redirect)?void 0:a.universal)&&""!==(null==(l=null==(c=s.client.metadata)?void 0:c.redirect)?void 0:l.universal)&&void 0!==(null==(p=null==e?void 0:e.redirect)?void 0:p.universal)&&""!==(null==(u=null==e?void 0:e.redirect)?void 0:u.universal)&&!0===(null==(g=null==e?void 0:e.redirect)?void 0:g.linkMode)&&s.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(null==_g4?void 0:_g4.Linking)<"u")}),G(o(s),"getAppLinkIfEnabled",function(e,t){var i;return s.isLinkModeEnabled(e,t)?null==(i=null==e?void 0:e.redirect)?void 0:i.universal:void 0}),G(o(s),"handleLinkModeMessage",function(e){var t=e.url;if(t&&t.includes("wc_ev")&&t.includes("topic")){var i=r(d[11]).getSearchParamFromURL(t,"topic")||"",n=decodeURIComponent(r(d[11]).getSearchParamFromURL(t,"wc_ev")||""),o=s.client.session.keys.includes(i);o&&s.client.session.update(i,{transportType:r(d[12]).TRANSPORT_TYPES.link_mode}),s.client.core.dispatchEnvelope({topic:i,message:n,sessionExists:o})}}),G(o(s),"registerLinkModeListeners",i(function*(){var e;if(r(d[11]).isTestRun()||r(d[11]).isReactNative()&&null!=(e=s.client.metadata.redirect)&&e.linkMode){var t=null==_g4?void 0:_g4.Linking;if(typeof t<"u"){t.addEventListener("url",s.handleLinkModeMessage,s.client.name);var i=yield t.getInitialURL();i&&setTimeout(function(){s.handleLinkModeMessage({url:i})},50)}}})),G(o(s),"getTVFParams",function(e,t,i){var n,o,a;if(null==(n=t.request)||!n.method)return{};var c={correlationId:e,rpcMethods:[t.request.method],chainId:t.chainId};try{var l=s.extractTxHashesFromResult(t.request,i);c.txHashes=l,c.contractAddresses=s.isValidContractData(t.request.params)?[null==(a=null==(o=t.request.params)?void 0:o[0])?void 0:a.to]:[]}catch(l){s.client.logger.warn("Error getting TVF params",l)}return c}),G(o(s),"isValidContractData",function(e){var t;if(!e)return!1;try{var i=(null==e?void 0:e.data)||(null==(t=null==e?void 0:e[0])?void 0:t.data);if(!i.startsWith("0x"))return!1;var n=i.slice(2);return!!/^[0-9a-fA-F]*$/.test(n)&&n.length%2==0}catch(e){}return!1}),G(o(s),"extractTxHashesFromResult",function(e,t){var i;try{if(!t)return[];var n=e.method,o=P[n];if("sui_signTransaction"===n)return[r(d[11]).getSuiDigest(t.transactionBytes)];if("near_signTransaction"===n)return[r(d[11]).getNearTransactionIdFromSignedTransaction(t)];if("near_signTransactions"===n)return t.map(function(e){return r(d[11]).getNearTransactionIdFromSignedTransaction(e)});if("xrpl_signTransactionFor"===n||"xrpl_signTransaction"===n)return[null==(i=t.tx_json)?void 0:i.hash];if("polkadot_signTransaction"===n)return[r(d[11]).buildSignedExtrinsicHash({transaction:e.params.transactionPayload,signature:t.signature})];if("algo_signTxn"===n)return r(d[11]).isValidArray(t)?t.map(function(e){return r(d[11]).getAlgorandTransactionId(e)}):[r(d[11]).getAlgorandTransactionId(t)];if("cosmos_signDirect"===n)return[r(d[11]).getSignDirectHash(t)];if("wallet_sendCalls"===n)return r(d[11]).getWalletSendCallsHashes(t);if("string"==typeof t)return[t];var a=t[o.key];if(r(d[11]).isValidArray(a))return"solana_signAllTransactions"===n?a.map(function(e){return r(d[11]).extractSolanaTransactionId(e)}):a;if("string"==typeof a)return[a]}catch(n){s.client.logger.warn("Error extracting tx hashes from result",n)}return[]}),s}return l(c,a),s(c,[{key:"processPendingMessageEvents",value:(E=i(function*(){try{var t=this.client.session.keys,i=this.client.core.relayer.messages.getWithoutAck(t);for(var n of Object.entries(i)){var s=e(n,2),o=s[0],a=s[1];for(var c of a)try{yield this.onProviderMessageEvent({topic:o,message:c,publishedAt:Date.now()})}catch(e){this.client.logger.warn(`Error processing pending message event for topic: ${o}, message: ${c}`)}}}catch(t){this.client.logger.warn("processPendingMessageEvents failed",t)}}),function(){return E.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=r(d[11]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"confirmOnlineStateOrThrow",value:(v=i(function*(){yield this.client.core.relayer.confirmOnlineStateOrThrow()}),function(){return v.apply(this,arguments)})},{key:"registerRelayerEvents",value:function(){var e=this;this.client.core.relayer.on(r(d[12]).RELAYER_EVENTS.message,function(t){e.onProviderMessageEvent(t)})}},{key:"onRelayMessage",value:(h=i(function*(e){var t=e.topic,i=e.message,n=e.attestation,s=e.transportType,o=(this.client.auth.authKeys.keys.includes(L)?this.client.auth.authKeys.get(L):{responseTopic:void 0,publicKey:void 0}).publicKey;try{var a=yield this.client.core.crypto.decode(t,i,{receiverPublicKey:o,encoding:s===r(d[12]).TRANSPORT_TYPES.link_mode?r(d[11]).BASE64URL:r(d[11]).BASE64});r(d[13]).isJsonRpcRequest(a)?(this.client.core.history.set(t,a),yield this.onRelayEventRequest({topic:t,payload:a,attestation:n,transportType:s,encryptedId:r(d[11]).hashMessage(i)})):r(d[13]).isJsonRpcResponse(a)?(yield this.client.core.history.resolve(a),yield this.onRelayEventResponse({topic:t,payload:a,transportType:s}),this.client.core.history.delete(t,a.id)):yield this.onRelayEventUnknownPayload({topic:t,payload:a,transportType:s}),yield this.client.core.relayer.messages.ack(t,i)}catch(a){this.client.logger.error(a)}}),function(e){return h.apply(this,arguments)})},{key:"registerExpirerEvents",value:function(){var e=this;this.client.core.expirer.on(r(d[12]).EXPIRER_EVENTS.expired,(function(){var t=i(function*(t){var i=r(d[11]).parseExpirerTarget(t.target),n=i.topic,s=i.id;return s&&e.client.pendingRequest.keys.includes(s)?yield e.deletePendingSessionRequest(s,r(d[11]).getInternalError("EXPIRED"),!0):s&&e.client.auth.requests.keys.includes(s)?yield e.deletePendingAuthRequest(s,r(d[11]).getInternalError("EXPIRED"),!0):void(n?e.client.session.keys.includes(n)&&(yield e.deleteSession({topic:n,expirerHasDeleted:!0}),e.client.events.emit("session_expire",{topic:n})):s&&(yield e.deleteProposal(s,!0),e.client.events.emit("proposal_expire",{id:s})))});return function(e){return t.apply(this,arguments)}})())}},{key:"registerPairingEvents",value:function(){var e=this;this.client.core.pairing.events.on(r(d[12]).PAIRING_EVENTS.create,function(t){return e.onPairingCreated(t)}),this.client.core.pairing.events.on(r(d[12]).PAIRING_EVENTS.delete,function(t){e.addToRecentlyDeleted(t.topic,"pairing")})}},{key:"isValidPairingTopic",value:function(e){if(!r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`).message;throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.core.pairing.pairings.get(e).expiry)){var n=r(d[11]).getInternalError("EXPIRED",`pairing topic: ${e}`).message;throw new Error(n)}}},{key:"isValidSessionTopic",value:(f=i(function*(e){if(!r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`).message;throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.session.get(e).expiry)){yield this.deleteSession({topic:e});var n=r(d[11]).getInternalError("EXPIRED",`session topic: ${e}`).message;throw new Error(n)}if(!this.client.core.crypto.keychain.has(e)){var s=r(d[11]).getInternalError("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`).message;throw yield this.deleteSession({topic:e}),new Error(s)}}),function(e){return f.apply(this,arguments)})},{key:"isValidSessionOrPairingTopic",value:(g=i(function*(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))yield this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`).message;throw new Error(t)}var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`).message;throw new Error(i)}this.isValidPairingTopic(e)}}),function(e){return g.apply(this,arguments)})},{key:"isValidProposalId",value:(u=i(function*(e){if(!r(d[11]).isValidId(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`).message;throw new Error(t)}if(!this.client.proposal.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.proposal.get(e).expiryTimestamp)){yield this.deleteProposal(e);var n=r(d[11]).getInternalError("EXPIRED",`proposal id: ${e}`).message;throw new Error(n)}}),function(e){return u.apply(this,arguments)})}]);var u,g,f,h,v,E})(r(d[14]).IEngine),J=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,_,v])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),Q=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,R,v])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),z=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,q,v,function(e){return e.id}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),X=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,V,x,function(){return L}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),B=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,C,x])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),W=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,b,x,function(e){return e.id}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),Z=Object.defineProperty,ee=function(e,t,i){return t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},te=function(e,t,i){return ee(e,"symbol"!=typeof t?t+"":t,i)},re=(function(){return s(function e(t,i){n(this,e),this.core=t,this.logger=i,te(this,"authKeys"),te(this,"pairingTopics"),te(this,"requests"),this.authKeys=new X(this.core,this.logger),this.pairingTopics=new B(this.core,this.logger),this.requests=new W(this.core,this.logger)},[{key:"init",value:(e=i(function*(){yield this.authKeys.init(),yield this.pairingTopics.init(),yield this.requests.init()}),function(){return e.apply(this,arguments)})}]);var e})(),ie=Object.defineProperty,ne=function(e,t,i){return t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},se=function(e,t,i){return ne(e,"symbol"!=typeof t?t+"":t,i)},oe=(function(e){function t(e){var s;n(this,t),s=p(this,t,[e]),se(o(s),"protocol",f),se(o(s),"version",2),se(o(s),"name",E.name),se(o(s),"metadata"),se(o(s),"core"),se(o(s),"logger"),se(o(s),"events",new(r(d[9]).EventEmitter)),se(o(s),"engine"),se(o(s),"session"),se(o(s),"proposal"),se(o(s),"pendingRequest"),se(o(s),"auth"),se(o(s),"signConfig"),se(o(s),"on",function(e,t){return s.events.on(e,t)}),se(o(s),"once",function(e,t){return s.events.once(e,t)}),se(o(s),"off",function(e,t){return s.events.off(e,t)}),se(o(s),"removeListener",function(e,t){return s.events.removeListener(e,t)}),se(o(s),"removeAllListeners",function(e){return s.events.removeAllListeners(e)}),se(o(s),"connect",(function(){var e=i(function*(e){try{return yield s.engine.connect(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"pair",(function(){var e=i(function*(e){try{return yield s.engine.pair(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"approve",(function(){var e=i(function*(e){try{return yield s.engine.approve(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"reject",(function(){var e=i(function*(e){try{return yield s.engine.reject(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"update",(function(){var e=i(function*(e){try{return yield s.engine.update(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"extend",(function(){var e=i(function*(e){try{return yield s.engine.extend(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"request",(function(){var e=i(function*(e){try{return yield s.engine.request(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"respond",(function(){var e=i(function*(e){try{return yield s.engine.respond(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"ping",(function(){var e=i(function*(e){try{return yield s.engine.ping(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"emit",(function(){var e=i(function*(e){try{return yield s.engine.emit(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"disconnect",(function(){var e=i(function*(e){try{return yield s.engine.disconnect(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"find",function(e){try{return s.engine.find(e)}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"getPendingSessionRequests",function(){try{return s.engine.getPendingSessionRequests()}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"authenticate",(function(){var e=i(function*(e,t){try{return yield s.engine.authenticate(e,t)}catch(e){throw s.logger.error(e.message),e}});return function(t,i){return e.apply(this,arguments)}})()),se(o(s),"formatAuthMessage",function(e){try{return s.engine.formatAuthMessage(e)}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"approveSessionAuthenticate",(function(){var e=i(function*(e){try{return yield s.engine.approveSessionAuthenticate(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"rejectSessionAuthenticate",(function(){var e=i(function*(e){try{return yield s.engine.rejectSessionAuthenticate(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),s.name=(null==e?void 0:e.name)||E.name,s.metadata=r(d[11]).populateAppMetadata(null==e?void 0:e.metadata),s.signConfig=null==e?void 0:e.signConfig;var a=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:r(d[15]).pino(r(d[15]).getDefaultLoggerOptions({level:(null==e?void 0:e.logger)||E.logger}));return s.core=(null==e?void 0:e.core)||new(r(d[12]).Core)(e),s.logger=r(d[15]).generateChildLogger(a,s.name),s.session=new Q(s.core,s.logger),s.proposal=new J(s.core,s.logger),s.pendingRequest=new z(s.core,s.logger),s.engine=new H(s),s.auth=new re(s.core,s.logger),s}return l(t,e),s(t,[{key:"context",get:function(){return r(d[15]).getLoggerContext(this.logger)}},{key:"pairing",get:function(){return this.core.pairing.pairings}},{key:"initialize",value:(c=i(function*(){this.logger.trace("Initialized");try{yield this.core.start(),yield this.session.init(),yield this.proposal.init(),yield this.pendingRequest.init(),yield this.auth.init(),yield this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}),function(){return c.apply(this,arguments)})}],[{key:"init",value:(a=i(function*(e){var i=new t(e);return yield i.initialize(),i}),function(e){return a.apply(this,arguments)})}]);var a,c})(r(d[14]).ISignClient),ae=Q,ce=oe;_e2.AUTH_CONTEXT=A,_e2.AUTH_KEYS_CONTEXT=V,_e2.AUTH_PAIRING_TOPIC_CONTEXT=C,_e2.AUTH_PROTOCOL="wc",_e2.AUTH_PUBLIC_KEY_NAME=L,_e2.AUTH_REQUEST_CONTEXT=b,_e2.AUTH_STORAGE_PREFIX=x,_e2.AUTH_VERSION=1.5,_e2.ENGINE_CONTEXT=I,_e2.ENGINE_QUEUE_STATES=w,_e2.ENGINE_RPC_OPTS=T,_e2.HISTORY_CONTEXT="history",_e2.HISTORY_EVENTS={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},_e2.HISTORY_STORAGE_VERSION="0.3",_e2.METHODS_TO_VERIFY=O,_e2.PROPOSAL_CONTEXT=_,_e2.PROPOSAL_EXPIRY=r(d[10]).THIRTY_DAYS,_e2.PROPOSAL_EXPIRY_MESSAGE=S,_e2.REQUEST_CONTEXT=q,_e2.SESSION_CONTEXT=R,_e2.SESSION_EXPIRY=r(d[10]).SEVEN_DAYS,_e2.SESSION_REQUEST_EXPIRY_BOUNDARIES=N,_e2.SIGN_CLIENT_CONTEXT=h,_e2.SIGN_CLIENT_DEFAULT=E,_e2.SIGN_CLIENT_EVENTS={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire",session_authenticate:"session_authenticate",session_request_expire:"session_request_expire",session_connect:"session_connect"},_e2.SIGN_CLIENT_PROTOCOL=f,_e2.SIGN_CLIENT_STORAGE_OPTIONS={database:":memory:"},_e2.SIGN_CLIENT_STORAGE_PREFIX=v,_e2.SIGN_CLIENT_VERSION=2,_e2.SessionStore=ae,_e2.SignClient=ce,_e2.TVF_METHODS=P,_e2.WALLETCONNECT_DEEPLINK_CHOICE=m,_e2.default=oe},1259,[19,32,367,3,4,10,9,11,12,1069,815,809,1260,1270,1286,1283]); -__d(function(_g3,_r2,_i2,_a5,m,_e,_d){"use strict";var e=_r2(_d[0]),t=_r2(_d[1]),r=_r2(_d[2]),i=_r2(_d[3]),n=_r2(_d[4]),o=_r2(_d[5]),s=_r2(_d[6]),a=_r2(_d[7]),c=_r2(_d[8]),l=_r2(_d[9]);function u(e,t,r){return t=n(t),i(e,p()?Reflect.construct(t,r||[],n(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(_e,"__esModule",{value:!0});var g=d(_r2(_d[10])),h=d(_r2(_d[11])),f=(function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)})(_r2(_d[12])),y=d(_r2(_d[13])),v="wc",b="core",_=`${v}@2:${b}:`,E={name:b,logger:"error"},I={database:":memory:"},w="crypto",T="client_ed25519_seed",P="keychain",S="messages",k="publisher",O="error",R="wss://relay.walletconnect.org",x="relayer",C={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},A="_subscription",N={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},L="2.21.10",D={link_mode:"link_mode",relay:"relay"},z={inbound:"inbound",outbound:"outbound"},j="WALLETCONNECT_CLIENT_ID",M="WALLETCONNECT_LINK_MODE_APPS",U={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},K="subscription",$=1e3*_r2(_d[14]).FIVE_SECONDS,V="pairing",B={wc_pairingDelete:{req:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:1e3},res:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:_r2(_d[14]).THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:_r2(_d[14]).THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:0},res:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:0}}},q={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},F={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},G="history",H="expirer",Y={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},J="verify-api",W="https://verify.walletconnect.org",X=W,Z=`${X}/v3`,Q=["https://verify.walletconnect.com",W],ee="echo",te="https://echo.walletconnect.com",re={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal",subscribing_to_pairing_topic:"subscribing_to_pairing_topic"},ie={no_wss_connection:"no_wss_connection",no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_expired:"proposal_expired",proposal_listener_not_found:"proposal_listener_not_found"},ne="event-client",oe="https://pulse.walletconnect.org/batch";var se=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,s=new Uint8Array(o);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var p=0,d=o-1;(0!==u||p>>0,s[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");n=p,t++}if(" "!==e[t]){for(var g=o-n;g!==o&&0===s[g];)g++;for(var h=new Uint8Array(i+(o-g)),f=i;g!==o;)h[f++]=s[g++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,o=t.length;n!==o&&0===t[n];)n++,r++;for(var s=(o-n)*u+1>>>0,l=new Uint8Array(s);n!==o;){for(var p=t[n],d=0,g=s-1;(0!==p||d>>0,l[g]=p%a>>>0,p=p/a>>>0;if(0!==p)throw new Error("Non-zero carry");i=d,n++}for(var h=s-i;h!==s&&0===l[h];)h++;for(var f=c.repeat(r);h=8&&(c-=8,a[u++]=255&l>>c)}if(c>=r||255&l<<8-c)throw new SyntaxError("Unexpected end of data");return a},be=function(e,t,r){for(var i="="===t[t.length-1],n=(1<r;)o+=t[n&a>>(s-=r)];if(s&&(o+=t[n&a<=at;)r[i++]=255&t|ot,t/=128;for(;t&st;)r[i++]=255&t|ot,t>>>=7;return r[i]=0|t,e.bytes=i-n+1,r},ot=128,st=-128,at=Math.pow(2,31);var ct=function e(t,r){var i,n=0,o=0,s=r=r||0,a=t.length;do{if(s>=a)throw e.bytes=0,new RangeError("Could not decode varint");i=t[s++],n+=o<28?(i&ut)<=lt);return e.bytes=s-r,n},lt=128,ut=127;var pt=Math.pow(2,7),dt=Math.pow(2,14),gt=Math.pow(2,21),ht=Math.pow(2,28),ft=Math.pow(2,35),yt=Math.pow(2,42),vt=Math.pow(2,49),bt=Math.pow(2,56),mt=Math.pow(2,63),_t={encode:nt,decode:ct,encodingLength:function(e){return e2&&void 0!==arguments[2]?arguments[2]:0;return _t.encode(e,t,r),t},It=function(e){return _t.encodingLength(e)},wt=function(e,t){var r=t.byteLength,i=It(e),n=i+It(r),o=new Uint8Array(n+r);return Et(e,o,0),Et(r,o,i),o.set(t,n),new Tt(e,r,t,o)},Tt=l(function e(t,r,i,n){c(this,e),this.code=t,this.size=r,this.digest=i,this.bytes=n}),Pt=function(e){var t=e.name,r=e.code,i=e.encode;return new St(t,r,i)},St=(function(){return l(function e(t,r,i){c(this,e),this.name=t,this.code=r,this.encode=i},[{key:"digest",value:function(e){var t=this;if(e instanceof Uint8Array){var r=this.encode(e);return r instanceof Uint8Array?wt(this.code,r):r.then(function(e){return wt(t.code,e)})}throw Error("Unknown type, must be binary type")}}])})(),kt=function(e){return(function(){var t=s(function*(t){return new Uint8Array(yield crypto.subtle.digest(e,t))});return function(e){return t.apply(this,arguments)}})()},Ot=Pt({name:"sha2-256",code:18,encode:kt("SHA-256")}),Rt=Pt({name:"sha2-512",code:19,encode:kt("SHA-512")}),xt=Object.freeze({__proto__:null,sha256:Ot,sha512:Rt}),Ct=ae,At={code:0,name:"identity",encode:Ct,digest:function(e){return wt(0,Ct(e))}},Nt=Object.freeze({__proto__:null,identity:At});new TextEncoder,new TextDecoder;var Lt=Object.assign({},Ie,Te,Se,Oe,Ce,$e,qe,He,Ze,it);function Dt(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Dt(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function jt(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}Object.assign({},xt,Nt);var Mt=jt("utf8","u",function(e){return"u"+new TextDecoder("utf8").decode(e)},function(e){return(new TextEncoder).encode(e.substring(1))}),Ut=jt("ascii","a",function(e){for(var t="a",r=0;r1&&void 0!==arguments[1]?arguments[1]:"utf8",r=Kt[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):Dt(globalThis.Buffer.from(e,"utf-8"))}var Vt=Object.defineProperty,Bt=function(e,t,r){return t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},qt=function(e,t,r){return Bt(e,"symbol"!=typeof t?t+"":t,r)},Ft=(function(){return l(function e(t,r){var i=this;c(this,e),this.core=t,this.logger=r,qt(this,"keychain",new Map),qt(this,"name",P),qt(this,"version","0.3"),qt(this,"initialized",!1),qt(this,"storagePrefix",_),qt(this,"init",s(function*(){if(!i.initialized){var e=yield i.getKeyChain();typeof e<"u"&&(i.keychain=e),i.initialized=!0}})),qt(this,"has",function(e){return i.isInitialized(),i.keychain.has(e)}),qt(this,"set",(function(){var e=s(function*(e,t){i.isInitialized(),i.keychain.set(e,t),yield i.persist()});return function(t,r){return e.apply(this,arguments)}})()),qt(this,"get",function(e){i.isInitialized();var t=i.keychain.get(e);if(typeof t>"u"){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${i.name}: ${e}`).message;throw new Error(r)}return t}),qt(this,"del",(function(){var e=s(function*(e){i.isInitialized(),i.keychain.delete(e),yield i.persist()});return function(t){return e.apply(this,arguments)}})()),this.core=t,this.logger=_r2(_d[16]).generateChildLogger(r,this.name)},[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setKeyChain",value:(r=s(function*(e){yield this.core.storage.setItem(this.storageKey,_r2(_d[15]).mapToObj(e))}),function(e){return r.apply(this,arguments)})},{key:"getKeyChain",value:(t=s(function*(){var e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return t.apply(this,arguments)})},{key:"persist",value:(e=s(function*(){yield this.setKeyChain(this.keychain)}),function(){return e.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var e,t,r})(),Gt=Object.defineProperty,Ht=function(e,t,r){return t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Yt=function(e,t,r){return Ht(e,"symbol"!=typeof t?t+"":t,r)},Jt=(function(){return l(function e(t,r,i){var n=this;c(this,e),this.core=t,this.logger=r,Yt(this,"name",w),Yt(this,"keychain"),Yt(this,"randomSessionIdentifier",_r2(_d[15]).generateRandomBytes32()),Yt(this,"initialized",!1),Yt(this,"init",s(function*(){n.initialized||(yield n.keychain.init(),n.initialized=!0)})),Yt(this,"hasKeys",function(e){return n.isInitialized(),n.keychain.has(e)}),Yt(this,"getClientId",s(function*(){n.isInitialized();var e=yield n.getClientSeed(),t=f.generateKeyPair(e);return f.encodeIss(t.publicKey)})),Yt(this,"generateKeyPair",function(){n.isInitialized();var e=_r2(_d[15]).generateKeyPair();return n.setPrivateKey(e.publicKey,e.privateKey)}),Yt(this,"signJWT",(function(){var e=s(function*(e){n.isInitialized();var t=yield n.getClientSeed(),r=f.generateKeyPair(t),i=n.randomSessionIdentifier,o=_r2(_d[14]).ONE_DAY;return yield f.signJWT(i,e,o,r)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"generateSharedKey",function(e,t,r){n.isInitialized();var i=n.getPrivateKey(e),o=_r2(_d[15]).deriveSymKey(i,t);return n.setSymKey(o,r)}),Yt(this,"setSymKey",(function(){var e=s(function*(e,t){n.isInitialized();var r=t||_r2(_d[15]).hashKey(e);return yield n.keychain.set(r,e),r});return function(t,r){return e.apply(this,arguments)}})()),Yt(this,"deleteKeyPair",(function(){var e=s(function*(e){n.isInitialized(),yield n.keychain.del(e)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"deleteSymKey",(function(){var e=s(function*(e){n.isInitialized(),yield n.keychain.del(e)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"encode",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).validateEncoding(r),o=_r2(_d[17]).safeJsonStringify(t);if(_r2(_d[15]).isTypeTwoEnvelope(i))return _r2(_d[15]).encodeTypeTwoEnvelope(o,null==r?void 0:r.encoding);if(_r2(_d[15]).isTypeOneEnvelope(i)){var s=i.senderPublicKey,a=i.receiverPublicKey;e=yield n.generateSharedKey(s,a)}var c=n.getSymKey(e),l=i.type,u=i.senderPublicKey;return _r2(_d[15]).encrypt({type:l,symKey:c,message:o,senderPublicKey:u,encoding:null==r?void 0:r.encoding})});return function(t,r,i){return e.apply(this,arguments)}})()),Yt(this,"decode",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).validateDecoding(t,r);if(_r2(_d[15]).isTypeTwoEnvelope(i)){var o=_r2(_d[15]).decodeTypeTwoEnvelope(t,null==r?void 0:r.encoding);return _r2(_d[17]).safeJsonParse(o)}if(_r2(_d[15]).isTypeOneEnvelope(i)){var s=i.receiverPublicKey,a=i.senderPublicKey;e=yield n.generateSharedKey(s,a)}try{var c=n.getSymKey(e),l=_r2(_d[15]).decrypt({symKey:c,encoded:t,encoding:null==r?void 0:r.encoding});return _r2(_d[17]).safeJsonParse(l)}catch(o){n.logger.error(`Failed to decode message from topic: '${e}', clientId: '${yield n.getClientId()}'`),n.logger.error(o)}});return function(t,r,i){return e.apply(this,arguments)}})()),Yt(this,"getPayloadType",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_r2(_d[15]).BASE64,r=_r2(_d[15]).deserialize({encoded:e,encoding:t});return _r2(_d[15]).decodeTypeByte(r.type)}),Yt(this,"getPayloadSenderPublicKey",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_r2(_d[15]).BASE64,r=_r2(_d[15]).deserialize({encoded:e,encoding:t});return r.senderPublicKey?_r2(_d[18]).toString(r.senderPublicKey,_r2(_d[15]).BASE16):void 0}),this.core=t,this.logger=_r2(_d[16]).generateChildLogger(r,this.name),this.keychain=i||new Ft(this.core,this.logger)},[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"setPrivateKey",value:(t=s(function*(e,t){return yield this.keychain.set(e,t),e}),function(e,r){return t.apply(this,arguments)})},{key:"getPrivateKey",value:function(e){return this.keychain.get(e)}},{key:"getClientSeed",value:(e=s(function*(){var e="";try{e=this.keychain.get(T)}catch(t){e=_r2(_d[15]).generateRandomBytes32(),yield this.keychain.set(T,e)}return $t(e,"base16")}),function(){return e.apply(this,arguments)})},{key:"getSymKey",value:function(e){return this.keychain.get(e)}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var e,t})(),Wt=Object.defineProperty,Xt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,rr=function(e,t,r){return t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ir=function(e,t){for(var r in t||(t={}))er.call(t,r)&&rr(e,r,t[r]);if(Qt)for(var r of Qt(t))tr.call(t,r)&&rr(e,r,t[r]);return e},nr=function(e,t){return Xt(e,Zt(t))},or=function(e,t,r){return rr(e,"symbol"!=typeof t?t+"":t,r)},sr=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).logger=e,n.core=i,or(r(n),"messages",new Map),or(r(n),"messagesWithoutClientAck",new Map),or(r(n),"name",S),or(r(n),"version","0.3"),or(r(n),"initialized",!1),or(r(n),"storagePrefix",_),or(r(n),"init",s(function*(){if(!n.initialized){n.logger.trace("Initialized");try{var e=yield n.getRelayerMessages();typeof e<"u"&&(n.messages=e);var t=yield n.getRelayerMessagesWithoutClientAck();typeof t<"u"&&(n.messagesWithoutClientAck=t),n.logger.debug(`Successfully Restored records for ${n.name}`),n.logger.trace({type:"method",method:"restore",size:n.messages.size})}catch(e){n.logger.debug(`Failed to Restore records for ${n.name}`),n.logger.error(e)}finally{n.initialized=!0}}})),or(r(n),"set",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).hashMessage(t),o=n.messages.get(e);if(typeof o>"u"&&(o={}),typeof o[i]<"u")return i;if(o[i]=t,n.messages.set(e,o),r===z.inbound){var s=n.messagesWithoutClientAck.get(e)||{};n.messagesWithoutClientAck.set(e,nr(ir({},s),a({},i,t)))}return yield n.persist(),i});return function(t,r,i){return e.apply(this,arguments)}})()),or(r(n),"get",function(e){n.isInitialized();var t=n.messages.get(e);return typeof t>"u"&&(t={}),t}),or(r(n),"getWithoutAck",function(e){n.isInitialized();var t={};for(var r of e){var i=n.messagesWithoutClientAck.get(r)||{};t[r]=Object.values(i)}return t}),or(r(n),"has",function(e,t){return n.isInitialized(),typeof n.get(e)[_r2(_d[15]).hashMessage(t)]<"u"}),or(r(n),"ack",(function(){var e=s(function*(e,t){n.isInitialized();var r=n.messagesWithoutClientAck.get(e);typeof r>"u"||(delete r[_r2(_d[15]).hashMessage(t)],0===Object.keys(r).length?n.messagesWithoutClientAck.delete(e):n.messagesWithoutClientAck.set(e,r),yield n.persist())});return function(t,r){return e.apply(this,arguments)}})()),or(r(n),"del",(function(){var e=s(function*(e){n.isInitialized(),n.messages.delete(e),n.messagesWithoutClientAck.delete(e),yield n.persist()});return function(t){return e.apply(this,arguments)}})()),n.logger=_r2(_d[16]).generateChildLogger(e,n.name),n.core=i,n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"storageKeyWithoutClientAck",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name+"_withoutClientAck"}},{key:"setRelayerMessages",value:(g=s(function*(e){yield this.core.storage.setItem(this.storageKey,_r2(_d[15]).mapToObj(e))}),function(e){return g.apply(this,arguments)})},{key:"setRelayerMessagesWithoutClientAck",value:(d=s(function*(e){yield this.core.storage.setItem(this.storageKeyWithoutClientAck,_r2(_d[15]).mapToObj(e))}),function(e){return d.apply(this,arguments)})},{key:"getRelayerMessages",value:(p=s(function*(){var e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return p.apply(this,arguments)})},{key:"getRelayerMessagesWithoutClientAck",value:(n=s(function*(){var e=yield this.core.storage.getItem(this.storageKeyWithoutClientAck);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return n.apply(this,arguments)})},{key:"persist",value:(i=s(function*(){yield this.setRelayerMessages(this.messages),yield this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}),function(){return i.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,p,d,g})(_r2(_d[19]).IMessageTracker),ar=Object.defineProperty,cr=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,ur=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,gr=function(e,t,r){return t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},hr=function(e,t){for(var r in t||(t={}))pr.call(t,r)&&gr(e,r,t[r]);if(ur)for(var r of ur(t))dr.call(t,r)&&gr(e,r,t[r]);return e},fr=function(e,t){return cr(e,lr(t))},yr=function(e,t,r){return gr(e,"symbol"!=typeof t?t+"":t,r)},vr=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).relayer=e,n.logger=i,yr(r(n),"events",new(_r2(_d[10]).EventEmitter)),yr(r(n),"name",k),yr(r(n),"queue",new Map),yr(r(n),"publishTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_MINUTE)),yr(r(n),"initialPublishTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),yr(r(n),"needsTransportRestart",!1),yr(r(n),"publish",(function(){var e=s(function*(e,t,r){var i,o,a,c,l;n.logger.debug("Publishing Payload"),n.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});var u=(null==r?void 0:r.ttl)||_r2(_d[14]).SIX_HOURS,p=(null==r?void 0:r.prompt)||!1,d=(null==r?void 0:r.tag)||0,g=(null==r?void 0:r.id)||_r2(_d[20]).getBigIntRpcId().toString(),h=_r2(_d[15]).getRelayProtocolApi(_r2(_d[15]).getRelayProtocolName().protocol),f={id:g,method:(null==r?void 0:r.publishMethod)||h.publish,params:hr({topic:e,message:t,ttl:u,prompt:p,tag:d,attestation:null==r?void 0:r.attestation},null==r?void 0:r.tvf)},y=`Failed to publish payload, please try again. id:${g} tag:${d}`;try{_r2(_d[15]).isUndefined(null==(i=f.params)?void 0:i.prompt)&&(null==(o=f.params)||delete o.prompt),_r2(_d[15]).isUndefined(null==(a=f.params)?void 0:a.tag)&&(null==(c=f.params)||delete c.tag);var v=new Promise((function(){var e=s(function*(e){var t=function(r){var i,o=r.id;(null==(i=f.id)?void 0:i.toString())===o.toString()&&(n.removeRequestFromQueue(o),n.relayer.events.removeListener(C.publish,t),e())};n.relayer.events.on(C.publish,t);var i=_r2(_d[15]).createExpiringPromise(new Promise(function(e,t){n.rpcPublish(f,r).then(e).catch(function(e){n.logger.warn(e,null==e?void 0:e.message),t(e)})}),n.initialPublishTimeout,`Failed initial publish, retrying.... id:${g} tag:${d}`);try{yield i,n.events.removeListener(C.publish,t)}catch(e){n.queue.set(g,{request:f,opts:r,attempt:1}),n.logger.warn(e,null==e?void 0:e.message)}});return function(t){return e.apply(this,arguments)}})());n.logger.trace({type:"method",method:"publish",params:{id:g,topic:e,message:t,opts:r}}),yield _r2(_d[15]).createExpiringPromise(v,n.publishTimeout,y)}catch(v){if(n.logger.debug("Failed to Publish Payload"),n.logger.error(v),null!=(l=null==r?void 0:r.internal)&&l.throwOnFailedPublish)throw v}finally{n.queue.delete(g)}});return function(t,r,i){return e.apply(this,arguments)}})()),yr(r(n),"publishCustom",(function(){var e=s(function*(e){var t,r,i,o,a;n.logger.debug("Publishing custom payload"),n.logger.trace({type:"method",method:"publishCustom",params:e});var c=e.payload,l=e.opts,u=void 0===l?{}:l,p=u.attestation,d=u.tvf,g=u.publishMethod,h=u.prompt,f=u.tag,y=u.ttl,v=void 0===y?_r2(_d[14]).FIVE_MINUTES:y,b=u.id||_r2(_d[20]).getBigIntRpcId().toString(),_=_r2(_d[15]).getRelayProtocolApi(_r2(_d[15]).getRelayProtocolName().protocol),E=g||_.publish,I={id:b,method:E,params:hr(fr(hr({},c),{ttl:v,prompt:h,tag:f,attestation:p}),d)},w=`Failed to publish custom payload, please try again. id:${b} tag:${f}`;try{_r2(_d[15]).isUndefined(null==(t=I.params)?void 0:t.prompt)&&(null==(r=I.params)||delete r.prompt),_r2(_d[15]).isUndefined(null==(i=I.params)?void 0:i.tag)&&(null==(o=I.params)||delete o.tag);var T=new Promise((function(){var e=s(function*(e){var t=function(r){var i,o=r.id;(null==(i=I.id)?void 0:i.toString())===o.toString()&&(n.removeRequestFromQueue(o),n.relayer.events.removeListener(C.publish,t),e())};n.relayer.events.on(C.publish,t);var r=_r2(_d[15]).createExpiringPromise(new Promise(function(e,t){n.rpcPublish(I,u).then(e).catch(function(e){n.logger.warn(e,null==e?void 0:e.message),t(e)})}),n.initialPublishTimeout,`Failed initial custom payload publish, retrying.... method:${E} id:${b} tag:${f}`);try{yield r,n.events.removeListener(C.publish,t)}catch(e){n.queue.set(b,{request:I,opts:u,attempt:1}),n.logger.warn(e,null==e?void 0:e.message)}});return function(t){return e.apply(this,arguments)}})());n.logger.trace({type:"method",method:"publish",params:{id:b,payload:c,opts:u}}),yield _r2(_d[15]).createExpiringPromise(T,n.publishTimeout,w)}catch(T){if(n.logger.debug("Failed to Publish Payload"),n.logger.error(T),null!=(a=null==u?void 0:u.internal)&&a.throwOnFailedPublish)throw T}finally{n.queue.delete(b)}});return function(t){return e.apply(this,arguments)}})()),yr(r(n),"on",function(e,t){n.events.on(e,t)}),yr(r(n),"once",function(e,t){n.events.once(e,t)}),yr(r(n),"off",function(e,t){n.events.off(e,t)}),yr(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.relayer=e,n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n.registerEventListeners(),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"rpcPublish",value:(i=s(function*(e,t){this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:e});var r=yield this.relayer.request(e);return this.relayer.events.emit(C.publish,hr(hr({},e),t)),this.logger.debug("Successfully Published Payload"),r}),function(e,t){return i.apply(this,arguments)})},{key:"removeRequestFromQueue",value:function(e){this.queue.delete(e)}},{key:"checkQueue",value:function(){var e=this;this.queue.forEach((function(){var t=s(function*(t,r){var i,n=t.attempt+1;e.queue.set(r,fr(hr({},t),{attempt:n})),e.logger.warn({},`Publisher: queue->publishing: ${t.request.id}, tag: ${null==(i=t.request.params)?void 0:i.tag}, attempt: ${n}`),yield e.rpcPublish(t.request,t.opts),e.logger.warn({},`Publisher: queue->published: ${t.request.id}`)});return function(e,r){return t.apply(this,arguments)}})())}},{key:"registerEventListeners",value:function(){var e=this;this.relayer.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){if(e.needsTransportRestart)return e.needsTransportRestart=!1,void e.relayer.events.emit(C.connection_stalled);e.checkQueue()}),this.relayer.on(C.message_ack,function(t){e.removeRequestFromQueue(t.id.toString())})}}]);var i})(_r2(_d[19]).IPublisher),br=Object.defineProperty,mr=function(e,t,r){return t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_r=function(e,t,r){return mr(e,"symbol"!=typeof t?t+"":t,r)},Er=(function(){return l(function e(){var r=this;c(this,e),_r(this,"map",new Map),_r(this,"set",function(e,i){var n=r.get(e);r.exists(e,i)||r.map.set(e,[].concat(t(n),[i]))}),_r(this,"get",function(e){return r.map.get(e)||[]}),_r(this,"exists",function(e,t){return r.get(e).includes(t)}),_r(this,"delete",function(e,t){if(typeof t>"u")r.map.delete(e);else if(r.map.has(e)){var i=r.get(e);if(r.exists(e,t)){var n=i.filter(function(e){return e!==t});n.length?r.map.set(e,n):r.map.delete(e)}}}),_r(this,"clear",function(){r.map.clear()})},[{key:"topics",get:function(){return Array.from(this.map.keys())}}])})(),Ir=Object.defineProperty,wr=Object.defineProperties,Tr=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Or=function(e,t,r){return t in e?Ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Rr=function(e,t){for(var r in t||(t={}))Sr.call(t,r)&&Or(e,r,t[r]);if(Pr)for(var r of Pr(t))kr.call(t,r)&&Or(e,r,t[r]);return e},xr=function(e,t){return wr(e,Tr(t))},Cr=function(e,t,r){return Or(e,"symbol"!=typeof t?t+"":t,r)},Ar=(function(e){function i(e,t){var n;return c(this,i),(n=u(this,i,[e,t])).relayer=e,n.logger=t,Cr(r(n),"subscriptions",new Map),Cr(r(n),"topicMap",new Er),Cr(r(n),"events",new(_r2(_d[10]).EventEmitter)),Cr(r(n),"name",K),Cr(r(n),"version","0.3"),Cr(r(n),"pending",new Map),Cr(r(n),"cached",[]),Cr(r(n),"initialized",!1),Cr(r(n),"storagePrefix",_),Cr(r(n),"subscribeTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_MINUTE)),Cr(r(n),"initialSubscribeTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),Cr(r(n),"clientId"),Cr(r(n),"batchSubscribeTopicsLimit",500),Cr(r(n),"init",s(function*(){n.initialized||(n.logger.trace("Initialized"),n.registerEventListeners(),yield n.restore()),n.initialized=!0})),Cr(r(n),"subscribe",(function(){var e=s(function*(e,t){var r;n.isInitialized(),n.logger.debug("Subscribing Topic"),n.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{var i=_r2(_d[15]).getRelayProtocolName(t),o={topic:e,relay:i,transportType:null==t?void 0:t.transportType};null!=(r=null==t?void 0:t.internal)&&r.skipSubscribe||n.pending.set(e,o);var s=yield n.rpcSubscribe(e,i,t);return"string"==typeof s&&(n.onSubscribe(s,o),n.logger.debug("Successfully Subscribed Topic"),n.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),s}catch(i){throw n.logger.debug("Failed to Subscribe Topic"),n.logger.error(i),i}});return function(t,r){return e.apply(this,arguments)}})()),Cr(r(n),"unsubscribe",(function(){var e=s(function*(e,t){n.isInitialized(),typeof(null==t?void 0:t.id)<"u"?yield n.unsubscribeById(e,t.id,t):yield n.unsubscribeByTopic(e,t)});return function(t,r){return e.apply(this,arguments)}})()),Cr(r(n),"isSubscribed",function(e){return new Promise(function(t){t(n.topicMap.topics.includes(e))})}),Cr(r(n),"isKnownTopic",function(e){return new Promise(function(t){t(n.topicMap.topics.includes(e)||n.pending.has(e)||n.cached.some(function(t){return t.topic===e}))})}),Cr(r(n),"on",function(e,t){n.events.on(e,t)}),Cr(r(n),"once",function(e,t){n.events.once(e,t)}),Cr(r(n),"off",function(e,t){n.events.off(e,t)}),Cr(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),Cr(r(n),"start",s(function*(){yield n.onConnect()})),Cr(r(n),"stop",s(function*(){yield n.onDisconnect()})),Cr(r(n),"restart",s(function*(){yield n.restore(),yield n.onRestart()})),Cr(r(n),"checkPending",s(function*(){if(0!==n.pending.size||n.initialized&&n.relayer.connected){var e=[];n.pending.forEach(function(t){e.push(t)}),yield n.batchSubscribe(e)}})),Cr(r(n),"registerEventListeners",function(){n.relayer.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){yield n.checkPending()})),n.events.on(U.created,(function(){var e=s(function*(e){var t=U.created;n.logger.info(`Emitting ${t}`),n.logger.debug({type:"event",event:t,data:e}),yield n.persist()});return function(t){return e.apply(this,arguments)}})()),n.events.on(U.deleted,(function(){var e=s(function*(e){var t=U.deleted;n.logger.info(`Emitting ${t}`),n.logger.debug({type:"event",event:t,data:e}),yield n.persist()});return function(t){return e.apply(this,arguments)}})())}),n.relayer=e,n.logger=_r2(_d[16]).generateChildLogger(t,n.name),n.clientId="",n}return o(i,e),l(i,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.subscriptions.size}},{key:"ids",get:function(){return Array.from(this.subscriptions.keys())}},{key:"values",get:function(){return Array.from(this.subscriptions.values())}},{key:"topics",get:function(){return this.topicMap.topics}},{key:"hasAnyTopics",get:function(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}},{key:"hasSubscription",value:function(e,t){var r=!1;try{r=this.getSubscription(e).topic===t}catch(e){}return r}},{key:"reset",value:function(){this.cached=[],this.initialized=!0}},{key:"onDisable",value:function(){this.values.length>0&&(this.cached=this.values),this.subscriptions.clear(),this.topicMap.clear()}},{key:"unsubscribeByTopic",value:(k=s(function*(e,t){var r=this,i=this.topicMap.get(e);yield Promise.all(i.map((function(){var i=s(function*(i){return yield r.unsubscribeById(e,i,t)});return function(e){return i.apply(this,arguments)}})()))}),function(e,t){return k.apply(this,arguments)})},{key:"unsubscribeById",value:(S=s(function*(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{var i=_r2(_d[15]).getRelayProtocolName(r);yield this.restartToComplete({topic:e,id:t,relay:i}),yield this.rpcUnsubscribe(e,t,i);var n=_r2(_d[15]).getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);yield this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}),function(e,t,r){return S.apply(this,arguments)})},{key:"rpcSubscribe",value:(P=s(function*(e,t,r){var i,n,o=this,a=yield this.getSubscriptionId(e);if(null!=(i=null==r?void 0:r.internal)&&i.skipSubscribe)return a;(!r||(null==r?void 0:r.transportType)===D.relay)&&(yield this.restartToComplete({topic:e,id:e,relay:t}));var c={method:_r2(_d[15]).getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});var l=null==(n=null==r?void 0:r.internal)?void 0:n.throwOnFailedPublish;try{if((null==r?void 0:r.transportType)===D.link_mode)return setTimeout(function(){(o.relayer.connected||o.relayer.connecting)&&o.relayer.request(c).catch(function(e){return o.logger.warn(e)})},_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_SECOND)),a;var u=new Promise((function(){var t=s(function*(t){var r=function(i){i.topic===e&&(o.events.removeListener(U.created,r),t(i.id))};o.events.on(U.created,r);try{var i=yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,t){o.relayer.request(c).catch(function(e){o.logger.warn(e,null==e?void 0:e.message),t(e)}).then(e)}),o.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);o.events.removeListener(U.created,r),t(i)}catch(e){}});return function(e){return t.apply(this,arguments)}})()),p=yield _r2(_d[15]).createExpiringPromise(u,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!p&&l)throw new Error(`Subscribing to ${e} failed, please try again`);return p?a:null}catch(u){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(C.connection_stalled),l)throw u}return null}),function(e,t,r){return P.apply(this,arguments)})},{key:"rpcBatchSubscribe",value:(T=s(function*(e){var t=this;if(e.length){var r=e[0].relay,i={method:_r2(_d[15]).getRelayProtocolApi(r.protocol).batchSubscribe,params:{topics:e.map(function(e){return e.topic})}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i});try{yield yield _r2(_d[15]).createExpiringPromise(new Promise(function(e){t.relayer.request(i).catch(function(e){return t.logger.warn(e)}).then(e)}),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again")}catch(e){this.relayer.events.emit(C.connection_stalled)}}}),function(e){return T.apply(this,arguments)})},{key:"rpcBatchFetchMessages",value:(w=s(function*(e){var t=this;if(e.length){var r,i=e[0].relay,n={method:_r2(_d[15]).getRelayProtocolApi(i.protocol).batchFetchMessages,params:{topics:e.map(function(e){return e.topic})}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{r=yield yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,r){t.relayer.request(n).catch(function(e){t.logger.warn(e),r(e)}).then(e)}),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch(e){this.relayer.events.emit(C.connection_stalled)}return r}}),function(e){return w.apply(this,arguments)})},{key:"rpcUnsubscribe",value:function(e,t,r){var i={method:_r2(_d[15]).getRelayProtocolApi(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}},{key:"onSubscribe",value:function(e,t){this.setSubscription(e,xr(Rr({},t),{id:e})),this.pending.delete(t.topic)}},{key:"onBatchSubscribe",value:function(e){var t=this;e.length&&e.forEach(function(e){t.setSubscription(e.id,Rr({},e)),t.pending.delete(e.topic)})}},{key:"onUnsubscribe",value:(I=s(function*(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),yield this.relayer.messages.del(e)}),function(e,t,r){return I.apply(this,arguments)})},{key:"setRelayerSubscriptions",value:(E=s(function*(e){yield this.relayer.core.storage.setItem(this.storageKey,e)}),function(e){return E.apply(this,arguments)})},{key:"getRelayerSubscriptions",value:(b=s(function*(){return yield this.relayer.core.storage.getItem(this.storageKey)}),function(){return b.apply(this,arguments)})},{key:"setSubscription",value:function(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}},{key:"addSubscription",value:function(e,t){this.subscriptions.set(e,Rr({},t)),this.topicMap.set(t.topic,e),this.events.emit(U.created,t)}},{key:"getSubscription",value:function(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});var t=this.subscriptions.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw new Error(r)}return t}},{key:"deleteSubscription",value:function(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});var r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(U.deleted,xr(Rr({},r),{reason:t}))}},{key:"persist",value:(v=s(function*(){yield this.setRelayerSubscriptions(this.values),this.events.emit(U.sync)}),function(){return v.apply(this,arguments)})},{key:"onRestart",value:(y=s(function*(){if(this.cached.length)for(var e=t(this.cached),r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit),i=0;i"u"||!t.length)return;if(this.subscriptions.size&&!t.every(function(t){var r;return t.topic===(null==(r=e.subscriptions.get(t.id))?void 0:r.topic)})){var r=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}),function(){return f.apply(this,arguments)})},{key:"batchSubscribe",value:(h=s(function*(e){var t=this;e.length&&(yield this.rpcBatchSubscribe(e),this.onBatchSubscribe(yield Promise.all(e.map((function(){var e=s(function*(e){return xr(Rr({},e),{id:yield t.getSubscriptionId(e.topic)})});return function(t){return e.apply(this,arguments)}})()))))}),function(e){return h.apply(this,arguments)})},{key:"batchFetchMessages",value:(g=s(function*(e){if(e.length){this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);var t=yield this.rpcBatchFetchMessages(e);t&&t.messages&&(yield _r2(_d[15]).sleep(_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_SECOND)),yield this.relayer.handleBatchMessageEvents(t.messages))}}),function(e){return g.apply(this,arguments)})},{key:"onConnect",value:(d=s(function*(){yield this.restart(),this.reset()}),function(){return d.apply(this,arguments)})},{key:"onDisconnect",value:function(){this.onDisable()}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"restartToComplete",value:(p=s(function*(e){!this.relayer.connected&&!this.relayer.connecting&&(this.cached.push(e),yield this.relayer.transportOpen())}),function(e){return p.apply(this,arguments)})},{key:"getClientId",value:(a=s(function*(){return this.clientId||(this.clientId=yield this.relayer.core.crypto.getClientId()),this.clientId}),function(){return a.apply(this,arguments)})},{key:"getSubscriptionId",value:(n=s(function*(e){return _r2(_d[15]).hashMessage(e+(yield this.getClientId()))}),function(e){return n.apply(this,arguments)})}]);var n,a,p,d,g,h,f,y,v,b,E,I,w,T,P,S,k})(_r2(_d[19]).ISubscriber),Nr=Object.defineProperty,Lr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,jr=function(e,t,r){return t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Mr=function(e,t){for(var r in t||(t={}))Dr.call(t,r)&&jr(e,r,t[r]);if(Lr)for(var r of Lr(t))zr.call(t,r)&&jr(e,r,t[r]);return e},Ur=function(e,t,r){return jr(e,"symbol"!=typeof t?t+"":t,r)},Kr=(function(e){function t(e){var i;return c(this,t),i=u(this,t,[e]),Ur(r(i),"protocol","wc"),Ur(r(i),"version",2),Ur(r(i),"core"),Ur(r(i),"logger"),Ur(r(i),"events",new(_r2(_d[10]).EventEmitter)),Ur(r(i),"provider"),Ur(r(i),"messages"),Ur(r(i),"subscriber"),Ur(r(i),"publisher"),Ur(r(i),"name",x),Ur(r(i),"transportExplicitlyClosed",!1),Ur(r(i),"initialized",!1),Ur(r(i),"connectionAttemptInProgress",!1),Ur(r(i),"relayUrl"),Ur(r(i),"projectId"),Ur(r(i),"packageName"),Ur(r(i),"bundleId"),Ur(r(i),"hasExperiencedNetworkDisruption",!1),Ur(r(i),"pingTimeout"),Ur(r(i),"heartBeatTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).THIRTY_SECONDS+_r2(_d[14]).FIVE_SECONDS)),Ur(r(i),"reconnectTimeout"),Ur(r(i),"connectPromise"),Ur(r(i),"reconnectInProgress",!1),Ur(r(i),"requestsInFlight",[]),Ur(r(i),"connectTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),Ur(r(i),"request",(function(){var e=s(function*(e){var t,r;i.logger.debug("Publishing Request Payload");var n=e.id||_r2(_d[20]).getBigIntRpcId().toString();yield i.toEstablishConnection();try{i.logger.trace({id:n,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - publishing...");var o=`${n}:${(null==(r=e.params)?void 0:r.tag)||""}`;i.requestsInFlight.push(o);var s=yield i.provider.request(e);return i.requestsInFlight=i.requestsInFlight.filter(function(e){return e!==o}),s}catch(o){throw i.logger.debug(`Failed to Publish Request: ${n}`),o}});return function(t){return e.apply(this,arguments)}})()),Ur(r(i),"resetPingTimeout",function(){_r2(_d[15]).isNode()&&(clearTimeout(i.pingTimeout),i.pingTimeout=setTimeout(function(){var e,t,r,n;try{i.logger.debug({},"pingTimeout: Connection stalled, terminating..."),null==(n=null==(r=null==(t=null==(e=i.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.terminate)||n.call(r)}catch(e){i.logger.warn(e,null==e?void 0:e.message)}},i.heartBeatTimeout))}),Ur(r(i),"onPayloadHandler",function(e){i.onProviderPayload(e),i.resetPingTimeout()}),Ur(r(i),"onConnectHandler",function(){i.logger.warn({},"Relayer connected \ud83d\udedc"),i.startPingTimeout(),i.events.emit(C.connect)}),Ur(r(i),"onDisconnectHandler",function(){i.logger.warn({},"Relayer disconnected \ud83d\uded1"),i.requestsInFlight=[],i.onProviderDisconnect()}),Ur(r(i),"onProviderErrorHandler",function(e){i.logger.fatal(`Fatal socket error: ${e.message}`),i.events.emit(C.error,e),i.logger.fatal("Fatal socket error received, closing transport"),i.transportClose()}),Ur(r(i),"registerProviderListeners",function(){i.provider.on(N.payload,i.onPayloadHandler),i.provider.on(N.connect,i.onConnectHandler),i.provider.on(N.disconnect,i.onDisconnectHandler),i.provider.on(N.error,i.onProviderErrorHandler)}),i.core=e.core,i.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?_r2(_d[16]).generateChildLogger(e.logger,i.name):_r2(_d[16]).pino(_r2(_d[16]).getDefaultLoggerOptions({level:e.logger||O})),i.messages=new sr(i.logger,e.core),i.subscriber=new Ar(r(i),i.logger),i.publisher=new vr(r(i),i.logger),i.projectId=null==e?void 0:e.projectId,i.relayUrl=(null==e?void 0:e.relayUrl)||R,_r2(_d[15]).isAndroid()?i.packageName=_r2(_d[15]).getAppId():_r2(_d[15]).isIos()&&(i.bundleId=_r2(_d[15]).getAppId()),i.provider={},i}return o(t,e),l(t,[{key:"init",value:($=s(function*(){var e=this;this.logger.trace("Initialized"),this.registerEventListeners(),yield Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.transportOpen().catch(function(t){return e.logger.warn(t,null==t?void 0:t.message)})}),function(){return $.apply(this,arguments)})},{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"connected",get:function(){var e,t,r;return 1===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)||!1}},{key:"connecting",get:function(){var e,t,r;return 0===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)||void 0!==this.connectPromise||!1}},{key:"publish",value:(K=s(function*(e,t,r){this.isInitialized(),yield this.publisher.publish(e,t,r),yield this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:D.relay},z.outbound)}),function(e,t,r){return K.apply(this,arguments)})},{key:"publishCustom",value:(M=s(function*(e){this.isInitialized(),yield this.publisher.publishCustom(e)}),function(e){return M.apply(this,arguments)})},{key:"subscribe",value:(j=s(function*(e,t){var r,i,n,o=this;this.isInitialized(),(null==t||!t.transportType||"relay"===(null==t?void 0:t.transportType))&&(yield this.toEstablishConnection());var a,c=typeof(null==(r=null==t?void 0:t.internal)?void 0:r.throwOnFailedPublish)>"u"||(null==(i=null==t?void 0:t.internal)?void 0:i.throwOnFailedPublish),l=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"",u=function(t){t.topic===e&&(o.subscriber.off(U.created,u),a())};return yield Promise.all([new Promise(function(e){a=e,o.subscriber.on(U.created,u)}),new Promise((function(){var r=s(function*(r,i){l=(yield o.subscriber.subscribe(e,Mr({internal:{throwOnFailedPublish:c}},t)).catch(function(e){c&&i(e)}))||l,r()});return function(e,t){return r.apply(this,arguments)}})())]),l}),function(e,t){return j.apply(this,arguments)})},{key:"unsubscribe",value:(k=s(function*(e,t){this.isInitialized(),yield this.subscriber.unsubscribe(e,t)}),function(e,t){return k.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"transportDisconnect",value:(S=s(function*(){var e=this;this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?yield _r2(_d[15]).createExpiringPromise(this.provider.disconnect(),2e3,"provider.disconnect()").catch(function(){return e.onProviderDisconnect()}):this.onProviderDisconnect()}),function(){return S.apply(this,arguments)})},{key:"transportClose",value:(P=s(function*(){this.transportExplicitlyClosed=!0,yield this.transportDisconnect()}),function(){return P.apply(this,arguments)})},{key:"transportOpen",value:(T=s(function*(e){var t=this;if(this.subscriber.hasAnyTopics){if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),yield this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=new Promise((function(){var r=s(function*(r,i){yield t.connect(e).then(r).catch(i).finally(function(){t.connectPromise=void 0})});return function(e,t){return r.apply(this,arguments)}})()),yield this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}else this.logger.info("Starting WS connection skipped because the client has no topics to work with.")}),function(e){return T.apply(this,arguments)})},{key:"restartTransport",value:(w=s(function*(e){this.logger.debug({},"Restarting transport..."),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,yield this.confirmOnlineStateOrThrow(),yield this.transportClose(),yield this.transportOpen())}),function(e){return w.apply(this,arguments)})},{key:"confirmOnlineStateOrThrow",value:(I=s(function*(){if(!(yield _r2(_d[15]).isOnline()))throw new Error("No internet connection detected. Please restart your network and try again.")}),function(){return I.apply(this,arguments)})},{key:"handleBatchMessageEvents",value:(E=s(function*(e){if(0!==(null==e?void 0:e.length)){var t=e.sort(function(e,t){return e.publishedAt-t.publishedAt});for(var r of(this.logger.debug(`Batch of ${t.length} message events sorted`),t))try{yield this.onMessageEvent(r)}catch(e){this.logger.warn(e,"Error while processing batch message event: "+(null==e?void 0:e.message))}this.logger.trace(`Batch of ${t.length} message events processed`)}else this.logger.trace("Batch message events is empty. Ignoring...")}),function(e){return E.apply(this,arguments)})},{key:"onLinkMessageEvent",value:(_=s(function*(e,t){var r=e.topic;if(!t.sessionExists){var i={topic:r,expiry:_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),relay:{protocol:"irn"},active:!1};yield this.core.pairing.pairings.set(r,i)}this.events.emit(C.message,e),yield this.recordMessageEvent(e,z.inbound)}),function(e,t){return _.apply(this,arguments)})},{key:"connect",value:(b=s(function*(e){var t=this;yield this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,yield this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;for(var r=1;r<6;){try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${r}...`),yield this.createProvider(),yield new Promise((function(){var e=s(function*(e,r){var i=function(){r(new Error("Connection interrupted while trying to connect"))};t.provider.once(N.disconnect,i),yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,r){t.provider.connect().then(e).catch(r)}),t.connectTimeout,`Socket stalled when trying to connect to ${t.relayUrl}`).catch(function(e){r(e)}).finally(function(){t.provider.off(N.disconnect,i),clearTimeout(t.reconnectTimeout)}),yield new Promise((function(){var e=s(function*(e,i){var n=function(){r(new Error("Connection interrupted while trying to subscribe"))};t.provider.once(N.disconnect,n),yield t.subscriber.start().then(e).catch(i).finally(function(){t.provider.off(N.disconnect,n)})});return function(t,r){return e.apply(this,arguments)}})()),t.hasExperiencedNetworkDisruption=!1,e()});return function(t,r){return e.apply(this,arguments)}})())}catch(e){yield this.subscriber.stop();var i=e;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${r}`);break}yield new Promise(function(e){return setTimeout(e,_r2(_d[14]).toMiliseconds(1*r))}),r++}}),function(e){return b.apply(this,arguments)})},{key:"startPingTimeout",value:function(){var e,t,r,i,n,o=this;if(_r2(_d[15]).isNode())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||n.on("ping",function(){o.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e,null==e?void 0:e.message)}}},{key:"createProvider",value:(v=s(function*(){this.provider.connection&&this.unregisterProviderListeners();var e=yield this.core.crypto.signJWT(this.relayUrl);this.provider=new(_r2(_d[22]).JsonRpcProvider)(new y.default(_r2(_d[15]).formatRelayRpcUrl({sdkVersion:L,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}),function(){return v.apply(this,arguments)})},{key:"recordMessageEvent",value:(f=s(function*(e,t){var r=e.topic,i=e.message;yield this.messages.set(r,i,t)}),function(e,t){return f.apply(this,arguments)})},{key:"shouldIgnoreMessageEvent",value:(h=s(function*(e){var t=e.topic,r=e.message;if(!r||0===r.length)return this.logger.warn(`Ignoring invalid/empty message: ${r}`),!0;if(!(yield this.subscriber.isKnownTopic(t)))return this.logger.warn(`Ignoring message for unknown topic ${t}`),!0;var i=this.messages.has(t,r);return i&&this.logger.warn(`Ignoring duplicate message: ${r}`),i}),function(e){return h.apply(this,arguments)})},{key:"onProviderPayload",value:(g=s(function*(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),_r2(_d[20]).isJsonRpcRequest(e)){if(!e.method.endsWith(A))return;var t=e.params,r=t.data,i=r.topic,n=r.message,o=r.publishedAt,s=r.attestation,a={topic:i,message:n,publishedAt:o,transportType:D.relay,attestation:s};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Mr({type:"event",event:t.id},a)),this.events.emit(t.id,a),yield this.acknowledgePayload(e),yield this.onMessageEvent(a)}else _r2(_d[20]).isJsonRpcResponse(e)&&this.events.emit(C.message_ack,e)}),function(e){return g.apply(this,arguments)})},{key:"onMessageEvent",value:(d=s(function*(e){(yield this.shouldIgnoreMessageEvent(e))||(yield this.recordMessageEvent(e,z.inbound),this.events.emit(C.message,e))}),function(e){return d.apply(this,arguments)})},{key:"acknowledgePayload",value:(p=s(function*(e){var t=_r2(_d[20]).formatJsonRpcResult(e.id,!0);yield this.provider.connection.send(t)}),function(e){return p.apply(this,arguments)})},{key:"unregisterProviderListeners",value:function(){this.provider.off(N.payload,this.onPayloadHandler),this.provider.off(N.connect,this.onConnectHandler),this.provider.off(N.disconnect,this.onDisconnectHandler),this.provider.off(N.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}},{key:"registerEventListeners",value:(a=s(function*(){var e=this,t=yield _r2(_d[15]).isOnline();_r2(_d[15]).subscribeToNetworkChange((function(){var r=s(function*(r){t!==r&&(t=r,r?yield e.transportOpen().catch(function(t){return e.logger.error(t,null==t?void 0:t.message)}):(e.hasExperiencedNetworkDisruption=!0,yield e.transportDisconnect(),e.transportExplicitlyClosed=!1))});return function(e){return r.apply(this,arguments)}})()),this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){if(!e.transportExplicitlyClosed&&!e.connected&&_r2(_d[15]).isAppVisible())try{yield e.confirmOnlineStateOrThrow(),yield e.transportOpen()}catch(t){e.logger.warn(t,null==t?void 0:t.message)}}))}),function(){return a.apply(this,arguments)})},{key:"onProviderDisconnect",value:(n=s(function*(){var e=this;clearTimeout(this.pingTimeout),this.events.emit(C.disconnect),this.connectionAttemptInProgress=!1,!this.reconnectInProgress&&(this.reconnectInProgress=!0,yield this.subscriber.stop(),this.subscriber.hasAnyTopics&&(this.transportExplicitlyClosed||(this.reconnectTimeout=setTimeout(s(function*(){yield e.transportOpen().catch(function(t){return e.logger.error(t,null==t?void 0:t.message)}),e.reconnectTimeout=void 0,e.reconnectInProgress=!1}),_r2(_d[14]).toMiliseconds(.1)))))}),function(){return n.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"toEstablishConnection",value:(i=s(function*(){if(yield this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectPromise)return void(yield this.connectPromise);yield this.connect()}}),function(){return i.apply(this,arguments)})}]);var i,n,a,p,d,g,h,f,v,b,_,E,I,w,T,P,S,k,j,M,K,$})(_r2(_d[19]).IRelayer);function $r(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vr(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function Br(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var qr="[object Arguments]",Fr="[object Object]";function Gr(){}function Hr(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function Yr(e,t,r){return Jr(e,t,void 0,void 0,void 0,void 0,r)}function Jr(e,t,r,i,n,o,s){var a=s(e,t,r,i,n,o);if(void 0!==a)return a;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return e===t;case"number":return e===t||Object.is(e,t);case"object":return Wr(e,t,o,s)}return Wr(e,t,o,s)}function Wr(r,i,n,o){if(Object.is(r,i))return!0;var s=Br(r),a=Br(i);if(s===qr&&(s=Fr),a===qr&&(a=Fr),s!==a)return!1;switch(s){case"[object String]":return r.toString()===i.toString();case"[object Number]":return $r(r.valueOf(),i.valueOf());case"[object Boolean]":case"[object Date]":case"[object Symbol]":return Object.is(r.valueOf(),i.valueOf());case"[object RegExp]":return r.source===i.source&&r.flags===i.flags;case"[object Function]":return r===i}var c=(n=null!=n?n:new Map).get(r),l=n.get(i);if(null!=c&&null!=l)return c===i;n.set(r,i),n.set(i,r);try{switch(s){case"[object Map]":if(r.size!==i.size)return!1;for(var u of r.entries()){var p=e(u,2),d=p[0],g=p[1];if(!i.has(d)||!Jr(g,i.get(d),d,r,i,n,o))return!1}return!0;case"[object Set]":if(r.size!==i.size)return!1;for(var h,f=Array.from(r.values()),y=Array.from(i.values()),v=function(){var e=f[b],t=y.findIndex(function(t){return Jr(e,t,void 0,r,i,n,o)});if(-1===t)return{v:!1};y.splice(t,1)},b=0;b3&&void 0!==arguments[3]?arguments[3]:_,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return c(this,t),(o=u(this,t,[e,i,n,a])).core=e,o.logger=i,o.name=n,ni(r(o),"map",new Map),ni(r(o),"version","0.3"),ni(r(o),"cached",[]),ni(r(o),"initialized",!1),ni(r(o),"getKey"),ni(r(o),"storagePrefix",_),ni(r(o),"recentlyDeleted",[]),ni(r(o),"recentlyDeletedLimit",200),ni(r(o),"init",s(function*(){o.initialized||(o.logger.trace("Initialized"),yield o.restore(),o.cached.forEach(function(e){o.getKey&&null!==e&&!_r2(_d[15]).isUndefined(e)?o.map.set(o.getKey(e),e):_r2(_d[15]).isProposalStruct(e)?o.map.set(e.id,e):_r2(_d[15]).isSessionStruct(e)&&o.map.set(e.topic,e)}),o.cached=[],o.initialized=!0)})),ni(r(o),"set",(function(){var e=s(function*(e,t){o.isInitialized(),o.map.has(e)?yield o.update(e,t):(o.logger.debug("Setting value"),o.logger.trace({type:"method",method:"set",key:e,value:t}),o.map.set(e,t),yield o.persist())});return function(t,r){return e.apply(this,arguments)}})()),ni(r(o),"get",function(e){return o.isInitialized(),o.logger.debug("Getting value"),o.logger.trace({type:"method",method:"get",key:e}),o.getData(e)}),ni(r(o),"getAll",function(e){return o.isInitialized(),e?o.values.filter(function(t){return Object.keys(e).every(function(r){return Xr(t[r],e[r])})}):o.values}),ni(r(o),"update",(function(){var e=s(function*(e,t){o.isInitialized(),o.logger.debug("Updating value"),o.logger.trace({type:"method",method:"update",key:e,update:t});var r=ii(ii({},o.getData(e)),t);o.map.set(e,r),yield o.persist()});return function(t,r){return e.apply(this,arguments)}})()),ni(r(o),"delete",(function(){var e=s(function*(e,t){o.isInitialized(),o.map.has(e)&&(o.logger.debug("Deleting value"),o.logger.trace({type:"method",method:"delete",key:e,reason:t}),o.map.delete(e),o.addToRecentlyDeleted(e),yield o.persist())});return function(t,r){return e.apply(this,arguments)}})()),o.logger=_r2(_d[16]).generateChildLogger(i,o.name),o.storagePrefix=a,o.getKey=l,o}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.map.size}},{key:"keys",get:function(){return Array.from(this.map.keys())}},{key:"values",get:function(){return Array.from(this.map.values())}},{key:"addToRecentlyDeleted",value:function(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}},{key:"setDataStore",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getDataStore",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"getData",value:function(e){var t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){var r=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`).message;throw this.logger.error(r),new Error(r)}var i=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw this.logger.error(i),new Error(i)}return t}},{key:"persist",value:(n=s(function*(){yield this.setDataStore(this.values)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IStore),si=Object.defineProperty,ai=function(e,t,r){return t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ci=function(e,t,r){return ai(e,"symbol"!=typeof t?t+"":t,r)},li=(function(){return l(function e(r,i){var n=this;c(this,e),this.core=r,this.logger=i,ci(this,"name",V),ci(this,"version","0.3"),ci(this,"events",new g.default),ci(this,"pairings"),ci(this,"initialized",!1),ci(this,"storagePrefix",_),ci(this,"ignoredPayloadTypes",[_r2(_d[15]).TYPE_1]),ci(this,"registeredMethods",[]),ci(this,"init",s(function*(){n.initialized||(yield n.pairings.init(),yield n.cleanup(),n.registerRelayerEvents(),n.registerExpirerEvents(),n.initialized=!0,n.logger.trace("Initialized"))})),ci(this,"register",function(e){var r=e.methods;n.isInitialized(),n.registeredMethods=t(new Set([].concat(t(n.registeredMethods),t(r))))}),ci(this,"create",(function(){var e=s(function*(e){n.isInitialized();var t=_r2(_d[15]).generateRandomBytes32(),r=yield n.core.crypto.setSymKey(t),i=_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),o={protocol:"irn"},s={topic:r,expiry:i,relay:o,active:!1,methods:null==e?void 0:e.methods},a=_r2(_d[15]).formatUri({protocol:n.core.protocol,version:n.core.version,topic:r,symKey:t,relay:o,expiryTimestamp:i,methods:null==e?void 0:e.methods});return n.events.emit(q.create,s),n.core.expirer.set(r,i),yield n.pairings.set(r,s),yield n.core.relayer.subscribe(r,{transportType:null==e?void 0:e.transportType,internal:null==e?void 0:e.internal}),{topic:r,uri:a}});return function(t){return e.apply(this,arguments)}})()),ci(this,"pair",(function(){var e=s(function*(e){n.isInitialized();var t=n.core.eventClient.createEvent({properties:{topic:null==e?void 0:e.uri,trace:[re.pairing_started]}});n.isValidPair(e,t);var r,i=_r2(_d[15]).parseUri(e.uri),o=i.topic,s=i.symKey,a=i.relay,c=i.expiryTimestamp,l=i.methods;if(t.props.properties.topic=o,t.addTrace(re.pairing_uri_validation_success),t.addTrace(re.pairing_uri_not_expired),n.pairings.keys.includes(o)){if(r=n.pairings.get(o),t.addTrace(re.existing_pairing),r.active)throw t.setError(ie.active_pairing_already_exists),new Error(`Pairing already exists: ${o}. Please try again with a new connection URI.`);t.addTrace(re.pairing_not_expired)}var u=c||_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),p={topic:o,relay:a,expiry:u,active:!1,methods:l};n.core.expirer.set(o,u),yield n.pairings.set(o,p),t.addTrace(re.store_new_pairing),e.activatePairing&&(yield n.activate({topic:o})),n.events.emit(q.create,p),t.addTrace(re.emit_inactive_pairing),n.core.crypto.keychain.has(o)||(yield n.core.crypto.setSymKey(s,o)),t.addTrace(re.subscribing_pairing_topic);try{yield n.core.relayer.confirmOnlineStateOrThrow()}catch(e){t.setError(ie.no_internet_connection)}try{yield n.core.relayer.subscribe(o,{relay:a})}catch(e){throw t.setError(ie.subscribe_pairing_topic_failure),e}return t.addTrace(re.subscribe_pairing_topic_success),p});return function(t){return e.apply(this,arguments)}})()),ci(this,"activate",(function(){var e=s(function*(e){var t=e.topic;n.isInitialized();var r=_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES);n.core.expirer.set(t,r),yield n.pairings.update(t,{active:!0,expiry:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"ping",(function(){var e=s(function*(e){n.isInitialized(),yield n.isValidPing(e),n.logger.warn("ping() is deprecated and will be removed in the next major release.");var t=e.topic;if(n.pairings.keys.includes(t)){var r=yield n.sendRequest(t,"wc_pairingPing",{}),i=_r2(_d[15]).createDelayedPromise(),o=i.done,s=i.resolve,a=i.reject;n.events.once(_r2(_d[15]).engineEvent("pairing_ping",r),function(e){var t=e.error;t?a(t):s()}),yield o()}});return function(t){return e.apply(this,arguments)}})()),ci(this,"updateExpiry",(function(){var e=s(function*(e){var t=e.topic,r=e.expiry;n.isInitialized(),yield n.pairings.update(t,{expiry:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"updateMetadata",(function(){var e=s(function*(e){var t=e.topic,r=e.metadata;n.isInitialized(),yield n.pairings.update(t,{peerMetadata:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"getPairings",function(){return n.isInitialized(),n.pairings.values}),ci(this,"disconnect",(function(){var e=s(function*(e){n.isInitialized(),yield n.isValidDisconnect(e);var t=e.topic;n.pairings.keys.includes(t)&&(yield n.sendRequest(t,"wc_pairingDelete",_r2(_d[15]).getSdkError("USER_DISCONNECTED")),yield n.deletePairing(t))});return function(t){return e.apply(this,arguments)}})()),ci(this,"formatUriFromPairing",function(e){n.isInitialized();var t=e.topic,r=e.relay,i=e.expiry,o=e.methods,s=n.core.crypto.keychain.get(t);return _r2(_d[15]).formatUri({protocol:n.core.protocol,version:n.core.version,topic:t,symKey:s,relay:r,expiryTimestamp:i,methods:o})}),ci(this,"sendRequest",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcRequest(t,r),o=yield n.core.crypto.encode(e,i),s=B[t].req;return n.core.history.set(e,i),n.core.relayer.publish(e,o,s),i.id});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"sendResult",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcResult(e,r),o=yield n.core.crypto.encode(t,i),s=(yield n.core.history.get(t,e)).request.method,a=B[s].res;yield n.core.relayer.publish(t,o,a),yield n.core.history.resolve(i)});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"sendError",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcError(e,r),o=yield n.core.crypto.encode(t,i),s=(yield n.core.history.get(t,e)).request.method,a=B[s]?B[s].res:B.unregistered_method.res;yield n.core.relayer.publish(t,o,a),yield n.core.history.resolve(i)});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"deletePairing",(function(){var e=s(function*(e,t){yield n.core.relayer.unsubscribe(e),yield Promise.all([n.pairings.delete(e,_r2(_d[15]).getSdkError("USER_DISCONNECTED")),n.core.crypto.deleteSymKey(e),t?Promise.resolve():n.core.expirer.del(e)])});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"cleanup",s(function*(){var e=n.pairings.getAll().filter(function(e){return _r2(_d[15]).isExpired(e.expiry)});yield Promise.all(e.map(function(e){return n.deletePairing(e.topic)}))})),ci(this,"onRelayEventRequest",(function(){var e=s(function*(e){var t=e.topic,r=e.payload;switch(r.method){case"wc_pairingPing":return yield n.onPairingPingRequest(t,r);case"wc_pairingDelete":return yield n.onPairingDeleteRequest(t,r);default:return yield n.onUnknownRpcMethodRequest(t,r)}});return function(t){return e.apply(this,arguments)}})()),ci(this,"onRelayEventResponse",(function(){var e=s(function*(e){var t=e.topic,r=e.payload,i=(yield n.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?n.onPairingPingResponse(t,r):n.onUnknownRpcMethodResponse(i)});return function(t){return e.apply(this,arguments)}})()),ci(this,"onPairingPingRequest",(function(){var e=s(function*(e,t){var r=t.id;try{n.isValidPing({topic:e}),yield n.sendResult(r,e,!0),n.events.emit(q.ping,{id:r,topic:e})}catch(t){yield n.sendError(r,e,t),n.logger.error(t)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onPairingPingResponse",function(e,t){var r=t.id;setTimeout(function(){_r2(_d[20]).isJsonRpcResult(t)?n.events.emit(_r2(_d[15]).engineEvent("pairing_ping",r),{}):_r2(_d[20]).isJsonRpcError(t)&&n.events.emit(_r2(_d[15]).engineEvent("pairing_ping",r),{error:t.error})},500)}),ci(this,"onPairingDeleteRequest",(function(){var e=s(function*(e,t){var r=t.id;try{n.isValidDisconnect({topic:e}),yield n.deletePairing(e),n.events.emit(q.delete,{id:r,topic:e})}catch(t){yield n.sendError(r,e,t),n.logger.error(t)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onUnknownRpcMethodRequest",(function(){var e=s(function*(e,t){var r=t.id,i=t.method;try{if(n.registeredMethods.includes(i))return;var o=_r2(_d[15]).getSdkError("WC_METHOD_UNSUPPORTED",i);yield n.sendError(r,e,o),n.logger.error(o)}catch(o){yield n.sendError(r,e,o),n.logger.error(o)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onUnknownRpcMethodResponse",function(e){n.registeredMethods.includes(e)||n.logger.error(_r2(_d[15]).getSdkError("WC_METHOD_UNSUPPORTED",e))}),ci(this,"isValidPair",function(e,t){var r;if(!_r2(_d[15]).isValidParams(e)){var i=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`pair() params: ${e}`).message;throw t.setError(ie.malformed_pairing_uri),new Error(i)}if(!_r2(_d[15]).isValidUrl(e.uri)){var n=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`pair() uri: ${e.uri}`).message;throw t.setError(ie.malformed_pairing_uri),new Error(n)}var o=_r2(_d[15]).parseUri(null==e?void 0:e.uri);if(null==(r=null==o?void 0:o.relay)||!r.protocol){var s=_r2(_d[15]).getInternalError("MISSING_OR_INVALID","pair() uri#relay-protocol").message;throw t.setError(ie.malformed_pairing_uri),new Error(s)}if(null==o||!o.symKey){var a=_r2(_d[15]).getInternalError("MISSING_OR_INVALID","pair() uri#symKey").message;throw t.setError(ie.malformed_pairing_uri),new Error(a)}if(null!=o&&o.expiryTimestamp&&_r2(_d[14]).toMiliseconds(null==o?void 0:o.expiryTimestamp)"u"&&(t.response=_r2(_d[20]).isJsonRpcError(e)?{error:e.error}:{result:e.result},n.records.set(t.id,t),n.persist(),n.events.emit(F.updated,t))}});return function(t){return e.apply(this,arguments)}})()),di(r(n),"get",(function(){var e=s(function*(e,t){return n.isInitialized(),n.logger.debug("Getting record"),n.logger.trace({type:"method",method:"get",topic:e,id:t}),yield n.getRecord(t)});return function(t,r){return e.apply(this,arguments)}})()),di(r(n),"delete",function(e,t){n.isInitialized(),n.logger.debug("Deleting record"),n.logger.trace({type:"method",method:"delete",id:t}),n.values.forEach(function(r){if(r.topic===e){if(typeof t<"u"&&r.id!==t)return;n.records.delete(r.id),n.events.emit(F.deleted,r)}}),n.persist()}),di(r(n),"exists",(function(){var e=s(function*(e,t){return n.isInitialized(),!!n.records.has(t)&&(yield n.getRecord(t)).topic===e});return function(t,r){return e.apply(this,arguments)}})()),di(r(n),"on",function(e,t){n.events.on(e,t)}),di(r(n),"once",function(e,t){n.events.once(e,t)}),di(r(n),"off",function(e,t){n.events.off(e,t)}),di(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"size",get:function(){return this.records.size}},{key:"keys",get:function(){return Array.from(this.records.keys())}},{key:"values",get:function(){return Array.from(this.records.values())}},{key:"pending",get:function(){var e=[];return this.values.forEach(function(t){if(!(typeof t.response<"u")){var r={topic:t.topic,request:_r2(_d[20]).formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}}),e}},{key:"setJsonRpcRecords",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getJsonRpcRecords",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"getRecord",value:function(e){this.isInitialized();var t=this.records.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw new Error(r)}return t}},{key:"persist",value:(n=s(function*(){yield this.setJsonRpcRecords(this.values),this.events.emit(F.sync)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.events.on(F.created,function(t){var r=F.created;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.events.on(F.updated,function(t){var r=F.updated;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.events.on(F.deleted,function(t){var r=F.deleted;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){e.cleanup()})}},{key:"cleanup",value:function(){var e=this;try{this.isInitialized();var t=!1;this.records.forEach(function(r){_r2(_d[14]).toMiliseconds(r.expiry||0)-Date.now()<=0&&(e.logger.info(`Deleting expired history log: ${r.id}`),e.records.delete(r.id),e.events.emit(F.deleted,r,!1),t=!0)}),t&&this.persist()}catch(t){this.logger.warn(t)}}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IJsonRpcHistory),hi=Object.defineProperty,fi=function(e,t,r){return t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},yi=function(e,t,r){return fi(e,"symbol"!=typeof t?t+"":t,r)},vi=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).core=e,n.logger=i,yi(r(n),"expirations",new Map),yi(r(n),"events",new(_r2(_d[10]).EventEmitter)),yi(r(n),"name",H),yi(r(n),"version","0.3"),yi(r(n),"cached",[]),yi(r(n),"initialized",!1),yi(r(n),"storagePrefix",_),yi(r(n),"init",s(function*(){n.initialized||(n.logger.trace("Initialized"),yield n.restore(),n.cached.forEach(function(e){return n.expirations.set(e.target,e)}),n.cached=[],n.registerEventListeners(),n.initialized=!0)})),yi(r(n),"has",function(e){try{var t=n.formatTarget(e);return typeof n.getExpiration(t)<"u"}catch(e){return!1}}),yi(r(n),"set",function(e,t){n.isInitialized();var r=n.formatTarget(e),i={target:r,expiry:t};n.expirations.set(r,i),n.checkExpiry(r,i),n.events.emit(Y.created,{target:r,expiration:i})}),yi(r(n),"get",function(e){n.isInitialized();var t=n.formatTarget(e);return n.getExpiration(t)}),yi(r(n),"del",function(e){if(n.isInitialized(),n.has(e)){var t=n.formatTarget(e),r=n.getExpiration(t);n.expirations.delete(t),n.events.emit(Y.deleted,{target:t,expiration:r})}}),yi(r(n),"on",function(e,t){n.events.on(e,t)}),yi(r(n),"once",function(e,t){n.events.once(e,t)}),yi(r(n),"off",function(e,t){n.events.off(e,t)}),yi(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.expirations.size}},{key:"keys",get:function(){return Array.from(this.expirations.keys())}},{key:"values",get:function(){return Array.from(this.expirations.values())}},{key:"formatTarget",value:function(e){if("string"==typeof e)return _r2(_d[15]).formatTopicTarget(e);if("number"==typeof e)return _r2(_d[15]).formatIdTarget(e);var t=_r2(_d[15]).getInternalError("UNKNOWN_TYPE","Target type: "+typeof e).message;throw new Error(t)}},{key:"setExpirations",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getExpirations",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"persist",value:(n=s(function*(){yield this.setExpirations(this.values),this.events.emit(Y.sync)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"getExpiration",value:function(e){var t=this.expirations.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw this.logger.warn(r),new Error(r)}return t}},{key:"checkExpiry",value:function(e,t){var r=t.expiry;_r2(_d[14]).toMiliseconds(r)-Date.now()<=0&&this.expire(e,t)}},{key:"expire",value:function(e,t){this.expirations.delete(e),this.events.emit(Y.expired,{target:e,expiration:t})}},{key:"checkExpirations",value:function(){var e=this;this.core.relayer.connected&&this.expirations.forEach(function(t,r){return e.checkExpiry(r,t)})}},{key:"registerEventListeners",value:function(){var e=this;this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){return e.checkExpirations()}),this.events.on(Y.created,function(t){var r=Y.created;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()}),this.events.on(Y.expired,function(t){var r=Y.expired;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()}),this.events.on(Y.deleted,function(t){var r=Y.deleted;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()})}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IExpirer),bi=Object.defineProperty,mi=function(e,t,r){return t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_i=function(e,t,r){return mi(e,"symbol"!=typeof t?t+"":t,r)},Ei=(function(e){function t(e,i,n){var o;return c(this,t),(o=u(this,t,[e,i,n])).core=e,o.logger=i,o.store=n,_i(r(o),"name",J),_i(r(o),"abortController"),_i(r(o),"isDevEnv"),_i(r(o),"verifyUrlV3",Z),_i(r(o),"storagePrefix",_),_i(r(o),"version",2),_i(r(o),"publicKey"),_i(r(o),"fetchPromise"),_i(r(o),"init",s(function*(){var e;o.isDevEnv||(o.publicKey=yield o.store.getItem(o.storeKey),o.publicKey&&_r2(_d[14]).toMiliseconds(null==(e=o.publicKey)?void 0:e.expiresAt)2&&void 0!==arguments[2])||arguments[2];return c(this,i),(o=u(this,i,[t,n,a])).core=t,o.logger=n,Ai(r(o),"context",ne),Ai(r(o),"storagePrefix",_),Ai(r(o),"storageVersion",.1),Ai(r(o),"events",new Map),Ai(r(o),"shouldPersist",!1),Ai(r(o),"init",s(function*(){if(!_r2(_d[15]).isTestRun())try{var e={eventId:_r2(_d[15]).uuidv4(),timestamp:Date.now(),domain:o.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:yield o.core.crypto.getClientId(),user_agent:_r2(_d[15]).formatUA(o.core.relayer.protocol,o.core.relayer.version,L)}}};yield o.sendEvent([e])}catch(e){o.logger.warn(e)}})),Ai(r(o),"createEvent",function(e){var t=e.event,r=void 0===t?"ERROR":t,i=e.type,n=void 0===i?"":i,s=e.properties,a=s.topic,c=s.trace,l=_r2(_d[15]).uuidv4(),u=o.core.projectId||"",p=Date.now(),d=Ci({eventId:l,timestamp:p,props:{event:r,type:n,properties:{topic:a,trace:c}},bundleId:u,domain:o.getAppDomain()},o.setMethods(l));return o.telemetryEnabled&&(o.events.set(l,d),o.shouldPersist=!0),d}),Ai(r(o),"getEvent",function(e){var t=e.eventId,r=e.topic;if(t)return o.events.get(t);var i=Array.from(o.events.values()).find(function(e){return e.props.properties.topic===r});return i?Ci(Ci({},i),o.setMethods(i.eventId)):void 0}),Ai(r(o),"deleteEvent",function(e){var t=e.eventId;o.events.delete(t),o.shouldPersist=!0}),Ai(r(o),"setEventListeners",function(){o.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){o.shouldPersist&&(yield o.persist()),o.events.forEach(function(e){_r2(_d[14]).fromMiliseconds(Date.now())-_r2(_d[14]).fromMiliseconds(e.timestamp)>86400&&(o.events.delete(e.eventId),o.shouldPersist=!0)})}))}),Ai(r(o),"setMethods",function(e){return{addTrace:function(t){return o.addTrace(e,t)},setError:function(t){return o.setError(e,t)}}}),Ai(r(o),"addTrace",function(e,t){var r=o.events.get(e);r&&(r.props.properties.trace.push(t),o.events.set(e,r),o.shouldPersist=!0)}),Ai(r(o),"setError",function(e,t){var r=o.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),o.events.set(e,r),o.shouldPersist=!0)}),Ai(r(o),"persist",s(function*(){yield o.core.storage.setItem(o.storageKey,Array.from(o.events.values())),o.shouldPersist=!1})),Ai(r(o),"restore",s(function*(){try{var e=(yield o.core.storage.getItem(o.storageKey))||[];if(!e.length)return;e.forEach(function(e){o.events.set(e.eventId,Ci(Ci({},e),o.setMethods(e.eventId)))})}catch(e){o.logger.warn(e)}})),Ai(r(o),"submit",s(function*(){if(o.telemetryEnabled&&0!==o.events.size){var t=[];for(var r of o.events){var i=e(r,2),n=i[0],s=i[1];s.props.type&&t.push(s)}if(0!==t.length)try{if((yield o.sendEvent(t)).ok)for(var a of t)o.events.delete(a.eventId),o.shouldPersist=!0}catch(n){o.logger.warn(n)}}})),Ai(r(o),"sendEvent",(function(){var e=s(function*(e){var t=o.getAppDomain()?"":"&sp=desktop";return yield fetch(`${oe}?projectId=${o.core.projectId}&st=events_sdk&sv=js-${L}${t}`,{method:"POST",body:JSON.stringify(e)})});return function(t){return e.apply(this,arguments)}})()),Ai(r(o),"getAppDomain",function(){return _r2(_d[15]).getAppMetadata().url}),o.logger=_r2(_d[16]).generateChildLogger(n,o.context),o.telemetryEnabled=a,a?o.restore().then(s(function*(){yield o.submit(),o.setEventListeners()})):o.persist(),o}return o(i,t),l(i,[{key:"storageKey",get:function(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}])})(_r2(_d[19]).IEventClient),Li=Object.defineProperty,Di=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,Mi=function(e,t,r){return t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ui=function(e,t){for(var r in t||(t={}))zi.call(t,r)&&Mi(e,r,t[r]);if(Di)for(var r of Di(t))ji.call(t,r)&&Mi(e,r,t[r]);return e},Ki=function(e,t,r){return Mi(e,"symbol"!=typeof t?t+"":t,r)},$i=(function(e){function t(e){var n,o;c(this,t),n=u(this,t,[e]),Ki(r(n),"protocol",v),Ki(r(n),"version",2),Ki(r(n),"name",b),Ki(r(n),"relayUrl"),Ki(r(n),"projectId"),Ki(r(n),"customStoragePrefix"),Ki(r(n),"events",new(_r2(_d[10]).EventEmitter)),Ki(r(n),"logger"),Ki(r(n),"heartbeat"),Ki(r(n),"relayer"),Ki(r(n),"crypto"),Ki(r(n),"storage"),Ki(r(n),"history"),Ki(r(n),"expirer"),Ki(r(n),"pairing"),Ki(r(n),"verify"),Ki(r(n),"echoClient"),Ki(r(n),"linkModeSupportedApps"),Ki(r(n),"eventClient"),Ki(r(n),"initialized",!1),Ki(r(n),"logChunkController"),Ki(r(n),"on",function(e,t){return n.events.on(e,t)}),Ki(r(n),"once",function(e,t){return n.events.once(e,t)}),Ki(r(n),"off",function(e,t){return n.events.off(e,t)}),Ki(r(n),"removeListener",function(e,t){return n.events.removeListener(e,t)}),Ki(r(n),"dispatchEnvelope",function(e){var t=e.topic,r=e.message,i=e.sessionExists;if(t&&r){var o={topic:t,message:r,publishedAt:Date.now(),transportType:D.link_mode};n.relayer.onLinkMessageEvent(o,{sessionExists:i})}});var a=n.getGlobalCore(null==e?void 0:e.customStoragePrefix);if(a)try{return i(n,(n.customStoragePrefix=a.customStoragePrefix,n.logger=a.logger,n.heartbeat=a.heartbeat,n.crypto=a.crypto,n.history=a.history,n.expirer=a.expirer,n.storage=a.storage,n.relayer=a.relayer,n.pairing=a.pairing,n.verify=a.verify,n.echoClient=a.echoClient,n.linkModeSupportedApps=a.linkModeSupportedApps,n.eventClient=a.eventClient,n.initialized=a.initialized,n.logChunkController=a.logChunkController,a))}catch(e){console.warn("Failed to copy global core",e)}n.projectId=null==e?void 0:e.projectId,n.relayUrl=(null==e?void 0:e.relayUrl)||R,n.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";var l=_r2(_d[16]).getDefaultLoggerOptions({level:"string"==typeof(null==e?void 0:e.logger)&&e.logger?e.logger:E.logger,name:b}),p=_r2(_d[16]).generatePlatformLogger({opts:l,maxSizeInBytes:null==e?void 0:e.maxLogBlobSizeInBytes,loggerOverride:null==e?void 0:e.logger}),d=p.logger,g=p.chunkLoggerController;return n.logChunkController=g,null!=(o=n.logChunkController)&&o.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=s(function*(){var e,t;null!=(e=n.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=n.logChunkController)||t.downloadLogsBlobInBrowser({clientId:yield n.crypto.getClientId()}))})),n.logger=_r2(_d[16]).generateChildLogger(d,n.name),n.heartbeat=new(_r2(_d[21]).HeartBeat),n.crypto=new Jt(n,n.logger,null==e?void 0:e.keychain),n.history=new gi(n,n.logger),n.expirer=new vi(n,n.logger),n.storage=null!=e&&e.storage?e.storage:new h.default(Ui(Ui({},I),null==e?void 0:e.storageOptions)),n.relayer=new Kr({core:n,logger:n.logger,relayUrl:n.relayUrl,projectId:n.projectId}),n.pairing=new li(n,n.logger),n.verify=new Ei(n,n.logger,n.storage),n.echoClient=new Pi(n.projectId||"",n.logger),n.linkModeSupportedApps=[],n.eventClient=new Ni(n,n.logger,null==e?void 0:e.telemetryEnabled),n.setGlobalCore(n),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"start",value:(g=s(function*(){this.initialized||(yield this.initialize())}),function(){return g.apply(this,arguments)})},{key:"getLogsBlob",value:(d=s(function*(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:yield this.crypto.getClientId()})}),function(){return d.apply(this,arguments)})},{key:"addLinkModeSupportedApp",value:(p=s(function*(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),yield this.storage.setItem(M,this.linkModeSupportedApps))}),function(e){return p.apply(this,arguments)})},{key:"initialize",value:(a=s(function*(){this.logger.trace("Initialized");try{yield this.crypto.init(),yield this.history.init(),yield this.expirer.init(),yield this.relayer.init(),yield this.heartbeat.init(),yield this.pairing.init(),this.linkModeSupportedApps=(yield this.storage.getItem(M))||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}),function(){return a.apply(this,arguments)})},{key:"getGlobalCore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{if(this.isGlobalCoreDisabled())return;var t=`_walletConnectCore_${e}`,r=`${t}_count`;return globalThis[r]=(globalThis[r]||0)+1,globalThis[r]>1&&console.warn(`WalletConnect Core is already initialized. This is probably a mistake and can lead to unexpected behavior. Init() was called ${globalThis[r]} times.`),globalThis[t]}catch(t){return void console.warn("Failed to get global WalletConnect core",t)}}},{key:"setGlobalCore",value:function(e){var t;try{if(this.isGlobalCoreDisabled())return;var r=`_walletConnectCore_${(null==(t=e.opts)?void 0:t.customStoragePrefix)||""}`;globalThis[r]=e}catch(r){console.warn("Failed to set global WalletConnect core",r)}}},{key:"isGlobalCoreDisabled",value:function(){try{return typeof process<"u"&&"true"===process.env.DISABLE_GLOBAL_CORE}catch(e){return!0}}}],[{key:"init",value:(n=s(function*(e){var r=new t(e);yield r.initialize();var i=yield r.crypto.getClientId();return yield r.storage.setItem(j,i),r}),function(e){return n.apply(this,arguments)})}]);var n,a,p,d,g})(_r2(_d[19]).ICore),Vi=$i;_e.CORE_CONTEXT=b,_e.CORE_DEFAULT=E,_e.CORE_PROTOCOL=v,_e.CORE_STORAGE_OPTIONS=I,_e.CORE_STORAGE_PREFIX=_,_e.CORE_VERSION=2,_e.CRYPTO_CLIENT_SEED=T,_e.CRYPTO_CONTEXT=w,_e.CRYPTO_JWT_TTL=_r2(_d[14]).ONE_DAY,_e.Core=Vi,_e.Crypto=Jt,_e.ECHO_CONTEXT=ee,_e.ECHO_URL=te,_e.EVENTS_CLIENT_API_URL=oe,_e.EVENTS_STORAGE_CLEANUP_INTERVAL=86400,_e.EVENTS_STORAGE_CONTEXT=ne,_e.EVENTS_STORAGE_VERSION=.1,_e.EVENT_CLIENT_AUTHENTICATE_ERRORS={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",missing_session_authenticate_request:"missing_session_authenticate_request",session_authenticate_request_expired:"session_authenticate_request_expired",chains_caip2_compliant_failure:"chains_caip2_compliant_failure",chains_evm_compliant_failure:"chains_evm_compliant_failure",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"},_e.EVENT_CLIENT_AUTHENTICATE_TRACES={authenticated_session_approve_started:"authenticated_session_approve_started",authenticated_session_not_expired:"authenticated_session_not_expired",chains_caip2_compliant:"chains_caip2_compliant",chains_evm_compliant:"chains_evm_compliant",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve",authenticated_session_approve_publish_success:"authenticated_session_approve_publish_success"},_e.EVENT_CLIENT_CONTEXT="event-client",_e.EVENT_CLIENT_PAIRING_ERRORS=ie,_e.EVENT_CLIENT_PAIRING_TRACES=re,_e.EVENT_CLIENT_SESSION_ERRORS={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},_e.EVENT_CLIENT_SESSION_TRACES={session_approve_started:"session_approve_started",proposal_not_expired:"proposal_not_expired",session_namespaces_validation_success:"session_namespaces_validation_success",create_session_topic:"create_session_topic",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},_e.EXPIRER_CONTEXT=H,_e.EXPIRER_DEFAULT_TTL=_r2(_d[14]).ONE_DAY,_e.EXPIRER_EVENTS=Y,_e.EXPIRER_STORAGE_VERSION="0.3",_e.EchoClient=Pi,_e.EventClient=Ni,_e.Expirer=vi,_e.HISTORY_CONTEXT=G,_e.HISTORY_EVENTS=F,_e.HISTORY_STORAGE_VERSION="0.3",_e.JsonRpcHistory=gi,_e.KEYCHAIN_CONTEXT=P,_e.KEYCHAIN_STORAGE_VERSION="0.3",_e.KeyChain=Ft,_e.MESSAGES_CONTEXT=S,_e.MESSAGES_STORAGE_VERSION="0.3",_e.MESSAGE_DIRECTION=z,_e.MessageTracker=sr,_e.PAIRING_CONTEXT=V,_e.PAIRING_DEFAULT_TTL=_r2(_d[14]).THIRTY_DAYS,_e.PAIRING_EVENTS=q,_e.PAIRING_RPC_OPTS=B,_e.PAIRING_STORAGE_VERSION="0.3",_e.PENDING_SUB_RESOLUTION_TIMEOUT=$,_e.PUBLISHER_CONTEXT=k,_e.PUBLISHER_DEFAULT_TTL=_r2(_d[14]).SIX_HOURS,_e.Pairing=li,_e.RELAYER_CONTEXT=x,_e.RELAYER_DEFAULT_LOGGER=O,_e.RELAYER_DEFAULT_PROTOCOL="irn",_e.RELAYER_DEFAULT_RELAY_URL=R,_e.RELAYER_EVENTS=C,_e.RELAYER_PROVIDER_EVENTS=N,_e.RELAYER_RECONNECT_TIMEOUT=.1,_e.RELAYER_SDK_VERSION=L,_e.RELAYER_STORAGE_OPTIONS={database:":memory:"},_e.RELAYER_SUBSCRIBER_SUFFIX=A,_e.RELAYER_TRANSPORT_CUTOFF=1e4,_e.Relayer=Kr,_e.STORE_STORAGE_VERSION="0.3",_e.SUBSCRIBER_CONTEXT=K,_e.SUBSCRIBER_DEFAULT_TTL=_r2(_d[14]).THIRTY_DAYS,_e.SUBSCRIBER_EVENTS=U,_e.SUBSCRIBER_STORAGE_VERSION="0.3",_e.Store=oi,_e.Subscriber=Ar,_e.TRANSPORT_TYPES=D,_e.TRUSTED_VERIFY_URLS=Q,_e.VERIFY_CONTEXT=J,_e.VERIFY_SERVER=X,_e.VERIFY_SERVER_V3=Z,_e.Verify=Ei,_e.WALLETCONNECT_CLIENT_ID=j,_e.WALLETCONNECT_LINK_MODE_APPS=M,_e.default=$i},1260,[19,32,10,9,11,12,367,18,3,4,1069,1261,1039,1268,815,809,1283,1040,1005,1286,1270,1289,1290,812]); -__d(function(_g,_r,_i,_a,m,_e,d){"use strict";var t=_r(d[0]),e=_r(d[1]),n=_r(d[2]);Object.defineProperty(_e,"__esModule",{value:!0});var r,u=(r=_r(d[3]))&&"object"==typeof r&&"default"in r?r:{default:r},i=function(t){return JSON.stringify(t,function(t,e){return"bigint"==typeof e?e.toString()+"n":e})},a=function(t){var e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,function(t,e){return"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e})};function o(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return a(t)}catch(e){return t}}function s(t){return"string"==typeof t?t:i(t)||""}function f(t){var e;return[t[0],o(null!=(e=t[1])?e:"")]}var y=(function(){return n(function t(){e(this,t),this.asyncStorage=u.default},[{key:"getKeys",value:(c=t(function*(){return this.asyncStorage.getAllKeys()}),function(){return c.apply(this,arguments)})},{key:"getEntries",value:(y=t(function*(){var t=yield this.getKeys();return(yield this.asyncStorage.multiGet(t)).map(f)}),function(){return y.apply(this,arguments)})},{key:"getItem",value:(a=t(function*(t){var e=yield this.asyncStorage.getItem(t);if(!(typeof e>"u"||null===e))return o(e)}),function(t){return a.apply(this,arguments)})},{key:"setItem",value:(i=t(function*(t,e){yield this.asyncStorage.setItem(t,s(e))}),function(t,e){return i.apply(this,arguments)})},{key:"removeItem",value:(r=t(function*(t){yield this.asyncStorage.removeItem(t)}),function(t){return r.apply(this,arguments)})}]);var r,i,a,y,c})();_e.KeyValueStorage=y,_e.default=y},1261,[367,3,4,1262]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"useAsyncStorage",{enumerable:!0,get:function(){return r(d[1]).useAsyncStorage}});var u=t(r(d[2]));e.default=u.default},1262,[1,1263,1264]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useAsyncStorage=function(t){return{getItem:function(){for(var u=arguments.length,f=new Array(u),o=0;o1&&"string"!=typeof s){if(null==s)throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${s}\nPassed key: ${o}\n`);console.warn(`[AsyncStorage] The value for key "${o}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${s}\nPassed key: ${o}\n`)}},_e.convertError=e,_e.convertErrors=function(t){var o=n(t);return o?o.map(function(n){return e(n)}):null}},1267,[]); -__d(function(g,_r,_i,_a,m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.WsConnection=void 0;var t=e(_r(_d[1])),n=e(_r(_d[2])),o=e(_r(_d[3])),r=function(e){return e.split("?")[0]},i=typeof WebSocket<"u"?WebSocket:typeof g<"u"&&typeof g.WebSocket<"u"?g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:_r(_d[4]);_e.default=_e.WsConnection=(function(){return(0,o.default)(function e(t){if((0,n.default)(this,e),this.url=t,this.events=new(_r(_d[5]).EventEmitter),this.registering=!1,!(0,_r(_d[6]).isWsUrl)(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t},[{key:"connected",get:function(){return typeof this.socket<"u"}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(u=(0,t.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;yield this.register(e)}),function(){return u.apply(this,arguments)})},{key:"close",value:(s=(0,t.default)(function*(){var e=this;return new Promise(function(t,n){typeof e.socket>"u"?n(new Error("Connection already closed")):(e.socket.onclose=function(n){e.onClose(n),t()},e.socket.close())})}),function(){return s.apply(this,arguments)})},{key:"send",value:(e=(0,t.default)(function*(e){typeof this.socket>"u"&&(this.socket=yield this.register());try{this.socket.send((0,_r(_d[7]).safeJsonStringify)(e))}catch(t){this.onError(e.id,t)}}),function(t){return e.apply(this,arguments)})},{key:"register",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!(0,_r(_d[6]).isWsUrl)(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){var n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise(function(t,n){e.events.once("register_error",function(t){e.resetMaxListeners(),n(t)}),e.events.once("open",function(){if(e.resetMaxListeners(),typeof e.socket>"u")return n(new Error("WebSocket connection is missing or invalid"));t(e.socket)})})}return this.url=t,this.registering=!0,new Promise(function(n,o){var r=(0,_r(_d[6]).isReactNative)()?void 0:{rejectUnauthorized:!(0,_r(_d[6]).isLocalhostUrl)(t)},s=new i(t,[],r);typeof WebSocket<"u"||typeof g<"u"&&typeof g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?s.onerror=function(t){var n=t;o(e.emitError(n.error))}:s.on("error",function(t){o(e.emitError(t))}),s.onopen=function(){e.onOpen(s),n(s)}})}},{key:"onOpen",value:function(e){var t=this;e.onmessage=function(e){return t.onPayload(e)},e.onclose=function(e){return t.onClose(e)},this.socket=e,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}},{key:"onPayload",value:function(e){if(!(typeof e.data>"u")){var t="string"==typeof e.data?(0,_r(_d[7]).safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var n=this.parseError(t),o=n.message||n.toString(),r=(0,_r(_d[6]).formatJsonRpcError)(e,o);this.events.emit("payload",r)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,_r(_d[6]).parseConnectionError)(e,r(t),"WS")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}},{key:"emitError",value:function(e){var t=this.parseError(new Error((null==e?void 0:e.message)||`WebSocket connection failed for host: ${r(this.url)}`));return this.events.emit("register_error",t),t}}]);var e,s,u})()},1268,[1,367,3,4,1269,1069,1270,1040]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},1269,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))}),Object.keys(r(d[1])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}),Object.keys(r(d[2])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}),Object.keys(r(d[3])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))}),Object.keys(r(d[4])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[4])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[4])[n]}}))}),Object.keys(r(d[5])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))}),Object.keys(r(d[6])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[6])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[6])[n]}}))}),Object.keys(r(d[7])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[7])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[7])[n]}}))})},1270,[1271,1272,1273,1277,1278,1279,1281,1282]); -__d(function(g,r,i,a,m,e,d){var R=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.STANDARD_ERROR_MAP=e.SERVER_ERROR_CODE_RANGE=e.SERVER_ERROR=e.RESERVED_ERROR_CODES=e.PARSE_ERROR=e.METHOD_NOT_FOUND=e.INVALID_REQUEST=e.INVALID_PARAMS=e.INTERNAL_ERROR=e.DEFAULT_ERROR=void 0;var E=R(r(d[1])),_=e.PARSE_ERROR="PARSE_ERROR",O=e.INVALID_REQUEST="INVALID_REQUEST",A=e.METHOD_NOT_FOUND="METHOD_NOT_FOUND",D=e.INVALID_PARAMS="INVALID_PARAMS",N=e.INTERNAL_ERROR="INTERNAL_ERROR",S=e.SERVER_ERROR="SERVER_ERROR";e.RESERVED_ERROR_CODES=[-32700,-32600,-32601,-32602,-32603],e.SERVER_ERROR_CODE_RANGE=[-32e3,-32099],e.STANDARD_ERROR_MAP=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},_,{code:-32700,message:"Parse error"}),O,{code:-32600,message:"Invalid Request"}),A,{code:-32601,message:"Method not found"}),D,{code:-32602,message:"Invalid params"}),N,{code:-32603,message:"Internal error"}),S,{code:-32e3,message:"Server error"}),e.DEFAULT_ERROR=S},1271,[1,18]); -__d(function(g,r,i,a,m,_e,d){function e(e){return r(d[0]).RESERVED_ERROR_CODES.includes(e)}function o(e){return"number"==typeof e}function R(e){var o=Object.values(r(d[0]).STANDARD_ERROR_MAP).find(function(o){return o.code===e});return o||r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR]}Object.defineProperty(_e,"__esModule",{value:!0}),_e.getError=function(e){if(!Object.keys(r(d[0]).STANDARD_ERROR_MAP).includes(e))return r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR];return r(d[0]).STANDARD_ERROR_MAP[e]},_e.getErrorByCode=R,_e.isReservedErrorCode=e,_e.isServerErrorCode=function(e){return e<=r(d[0]).SERVER_ERROR_CODE_RANGE[0]&&e>=r(d[0]).SERVER_ERROR_CODE_RANGE[1]},_e.isValidErrorCode=o,_e.parseConnectionError=function(e,o,R){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${R} RPC url at ${o}`):e},_e.validateJsonRpcError=function(n){if(void 0===n.error.code)return{valid:!1,error:"Missing code for JSON-RPC error"};if(void 0===n.error.message)return{valid:!1,error:"Missing message for JSON-RPC error"};if(!o(n.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${n.error.code}`};if(e(n.error.code)){var E=R(n.error.code);if(E.message!==r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR].message&&n.error.message===E.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${n.error.code}`}}return{valid:!0}}},1272,[1271]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var o={isNodeJs:!0};e.isNodeJs=void 0,Object.keys(r(d[0])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||t in e&&e[t]===r(d[0])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[0])[t]}}))});e.isNodeJs=r(d[0]).isNode},1273,[1274]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]).__exportStar(r(d[1]),e),r(d[0]).__exportStar(r(d[2]),e)},1274,[816,1275,1276]); -__d(function(g,r,i,a,m,e,d){"use strict";function t(){return(null==g?void 0:g.crypto)||(null==g?void 0:g.msCrypto)||{}}function o(){var o=t();return o.subtle||o.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=t,e.getSubtleCrypto=o,e.isBrowserCryptoAvailable=function(){return!!t()&&!!o()}},1275,[]); -__d(function(g,r,i,a,m,e,d){"use strict";function o(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function n(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=o,e.isNode=n,e.isBrowser=function(){return!o()&&!n()}},1276,[]); -__d(function(g,r,i,a,m,e,d){function o(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return Date.now()*Math.pow(10,o)+Math.floor(Math.random()*Math.pow(10,o))}function t(o,t){return void 0===o?(0,r(d[0]).getError)(r(d[1]).INTERNAL_ERROR):("string"==typeof o&&(o=Object.assign(Object.assign({},(0,r(d[0]).getError)(r(d[1]).SERVER_ERROR)),{message:o})),void 0!==t&&(o.data=t),(0,r(d[0]).isReservedErrorCode)(o.code)&&(o=(0,r(d[0]).getErrorByCode)(o.code)),o)}Object.defineProperty(e,"__esModule",{value:!0}),e.formatErrorMessage=t,e.formatJsonRpcError=function(o,n,s){return{id:o,jsonrpc:"2.0",error:t(n,s)}},e.formatJsonRpcRequest=function(t,n,s){return{id:s||o(),jsonrpc:"2.0",method:t,params:n}},e.formatJsonRpcResult=function(o,t){return{id:o,jsonrpc:"2.0",result:t}},e.getBigIntRpcId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return BigInt(o(t))},e.payloadId=o},1277,[1272,1271]); -__d(function(g,r,i,a,m,e,d){function t(t){return"*"===t}function n(n){return!!t(n)||!!n.includes("*")&&(2===n.split("*").length&&1===n.split("*").filter(function(t){return""===t.trim()}).length)}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDefaultRoute=t,e.isValidLeadingWildcardRoute=function(u){return!t(u)&&n(u)&&!u.split("*")[0].trim()},e.isValidRoute=function(t){if(t.includes("*"))return n(t);if(/\W/g.test(t))return!1;return!0},e.isValidTrailingWildcardRoute=function(u){return!t(u)&&n(u)&&!u.split("*")[1].trim()},e.isValidWildcardRoute=n},1278,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1279,[1280]); -__d(function(g,_r,i,a,m,_e3,d){var t=_r(d[0]);Object.defineProperty(_e3,"__esModule",{value:!0}),_e3.IJsonRpcProvider=_e3.IJsonRpcConnection=_e3.IEvents=_e3.IBaseJsonRpcProvider=void 0;var n=t(_r(d[1])),e=t(_r(d[2])),u=t(_r(d[3])),o=t(_r(d[4])),r=t(_r(d[5]));function c(t,u,o){return u=(0,e.default)(u),(0,n.default)(t,f()?Reflect.construct(u,o||[],(0,e.default)(t).constructor):u.apply(t,o))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var l=_e3.IEvents=(0,o.default)(function t(){(0,r.default)(this,t)}),s=(_e3.IJsonRpcConnection=(function(t){function n(t){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(l),_e3.IBaseJsonRpcProvider=(function(t){function n(){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(l));_e3.IJsonRpcProvider=(function(t){function n(t){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(s)},1280,[1,9,11,12,4,3]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isHttpUrl=function(n){return o(n,t)},e.isLocalhostUrl=function(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)},e.isWsUrl=function(t){return o(t,n)};var t="^https?:",n="^wss?:";function s(t){var n=t.match(new RegExp(/^\w+:/,"gi"));if(n&&n.length)return n[0]}function o(t,n){var o=s(t);return void 0!==o&&new RegExp(n).test(o)}},1281,[]); -__d(function(g,r,i,a,m,e,d){function n(n){return"object"==typeof n&&"id"in n&&"jsonrpc"in n&&"2.0"===n.jsonrpc}function o(n){return"result"in n}function t(n){return"error"in n}Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonRpcError=t,e.isJsonRpcPayload=n,e.isJsonRpcRequest=function(o){return n(o)&&"method"in o},e.isJsonRpcResponse=function(s){return n(s)&&(o(s)||t(s))},e.isJsonRpcResult=o,e.isJsonRpcValidationInvalid=function(n){return"error"in n&&!1===n.valid}},1282,[]); -__d(function(_g,_r,_i,_a,_m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PINO_LOGGER_DEFAULTS=_e.PINO_CUSTOM_CONTEXT_KEY=_e.MAX_LOG_SIZE_IN_BYTES_DEFAULT=void 0,_e.formatChildLoggerContext=I,_e.generateChildLogger=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=I(e,t,n);return w(e.child({context:r}),r,n)},_e.generateClientLogger=C,_e.generatePlatformLogger=function(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?C(e):S(e)},_e.generateServerLogger=S,_e.getBrowserLoggerContext=_,_e.getDefaultLoggerOptions=function(e){return k(b({},e),{level:(null==e?void 0:e.level)||o.level})},_e.getLoggerContext=O,Object.defineProperty(_e,"pino",{enumerable:!0,get:function(){return r.default}}),_e.setBrowserLoggerContext=w;var t=e(_r(_d[1])),n=e(_r(_d[2])),r=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,l)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(i.get||i.set)?o(l,u,i):l[u]=e[u]);return l})(e,t)})(_r(_d[3]));var o=_e.PINO_LOGGER_DEFAULTS={level:"info"},i=_e.PINO_CUSTOM_CONTEXT_KEY="custom_context",l=_e.MAX_LOG_SIZE_IN_BYTES_DEFAULT=1024e3,u=(function(){return(0,n.default)(function e(n){(0,t.default)(this,e),this.nodeValue=n,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null},[{key:"value",get:function(){return this.nodeValue}},{key:"size",get:function(){return this.sizeInBytes}}])})(),s=(function(){return(0,n.default)(function e(n){(0,t.default)(this,e),this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=n,this.sizeInBytes=0},[{key:"append",value:function(e){var t=new u(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}},{key:"shift",value:function(){if(this.head){var e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}}},{key:"toArray",value:function(){for(var e=[],t=this.head;null!==t;)e.push(t.value),t=t.next;return e}},{key:"length",get:function(){return this.lengthInNodes}},{key:"size",get:function(){return this.sizeInBytes}},{key:"toOrderedArray",value:function(){return Array.from(this)}},{key:Symbol.iterator,value:function(){var e=this.head;return{next:function(){if(!e)return{done:!0,value:null};var t=e.value;return e=e.next,{done:!1,value:t}}}}}])})(),a=(function(){return(0,n.default)(function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.level=null!=n?n:"error",this.levelValue=r.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=o,this.logs=new s(this.MAX_LOG_SIZE_IN_BYTES)},[{key:"forwardToConsole",value:function(e,t){t===r.levels.values.error?console.error(e):t===r.levels.values.warn?console.warn(e):t===r.levels.values.debug?console.debug(e):t===r.levels.values.trace?console.trace(e):console.log(e)}},{key:"appendToLogs",value:function(e){this.logs.append((0,_r(_d[4]).safeJsonStringify)({timestamp:(new Date).toISOString(),log:e}));var t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}},{key:"getLogs",value:function(){return this.logs}},{key:"clearLogs",value:function(){this.logs=new s(this.MAX_LOG_SIZE_IN_BYTES)}},{key:"getLogArray",value:function(){return Array.from(this.logs)}},{key:"logsToBlob",value:function(e){var t=this.getLogArray();return t.push((0,_r(_d[4]).safeJsonStringify)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}])})(),g=(function(){return(0,n.default)(function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.baseChunkLogger=new a(n,r)},[{key:"write",value:function(e){this.baseChunkLogger.appendToLogs(e)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(e){return this.baseChunkLogger.logsToBlob(e)}},{key:"downloadLogsBlobInBrowser",value:function(e){var t=URL.createObjectURL(this.logsToBlob(e)),n=document.createElement("a");n.href=t,n.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}}])})(),h=(function(){return(0,n.default)(function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.baseChunkLogger=new a(n,r)},[{key:"write",value:function(e){this.baseChunkLogger.appendToLogs(e)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(e){return this.baseChunkLogger.logsToBlob(e)}}])})(),f=Object.defineProperty,c=Object.defineProperties,v=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,p=function(e,t,n){return t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},b=function(e,t){for(var n in t||(t={}))y.call(t,n)&&p(e,n,t[n]);if(d)for(var n of d(t))L.call(t,n)&&p(e,n,t[n]);return e},k=function(e,t){return c(e,v(t))};function _(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:i]||""}function w(e,t){return e[arguments.length>2&&void 0!==arguments[2]?arguments[2]:i]=t,e}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return typeof e.bindings>"u"?_(e,t):e.bindings().context||""}function I(e,t){var n=O(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:i);return n.trim()?`${n}/${t}`:t}function C(e){var t,n,o=new g(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:(0,r.default)(k(b({},e.opts),{level:"trace",browser:k(b({},null==(n=e.opts)?void 0:n.browser),{write:function(e){return o.write(e)}})})),chunkLoggerController:o}}function S(e){var t,n=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:(0,r.default)(k(b({},e.opts),{level:"trace"}),n),chunkLoggerController:n}}},1283,[1,3,4,1284,1040]); -__d(function(g,r,_i,_a,m,_e,d){'use strict';m.exports=s;var e=(function(){function e(e){return void 0!==e&&e}try{return'undefined'!=typeof globalThis||Object.defineProperty(Object.prototype,'globalThis',{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}})().console||{},t={mapHttpRequest:h,mapHttpResponse:h,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:h,res:h,err:function(e){var t={type:e.constructor.name,msg:e.message,stack:e.stack};for(var i in e)void 0===t[i]&&(t[i]=e[i]);return t}};function i(e,t){return Array.isArray(e)?e.filter(function(e){return'!stdSerializers.err'!==e}):!0===e&&Object.keys(t)}function s(t){(t=t||{}).browser=t.browser||{};var l=t.browser.transmit;if(l&&'function'!=typeof l.send)throw Error('pino: transmit option must have a send function');var a=t.browser.write||e;t.browser.write&&(t.browser.asObject=!0);var f=t.serializers||{},h=i(t.browser.serialize,f),b=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf('!stdSerializers.err')>-1&&(b=!1);'function'==typeof a&&(a.error=a.fatal=a.warn=a.info=a.debug=a.trace=a),!1===t.enabled&&(t.level='silent');var w=t.level||'info',z=Object.create(a);z.log||(z.log=p),Object.defineProperty(z,'levelVal',{get:function(){return'silent'===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(z,'level',{get:function(){return this._level},set:function(e){if('silent'!==e&&!this.levels.values[e])throw Error('unknown level '+e);this._level=e,n(y,z,'error','log'),n(y,z,'fatal','error'),n(y,z,'warn','error'),n(y,z,'info','log'),n(y,z,'debug','log'),n(y,z,'trace','log')}});var y={transmit:l,serialize:h,asObject:t.browser.asObject,levels:['error','fatal','warn','info','debug','trace'],timestamp:v(t)};return z.levels=s.levels,z.level=w,z.setMaxListeners=z.getMaxListeners=z.emit=z.addListener=z.on=z.prependListener=z.once=z.prependOnceListener=z.removeListener=z.removeAllListeners=z.listeners=z.listenerCount=z.eventNames=z.write=z.flush=p,z.serializers=f,z._serialize=h,z._stdErrSerialize=b,z.child=function(e,i){if(!e)throw new Error('missing bindings for child Pino');i=i||{},h&&e.serializers&&(i.serializers=e.serializers);var s=i.serializers;if(h&&s){var n=Object.assign({},f,s),a=!0===t.browser.serialize?Object.keys(n):h;delete e.serializers,o([e],a,n,this._stdErrSerialize)}function v(t){this._childLevel=1+(0|t._childLevel),this.error=u(t,e,'error'),this.fatal=u(t,e,'fatal'),this.warn=u(t,e,'warn'),this.info=u(t,e,'info'),this.debug=u(t,e,'debug'),this.trace=u(t,e,'trace'),n&&(this.serializers=n,this._serialize=a),l&&(this._logEvent=c([].concat(t._logEvent.bindings,e)))}return v.prototype=this,new v(this)},l&&(z._logEvent=c()),z}function n(t,i,s,n){var a=Object.getPrototypeOf(i);i[s]=i.levelVal>i.levels.values[s]?p:a[s]?a[s]:e[s]||e[n]||p,l(t,i,s)}function l(t,i,n){var l;(t.transmit||i[n]!==p)&&(i[n]=(l=i[n],function(){for(var u=t.timestamp(),c=new Array(arguments.length),v=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this,h=0;h-1&&a in i&&(e[l][a]=i[a](e[l][a]))}function u(e,t,i){return function(){var s=new Array(1+arguments.length);s[0]=t;for(var n=1;n-1?b:0,i.charCodeAt(h+1)){case 100:case 102:if(l>=u)break;if(null==a[l])break;b=u)break;if(null==a[l])break;b=u)break;if(void 0===a[l])break;b',b=h+2,h++;break}o+=n(a[l]),b=h+2,h++;break;case 115:if(l>=u)break;b0&&void 0!==arguments[0]?arguments[0]:this.connection;yield this.open(e)}),function(){return y.apply(this,arguments)})},{key:"disconnect",value:(v=(0,n.default)(function*(){yield this.close()}),function(){return v.apply(this,arguments)})},{key:"on",value:function(e,n){this.events.on(e,n)}},{key:"once",value:function(e,n){this.events.once(e,n)}},{key:"off",value:function(e,n){this.events.off(e,n)}},{key:"removeListener",value:function(e,n){this.events.removeListener(e,n)}},{key:"request",value:(h=(0,n.default)(function*(e,n){return this.requestStrict((0,r(d[8]).formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,r(d[8]).getBigIntRpcId)().toString()),n)}),function(e,n){return h.apply(this,arguments)})},{key:"requestStrict",value:(f=(0,n.default)(function*(e,t){var o=this;return new Promise((function(){var i=(0,n.default)(function*(n,i){if(!o.connection.connected)try{yield o.open()}catch(e){i(e)}o.events.on(`${e.id}`,function(e){(0,r(d[8]).isJsonRpcError)(e)?i(e.error):n(e.result)});try{yield o.connection.send(e,t)}catch(e){i(e)}});return function(e,n){return i.apply(this,arguments)}})())}),function(e,n){return f.apply(this,arguments)})},{key:"setConnection",value:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection}},{key:"onPayload",value:function(e){this.events.emit("payload",e),(0,r(d[8]).isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}},{key:"onClose",value:function(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}},{key:"open",value:(l=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(yield this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),yield this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}),function(){return l.apply(this,arguments)})},{key:"close",value:(c=(0,n.default)(function*(){yield this.connection.close()}),function(){return c.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.hasRegisteredEventListeners||(this.connection.on("payload",function(n){return e.onPayload(n)}),this.connection.on("close",function(n){return e.onClose(n)}),this.connection.on("error",function(n){return e.events.emit("error",n)}),this.connection.on("register_error",function(n){return e.onClose()}),this.hasRegisteredEventListeners=!0)}}]);var c,l,f,h,v,y})(r(d[8]).IJsonRpcProvider)},1290,[1,367,3,4,9,11,12,1069,1270]); -__d(function(_g,_r,_i,a,m,_e2,_d){var e=_r(_d[0]);Object.defineProperty(_e2,"__esModule",{value:!0}),_e2.default=_e2.HttpConnection=void 0;var t=e(_r(_d[1])),i=e(_r(_d[2])),n=e(_r(_d[3])),r=e(_r(_d[4])),s=Object.defineProperty,o=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,h=function(e,t,i){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},f=function(e,t){for(var i in t||(t={}))c.call(t,i)&&h(e,i,t[i]);if(u)for(var i of u(t))v.call(t,i)&&h(e,i,t[i]);return e},d=function(e,t){return o(e,l(t))},p={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};_e2.default=_e2.HttpConnection=(function(){return(0,n.default)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.default)(this,e),this.url=t,this.disableProviderPing=n,this.events=new(_r(_d[5]).EventEmitter),this.isAvailable=!1,this.registering=!1,!(0,_r(_d[6]).isHttpUrl)(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=n},[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(l=(0,t.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;yield this.register(e)}),function(){return l.apply(this,arguments)})},{key:"close",value:(o=(0,t.default)(function*(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}),function(){return o.apply(this,arguments)})},{key:"send",value:(s=(0,t.default)(function*(e){this.isAvailable||(yield this.register());try{var t=(0,_r(_d[7]).safeJsonStringify)(e),i=yield(yield(0,r.default)(this.url,d(f({},p),{body:t}))).json();this.onPayload({data:i})}catch(t){this.onError(e.id,t)}}),function(e){return s.apply(this,arguments)})},{key:"register",value:(e=(0,t.default)(function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!(0,_r(_d[6]).isHttpUrl)(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){var i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise(function(t,i){e.events.once("register_error",function(t){e.resetMaxListeners(),i(t)}),e.events.once("open",function(){if(e.resetMaxListeners(),typeof e.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));t()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){var n=(0,_r(_d[7]).safeJsonStringify)({id:1,jsonrpc:"2.0",method:"test",params:[]});yield(0,r.default)(t,d(f({},p),{body:n}))}this.onOpen()}catch(i){var s=this.parseError(i);throw this.events.emit("register_error",s),this.onClose(),s}}),function(){return e.apply(this,arguments)})},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}},{key:"onPayload",value:function(e){if(!(typeof e.data>"u")){var t="string"==typeof e.data?(0,_r(_d[7]).safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var i=this.parseError(t),n=i.message||i.toString(),r=(0,_r(_d[6]).formatJsonRpcError)(e,n);this.events.emit("payload",r)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,_r(_d[6]).parseConnectionError)(e,t,"HTTP")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}]);var e,s,o,l})()},1291,[1,367,3,4,1292,1069,1270,1040]); -__d(function(g,r,i,a,m,e,d){m.exports=g.fetch,m.exports.default=g.fetch,m.exports.fetch=g.fetch,m.exports.Headers=g.Headers,m.exports.Request=g.Request,m.exports.Response=g.Response},1292,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),n=r(d[1]),t=r(d[2]),s=r(d[3]),o=r(d[4]),u=r(d[5]),c=r(d[6]);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=(function(e){return e[e.INVALID_REQUEST=-32600]="INVALID_REQUEST",e[e.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",e[e.INVALID_PARAMS=-32602]="INVALID_PARAMS",e[e.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",e[e.PARSE_ERROR=-32700]="PARSE_ERROR",e})({}),l=(function(e){function c(e,n,u){var h,l,p,v;return t(this,c),l=this,v=[n],p=o(p=c),(h=s(l,f()?Reflect.construct(p,v||[],o(l).constructor):p.apply(l,v))).code=e,h.message=n,h.data=u,h}return u(c,e),n(c)})(c(Error)),p=(function(e){return e.HELLO="rpc_hello",e})(p||{}),v=(function(){return n(function e(n){var s=this;t(this,e),this.id=0,this.setSend=function(){},this._send=new Promise(function(e){s.setSend=e}),this.peerInfo=new Promise(function(e,n){s.resolvePeerInfo=e,s.rejectPeerInfo=n}),this.enabledNotifications=[],this.requestHandlers={},this.subscriptions={},this.messageListeners=[];var o=n.notifications;this.enabledNotifications=o||[],this.on(p.HELLO,function(e){return s.resolvePeerInfo(e),s.ownInfo()})},[{key:"connect",value:function(e){var n=this,t=e.send;this.setSend(t),this.requestWithoutConnection(p.HELLO,this.ownInfo()).then(function(e){n.resolvePeerInfo(e)}).catch(this.rejectPeerInfo)}},{key:"ownInfo",value:function(){return{requests:Object.keys(this.requestHandlers),notifications:this.enabledNotifications}}},{key:"send",value:(R=e(function*(e){return(yield this._send)(e)}),function(e){return R.apply(this,arguments)})},{key:"receive",value:function(e){"2.0"===(null==e?void 0:e.jsonrpc)&&("method"in e&&("id"in e?this.handleRequest(e):this.handleNotification(e)),this.messageListeners.forEach(function(n){return n(e)}))}},{key:"handleRequest",value:(y=e(function*(e){var n=this.requestHandlers[e.method];if(n)try{var t=yield n(e.params);this.send({jsonrpc:"2.0",id:e.id,result:t})}catch(n){n instanceof l?this.send({jsonrpc:"2.0",id:e.id,error:{code:n.code,message:n.message,data:n.data}}):this.send({jsonrpc:"2.0",id:e.id,error:{code:h.INTERNAL_ERROR,message:null==n?void 0:n.message}})}else this.send({jsonrpc:"2.0",id:e.id,error:{code:h.METHOD_NOT_FOUND,message:`Method not found: ${e.method}`}})}),function(e){return y.apply(this,arguments)})},{key:"handleNotification",value:function(e){this.subscriptions[e.method]&&this.subscriptions[e.method].forEach(function(n){return n(e.params)})}},{key:"onMessage",value:function(e){var n=this;return this.messageListeners.push(e),function(){n.messageListeners=n.messageListeners.filter(function(n){return n!==e})}}},{key:"notify",value:(v=e(function*(e,n){yield this.onceConnected(),this.send({jsonrpc:"2.0",method:e,params:n})}),function(e,n){return v.apply(this,arguments)})},{key:"request",value:(f=e(function*(e,n){return yield this.onceConnected(),this.requestWithoutConnection(e,n)}),function(e,n){return f.apply(this,arguments)})},{key:"requestWithoutConnection",value:(c=e(function*(e,n){var t=this,s=this.id++,o=function(){},u=new Promise(function(e,n){o=t.onMessage(function(t){if(t.id===s&&("result"in t||"error"in t)){if(t.error){var o=new l(t.error.code,t.error.message,t.error.data);n(o)}e(t.result)}})}).finally(o);return this.send({jsonrpc:"2.0",method:e,params:n,id:s}),u}),function(e,n){return c.apply(this,arguments)})},{key:"on",value:function(e,n){this.requestHandlers[e]=n}},{key:"subscribe",value:function(e,n){this.subscriptions[e]=this.subscriptions[e]||new Set,this.subscriptions[e].add(n)}},{key:"unsubscribe",value:function(e,n){var t;null==(t=this.subscriptions[e])||t.delete(n)}},{key:"onceConnected",value:(u=e(function*(){return this.peerInfo.then(function(){})}),function(){return u.apply(this,arguments)})},{key:"getAvailableRequests",value:(o=e(function*(){return this.peerInfo.then(function(e){return e.requests})}),function(){return o.apply(this,arguments)})},{key:"getAvailableNotifications",value:(s=e(function*(){return this.peerInfo.then(function(e){return e.notifications})}),function(){return s.apply(this,arguments)})}]);var s,o,u,c,f,v,y,R})();_e.RpcClient=v,_e.RpcError=l,_e.RpcErrorCode=h},1293,[367,4,3,9,11,12,14]); -__d(function(g,r,i,a,m,e,d){'use strict';var n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";e.uid=function(){for(var t="",u=32;u--;)t+=n[62*Math.random()|0];return t}},1294,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,l,y){if(f&&"object"==typeof f||"function"==typeof f){var s=function(o){c.call(n,o)||o===l||t(n,o,{get:function(){return f[o]},enumerable:!(y=u(f,o))||y.enumerable})};for(var h of o(f))s(h)}return n},l={};!(function(n,u){for(var o in u)t(n,o,{get:u[o],enumerable:!0})})(l,{CancelledError:function(){return r(d[0]).CancelledError},InfiniteQueryObserver:function(){return r(d[1]).InfiniteQueryObserver},Mutation:function(){return r(d[2]).Mutation},MutationCache:function(){return r(d[3]).MutationCache},MutationObserver:function(){return r(d[4]).MutationObserver},QueriesObserver:function(){return r(d[5]).QueriesObserver},Query:function(){return r(d[6]).Query},QueryCache:function(){return r(d[7]).QueryCache},QueryClient:function(){return r(d[8]).QueryClient},QueryObserver:function(){return r(d[9]).QueryObserver},defaultScheduler:function(){return r(d[10]).defaultScheduler},defaultShouldDehydrateMutation:function(){return r(d[11]).defaultShouldDehydrateMutation},defaultShouldDehydrateQuery:function(){return r(d[11]).defaultShouldDehydrateQuery},dehydrate:function(){return r(d[11]).dehydrate},experimental_streamedQuery:function(){return r(d[12]).streamedQuery},focusManager:function(){return r(d[13]).focusManager},hashKey:function(){return r(d[14]).hashKey},hydrate:function(){return r(d[11]).hydrate},isCancelledError:function(){return r(d[0]).isCancelledError},isServer:function(){return r(d[14]).isServer},keepPreviousData:function(){return r(d[14]).keepPreviousData},matchMutation:function(){return r(d[14]).matchMutation},matchQuery:function(){return r(d[14]).matchQuery},noop:function(){return r(d[14]).noop},notifyManager:function(){return r(d[10]).notifyManager},onlineManager:function(){return r(d[15]).onlineManager},partialMatchKey:function(){return r(d[14]).partialMatchKey},replaceEqualDeep:function(){return r(d[14]).replaceEqualDeep},shouldThrowError:function(){return r(d[14]).shouldThrowError},skipToken:function(){return r(d[14]).skipToken},timeoutManager:function(){return r(d[16]).timeoutManager}}),m.exports=(n=l,f(t({},"__esModule",{value:!0}),n)),(function(n,t,u){f(n,t,"default"),u&&f(u,t,"default")})(l,r(d[17]),m.exports)},1295,[1296,1303,1310,1311,1312,1313,1307,1314,1315,1305,1309,1316,1317,1302,1298,1297,1299,1318]); -__d(function(g,r,i,a,m,_e,d){"use strict";var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]);function l(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(l=function(){return!!n})()}var f,s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,h=function(n,e,t,o){if(e&&"object"==typeof e||"function"==typeof e){var u=function(u){y.call(n,u)||u===t||s(n,u,{get:function(){return e[u]},enumerable:!(o=v(e,u))||o.enumerable})};for(var c of p(e))u(c)}return n},b={};function O(n){return Math.min(1e3*2**n,3e4)}function P(n){return"online"!==(null!=n?n:"online")||r(d[6]).onlineManager.isOnline()}!(function(n,e){for(var t in e)s(n,t,{get:e[t],enumerable:!0})})(b,{CancelledError:function(){return w},canFetch:function(){return P},createRetryer:function(){return C},isCancelledError:function(){return j}}),m.exports=(f=b,h(s({},"__esModule",{value:!0}),f));var w=(function(c){function f(n){var u,c,s,v;return e(this,f),c=this,v=["CancelledError"],s=o(s=f),(u=t(c,l()?Reflect.construct(s,v||[],o(c).constructor):s.apply(c,v))).revert=null==n?void 0:n.revert,u.silent=null==n?void 0:n.silent,u}return u(f,c),n(f)})(c(Error));function j(n){return n instanceof w}function C(n){var e,t=!1,o=0,u=(0,r(d[7]).pendingThenable)(),c=function(){return"pending"!==u.status},l=function(){return r(d[8]).focusManager.isFocused()&&("always"===n.networkMode||r(d[6]).onlineManager.isOnline())&&n.canRun()},f=function(){return P(n.networkMode)&&n.canRun()},s=function(n){c()||(null==e||e(),u.resolve(n))},v=function(n){c()||(null==e||e(),u.reject(n))},p=function(){return new Promise(function(t){e=function(n){(c()||l())&&t(n)},null==n.onPause||n.onPause()}).then(function(){e=void 0,c()||null==n.onContinue||n.onContinue()})},y=function(){if(!c()){var e,u=0===o?n.initialPromise:void 0;try{e=null!=u?u:n.fn()}catch(n){e=Promise.reject(n)}Promise.resolve(e).then(s).catch(function(e){var u,f;if(!c()){var s=null!=(u=n.retry)?u:r(d[9]).isServer?0:3,h=null!=(f=n.retryDelay)?f:O,b="function"==typeof h?h(o,e):h,P=!0===s||"number"==typeof s&&o=0&&t!==1/0}function v(t,n){return Math.max(t+(n||0)-Date.now(),0)}function h(t,n){return"function"==typeof t?t(n):t}function b(t,n){return"function"==typeof t?t(n):t}function O(t,n){var u=t.type,o=void 0===u?"all":u,i=t.exact,c=t.fetchStatus,f=t.predicate,a=t.queryKey,s=t.stale;if(a)if(i){if(n.queryHash!==P(a,n.options))return!1}else if(!S(n.queryKey,a))return!1;if("all"!==o){var l=n.isActive();if("active"===o&&!l)return!1;if("inactive"===o&&l)return!1}return("boolean"!=typeof s||n.isStale()===s)&&((!c||c===n.state.fetchStatus)&&!(f&&!f(n)))}function j(t,n){var u=t.exact,o=t.status,i=t.predicate,c=t.mutationKey;if(c){if(!n.options.mutationKey)return!1;if(u){if(w(n.options.mutationKey)!==w(c))return!1}else if(!S(n.options.mutationKey,c))return!1}return(!o||n.state.status===o)&&!(i&&!i(n))}function P(t,n){return((null==n?void 0:n.queryKeyHashFn)||w)(t)}function w(t){return JSON.stringify(t,function(t,n){return F(n)?Object.keys(n).sort().reduce(function(t,u){return t[u]=n[u],t},{}):n})}function S(t,n){return t===n||typeof t==typeof n&&(!(!t||!n||"object"!=typeof t||"object"!=typeof n)&&Object.keys(n).every(function(u){return S(t[u],n[u])}))}var q=Object.prototype.hasOwnProperty;function k(t,n){if(t===n)return t;var u=T(t)&&T(n);if(!(u||F(t)&&F(n)))return n;for(var o=(u?t:Object.keys(t)).length,i=u?n:Object.keys(n),c=i.length,f=u?new Array(c):{},a=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:0,i=[].concat(n(t),[u]);return o&&i.length>o?i.slice(1):i}function _(t,u){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[u].concat(n(t));return o&&i.length>o?i.slice(0,-1):i}var H=Symbol();function Q(t,n){return!t.queryFn&&null!=n&&n.initialPromise?function(){return n.initialPromise}:t.queryFn&&t.queryFn!==H?t.queryFn:function(){return Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}}function N(t,u){return"function"==typeof t?t.apply(void 0,n(u)):!!t}},1298,[32,1299]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n,u,o=r(d[0]),c=r(d[1]),f=r(d[2]),l=r(d[3]),s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,h=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){y.call(t,c)||c===u||s(t,c,{get:function(){return n[c]},enumerable:!(o=v(n,c))||o.enumerable})};for(var f of p(n))c(f)}return t},T={};!(function(t,n){for(var u in n)s(t,u,{get:n[u],enumerable:!0})})(T,{TimeoutManager:function(){return O},defaultTimeoutProvider:function(){return b},systemSetTimeoutZero:function(){return I},timeoutManager:function(){return S}}),m.exports=(u=T,h(s({},"__esModule",{value:!0}),u));var b={setTimeout:(function(t){function n(n,u){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t,n){return setTimeout(t,n)}),clearTimeout:(function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t){return clearTimeout(t)}),setInterval:(function(t){function n(n,u){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t,n){return setInterval(t,n)}),clearInterval:(function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t){return clearInterval(t)})},O=(t=l("provider"),n=l("providerCalled"),(function(){return c(function u(){o(this,u),Object.defineProperty(this,t,{writable:!0,value:b}),Object.defineProperty(this,n,{writable:!0,value:!1})},[{key:"setTimeoutProvider",value:function(n){f(this,t)[t]=n}},{key:"setTimeout",value:function(n,u){return f(this,t)[t].setTimeout(n,u)}},{key:"clearTimeout",value:function(n){f(this,t)[t].clearTimeout(n)}},{key:"setInterval",value:function(n,u){return f(this,t)[t].setInterval(n,u)}},{key:"clearInterval",value:function(n){f(this,t)[t].clearInterval(n)}}])})()),S=new O;function I(t){setTimeout(t,0)}},1299,[3,4,45,46]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=r(d[1]),u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,f=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){b.call(t,c)||c===s||u(t,c,{get:function(){return n[c]},enumerable:!(f=o(n,c))||f.enumerable})};for(var h of c(n))l(h)}return t},l={};!(function(t,n){for(var s in n)u(t,s,{get:n[s],enumerable:!0})})(l,{Subscribable:function(){return h}}),m.exports=(t=l,f(u({},"__esModule",{value:!0}),t));var h=(function(){return s(function t(){n(this,t),this.listeners=new Set,this.subscribe=this.subscribe.bind(this)},[{key:"subscribe",value:function(t){var n=this;return this.listeners.add(t),this.onSubscribe(),function(){n.listeners.delete(t),n.onUnsubscribe()}}},{key:"hasListeners",value:function(){return this.listeners.size>0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}])})()},1300,[3,4]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){c.call(t,u)||u===s||n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var v of u(f))p(v)}return t},s={};function l(){var t,n,o=new Promise(function(o,u){t=o,n=u});function u(t){Object.assign(o,t),delete o.resolve,delete o.reject}return o.status="pending",o.catch(function(){}),o.resolve=function(n){u({status:"fulfilled",value:n}),t(n)},o.reject=function(t){u({status:"rejected",reason:t}),n(t)},o}function p(t){var n,o;if(null==(n=t.then(function(t){return o=t,t},r(d[0]).noop))||n.catch(r(d[0]).noop),void 0!==o)return{data:o}}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{pendingThenable:function(){return l},tryResolveSync:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},1301,[1298]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t,n,o=r(d[0]),u=r(d[1]),c=r(d[2]),s=r(d[3]),l=r(d[4]),f=r(d[5]),v=r(d[6]);function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var h,y=Object.defineProperty,p=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,O=Object.prototype.hasOwnProperty,j=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){O.call(e,u)||u===n||y(e,u,{get:function(){return t[u]},enumerable:!(o=p(t,u))||o.enumerable})};for(var c of w(t))u(c)}return e},F={};!(function(e,t){for(var n in t)y(e,n,{get:t[n],enumerable:!0})})(F,{FocusManager:function(){return P},focusManager:function(){return k}}),m.exports=(h=F,j(y({},"__esModule",{value:!0}),h));var P=(e=v("focused"),t=v("cleanup"),n=v("setup"),(function(v){function h(){var u,l,v,y;return o(this,h),l=this,v=s(v=h),u=c(l,b()?Reflect.construct(v,y||[],s(l).constructor):v.apply(l,y)),Object.defineProperty(u,e,{writable:!0,value:void 0}),Object.defineProperty(u,t,{writable:!0,value:void 0}),Object.defineProperty(u,n,{writable:!0,value:void 0}),f(u,n)[n]=function(e){if(!r(d[7]).isServer&&window.addEventListener){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),function(){window.removeEventListener("visibilitychange",t)}}},u}return l(h,v),u(h,[{key:"onSubscribe",value:function(){f(this,t)[t]||this.setEventListener(f(this,n)[n])}},{key:"onUnsubscribe",value:function(){var e,n;this.hasListeners()||(null==(e=(n=f(this,t))[t])||e.call(n),f(this,t)[t]=void 0)}},{key:"setEventListener",value:function(e){var o,u,c=this;f(this,n)[n]=e,null==(o=(u=f(this,t))[t])||o.call(u),f(this,t)[t]=e(function(e){"boolean"==typeof e?c.setFocused(e):c.onFocus()})}},{key:"setFocused",value:function(t){f(this,e)[e]!==t&&(f(this,e)[e]=t,this.onFocus())}},{key:"onFocus",value:function(){var e=this.isFocused();this.listeners.forEach(function(t){t(e)})}},{key:"isFocused",value:function(){var t;return"boolean"==typeof f(this,e)[e]?f(this,e)[e]:"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}}])})(r(d[8]).Subscribable)),k=new P},1302,[3,4,9,11,12,45,46,1298,1300]); -__d(function(g,_r,i,a,m,_e,d){"use strict";var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),n=_r(d[3]),o=_r(d[4]),c=_r(d[5]);function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function u(e,t,r,c){var s=o(n(1&c?e.prototype:e),t,r);return 2&c&&"function"==typeof s?function(e){return s.apply(r,e)}:s}var f,h=Object.defineProperty,v=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,b=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){l.call(e,o)||o===r||h(e,o,{get:function(){return t[o]},enumerable:!(n=v(t,o))||n.enumerable})};for(var c of P(t))o(c)}return e},p={};!(function(e,t){for(var r in t)h(e,r,{get:t[r],enumerable:!0})})(p,{InfiniteQueryObserver:function(){return y}}),m.exports=(f=p,b(h({},"__esModule",{value:!0}),f));var y=(function(o){function f(t,o){return e(this,f),c=this,h=[t,o],u=n(u=f),r(c,s()?Reflect.construct(u,h||[],n(c).constructor):u.apply(c,h));var c,u,h}return c(f,o),t(f,[{key:"bindMethods",value:function(){u(f,"bindMethods",this,3)([]),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}},{key:"setOptions",value:function(e){u(f,"setOptions",this,3)([Object.assign({},e,{behavior:(0,_r(d[6]).infiniteQueryBehavior)()})])}},{key:"getOptimisticResult",value:function(e){return e.behavior=(0,_r(d[6]).infiniteQueryBehavior)(),u(f,"getOptimisticResult",this,3)([e])}},{key:"fetchNextPage",value:function(e){return this.fetch(Object.assign({},e,{meta:{fetchMore:{direction:"forward"}}}))}},{key:"fetchPreviousPage",value:function(e){return this.fetch(Object.assign({},e,{meta:{fetchMore:{direction:"backward"}}}))}},{key:"createResult",value:function(e,t){var r,n=e.state,o=u(f,"createResult",this,3)([e,t]),c=o.isFetching,s=o.isRefetching,h=o.isError,v=o.isRefetchError,P=null==(r=n.fetchMeta)||null==(r=r.fetchMore)?void 0:r.direction,l=h&&"forward"===P,b=c&&"forward"===P,p=h&&"backward"===P,y=c&&"backward"===P;return Object.assign({},o,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,_r(d[6]).hasNextPage)(t,n.data),hasPreviousPage:(0,_r(d[6]).hasPreviousPage)(t,n.data),isFetchNextPageError:l,isFetchingNextPage:b,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:v&&!l&&!p,isRefetching:s&&!b&&!y})}}])})(_r(d[7]).QueryObserver)},1303,[3,4,9,11,42,12,1304,1305]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=function(n,t,c,p){if(t&&"object"==typeof t||"function"==typeof t){var f=function(s){l.call(n,s)||s===c||o(n,s,{get:function(){return t[s]},enumerable:!(p=u(t,s))||p.enumerable})};for(var P of s(t))f(P)}return n},p={};function f(n){return{onFetch:function(o,u){var s,l,c,p=o.options,f=null==(s=o.fetchOptions)||null==(s=s.meta)||null==(s=s.fetchMore)?void 0:s.direction,y=(null==(l=o.state.data)?void 0:l.pages)||[],h=(null==(c=o.state.data)?void 0:c.pageParams)||[],b={pages:[],pageParams:[]},O=0,j=(function(){var u=t(function*(){var u=!1,s=(0,r(d[1]).ensureQueryFn)(o.options,o.fetchOptions),l=(function(){var n=t(function*(n,t,l){if(u)return Promise.reject();if(null==t&&n.pages.length)return Promise.resolve(n);var c,p,f=(p={client:o.client,queryKey:o.queryKey,pageParam:t,direction:l?"backward":"forward",meta:o.options.meta},c=p,Object.defineProperty(c,"signal",{enumerable:!0,get:function(){return o.signal.aborted?u=!0:o.signal.addEventListener("abort",function(){u=!0}),o.signal}}),p),P=yield s(f),v=o.options.maxPages,y=l?r(d[1]).addToStart:r(d[1]).addToEnd;return{pages:y(n.pages,P,v),pageParams:y(n.pageParams,t,v)}});return function(t,o,u){return n.apply(this,arguments)}})();if(f&&y.length){var c="backward"===f,j={pages:y,pageParams:h},w=(c?v:P)(p,j);b=yield l(j,w,c)}else{var q=null!=n?n:y.length;do{var x,F=0===O?null!=(x=h[0])?x:p.initialPageParam:P(p,b);if(O>0&&null==F)break;b=yield l(b,F),O++}while(O0?n.getNextPageParam(o[s],o,u[s],u):void 0}function v(n,t){var o=t.pages,u=t.pageParams;return o.length>0?null==n.getPreviousPageParam?void 0:n.getPreviousPageParam(o[0],o,u[0],u):void 0}function y(n,t){return!!t&&null!=P(n,t)}function h(n,t){return!(!t||!n.getPreviousPageParam)&&null!=v(n,t)}!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(p,{hasNextPage:function(){return y},hasPreviousPage:function(){return h},infiniteQueryBehavior:function(){return f}}),m.exports=(n=p,c(o({},"__esModule",{value:!0}),n))},1304,[367,1298]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t,s,n,o,u,l,h,c,f,v,p,b,y,O,j,R,P,w,S,k,E,T,C,I=r(d[0]),U=r(d[1]),D=r(d[2]),Q=r(d[3]),F=r(d[4]),M=r(d[5]),_=r(d[6]),L=r(d[7]);function q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(q=function(){return!!e})()}var x,A=Object.defineProperty,B=Object.getOwnPropertyDescriptor,W=Object.getOwnPropertyNames,z=Object.prototype.hasOwnProperty,H=function(e,t,s,n){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){z.call(e,o)||o===s||A(e,o,{get:function(){return t[o]},enumerable:!(n=B(t,o))||n.enumerable})};for(var u of W(t))o(u)}return e},V={};!(function(e,t){for(var s in t)A(e,s,{get:t[s],enumerable:!0})})(V,{QueryObserver:function(){return N}}),m.exports=(x=V,H(A({},"__esModule",{value:!0}),x));var N=(e=L("client"),t=L("currentQuery"),s=L("currentQueryInitialState"),n=L("currentResult"),o=L("currentResultState"),u=L("currentResultOptions"),l=L("currentThenable"),h=L("selectError"),c=L("selectFn"),f=L("selectResult"),v=L("lastQueryWithDefinedData"),p=L("staleTimeoutId"),b=L("refetchIntervalId"),y=L("currentRefetchInterval"),O=L("trackedProps"),j=L("executeFetch"),R=L("updateStaleTimeout"),P=L("computeRefetchInterval"),w=L("updateRefetchInterval"),S=L("updateTimers"),k=L("clearStaleTimeout"),E=L("clearRefetchInterval"),T=L("updateQuery"),C=L("notify"),(function(L){function x(I,D){var M,L,A,B;return U(this,x),L=this,A=F(A=x),M=Q(L,q()?Reflect.construct(A,B||[],F(L).constructor):A.apply(L,B)),Object.defineProperty(M,C,{value:te}),Object.defineProperty(M,T,{value:ee}),Object.defineProperty(M,E,{value:$}),Object.defineProperty(M,k,{value:Z}),Object.defineProperty(M,S,{value:Y}),Object.defineProperty(M,w,{value:X}),Object.defineProperty(M,P,{value:K}),Object.defineProperty(M,R,{value:J}),Object.defineProperty(M,j,{value:G}),Object.defineProperty(M,e,{writable:!0,value:void 0}),Object.defineProperty(M,t,{writable:!0,value:void 0}),Object.defineProperty(M,s,{writable:!0,value:void 0}),Object.defineProperty(M,n,{writable:!0,value:void 0}),Object.defineProperty(M,o,{writable:!0,value:void 0}),Object.defineProperty(M,u,{writable:!0,value:void 0}),Object.defineProperty(M,l,{writable:!0,value:void 0}),Object.defineProperty(M,h,{writable:!0,value:void 0}),Object.defineProperty(M,c,{writable:!0,value:void 0}),Object.defineProperty(M,f,{writable:!0,value:void 0}),Object.defineProperty(M,v,{writable:!0,value:void 0}),Object.defineProperty(M,p,{writable:!0,value:void 0}),Object.defineProperty(M,b,{writable:!0,value:void 0}),Object.defineProperty(M,y,{writable:!0,value:void 0}),Object.defineProperty(M,O,{writable:!0,value:new Set}),M.options=D,_(M,e)[e]=I,_(M,h)[h]=null,_(M,l)[l]=(0,r(d[8]).pendingThenable)(),M.bindMethods(),M.setOptions(D),M}return M(x,L),D(x,[{key:"bindMethods",value:function(){this.refetch=this.refetch.bind(this)}},{key:"onSubscribe",value:function(){1===this.listeners.size&&(_(this,t)[t].addObserver(this),re(_(this,t)[t],this.options)?_(this,j)[j]():this.updateResult(),_(this,S)[S]())}},{key:"onUnsubscribe",value:function(){this.hasListeners()||this.destroy()}},{key:"shouldFetchOnReconnect",value:function(){return se(_(this,t)[t],this.options,this.options.refetchOnReconnect)}},{key:"shouldFetchOnWindowFocus",value:function(){return se(_(this,t)[t],this.options,this.options.refetchOnWindowFocus)}},{key:"destroy",value:function(){this.listeners=new Set,_(this,k)[k](),_(this,E)[E](),_(this,t)[t].removeObserver(this)}},{key:"setOptions",value:function(s){var n=this.options,o=_(this,t)[t];if(this.options=_(this,e)[e].defaultQueryOptions(s),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_(this,T)[T](),_(this,t)[t].setOptions(this.options),n._defaulted&&!(0,r(d[9]).shallowEqualObjects)(this.options,n)&&_(this,e)[e].getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,t)[t],observer:this});var u=this.hasListeners();u&&ne(_(this,t)[t],o,this.options,n)&&_(this,j)[j](),this.updateResult(),!u||_(this,t)[t]===o&&(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])===(0,r(d[9]).resolveEnabled)(n.enabled,_(this,t)[t])&&(0,r(d[9]).resolveStaleTime)(this.options.staleTime,_(this,t)[t])===(0,r(d[9]).resolveStaleTime)(n.staleTime,_(this,t)[t])||_(this,R)[R]();var l=_(this,P)[P]();!u||_(this,t)[t]===o&&(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])===(0,r(d[9]).resolveEnabled)(n.enabled,_(this,t)[t])&&l===_(this,y)[y]||_(this,w)[w](l)}},{key:"getOptimisticResult",value:function(s){var l=_(this,e)[e].getQueryCache().build(_(this,e)[e],s),h=this.createResult(l,s);return oe(this,h)&&(_(this,n)[n]=h,_(this,u)[u]=this.options,_(this,o)[o]=_(this,t)[t].state),h}},{key:"getCurrentResult",value:function(){return _(this,n)[n]}},{key:"trackResult",value:function(e,t){var s=this;return new Proxy(e,{get:function(e,n){return s.trackProp(n),null==t||t(n),"promise"!==n||s.options.experimental_prefetchInRender||"pending"!==_(s,l)[l].status||_(s,l)[l].reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,n)}})}},{key:"trackProp",value:function(e){_(this,O)[O].add(e)}},{key:"getCurrentQuery",value:function(){return _(this,t)[t]}},{key:"refetch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},(I(e),e));return this.fetch(Object.assign({},t))}},{key:"fetchOptimistic",value:function(t){var s=this,n=_(this,e)[e].defaultQueryOptions(t),o=_(this,e)[e].getQueryCache().build(_(this,e)[e],n);return o.fetch().then(function(){return s.createResult(o,n)})}},{key:"fetch",value:function(e){var t,s=this;return _(this,j)[j](Object.assign({},e,{cancelRefetch:null==(t=e.cancelRefetch)||t})).then(function(){return s.updateResult(),_(s,n)[n]})}},{key:"createResult",value:function(e,p){var b,y=this,O=_(this,t)[t],j=this.options,R=_(this,n)[n],P=_(this,o)[o],w=_(this,u)[u],S=e!==O?e.state:_(this,s)[s],k=e.state,E=Object.assign({},k),T=!1;if(p._optimisticResults){var C=this.hasListeners(),I=!C&&re(e,p),U=C&&ne(e,O,p,j);(I||U)&&(E=Object.assign({},E,(0,r(d[10]).fetchState)(k.data,e.options))),"isRestoring"===p._optimisticResults&&(E.fetchStatus="idle")}var D=E,Q=D.error,F=D.errorUpdatedAt,M=D.status;b=E.data;var L=!1;if(void 0!==p.placeholderData&&void 0===b&&"pending"===M){var q,x;if(null!=R&&R.isPlaceholderData&&p.placeholderData===(null==w?void 0:w.placeholderData))q=R.data,L=!0;else q="function"==typeof p.placeholderData?p.placeholderData(null==(x=_(this,v)[v])?void 0:x.state.data,_(this,v)[v]):p.placeholderData;void 0!==q&&(M="success",b=(0,r(d[9]).replaceData)(null==R?void 0:R.data,q,p),T=!0)}if(p.select&&void 0!==b&&!L)if(R&&b===(null==P?void 0:P.data)&&p.select===_(this,c)[c])b=_(this,f)[f];else try{_(this,c)[c]=p.select,b=p.select(b),b=(0,r(d[9]).replaceData)(null==R?void 0:R.data,b,p),_(this,f)[f]=b,_(this,h)[h]=null}catch(e){_(this,h)[h]=e}_(this,h)[h]&&(Q=_(this,h)[h],b=_(this,f)[f],F=Date.now(),M="error");var A="fetching"===E.fetchStatus,B="pending"===M,W="error"===M,z=B&&A,H=void 0!==b,V={status:M,fetchStatus:E.fetchStatus,isPending:B,isSuccess:"success"===M,isError:W,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:E.dataUpdatedAt,error:Q,errorUpdatedAt:F,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>S.dataUpdateCount||E.errorUpdateCount>S.errorUpdateCount,isFetching:A,isRefetching:A&&!B,isLoadingError:W&&!H,isPaused:"paused"===E.fetchStatus,isPlaceholderData:T,isRefetchError:W&&H,isStale:ae(e,p),refetch:this.refetch,promise:_(this,l)[l],isEnabled:!1!==(0,r(d[9]).resolveEnabled)(p.enabled,e)};if(this.options.experimental_prefetchInRender){var N=function(e){"error"===V.status?e.reject(V.error):void 0!==V.data&&e.resolve(V.data)},G=function(){var e=_(y,l)[l]=V.promise=(0,r(d[8]).pendingThenable)();N(e)},J=_(this,l)[l];switch(J.status){case"pending":e.queryHash===O.queryHash&&N(J);break;case"fulfilled":"error"!==V.status&&V.data===J.value||G();break;case"rejected":"error"===V.status&&V.error===J.reason||G()}}return V}},{key:"updateResult",value:function(){var e=this,s=_(this,n)[n],l=this.createResult(_(this,t)[t],this.options);if(_(this,o)[o]=_(this,t)[t].state,_(this,u)[u]=this.options,void 0!==_(this,o)[o].data&&(_(this,v)[v]=_(this,t)[t]),!(0,r(d[9]).shallowEqualObjects)(l,s)){_(this,n)[n]=l;_(this,C)[C]({listeners:(function(){if(!s)return!0;var t=e.options.notifyOnChangeProps,o="function"==typeof t?t():t;if("all"===o||!o&&!_(e,O)[O].size)return!0;var u=new Set(null!=o?o:_(e,O)[O]);return e.options.throwOnError&&u.add("error"),Object.keys(_(e,n)[n]).some(function(t){var o=t;return _(e,n)[n][o]!==s[o]&&u.has(o)})})()})}}},{key:"onQueryUpdate",value:function(){this.updateResult(),this.hasListeners()&&_(this,S)[S]()}}])})(r(d[11]).Subscribable));function G(e){_(this,T)[T]();var s=_(this,t)[t].fetch(this.options,e);return null!=e&&e.throwOnError||(s=s.catch(r(d[9]).noop)),s}function J(){var e=this;_(this,k)[k]();var s=(0,r(d[9]).resolveStaleTime)(this.options.staleTime,_(this,t)[t]);if(!r(d[9]).isServer&&!_(this,n)[n].isStale&&(0,r(d[9]).isValidTimeout)(s)){var o=(0,r(d[9]).timeUntilStale)(_(this,n)[n].dataUpdatedAt,s)+1;_(this,p)[p]=r(d[12]).timeoutManager.setTimeout(function(){_(e,n)[n].isStale||e.updateResult()},o)}}function K(){var e;return null!=(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval(_(this,t)[t]):this.options.refetchInterval)&&e}function X(e){var s=this;_(this,E)[E](),_(this,y)[y]=e,!r(d[9]).isServer&&!1!==(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])&&(0,r(d[9]).isValidTimeout)(_(this,y)[y])&&0!==_(this,y)[y]&&(_(this,b)[b]=r(d[12]).timeoutManager.setInterval(function(){(s.options.refetchIntervalInBackground||r(d[13]).focusManager.isFocused())&&_(s,j)[j]()},_(this,y)[y]))}function Y(){_(this,R)[R](),_(this,w)[w](_(this,P)[P]())}function Z(){_(this,p)[p]&&(r(d[12]).timeoutManager.clearTimeout(_(this,p)[p]),_(this,p)[p]=void 0)}function $(){_(this,b)[b]&&(r(d[12]).timeoutManager.clearInterval(_(this,b)[b]),_(this,b)[b]=void 0)}function ee(){var n=_(this,e)[e].getQueryCache().build(_(this,e)[e],this.options);if(n!==_(this,t)[t]){var o=_(this,t)[t];_(this,t)[t]=n,_(this,s)[s]=n.state,this.hasListeners()&&(null==o||o.removeObserver(this),n.addObserver(this))}}function te(s){var o=this;r(d[14]).notifyManager.batch(function(){s.listeners&&o.listeners.forEach(function(e){e(_(o,n)[n])}),_(o,e)[e].getQueryCache().notify({query:_(o,t)[t],type:"observerResultsUpdated"})})}function ie(e,t){return!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}function re(e,t){return ie(e,t)||void 0!==e.state.data&&se(e,t,t.refetchOnMount)}function se(e,t,s){if(!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&"static"!==(0,r(d[9]).resolveStaleTime)(t.staleTime,e)){var n="function"==typeof s?s(e):s;return"always"===n||!1!==n&&ae(e,t)}return!1}function ne(e,t,s,n){return(e!==t||!1===(0,r(d[9]).resolveEnabled)(n.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&ae(e,s)}function ae(e,t){return!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,r(d[9]).resolveStaleTime)(t.staleTime,e))}function oe(e,t){return!(0,r(d[9]).shallowEqualObjects)(e.getCurrentResult(),t)}},1305,[1306,3,4,9,11,12,45,46,1301,1298,1307,1300,1299,1302,1309]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(null==t)throw new TypeError("Cannot destructure "+t)},m.exports.__esModule=!0,m.exports.default=m.exports},1306,[]); -__d(function(g,_r,i,a,m,_e,d){"use strict";var t,e,n,r,s,o,u,c,l=_r(d[0]),h=_r(d[1]),f=_r(d[2]),v=_r(d[3]),p=_r(d[4]),y=_r(d[5]),b=_r(d[6]),O=_r(d[7]),S=_r(d[8]);function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}var j,k=Object.defineProperty,F=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,U=Object.prototype.hasOwnProperty,R=function(t,e,n,r){if(e&&"object"==typeof e||"function"==typeof e){var s=function(s){U.call(t,s)||s===n||k(t,s,{get:function(){return e[s]},enumerable:!(r=F(e,s))||r.enumerable})};for(var o of w(e))s(o)}return t},A={};!(function(t,e){for(var n in e)k(t,n,{get:e[n],enumerable:!0})})(A,{Query:function(){return D},fetchState:function(){return q}}),m.exports=(j=A,R(k({},"__esModule",{value:!0}),j));var D=(t=S("initialState"),e=S("revertState"),n=S("cache"),r=S("client"),s=S("retryer"),o=S("defaultOptions"),u=S("abortSignalConsumed"),c=S("dispatch"),(function(S){function j(l){var f,y,b,S,k;return h(this,j),b=this,S=p(S=j),y=v(b,C()?Reflect.construct(S,k||[],p(b).constructor):S.apply(b,k)),Object.defineProperty(y,c,{value:P}),Object.defineProperty(y,t,{writable:!0,value:void 0}),Object.defineProperty(y,e,{writable:!0,value:void 0}),Object.defineProperty(y,n,{writable:!0,value:void 0}),Object.defineProperty(y,r,{writable:!0,value:void 0}),Object.defineProperty(y,s,{writable:!0,value:void 0}),Object.defineProperty(y,o,{writable:!0,value:void 0}),Object.defineProperty(y,u,{writable:!0,value:void 0}),O(y,u)[u]=!1,O(y,o)[o]=l.defaultOptions,y.setOptions(l.options),y.observers=[],O(y,r)[r]=l.client,O(y,n)[n]=O(y,r)[r].getQueryCache(),y.queryKey=l.queryKey,y.queryHash=l.queryHash,O(y,t)[t]=M(y.options),y.state=null!=(f=l.state)?f:O(y,t)[t],y.scheduleGc(),y}return b(j,S),f(j,[{key:"meta",get:function(){return this.options.meta}},{key:"promise",get:function(){var t;return null==(t=O(this,s)[s])?void 0:t.promise}},{key:"setOptions",value:function(e){if(this.options=Object.assign({},O(this,o)[o],e),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){var n=M(this.options);void 0!==n.data&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),O(this,t)[t]=n)}}},{key:"optionalRemove",value:function(){this.observers.length||"idle"!==this.state.fetchStatus||O(this,n)[n].remove(this)}},{key:"setData",value:function(t,e){var n=(0,_r(d[9]).replaceData)(this.state.data,t,this.options);return O(this,c)[c]({data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}},{key:"setState",value:function(t,e){O(this,c)[c]({type:"setState",state:t,setStateOptions:e})}},{key:"cancel",value:function(t){var e,n,r=null==(e=O(this,s)[s])?void 0:e.promise;return null==(n=O(this,s)[s])||n.cancel(t),r?r.then(_r(d[9]).noop).catch(_r(d[9]).noop):Promise.resolve()}},{key:"destroy",value:function(){var t,e,n,r,s;(t=j,e="destroy",n=this,s=y(p(1&(r=3)?t.prototype:t),e,n),2&r&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.cancel({silent:!0})}},{key:"reset",value:function(){this.destroy(),this.setState(O(this,t)[t])}},{key:"isActive",value:function(){var t=this;return this.observers.some(function(e){return!1!==(0,_r(d[9]).resolveEnabled)(e.options.enabled,t)})}},{key:"isDisabled",value:function(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_r(d[9]).skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}},{key:"isStatic",value:function(){var t=this;return this.getObserversCount()>0&&this.observers.some(function(e){return"static"===(0,_r(d[9]).resolveStaleTime)(e.options.staleTime,t)})}},{key:"isStale",value:function(){return this.getObserversCount()>0?this.observers.some(function(t){return t.getCurrentResult().isStale}):void 0===this.state.data||this.state.isInvalidated}},{key:"isStaleByTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,_r(d[9]).timeUntilStale)(this.state.dataUpdatedAt,t))}},{key:"onFocus",value:function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});null==e||e.refetch({cancelRefetch:!1}),null==(t=O(this,s)[s])||t.continue()}},{key:"onOnline",value:function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});null==e||e.refetch({cancelRefetch:!1}),null==(t=O(this,s)[s])||t.continue()}},{key:"addObserver",value:function(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,n)[n].notify({type:"observerAdded",query:this,observer:t}))}},{key:"removeObserver",value:function(t){this.observers.includes(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(O(this,s)[s]&&(O(this,u)[u]?O(this,s)[s].cancel({revert:!0}):O(this,s)[s].cancelRetry()),this.scheduleGc()),O(this,n)[n].notify({type:"observerRemoved",query:this,observer:t}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||O(this,c)[c]({type:"invalidate"})}},{key:"fetch",value:(k=l(function*(t,o){var l,h,f,v=this;if("idle"!==this.state.fetchStatus&&"rejected"!==(null==(l=O(this,s)[s])?void 0:l.status()))if(void 0!==this.state.data&&null!=o&&o.cancelRefetch)this.cancel({silent:!0});else if(O(this,s)[s])return O(this,s)[s].continueRetry(),O(this,s)[s].promise;if(t&&this.setOptions(t),!this.options.queryFn){var p=this.observers.find(function(t){return t.options.queryFn});p&&this.setOptions(p.options)}var y,b,S=new AbortController,C=function(t){Object.defineProperty(t,"signal",{enumerable:!0,get:function(){return O(v,u)[u]=!0,S.signal}})},j=function(){var t,e=(0,_r(d[9]).ensureQueryFn)(v.options,o),n=(t={client:O(v,r)[r],queryKey:v.queryKey,meta:v.meta},C(t),t);return O(v,u)[u]=!1,v.options.persister?v.options.persister(e,n,v):e(n)},k=(y={fetchOptions:o,options:v.options,queryKey:v.queryKey,client:O(v,r)[r],state:v.state,fetchFn:j},C(y),y);null==(h=this.options.behavior)||h.onFetch(k,this),O(this,e)[e]=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(f=k.fetchOptions)?void 0:f.meta))&&O(this,c)[c]({type:"fetch",meta:null==(b=k.fetchOptions)?void 0:b.meta}),O(this,s)[s]=(0,_r(d[10]).createRetryer)({initialPromise:null==o?void 0:o.initialPromise,fn:k.fetchFn,onCancel:function(t){t instanceof _r(d[10]).CancelledError&&t.revert&&v.setState(Object.assign({},O(v,e)[e],{fetchStatus:"idle"})),S.abort()},onFail:function(t,e){O(v,c)[c]({type:"failed",failureCount:t,error:e})},onPause:function(){O(v,c)[c]({type:"pause"})},onContinue:function(){O(v,c)[c]({type:"continue"})},retry:k.options.retry,retryDelay:k.options.retryDelay,networkMode:k.options.networkMode,canRun:function(){return!0}});try{var F,w,U,R,A=yield O(this,s)[s].start();if(void 0===A)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),null==(F=(w=O(this,n)[n].config).onSuccess)||F.call(w,A,this),null==(U=(R=O(this,n)[n].config).onSettled)||U.call(R,A,this.state.error,this),A}catch(t){var D,P,q,M;if(t instanceof _r(d[10]).CancelledError){if(t.silent)return O(this,s)[s].promise;if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw O(this,c)[c]({type:"error",error:t}),null==(D=(P=O(this,n)[n].config).onError)||D.call(P,t,this),null==(q=(M=O(this,n)[n].config).onSettled)||q.call(M,this.state.data,t,this),t}finally{this.scheduleGc()}}),function(t,e){return k.apply(this,arguments)})}]);var k})(_r(d[11]).Removable));function P(t){var r=this;this.state=(function(n){var s,o;switch(t.type){case"failed":return Object.assign({},n,{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return Object.assign({},n,{fetchStatus:"paused"});case"continue":return Object.assign({},n,{fetchStatus:"fetching"});case"fetch":return Object.assign({},n,q(n.data,r.options),{fetchMeta:null!=(s=t.meta)?s:null});case"success":var u=Object.assign({},n,{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success"},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return O(r,e)[e]=t.manual?u:void 0,u;case"error":var c=t.error;return Object.assign({},n,{error:c,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"});case"invalidate":return Object.assign({},n,{isInvalidated:!0});case"setState":return Object.assign({},n,t.state)}})(this.state),_r(d[12]).notifyManager.batch(function(){r.observers.forEach(function(t){t.onQueryUpdate()}),O(r,n)[n].notify({query:r,type:"updated",action:t})})}function q(t,e){return Object.assign({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,_r(d[10]).canFetch)(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}function M(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},1307,[367,3,4,9,11,42,12,45,46,1298,1296,1308,1309]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o,n=r(d[0]),u=r(d[1]),c=r(d[2]),s=r(d[3]),l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,p=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){h.call(t,c)||c===n||l(t,c,{get:function(){return o[c]},enumerable:!(u=f(o,c))||u.enumerable})};for(var s of v(o))c(s)}return t},y={};!(function(t,o){for(var n in o)l(t,n,{get:o[n],enumerable:!0})})(y,{Removable:function(){return T}}),m.exports=(o=y,p(l({},"__esModule",{value:!0}),o));var T=(t=s("gcTimeout"),(function(){return u(function o(){n(this,o),Object.defineProperty(this,t,{writable:!0,value:void 0})},[{key:"destroy",value:function(){this.clearGcTimeout()}},{key:"scheduleGc",value:function(){var o=this;this.clearGcTimeout(),(0,r(d[4]).isValidTimeout)(this.gcTime)&&(c(this,t)[t]=r(d[5]).timeoutManager.setTimeout(function(){o.optionalRemove()},this.gcTime))}},{key:"updateGcTime",value:function(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:r(d[4]).isServer?1/0:3e5)}},{key:"clearGcTimeout",value:function(){c(this,t)[t]&&(r(d[5]).timeoutManager.clearTimeout(c(this,t)[t]),c(this,t)[t]=void 0)}}])})())},1308,[3,4,45,46,1298,1299]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){c.call(t,u)||u===l||n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var p of u(f))y(p)}return t},l={};function s(){var t=[],n=0,o=function(t){t()},u=function(t){t()},c=r(d[0]).systemSetTimeoutZero,f=function(u){n?t.push(u):c(function(){o(u)})};return{batch:function(f){var l,s;n++;try{l=f()}finally{--n||(s=t,t=[],s.length&&c(function(){u(function(){s.forEach(function(t){o(t)})})}))}return l},batchCalls:function(t){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return o(this,h),l=this,v=f(v=h),u=c(l,y()?Reflect.construct(v,p||[],f(l).constructor):v.apply(l,p)),Object.defineProperty(u,t,{writable:!0,value:void 0}),Object.defineProperty(u,e,{writable:!0,value:void 0}),Object.defineProperty(u,n,{writable:!0,value:void 0}),u.config=b,s(u,t)[t]=new Set,s(u,e)[e]=new Map,s(u,n)[n]=0,u}return l(h,v),u(h,[{key:"build",value:function(t,e,o){var u=new(r(d[7]).Mutation)({client:t,mutationCache:this,mutationId:++s(this,n)[n],options:t.defaultMutationOptions(e),state:o});return this.add(u),u}},{key:"add",value:function(n){s(this,t)[t].add(n);var o=j(n);if("string"==typeof o){var u=s(this,e)[e].get(o);u?u.push(n):s(this,e)[e].set(o,[n])}this.notify({type:"added",mutation:n})}},{key:"remove",value:function(n){if(s(this,t)[t].delete(n)){var o=j(n);if("string"==typeof o){var u=s(this,e)[e].get(o);if(u)if(u.length>1){var c=u.indexOf(n);-1!==c&&u.splice(c,1)}else u[0]===n&&s(this,e)[e].delete(o)}}this.notify({type:"removed",mutation:n})}},{key:"canRun",value:function(t){var n=j(t);if("string"==typeof n){var o=s(this,e)[e].get(n),u=null==o?void 0:o.find(function(t){return"pending"===t.state.status});return!u||u===t}return!0}},{key:"runNext",value:function(t){var n=j(t);if("string"==typeof n){var o,u,c=null==(o=s(this,e)[e].get(n))?void 0:o.find(function(e){return e!==t&&e.state.isPaused});return null!=(u=null==c?void 0:c.continue())?u:Promise.resolve()}return Promise.resolve()}},{key:"clear",value:function(){var n=this;r(d[8]).notifyManager.batch(function(){s(n,t)[t].forEach(function(t){n.notify({type:"removed",mutation:t})}),s(n,t)[t].clear(),s(n,e)[e].clear()})}},{key:"getAll",value:function(){return Array.from(s(this,t)[t])}},{key:"find",value:function(t){var e=Object.assign({exact:!0},t);return this.getAll().find(function(t){return(0,r(d[9]).matchMutation)(e,t)})}},{key:"findAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(function(e){return(0,r(d[9]).matchMutation)(t,e)})}},{key:"notify",value:function(t){var e=this;r(d[8]).notifyManager.batch(function(){e.listeners.forEach(function(e){e(t)})})}},{key:"resumePausedMutations",value:function(){var t=this.getAll().filter(function(t){return t.state.isPaused});return r(d[8]).notifyManager.batch(function(){return Promise.all(t.map(function(t){return t.continue().catch(r(d[9]).noop)}))})}}])})(r(d[10]).Subscribable));function j(t){var e;return null==(e=t.options.scope)?void 0:e.id}},1311,[3,4,9,11,12,45,46,1310,1309,1298,1300]); -__d(function(g,r,i,a,m,_e,d){"use strict";var t,e,n,s,o,u,l=r(d[0]),c=r(d[1]),h=r(d[2]),v=r(d[3]),f=r(d[4]),p=r(d[5]),b=r(d[6]);function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var O,j=Object.defineProperty,P=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,K=function(t,e,n,s){if(e&&"object"==typeof e||"function"==typeof e){var o=function(o){w.call(t,o)||o===n||j(t,o,{get:function(){return e[o]},enumerable:!(s=P(e,o))||s.enumerable})};for(var u of M(e))o(u)}return t},k={};!(function(t,e){for(var n in e)j(t,n,{get:e[n],enumerable:!0})})(k,{MutationObserver:function(){return S}}),m.exports=(O=k,K(j({},"__esModule",{value:!0}),O));var S=(t=b("client"),e=b("currentResult"),n=b("currentMutation"),s=b("mutateOptions"),o=b("updateResult"),u=b("notify"),(function(b){function O(c,f){var b,j,P,M;return l(this,O),j=this,P=v(P=O),b=h(j,y()?Reflect.construct(P,M||[],v(j).constructor):P.apply(j,M)),Object.defineProperty(b,u,{value:E}),Object.defineProperty(b,o,{value:R}),Object.defineProperty(b,t,{writable:!0,value:void 0}),Object.defineProperty(b,e,{writable:!0,value:void 0}),Object.defineProperty(b,n,{writable:!0,value:void 0}),Object.defineProperty(b,s,{writable:!0,value:void 0}),p(b,t)[t]=c,b.setOptions(f),b.bindMethods(),p(b,o)[o](),b}return f(O,b),c(O,[{key:"bindMethods",value:function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}},{key:"setOptions",value:function(e){var s,o=this.options;this.options=p(this,t)[t].defaultMutationOptions(e),(0,r(d[7]).shallowEqualObjects)(this.options,o)||p(this,t)[t].getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(this,n)[n],observer:this}),null!=o&&o.mutationKey&&this.options.mutationKey&&(0,r(d[7]).hashKey)(o.mutationKey)!==(0,r(d[7]).hashKey)(this.options.mutationKey)?this.reset():"pending"===(null==(s=p(this,n)[n])?void 0:s.state.status)&&p(this,n)[n].setOptions(this.options)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null==(t=p(this,n)[n])||t.removeObserver(this))}},{key:"onMutationUpdate",value:function(t){p(this,o)[o](),p(this,u)[u](t)}},{key:"getCurrentResult",value:function(){return p(this,e)[e]}},{key:"reset",value:function(){var t;null==(t=p(this,n)[n])||t.removeObserver(this),p(this,n)[n]=void 0,p(this,o)[o](),p(this,u)[u]()}},{key:"mutate",value:function(e,o){var u;return p(this,s)[s]=o,null==(u=p(this,n)[n])||u.removeObserver(this),p(this,n)[n]=p(this,t)[t].getMutationCache().build(p(this,t)[t],this.options),p(this,n)[n].addObserver(this),p(this,n)[n].execute(e)}}])})(r(d[8]).Subscribable));function R(){var t,s,o=null!=(t=null==(s=p(this,n)[n])?void 0:s.state)?t:(0,r(d[9]).getDefaultState)();p(this,e)[e]=Object.assign({},o,{isPending:"pending"===o.status,isSuccess:"success"===o.status,isError:"error"===o.status,isIdle:"idle"===o.status,mutate:this.mutate,reset:this.reset})}function E(n){var o=this;r(d[10]).notifyManager.batch(function(){if(p(o,s)[s]&&o.hasListeners()){var u,l,c,h,v=p(o,e)[e].variables,f=p(o,e)[e].context,b={client:p(o,t)[t],meta:o.options.meta,mutationKey:o.options.mutationKey};if("success"===(null==n?void 0:n.type))null==(u=(l=p(o,s)[s]).onSuccess)||u.call(l,n.data,v,f,b),null==(c=(h=p(o,s)[s]).onSettled)||c.call(h,n.data,null,v,f,b);else if("error"===(null==n?void 0:n.type)){var y,O,j,P;null==(y=(O=p(o,s)[s]).onError)||y.call(O,n.error,v,f,b),null==(j=(P=p(o,s)[s]).onSettled)||j.call(P,void 0,n.error,v,f,b)}}o.listeners.forEach(function(t){t(p(o,e)[e])})})}},1312,[3,4,9,11,12,45,46,1298,1300,1310,1309]); -__d(function(g,_r,i,a,_m,_e,d){"use strict";var e,t,r,n,u,o,s,c,f,l,v,h,b,p,y=_r(d[0]),O=_r(d[1]),j=_r(d[2]),P=_r(d[3]),m=_r(d[4]),w=_r(d[5]),Q=_r(d[6]);function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var R,E=Object.defineProperty,M=Object.getOwnPropertyDescriptor,q=Object.getOwnPropertyNames,C=Object.prototype.hasOwnProperty,S=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){C.call(e,u)||u===r||E(e,u,{get:function(){return t[u]},enumerable:!(n=M(t,u))||n.enumerable})};for(var o of q(t))u(o)}return e},_={};function x(e,t){var r=new Set(t);return e.filter(function(e){return!r.has(e)})}function z(e,t,r){var n=e.slice(0);return n[t]=r,n}!(function(e,t){for(var r in t)E(e,r,{get:t[r],enumerable:!0})})(_,{QueriesObserver:function(){return B}}),_m.exports=(R=_,S(E({},"__esModule",{value:!0}),R));var B=(e=Q("client"),t=Q("result"),r=Q("queries"),n=Q("options"),u=Q("observers"),o=Q("combinedResult"),s=Q("lastCombine"),c=Q("lastResult"),f=Q("observerMatches"),l=Q("trackResult"),v=Q("combineResult"),h=Q("findMatchingObservers"),b=Q("onUpdate"),p=Q("notify"),(function(Q){function R(O,m,Q){var E,M,q,C;return y(this,R),M=this,q=P(q=R),E=j(M,k()?Reflect.construct(q,C||[],P(M).constructor):q.apply(M,C)),Object.defineProperty(E,p,{value:N}),Object.defineProperty(E,b,{value:U}),Object.defineProperty(E,h,{value:L}),Object.defineProperty(E,v,{value:H}),Object.defineProperty(E,l,{value:D}),Object.defineProperty(E,e,{writable:!0,value:void 0}),Object.defineProperty(E,t,{writable:!0,value:void 0}),Object.defineProperty(E,r,{writable:!0,value:void 0}),Object.defineProperty(E,n,{writable:!0,value:void 0}),Object.defineProperty(E,u,{writable:!0,value:void 0}),Object.defineProperty(E,o,{writable:!0,value:void 0}),Object.defineProperty(E,s,{writable:!0,value:void 0}),Object.defineProperty(E,c,{writable:!0,value:void 0}),Object.defineProperty(E,f,{writable:!0,value:[]}),w(E,e)[e]=O,w(E,n)[n]=Q,w(E,r)[r]=[],w(E,u)[u]=[],w(E,t)[t]=[],E.setQueries(m),E}return m(R,Q),O(R,[{key:"onSubscribe",value:function(){var e=this;1===this.listeners.size&&w(this,u)[u].forEach(function(t){t.subscribe(function(r){w(e,b)[b](t,r)})})}},{key:"onUnsubscribe",value:function(){this.listeners.size||this.destroy()}},{key:"destroy",value:function(){this.listeners=new Set,w(this,u)[u].forEach(function(e){e.destroy()})}},{key:"setQueries",value:function(e,o){var s=this;w(this,r)[r]=e,w(this,n)[n]=o,_r(d[7]).notifyManager.batch(function(){var e=w(s,u)[u],n=w(s,h)[h](w(s,r)[r]);w(s,f)[f]=n,n.forEach(function(e){return e.observer.setOptions(e.defaultedQueryOptions)});var o=n.map(function(e){return e.observer}),c=o.map(function(e){return e.getCurrentResult()}),l=e.length!==o.length,v=o.some(function(t,r){return t!==e[r]}),y=l||v,O=!!y||c.some(function(e,r){var n=w(s,t)[t][r];return!n||!(0,_r(d[8]).shallowEqualObjects)(e,n)});(y||O)&&(y&&(w(s,u)[u]=o),w(s,t)[t]=c,s.hasListeners()&&(y&&(x(e,o).forEach(function(e){e.destroy()}),x(o,e).forEach(function(e){e.subscribe(function(t){w(s,b)[b](e,t)})})),w(s,p)[p]()))})}},{key:"getCurrentResult",value:function(){return w(this,t)[t]}},{key:"getQueries",value:function(){return w(this,u)[u].map(function(e){return e.getCurrentQuery()})}},{key:"getObservers",value:function(){return w(this,u)[u]}},{key:"getOptimisticResult",value:function(e,t){var r=this,n=w(this,h)[h](e),u=n.map(function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)});return[u,function(e){return w(r,v)[v](null!=e?e:u,t)},function(){return w(r,l)[l](u,n)}]}}])})(_r(d[9]).Subscribable));function D(e,t){return t.map(function(r,n){var u=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?u:r.observer.trackResult(u,function(e){t.forEach(function(t){t.observer.trackProp(e)})})})}function H(e,r){return r?(w(this,o)[o]&&w(this,t)[t]===w(this,c)[c]&&r===w(this,s)[s]||(w(this,s)[s]=r,w(this,c)[c]=w(this,t)[t],w(this,o)[o]=(0,_r(d[8]).replaceEqualDeep)(w(this,o)[o],r(e))),w(this,o)[o]):e}function L(t){var r=this,n=new Map(w(this,u)[u].map(function(e){return[e.options.queryHash,e]})),o=[];return t.forEach(function(t){var u=w(r,e)[e].defaultQueryOptions(t),s=n.get(u.queryHash);s?o.push({defaultedQueryOptions:u,observer:s}):o.push({defaultedQueryOptions:u,observer:new(_r(d[10]).QueryObserver)(w(r,e)[e],u)})}),o}function U(e,r){var n=w(this,u)[u].indexOf(e);-1!==n&&(w(this,t)[t]=z(w(this,t)[t],n,r),w(this,p)[p]())}function N(){var e=this;if(this.hasListeners()){var r,u=w(this,o)[o],s=w(this,l)[l](w(this,t)[t],w(this,f)[f]);u!==w(this,v)[v](s,null==(r=w(this,n)[n])?void 0:r.combine)&&_r(d[7]).notifyManager.batch(function(){e.listeners.forEach(function(r){r(w(e,t)[t])})})}}},1313,[3,4,9,11,12,45,46,1309,1298,1300,1305]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=r(d[4]),f=r(d[5]),l=r(d[6]),s=r(d[7]);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var h,v=Object.defineProperty,p=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,O=Object.prototype.hasOwnProperty,k=function(e,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){O.call(e,o)||o===n||v(e,o,{get:function(){return t[o]},enumerable:!(u=p(t,o))||u.enumerable})};for(var c of b(t))o(c)}return e},q={};!(function(e,t){for(var n in t)v(e,n,{get:t[n],enumerable:!0})})(q,{QueryCache:function(){return j}}),m.exports=(h=q,k(v({},"__esModule",{value:!0}),h));var j=(e=s("queries"),(function(s){function h(){var t,u,f,s,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,h),u=this,f=c(f=h),t=o(u,y()?Reflect.construct(f,s||[],c(u).constructor):f.apply(u,s)),Object.defineProperty(t,e,{writable:!0,value:void 0}),t.config=v,l(t,e)[e]=new Map,t}return f(h,s),u(h,[{key:"build",value:function(e,t,n){var u,o=t.queryKey,c=null!=(u=t.queryHash)?u:(0,r(d[8]).hashQueryKeyByOptions)(o,t),f=this.get(c);return f||(f=new(r(d[9]).Query)({client:e,queryKey:o,queryHash:c,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(f)),f}},{key:"add",value:function(t){l(this,e)[e].has(t.queryHash)||(l(this,e)[e].set(t.queryHash,t),this.notify({type:"added",query:t}))}},{key:"remove",value:function(t){var n=l(this,e)[e].get(t.queryHash);n&&(t.destroy(),n===t&&l(this,e)[e].delete(t.queryHash),this.notify({type:"removed",query:t}))}},{key:"clear",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(t){e.remove(t)})})}},{key:"get",value:function(t){return l(this,e)[e].get(t)}},{key:"getAll",value:function(){return t(l(this,e)[e].values())}},{key:"find",value:function(e){var t=Object.assign({exact:!0},e);return this.getAll().find(function(e){return(0,r(d[8]).matchQuery)(t,e)})}},{key:"findAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(function(t){return(0,r(d[8]).matchQuery)(e,t)}):t}},{key:"notify",value:function(e){var t=this;r(d[10]).notifyManager.batch(function(){t.listeners.forEach(function(t){t(e)})})}},{key:"onFocus",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(e){e.onFocus()})})}},{key:"onOnline",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(e){e.onOnline()})})}}])})(r(d[11]).Subscribable))},1314,[32,3,4,9,11,12,45,46,1298,1307,1309,1300]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n,u,s,o,l,c,f,h,y=r(d[0]),v=r(d[1]),p=r(d[2]),b=r(d[3]),O=r(d[4]),Q=r(d[5]),k=Object.defineProperty,M=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,P=Object.prototype.hasOwnProperty,w=function(t,n,u,s){if(n&&"object"==typeof n||"function"==typeof n){var o=function(o){P.call(t,o)||o===u||k(t,o,{get:function(){return n[o]},enumerable:!(s=M(n,o))||s.enumerable})};for(var l of j(n))o(l)}return t},D={};!(function(t,n){for(var u in n)k(t,u,{get:n[u],enumerable:!0})})(D,{QueryClient:function(){return q}}),m.exports=(h=D,w(k({},"__esModule",{value:!0}),h));var q=(t=Q("queryCache"),n=Q("mutationCache"),u=Q("defaultOptions"),s=Q("queryDefaults"),o=Q("mutationDefaults"),l=Q("mountCount"),c=Q("unsubscribeFocus"),f=Q("unsubscribeOnline"),(function(){return b(function h(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,h),Object.defineProperty(this,t,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),O(this,t)[t]=y.queryCache||new(r(d[6]).QueryCache),O(this,n)[n]=y.mutationCache||new(r(d[7]).MutationCache),O(this,u)[u]=y.defaultOptions||{},O(this,s)[s]=new Map,O(this,o)[o]=new Map,O(this,l)[l]=0},[{key:"mount",value:function(){var n=this;O(this,l)[l]++,1===O(this,l)[l]&&(O(this,c)[c]=r(d[8]).focusManager.subscribe((function(){var u=v(function*(u){u&&(yield n.resumePausedMutations(),O(n,t)[t].onFocus())});return function(t){return u.apply(this,arguments)}})()),O(this,f)[f]=r(d[9]).onlineManager.subscribe((function(){var u=v(function*(u){u&&(yield n.resumePausedMutations(),O(n,t)[t].onOnline())});return function(t){return u.apply(this,arguments)}})()))}},{key:"unmount",value:function(){var t,n,u,s;O(this,l)[l]--,0===O(this,l)[l]&&(null==(t=(n=O(this,c))[c])||t.call(n),O(this,c)[c]=void 0,null==(u=(s=O(this,f))[f])||u.call(s),O(this,f)[f]=void 0)}},{key:"isFetching",value:function(n){return O(this,t)[t].findAll(Object.assign({},n,{fetchStatus:"fetching"})).length}},{key:"isMutating",value:function(t){return O(this,n)[n].findAll(Object.assign({},t,{status:"pending"})).length}},{key:"getQueryData",value:function(n){var u,s=this.defaultQueryOptions({queryKey:n});return null==(u=O(this,t)[t].get(s.queryHash))?void 0:u.state.data}},{key:"ensureQueryData",value:function(n){var u=this.defaultQueryOptions(n),s=O(this,t)[t].build(this,u),o=s.state.data;return void 0===o?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime((0,r(d[10]).resolveStaleTime)(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}},{key:"getQueriesData",value:function(n){return O(this,t)[t].findAll(n).map(function(t){return[t.queryKey,t.state.data]})}},{key:"setQueryData",value:function(n,u,s){var o=this.defaultQueryOptions({queryKey:n}),l=O(this,t)[t].get(o.queryHash),c=null==l?void 0:l.state.data,f=(0,r(d[10]).functionalUpdate)(u,c);if(void 0!==f)return O(this,t)[t].build(this,o).setData(f,Object.assign({},s,{manual:!0}))}},{key:"setQueriesData",value:function(n,u,s){var o=this;return r(d[11]).notifyManager.batch(function(){return O(o,t)[t].findAll(n).map(function(t){var n=t.queryKey;return[n,o.setQueryData(n,u,s)]})})}},{key:"getQueryState",value:function(n){var u,s=this.defaultQueryOptions({queryKey:n});return null==(u=O(this,t)[t].get(s.queryHash))?void 0:u.state}},{key:"removeQueries",value:function(n){var u=O(this,t)[t];r(d[11]).notifyManager.batch(function(){u.findAll(n).forEach(function(t){u.remove(t)})})}},{key:"resetQueries",value:function(n,u){var s=this,o=O(this,t)[t];return r(d[11]).notifyManager.batch(function(){return o.findAll(n).forEach(function(t){t.reset()}),s.refetchQueries(Object.assign({type:"active"},n),u)})}},{key:"cancelQueries",value:function(n){var u=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({revert:!0},s),l=r(d[11]).notifyManager.batch(function(){return O(u,t)[t].findAll(n).map(function(t){return t.cancel(o)})});return Promise.all(l).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"invalidateQueries",value:function(n){var u=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(d[11]).notifyManager.batch(function(){var o,l;return O(u,t)[t].findAll(n).forEach(function(t){t.invalidate()}),"none"===(null==n?void 0:n.refetchType)?Promise.resolve():u.refetchQueries(Object.assign({},n,{type:null!=(o=null!=(l=null==n?void 0:n.refetchType)?l:null==n?void 0:n.type)?o:"active"}),s)})}},{key:"refetchQueries",value:function(n){var u,s=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Object.assign({},o,{cancelRefetch:null==(u=o.cancelRefetch)||u}),c=r(d[11]).notifyManager.batch(function(){return O(s,t)[t].findAll(n).filter(function(t){return!t.isDisabled()&&!t.isStatic()}).map(function(t){var n=t.fetch(void 0,l);return l.throwOnError||(n=n.catch(r(d[10]).noop)),"paused"===t.state.fetchStatus?Promise.resolve():n})});return Promise.all(c).then(r(d[10]).noop)}},{key:"fetchQuery",value:function(n){var u=this.defaultQueryOptions(n);void 0===u.retry&&(u.retry=!1);var s=O(this,t)[t].build(this,u);return s.isStaleByTime((0,r(d[10]).resolveStaleTime)(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}},{key:"prefetchQuery",value:function(t){return this.fetchQuery(t).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"fetchInfiniteQuery",value:function(t){return t.behavior=(0,r(d[12]).infiniteQueryBehavior)(t.pages),this.fetchQuery(t)}},{key:"prefetchInfiniteQuery",value:function(t){return this.fetchInfiniteQuery(t).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"ensureInfiniteQueryData",value:function(t){return t.behavior=(0,r(d[12]).infiniteQueryBehavior)(t.pages),this.ensureQueryData(t)}},{key:"resumePausedMutations",value:function(){return r(d[9]).onlineManager.isOnline()?O(this,n)[n].resumePausedMutations():Promise.resolve()}},{key:"getQueryCache",value:function(){return O(this,t)[t]}},{key:"getMutationCache",value:function(){return O(this,n)[n]}},{key:"getDefaultOptions",value:function(){return O(this,u)[u]}},{key:"setDefaultOptions",value:function(t){O(this,u)[u]=t}},{key:"setQueryDefaults",value:function(t,n){O(this,s)[s].set((0,r(d[10]).hashKey)(t),{queryKey:t,defaultOptions:n})}},{key:"getQueryDefaults",value:function(t){var n=y(O(this,s)[s].values()),u={};return n.forEach(function(n){(0,r(d[10]).partialMatchKey)(t,n.queryKey)&&Object.assign(u,n.defaultOptions)}),u}},{key:"setMutationDefaults",value:function(t,n){O(this,o)[o].set((0,r(d[10]).hashKey)(t),{mutationKey:t,defaultOptions:n})}},{key:"getMutationDefaults",value:function(t){var n=y(O(this,o)[o].values()),u={};return n.forEach(function(n){(0,r(d[10]).partialMatchKey)(t,n.mutationKey)&&Object.assign(u,n.defaultOptions)}),u}},{key:"defaultQueryOptions",value:function(t){if(t._defaulted)return t;var n=Object.assign({},O(this,u)[u].queries,this.getQueryDefaults(t.queryKey),t,{_defaulted:!0});return n.queryHash||(n.queryHash=(0,r(d[10]).hashQueryKeyByOptions)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.throwOnError&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===r(d[10]).skipToken&&(n.enabled=!1),n}},{key:"defaultMutationOptions",value:function(t){return null!=t&&t._defaulted?t:Object.assign({},O(this,u)[u].mutations,(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),t,{_defaulted:!0})}},{key:"clear",value:function(){O(this,t)[t].clear(),O(this,n)[n].clear()}}])})())},1315,[32,367,3,4,45,46,1314,1311,1302,1297,1298,1309,1304]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=["state"],o=["fetchStatus"],s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,h=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var h=function(c){f.call(t,c)||c===u||s(t,c,{get:function(){return n[c]},enumerable:!(o=l(n,c))||o.enumerable})};for(var y of c(n))h(y)}return t},y={};function v(t){return t}function p(t){return Object.assign({mutationKey:t.options.mutationKey,state:t.state},t.options.scope&&{scope:t.options.scope},t.meta&&{meta:t.meta})}function O(t,n,u){var o;return Object.assign({dehydratedAt:Date.now(),state:Object.assign({},t.state,void 0!==t.state.data&&{data:n(t.state.data)}),queryKey:t.queryKey,queryHash:t.queryHash},"pending"===t.state.status&&{promise:null==(o=t.promise)?void 0:o.then(n).catch(function(t){return u(t)?Promise.reject(new Error("redacted")):Promise.reject(t)})},t.meta&&{meta:t.meta})}function D(t){return t.state.isPaused}function b(t){return"success"===t.state.status}function j(t){return!0}function q(t){var n,u,o,s,l,c,f,h,y,q,P,A,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=null!=(n=null!=(u=M.shouldDehydrateMutation)?u:null==(o=t.getDefaultOptions().dehydrate)?void 0:o.shouldDehydrateMutation)?n:D,K=t.getMutationCache().getAll().flatMap(function(t){return S(t)?[p(t)]:[]}),w=null!=(s=null!=(l=M.shouldDehydrateQuery)?l:null==(c=t.getDefaultOptions().dehydrate)?void 0:c.shouldDehydrateQuery)?s:b,E=null!=(f=null!=(h=M.shouldRedactErrors)?h:null==(y=t.getDefaultOptions().dehydrate)?void 0:y.shouldRedactErrors)?f:j,Q=null!=(q=null!=(P=M.serializeData)?P:null==(A=t.getDefaultOptions().dehydrate)?void 0:A.serializeData)?q:v;return{mutations:K,queries:t.getQueryCache().getAll().flatMap(function(t){return w(t)?[O(t,Q,E)]:[]})}}function P(t,s,l){var c,f,h,y;if("object"==typeof s&&null!==s){var p=t.getMutationCache(),O=t.getQueryCache(),D=null!=(c=null!=(f=null==l||null==(h=l.defaultOptions)?void 0:h.deserializeData)?f:null==(y=t.getDefaultOptions().hydrate)?void 0:y.deserializeData)?c:v,b=s.mutations||[],j=s.queries||[];b.forEach(function(o){var s,c,f=o.state,h=n(o,u);p.build(t,Object.assign({},null==(s=t.getDefaultOptions().hydrate)?void 0:s.mutations,null==l||null==(c=l.defaultOptions)?void 0:c.mutations,h),f)}),j.forEach(function(u){var s,c,f=u.queryKey,h=u.state,y=u.queryHash,v=u.meta,p=u.promise,b=u.dehydratedAt,j=p?(0,r(d[1]).tryResolveSync)(p):void 0,q=void 0===h.data?null==j?void 0:j.data:h.data,P=void 0===q?q:D(q),A=O.get(y),M="pending"===(null==(s=A)?void 0:s.state.status),S="fetching"===(null==(c=A)?void 0:c.state.fetchStatus);if(A){var K=j&&void 0!==b&&b>A.state.dataUpdatedAt;if(h.dataUpdatedAt>A.state.dataUpdatedAt||K){h.fetchStatus;var w=n(h,o);A.setState(Object.assign({},w,{data:P}))}}else{var E,Q;A=O.build(t,Object.assign({},null==(E=t.getDefaultOptions().hydrate)?void 0:E.queries,null==l||null==(Q=l.defaultOptions)?void 0:Q.queries,{queryKey:f,queryHash:y,meta:v}),Object.assign({},h,{data:P,fetchStatus:"idle",status:void 0!==P?"success":h.status}))}p&&!M&&!S&&(void 0===b||b>A.state.dataUpdatedAt)&&A.fetch(void 0,{initialPromise:Promise.resolve(p).then(D)})})}}!(function(t,n){for(var u in n)s(t,u,{get:n[u],enumerable:!0})})(y,{defaultShouldDehydrateMutation:function(){return D},defaultShouldDehydrateQuery:function(){return b},dehydrate:function(){return q},hydrate:function(){return P}}),m.exports=(t=y,h(s({},"__esModule",{value:!0}),t))},1316,[207,1301]); -__d(function(g,_r,i,a,m,_e,d){"use strict";var e=_r(d[0]);function t(e){var t,n,o,u=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,o=Symbol.iterator);u--;){if(n&&null!=(t=e[n]))return t.call(e);if(o&&null!=(t=e[o]))return new r(t.call(e));n="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new r(e)}var n,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var s=function(l){c.call(e,l)||l===r||o(e,l,{get:function(){return t[l]},enumerable:!(n=u(t,l))||n.enumerable})};for(var f of l(t))s(f)}return e},f={};function y(r){var n=r.streamFn,o=r.refetchMode,u=void 0===o?"reset":o,l=r.reducer,c=void 0===l?function(e,t){return(0,_r(d[1]).addToEnd)(e,t)}:l,s=r.initialValue,f=void 0===s?[]:s;return(function(){var r=e(function*(e){var r=e.client.getQueryCache().find({queryKey:e.queryKey,exact:!0}),o=!!r&&void 0!==r.state.data;o&&"reset"===u&&r.setState({status:"pending",data:void 0,error:null,fetchStatus:"fetching"});var l,s=f,y=yield n(e),v=!1,p=!1;try{for(var h,b=function*(){var t=h.value;if(e.signal.aborted)return 1;o&&"replace"===u||e.client.setQueryData(e.queryKey,function(e){return c(void 0===e?f:e,t)}),s=c(s,t)},j=t(y);(v=!(h=yield j.next()).done)&&!(yield*b());v=!1);}catch(e){p=!0,l=e}finally{try{v&&null!=j.return&&(yield j.return())}finally{if(p)throw l}}return o&&"replace"===u&&!e.signal.aborted&&e.client.setQueryData(e.queryKey,s),e.client.getQueryData(e.queryKey)});return function(e){return r.apply(this,arguments)}})()}!(function(e,t){for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{streamedQuery:function(){return y}}),m.exports=(n=f,s(o({},"__esModule",{value:!0}),n))},1317,[367,1298]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,b,l){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){c.call(t,u)||u===b||n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))y(p)}return t},b={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(b,{dataTagErrorSymbol:function(){return y},dataTagSymbol:function(){return l},unsetMarker:function(){return p}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t));var l=Symbol("dataTagSymbol"),y=Symbol("dataTagErrorSymbol"),p=Symbol("unsetMarker")},1318,[]); -__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.validateTokenPayload=e.validateNftPayload=e.validateFlowAddress=e.validateEvmAddress=e.signLegacyEvmTransaction=e.safeConvertToUFix64=e.isVaultIdentifier=e.isValidSendTransactionPayload=e.isNFTIdentifier=e.isFlowToken=e.isFlowIdentifier=e.isCollectionIdentifier=e.getFlowTokenVault=e.encodeEvmContractCallData=e.createTransferContext=e.convertToUFix64=e.convertHexToByteArray=e.TransferContext=e.TopShotNftStrategy=e.SendTransaction=e.ParentToChildTokenStrategy=e.ParentToChildNftStrategy=e.GAS_LIMITS=e.FlowTokenBridgeToEvmStrategy=e.FlowToFlowTokenStrategy=e.FlowToFlowNftStrategy=e.FlowToEvmTokenStrategy=e.FlowToEvmNftBridgeStrategy=e.EvmToFlowTokenWithEoaBridgeStrategy=e.EvmToFlowTokenBridgeStrategy=e.EvmToFlowNftWithEoaBridgeStrategy=e.EvmToFlowNftBridgeStrategy=e.EvmToFlowCoaWithdrawalStrategy=e.EvmToEvmTokenStrategy=e.EvmToEvmNftStrategy=e.EoaToFlowCoaWithdrawalStrategy=e.EoaToEVMStrategy=e.EoaToChildNftStrategy=e.ChildToOthersTokenStrategy=e.ChildToOthersNftStrategy=e.ChildToChildTokenStrategy=e.ChildToChildNftStrategy=void 0;var n=t(r(d[1])),i=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=e.GAS_LIMITS={EVM_DEFAULT:16777216,CADENCE_DEFAULT:9999},l={mainnet:"A.1654653399040a61.FlowToken.Vault",testnet:"A.7e60df042a9c0868.FlowToken.Vault"},f=e.isFlowToken=function(t){return Object.values(l).includes(t)},s=e.isVaultIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(Vault)$/.test(t)},v=e.isNFTIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(NFT)$/.test(t)},y=e.isCollectionIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(Collection)$/.test(t)},h=(e.isFlowIdentifier=function(t){return s(t)||v(t)||y(t)},e.getFlowTokenVault=function(t){return l[t]},e.convertToUFix64=function(t){var n="string"==typeof t?parseFloat(t):t;if(isNaN(n))throw new Error("Invalid number for UFix64 conversion");return n.toFixed(8)}),T=e.safeConvertToUFix64=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.00000000";try{return h(t)}catch(t){return r(d[5]).logger.warn("Failed to convert amount to UFix64",t),n}},w=e.encodeEvmContractCallData=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.type,o=t.amount,c=void 0===o?"":o,u=t.receiver,l=t.decimal,f=t.ids,s=t.sender;t.coaAddr;if(42!==u.length)throw new Error("Invalid Ethereum address");var v="0x";if("token"===i){var y=Number(c),h=(0,r(d[6]).parseUnits)(y.toString(),l);v=new(r(d[7]).Interface)(["function transfer(address to, uint256 value)"]).encodeFunctionData("transfer",[u,h])}else if(1===f.length)if(""===c||0===Number(c)){var T=f[0];v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId)"]).encodeFunctionData("safeTransferFrom",[s,u,T])}else{var w=f[0],p=Number(c);v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes data)"]).encodeFunctionData("safeTransferFrom",[s,u,w,p,"0x"])}else{var S=[];for(var E of f){v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId)"]).encodeFunctionData("safeTransferFrom",[s,u,E]),S.push(v)}if(n)return S}if(n)return v;for(var k=v.slice(2),F=new Uint8Array(k.length/2),A=0;A0?T+i:T,gasPrice:null!=(l=null!=(f=t.gasPrice)?f:null==n?void 0:n.gasPrice)?l:0,gasLimit:p,to:t.to,value:null!=(s=t.value)?s:0,data:null!=(v=t.data)?v:"0x"},E=(0,r(d[9]).serialize)(S),k=(0,r(d[10]).arrayify)((0,r(d[11]).keccak256)(E)),A=yield n.ethSign(k),C=(0,r(d[10]).hexlify)(A);return(0,r(d[9]).serialize)(S,C)});return function(n,i,o){return t.apply(this,arguments)}})(),b=e.validateFlowAddress=function(t){return/^0x[a-fA-F0-9]{16}$/.test(t)},V=e.validateEvmAddress=function(t){return/^0x[a-fA-F0-9]{40}$/.test(t)},L=e.validateTokenPayload=function(t){if(t.flowIdentifier&&!s(t.flowIdentifier))throw new Error("invalid send token identifier");if(Number(t.amount)<=0)throw new Error("invalid send token transaction payload");if(!t.decimal)throw new Error("invalid send token transaction payload")},U=e.validateNftPayload=function(t){if("flow"===t.assetType&&t.flowIdentifier&&!v(t.flowIdentifier))throw new Error("invalid send nft identifier");if("evm"===t.assetType&&t.flowIdentifier&&""!==t.flowIdentifier&&!b(t.receiver)&&v(t.flowIdentifier),0===t.ids.length)throw new Error("invalid send nft transaction payload")},_=(e.isValidSendTransactionPayload=function(t){var n=t.type,i=t.assetType,o=t.proposer,c=t.receiver,u=t.flowIdentifier,l=void 0===u?"":u,f=t.sender,s=t.coaAddr,v=t.isCrossVM;if(!b(o))throw new Error("invalid proposer address");if(!(o&&c&&f&&n&&i))throw new Error("invalid send transaction payload");if("evm"===i&&b(c)&&!l)throw new Error("flowIdentifier of transaction payload is missing when bridge");if("flow"===i&&!l)throw new Error("flowIdentifier of transaction payload is missing");if(v&&(!s||!V(s)))throw new Error("invalid COA address of payload");return"token"===n&&L(t),"nft"===n&&U(t),!0},e.ChildToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.sender;return"nft"===t.type&&n.length>0&&n.includes(i)&&n.includes(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.sender,c=t.receiver,u=t.ids;return yield this.cadenceService.batchSendChildNftToChild(i,o,c,u)}),function(n,i){return t.apply(this,arguments)})}]);var t})()),M=e.ChildToOthersNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.sender,o=t.assetType;return"nft"===t.type&&n.length>0&&n.includes(i)&&"flow"===o}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.proposer,o=t.receiver,c=t.coaAddr,u=t.flowIdentifier,l=t.sender,f=t.ids;return o===i?yield this.cadenceService.batchTransferChildNft(u,l,f):o===c?yield this.cadenceService.batchBridgeChildNftToEvmWithPayer(u,l,f):V(o)?yield this.cadenceService.batchBridgeChildNftToEvmAddressWithPayer(u,l,f,o):yield this.cadenceService.batchSendChildNft(u,l,o,f)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),D=e.ParentToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"nft"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchBridgeChildNftFromEvmWithPayer(i,o,c.map(function(t){return`${t}`}))}),function(n,i){return t.apply(this,arguments)})}]);var t})(),H=e.EoaToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"nft"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c!==u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver,l=t.tokenContractAddr,f=t.sender,s=t.coaAddr,v=w(Object.assign({},t,{receiver:s}),!0),y=[];if(1===o.length){var h=yield N({from:f,to:l,data:v,gasLimit:u.EVM_DEFAULT},n),T=p(h);y.push(T)}else for(var S=0;S-1&&b(c)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchSendNbaNftV3(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),B=e.FlowToFlowNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.ids;return"nft"===t.type&&"flow"===n&&b(i)&&o.length>0}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchSendNftV3(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),W=e.FlowToEvmNftBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"nft"===t.type&&"flow"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver;return yield this.cadenceService.batchBridgeNftToEvmAddressWithPayer(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),O=e.EvmToFlowNftBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.sender,u=t.coaAddr;return"nft"===o&&"evm"===n&&b(i)&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver;return yield this.cadenceService.batchBridgeNftFromEvmToFlowWithPayer(i,o.map(function(t){return`${t}`}),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),$=e.EvmToFlowNftWithEoaBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.sender,u=t.coaAddr;return"nft"===o&&"evm"===n&&b(i)&&c!==u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver,l=t.tokenContractAddr,f=t.sender,s=t.coaAddr,v=w(Object.assign({},t,{receiver:s}),!0),y=[];if(1===o.length){var h=yield N({from:f,to:l,data:v,gasLimit:u.EVM_DEFAULT},n),T=p(h);y.push(T)}else for(var S=0;S1){var c=o.map(function(){return i}),l=o.map(function(n){return w(Object.assign({},t,{ids:[n]}))}),f=o.map(function(){return"0.0"});return yield this.cadenceService.batchCallContract(c,f,l,u.EVM_DEFAULT)}var s=w(t);return yield this.cadenceService.callContract(i,"0.0",s,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),z=e.EoaToEVMStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.receiver,i=t.assetType,o=t.sender,c=t.coaAddr;return"nft"===t.type&&"evm"===i&&o!==c&&V(n)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.receiver,o=t.tokenContractAddr,c=t.sender,l=t.ids,f=w(Object.assign({},t,{receiver:i}),!0);if(1===l.length){var s=yield N({from:c,to:o,data:f,gasLimit:u.EVM_DEFAULT},n),v=p(s);return yield this.cadenceService.eoaCallContract(v,c)}for(var y=[],h=0;h0&&n.includes(i)&&n.includes(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.sender,c=t.receiver,u=t.amount,l=T(u);return yield this.cadenceService.sendChildFtToChild(i,o,c,l)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),q=e.ChildToOthersTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.sender,o=t.assetType;return"token"===t.type&&n.length>0&&n.includes(i)&&"flow"===o}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.proposer,o=t.receiver,c=t.coaAddr,u=t.flowIdentifier,l=t.sender,f=t.amount;if(o===i){var s=T(f);return yield this.cadenceService.transferChildFt(u,l,s)}if(o===c){var v=T(f);return yield this.cadenceService.bridgeChildFtToEvm(u,l,v)}if(V(o)){var y=T(f);return yield this.cadenceService.bridgeChildFtToEvmAddress(u,l,y,o)}var h=T(f);return yield this.cadenceService.sendChildFt(u,l,o,h)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),G=e.ParentToChildTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"token"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.amount,u=t.decimal,l=(0,r(d[6]).parseUnits)(T(c),u);return yield this.cadenceService.bridgeChildFtFromEvm(i,o,l.toString())}),function(n,i){return t.apply(this,arguments)})}]);var t})(),J=e.FlowToFlowTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"flow"===n&&b(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.amount,u=T(c);return yield this.cadenceService.transferTokensV3(i,o,u)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),R=e.FlowToEvmTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver;return"token"===t.type&&"flow"===n&&f(i)&&V(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.receiver,o=t.amount,c=T(o);return yield this.cadenceService.transferFlowToEvmAddress(i,c,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),K=e.FlowTokenBridgeToEvmStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"flow"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,u=T(o);return yield this.cadenceService.bridgeTokensToEvmAddressV2(i,u,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),Q=e.EvmToFlowCoaWithdrawalStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver,c=t.type,u=t.sender,l=t.coaAddr;return"token"===c&&"evm"===n&&f(i)&&b(o)&&u===l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.amount,o=t.receiver,c=T(i);return yield this.cadenceService.withdrawCoa(c,o)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),X=e.EoaToFlowCoaWithdrawalStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver,c=t.type,u=t.sender,l=t.coaAddr;return"token"===c&&"evm"===n&&f(i)&&b(o)&&u!==l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.amount,o=t.receiver,c=t.sender,l=t.coaAddr,f=t.decimal,s=(0,r(d[6]).parseUnits)(T(i),f),v=T(i),y=yield N({from:c,to:l,data:"0x",gasLimit:u.EVM_DEFAULT,value:s},n),h=p(y);return yield this.cadenceService.eoaToCoaToFlow(h,c,v,o)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),Y=e.EvmToFlowTokenBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.flowIdentifier,u=t.sender,l=t.coaAddr;return"token"===o&&"evm"===n&&b(i)&&s(c)&&!f(c)&&u===l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,u=t.decimal,l=(0,r(d[6]).parseUnits)(T(o),u);return yield this.cadenceService.bridgeTokensFromEvmToFlowV3(i,l.toString(),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),ee=e.EvmToFlowTokenWithEoaBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.flowIdentifier,u=t.sender,l=t.coaAddr;return"token"===o&&"evm"===n&&b(i)&&s(c)&&!f(c)&&u!==l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,l=t.decimal,f=t.sender,s=t.coaAddr,v=t.tokenContractAddr,y=(0,r(d[6]).parseUnits)(T(o),l),h=w(Object.assign({},t,{receiver:s}),!0),S=yield N({from:f,to:v,data:h,gasLimit:u.EVM_DEFAULT},n),E=p(S);return yield this.cadenceService.bridgeTokensFromEoaToFlowV3(E,f,i,y.toString(),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),te=e.EvmToEvmTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"evm"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.tokenContractAddr,o=t.amount,c=t.flowIdentifier,l=t.receiver,s=t.coaAddr,v=t.sender;if(f(c)){var y=T(o);if(v!==s){var h=(0,r(d[6]).parseUnits)(y,18),S=yield N({from:v,to:l,data:"0x",gasLimit:u.EVM_DEFAULT,value:h},n),E=p(S);return yield this.cadenceService.eoaCallContract(E,v)}return yield this.cadenceService.callContract(l,y,[],u.EVM_DEFAULT)}if(V(l)&&v!==s){var k=w(Object.assign({},t,{receiver:l}),!0),F=yield N({from:v,to:i,data:k,gasLimit:u.EVM_DEFAULT},n),A=p(F);return yield this.cadenceService.eoaCallContract(A,v)}var C=w(t);return yield this.cadenceService.callContract(i,"0.0",C,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),re=e.TransferContext=(function(){return(0,i.default)(function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.default)(this,t),this.strategies=[],this.helpers=i},[{key:"addStrategy",value:function(t){this.strategies.push(t)}},{key:"execute",value:(t=(0,c.default)(function*(t){for(var n of this.strategies)if(n.canHandle(t))return yield n.execute(t,this.helpers);return null}),function(n){return t.apply(this,arguments)})}]);var t})(),ne=e.createTransferContext=function(t){var n=new re(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return n.addStrategy(new Z(t)),n.addStrategy(new q(t)),n.addStrategy(new G(t)),n.addStrategy(new J(t)),n.addStrategy(new R(t)),n.addStrategy(new K(t)),n.addStrategy(new Q(t)),n.addStrategy(new Y(t)),n.addStrategy(new ee(t)),n.addStrategy(new te(t)),n.addStrategy(new X(t)),n.addStrategy(new H(t)),n.addStrategy(new _(t)),n.addStrategy(new M(t)),n.addStrategy(new D(t)),n.addStrategy(new P(t)),n.addStrategy(new B(t)),n.addStrategy(new W(t)),n.addStrategy(new O(t)),n.addStrategy(new $(t)),n.addStrategy(new j(t)),n.addStrategy(new z(t)),n};e.SendTransaction=(function(){var t=(0,c.default)(function*(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r(d[5]).logger.info("SendTransaction cadenceService",t);var o=ne(n,i);return yield o.execute(t)});return function(n,i){return t.apply(this,arguments)}})()},1319,[1,3,4,19,367,2,1320,1332,1377,1408,1329,1341]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEther=e.formatEther=e.parseUnits=e.formatUnits=e.commify=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version),n=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(t,s){if("string"==typeof s){var u=n.indexOf(s);-1!==u&&(s=3*u)}return(0,r(d[2]).formatFixed)(t,null!=s?s:18)}function u(s,u){if("string"!=typeof s&&t.throwArgumentError("value must be a string","value",s),"string"==typeof u){var o=n.indexOf(u);-1!==o&&(u=3*o)}return(0,r(d[2]).parseFixed)(s,null!=u?u:18)}e.commify=function(n){var s=String(n).split(".");(s.length>2||!s[0].match(/^-?[0-9]*$/)||s[1]&&!s[1].match(/^[0-9]*$/)||"."===n||"-."===n)&&t.throwArgumentError("invalid value","value",n);var u=s[0],o="";for("-"===u.substring(0,1)&&(o="-",u=u.substring(1));"0"===u.substring(0,1);)u=u.substring(1);""===u&&(u="0");var f="";for(2===s.length&&(f="."+(s[1]||"0"));f.length>2&&"0"===f[f.length-1];)f=f.substring(0,f.length-1);for(var l=[];u.length;){if(u.length<=3){l.unshift(u);break}var h=u.length-3;l.unshift(u.substring(h)),u=u.substring(0,h)}return o+l.join(",")+f},e.formatUnits=s,e.parseUnits=u,e.formatEther=function(t){return s(t,18)},e.parseEther=function(t){return u(t,18)}},1320,[1321,1323,1324]); -__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=e.ErrorCode=e.LogLevel=void 0;var o=!1,t=!1,n={debug:1,default:2,info:2,warning:3,error:4,off:5},E=n.default,i=null;var s,N,l=(function(){try{var o=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){o.push(t)}}),o.length)throw new Error("missing "+o.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(o){return o.message}return null})();!(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF"})(s=e.LogLevel||(e.LogLevel={})),(function(o){o.UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED"})(N=e.ErrorCode||(e.ErrorCode={}));var c="0123456789abcdef",R=(function(){function R(o){Object.defineProperty(this,"version",{enumerable:!0,value:o,writable:!1})}return R.prototype._log=function(o,t){var i=o.toLowerCase();null==n[i]&&this.throwArgumentError("invalid log level name","logLevel",o),E>n[i]||console.log.apply(console,t)},R.prototype.debug=function(){for(var o=[],t=0;t>4],n+=c[15&t[s]];i.push(o+"=Uint8Array(0x"+n+")")}else i.push(o+"="+JSON.stringify(t))}catch(t){i.push(o+"="+JSON.stringify(E[o].toString()))}}),i.push("code="+n),i.push("version="+this.version);var s=o,l="";switch(n){case N.NUMERIC_FAULT:l="NUMERIC_FAULT";var u=o;switch(u){case"overflow":case"underflow":case"division-by-zero":l+="-"+u;break;case"negative-power":case"negative-width":l+="-unsupported";break;case"unbound-bitwise-result":l+="-unbound-result"}break;case N.CALL_EXCEPTION:case N.INSUFFICIENT_FUNDS:case N.MISSING_NEW:case N.NONCE_EXPIRED:case N.REPLACEMENT_UNDERPRICED:case N.TRANSACTION_REPLACED:case N.UNPREDICTABLE_GAS_LIMIT:l=n}l&&(o+=" [ See: https://links.ethers.org/v5-errors-"+l+" ]"),i.length&&(o+=" ("+i.join(", ")+")");var h=new Error(o);return h.reason=s,h.code=n,Object.keys(E).forEach(function(o){h[o]=E[o]}),h},R.prototype.throwError=function(o,t,n){throw this.makeError(o,t,n)},R.prototype.throwArgumentError=function(o,t,n){return this.throwError(o,R.errors.INVALID_ARGUMENT,{argument:t,value:n})},R.prototype.assert=function(o,t,n,E){o||this.throwError(t,n,E)},R.prototype.assertArgument=function(o,t,n,E){o||this.throwArgumentError(t,n,E)},R.prototype.checkNormalize=function(o){null==o&&(o="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",R.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})},R.prototype.checkSafeUint53=function(o,t){"number"==typeof o&&(null==t&&(t="value not safe"),(o<0||o>=9007199254740991)&&this.throwError(t,R.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:o}),o%1&&this.throwError(t,R.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:o}))},R.prototype.checkArgumentCount=function(o,t,n){n=n?": "+n:"",ot&&this.throwError("too many arguments"+n,R.errors.UNEXPECTED_ARGUMENT,{count:o,expectedCount:t})},R.prototype.checkNew=function(o,t){o!==Object&&null!=o||this.throwError("missing new",R.errors.MISSING_NEW,{name:t.name})},R.prototype.checkAbstract=function(o,t){o===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",R.errors.UNSUPPORTED_OPERATION,{name:o.name,operation:"new"}):o!==Object&&null!=o||this.throwError("missing new",R.errors.MISSING_NEW,{name:t.name})},R.globalLogger=function(){return i||(i=new R(r(d[0]).version)),i},R.setCensorship=function(n,E){if(!n&&E&&this.globalLogger().throwError("cannot permanently disable censorship",R.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!n)return;this.globalLogger().throwError("error censorship permanent",R.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}t=!!n,o=!!E},R.setLogLevel=function(o){var t=n[o.toLowerCase()];null!=t?E=t:R.globalLogger().warn("invalid log level - "+o)},R.from=function(o){return new R(o)},R.errors=N,R.levels=s,R})();e.Logger=R},1321,[1322]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="logger/5.8.0"},1322,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="units/5.8.0"},1323,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._base36To16=e._base16To36=e.parseFixed=e.FixedNumber=e.FixedFormat=e.formatFixed=e.BigNumber=void 0,Object.defineProperty(e,"BigNumber",{enumerable:!0,get:function(){return r(d[0]).BigNumber}}),Object.defineProperty(e,"formatFixed",{enumerable:!0,get:function(){return r(d[1]).formatFixed}}),Object.defineProperty(e,"FixedFormat",{enumerable:!0,get:function(){return r(d[1]).FixedFormat}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return r(d[1]).FixedNumber}}),Object.defineProperty(e,"parseFixed",{enumerable:!0,get:function(){return r(d[1]).parseFixed}}),Object.defineProperty(e,"_base16To36",{enumerable:!0,get:function(){return r(d[0])._base16To36}}),Object.defineProperty(e,"_base36To16",{enumerable:!0,get:function(){return r(d[0])._base36To16}})},1324,[1325,1331]); -__d(function(g,r,i,a,m,_e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0}),_e._base16To36=_e._base36To16=_e.BigNumber=_e.isBigNumberish=void 0;var e=t(r(d[0])).default.BN,n=new(r(d[1]).Logger)(r(d[2]).version),o={};_e.isBigNumberish=function(t){return null!=t&&(s.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||(0,r(d[3]).isHexString)(t)||"bigint"==typeof t||(0,r(d[3]).isBytes)(t))};var u=!1,s=(function(){function t(t,e){t!==o&&n.throwError("cannot call constructor directly; use BigNumber.from",r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}return t.prototype.fromTwos=function(t){return p(h(this).fromTwos(t))},t.prototype.toTwos=function(t){return p(h(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this},t.prototype.add=function(t){return p(h(this).add(h(t)))},t.prototype.sub=function(t){return p(h(this).sub(h(t)))},t.prototype.div=function(e){return t.from(e).isZero()&&c("division-by-zero","div"),p(h(this).div(h(e)))},t.prototype.mul=function(t){return p(h(this).mul(h(t)))},t.prototype.mod=function(t){var e=h(t);return e.isNeg()&&c("division-by-zero","mod"),p(h(this).umod(e))},t.prototype.pow=function(t){var e=h(t);return e.isNeg()&&c("negative-power","pow"),p(h(this).pow(e))},t.prototype.and=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","and"),p(h(this).and(e))},t.prototype.or=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","or"),p(h(this).or(e))},t.prototype.xor=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","xor"),p(h(this).xor(e))},t.prototype.mask=function(t){return(this.isNegative()||t<0)&&c("negative-width","mask"),p(h(this).maskn(t))},t.prototype.shl=function(t){return(this.isNegative()||t<0)&&c("negative-width","shl"),p(h(this).shln(t))},t.prototype.shr=function(t){return(this.isNegative()||t<0)&&c("negative-width","shr"),p(h(this).shrn(t))},t.prototype.eq=function(t){return h(this).eq(h(t))},t.prototype.lt=function(t){return h(this).lt(h(t))},t.prototype.lte=function(t){return h(this).lte(h(t))},t.prototype.gt=function(t){return h(this).gt(h(t))},t.prototype.gte=function(t){return h(this).gte(h(t))},t.prototype.isNegative=function(){return"-"===this._hex[0]},t.prototype.isZero=function(){return h(this).isZero()},t.prototype.toNumber=function(){try{return h(this).toNumber()}catch(t){c("overflow","toNumber",this.toString())}return null},t.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(t){}return n.throwError("this platform does not support BigInt",r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},t.prototype.toString=function(){return arguments.length>0&&(10===arguments[0]?u||(u=!0,n.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?n.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",r(d[1]).Logger.errors.UNEXPECTED_ARGUMENT,{}):n.throwError("BigNumber.toString does not accept parameters",r(d[1]).Logger.errors.UNEXPECTED_ARGUMENT,{})),h(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.prototype.toJSON=function(t){return{type:"BigNumber",hex:this.toHexString()}},t.from=function(u){if(u instanceof t)return u;if("string"==typeof u)return u.match(/^-?0x[0-9a-f]+$/i)?new t(o,f(u)):u.match(/^-?[0-9]+$/)?new t(o,f(new e(u))):n.throwArgumentError("invalid BigNumber string","value",u);if("number"==typeof u)return u%1&&c("underflow","BigNumber.from",u),(u>=9007199254740991||u<=-9007199254740991)&&c("overflow","BigNumber.from",u),t.from(String(u));var s,p=u;if("bigint"==typeof p)return t.from(p.toString());if((0,r(d[3]).isBytes)(p))return t.from((0,r(d[3]).hexlify)(p));if(p)if(p.toHexString){if("string"==typeof(s=p.toHexString()))return t.from(s)}else if(null==(s=p._hex)&&"BigNumber"===p.type&&(s=p.hex),"string"==typeof s&&((0,r(d[3]).isHexString)(s)||"-"===s[0]&&(0,r(d[3]).isHexString)(s.substring(1))))return t.from(s);return n.throwArgumentError("invalid BigNumber value","value",u)},t.isBigNumber=function(t){return!(!t||!t._isBigNumber)},t})();function f(t){if("string"!=typeof t)return f(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&n.throwArgumentError("invalid hex","value",t),"0x00"===(t=f(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function p(t){return s.from(f(t))}function h(t){var n=s.from(t).toHexString();return"-"===n[0]?new e("-"+n.substring(3),16):new e(n.substring(2),16)}function c(t,e,o){var u={fault:t,operation:e};return null!=o&&(u.value=o),n.throwError(t,r(d[1]).Logger.errors.NUMERIC_FAULT,u)}_e.BigNumber=s,_e._base36To16=function(t){return new e(t,36).toString(16)},_e._base16To36=function(t){return new e(t,16).toString(36)}},1325,[1326,1321,1328,1329]); -__d(function(_g,_r,_i,_a,_m,_e,d){!(function(t,i){'use strict';function r(t,i){if(!t)throw new Error(i||'Assertion failed')}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&('le'!==i&&'be'!==i||(r=i,i=10),this._init(t||0,i||10,r||'be'))}var e;'object'==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e='undefined'!=typeof window&&void 0!==window.Buffer?window.Buffer:_r(d[0]).Buffer}catch(t){}function o(t,i){var n=t.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,'Invalid character in '+t)}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,n,h){for(var e=0,o=0,s=Math.min(t.length,n),u=i;u=49?a-49+10:a>=17?a-17+10:a,r(a>=0&&o0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if('number'==typeof t)return this._initNumber(t,i,n);if('object'==typeof t)return this._initArray(t,i,n);'hex'===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;'-'===(t=t.toString().replace(/\s+/g,''))[0]&&(h++,this.negative=1),h=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if('le'===n)for(h=0,e=0;h>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this._strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n=i;n-=2)h=s(t,i,n)<=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this._strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},'undefined'!=typeof Symbol&&'function'==typeof Symbol.for)try{h.prototype[Symbol.for('nodejs.util.inspect.custom')]=l}catch(t){h.prototype.inspect=l}else h.prototype.inspect=l;function l(){return(this.red?''}var m=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(t,i){var n;if(i=0|i||1,16===(t=t||10)||'hex'===t){n='';for(var h=0,e=0,o=0;o>>24-h&16777215,(h+=2)>=26&&(h-=26,o--),n=0!==e||o!==this.length-1?m[6-u.length]+u+n:u+n}for(0!==e&&(n=e.toString(16)+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],l=p[t];n='';var M=this.clone();for(M.negative=0;!M.isZero();){var v=M.modrn(l).toString(t);n=(M=M.idivn(l)).isZero()?v+n:m[a-v.length]+v+n}for(this.isZero()&&(n='0'+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}r(!1,'Base should be between 2 and 36')},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,'Number can only safely store up to 53 bits'),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},e&&(h.prototype.toBuffer=function(t,i){return this.toArrayLike(e,t,i)}),h.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)};var M=function(t,i){return t.allocUnsafe?t.allocUnsafe(i):new t(i)};function v(t){for(var i=new Array(t.bitLength()),r=0;r>>h&1}return i}function g(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a>>26,m=67108863&u,f=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=f;p++){var M=a-p|0;l+=(o=(h=0|t.words[M])*(e=0|i.words[p])+m)/67108864|0,m=67108863&o}r.words[a]=0|m,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r._strip()}h.prototype.toArrayLike=function(t,i,n){this._strip();var h=this.byteLength(),e=n||Math.max(1,h);r(h<=e,'byte array longer than desired length'),r(e>0,'Requested array length <= 0');var o=M(t,e);return this['_toArrayLike'+('le'===i?'LE':'BE')](o,h),o},h.prototype._toArrayLikeLE=function(t,i){for(var r=0,n=0,h=0,e=0;h>8&255),r>16&255),6===e?(r>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===e?(r>=0&&(t[r--]=o>>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},h.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 8191&i||(r+=13,i>>>=13),127&i||(r+=7,i>>>=7),15&i||(r+=4,i>>>=4),3&i||(r+=2,i>>>=2),1&i||r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;it.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r('number'==typeof t&&t>=0);var i=0|Math.ceil(t/26),n=t%26;this._expand(i),n>0&&i--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-n),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,i){r('number'==typeof t&&t>=0);var n=t/26|0,h=t%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var h=0,e=0;e>>26;for(;0!==h&&e>>26;if(this.length=r.length,0!==h)this.words[this.length]=h,this.length++;else if(r!==this)for(;et.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(r=this,n=t):(r=t,n=this);for(var e=0,o=0;o>26,this.words[o]=67108863&i;for(;0!==e&&o>26,this.words[o]=67108863&i;if(0===e&&o>>13,p=0|o[1],M=8191&p,v=p>>>13,g=0|o[2],c=8191&g,w=g>>>13,y=0|o[3],b=8191&y,_=y>>>13,k=0|o[4],A=8191&k,S=k>>>13,x=0|o[5],B=8191&x,R=x>>>13,q=0|o[6],Z=8191&q,L=q>>>13,N=0|o[7],I=8191&N,E=N>>>13,z=0|o[8],T=8191&z,O=z>>>13,j=0|o[9],K=8191&j,P=j>>>13,F=0|s[0],U=8191&F,C=F>>>13,D=0|s[1],H=8191&D,J=D>>>13,G=0|s[2],Q=8191&G,V=G>>>13,W=0|s[3],X=8191&W,Y=W>>>13,$=0|s[4],tt=8191&$,it=$>>>13,rt=0|s[5],nt=8191&rt,ht=rt>>>13,et=0|s[6],ot=8191&et,st=et>>>13,ut=0|s[7],at=8191&ut,lt=ut>>>13,mt=0|s[8],ft=8191&mt,dt=mt>>>13,pt=0|s[9],Mt=8191&pt,vt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(a+(n=Math.imul(m,U))|0)+((8191&(h=(h=Math.imul(m,C))+Math.imul(f,U)|0))<<13)|0;a=((e=Math.imul(f,C))+(h>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,U),h=(h=Math.imul(M,C))+Math.imul(v,U)|0,e=Math.imul(v,C);var ct=(a+(n=n+Math.imul(m,H)|0)|0)+((8191&(h=(h=h+Math.imul(m,J)|0)+Math.imul(f,H)|0))<<13)|0;a=((e=e+Math.imul(f,J)|0)+(h>>>13)|0)+(ct>>>26)|0,ct&=67108863,n=Math.imul(c,U),h=(h=Math.imul(c,C))+Math.imul(w,U)|0,e=Math.imul(w,C),n=n+Math.imul(M,H)|0,h=(h=h+Math.imul(M,J)|0)+Math.imul(v,H)|0,e=e+Math.imul(v,J)|0;var wt=(a+(n=n+Math.imul(m,Q)|0)|0)+((8191&(h=(h=h+Math.imul(m,V)|0)+Math.imul(f,Q)|0))<<13)|0;a=((e=e+Math.imul(f,V)|0)+(h>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(b,U),h=(h=Math.imul(b,C))+Math.imul(_,U)|0,e=Math.imul(_,C),n=n+Math.imul(c,H)|0,h=(h=h+Math.imul(c,J)|0)+Math.imul(w,H)|0,e=e+Math.imul(w,J)|0,n=n+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,V)|0)+Math.imul(v,Q)|0,e=e+Math.imul(v,V)|0;var yt=(a+(n=n+Math.imul(m,X)|0)|0)+((8191&(h=(h=h+Math.imul(m,Y)|0)+Math.imul(f,X)|0))<<13)|0;a=((e=e+Math.imul(f,Y)|0)+(h>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,U),h=(h=Math.imul(A,C))+Math.imul(S,U)|0,e=Math.imul(S,C),n=n+Math.imul(b,H)|0,h=(h=h+Math.imul(b,J)|0)+Math.imul(_,H)|0,e=e+Math.imul(_,J)|0,n=n+Math.imul(c,Q)|0,h=(h=h+Math.imul(c,V)|0)+Math.imul(w,Q)|0,e=e+Math.imul(w,V)|0,n=n+Math.imul(M,X)|0,h=(h=h+Math.imul(M,Y)|0)+Math.imul(v,X)|0,e=e+Math.imul(v,Y)|0;var bt=(a+(n=n+Math.imul(m,tt)|0)|0)+((8191&(h=(h=h+Math.imul(m,it)|0)+Math.imul(f,tt)|0))<<13)|0;a=((e=e+Math.imul(f,it)|0)+(h>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(B,U),h=(h=Math.imul(B,C))+Math.imul(R,U)|0,e=Math.imul(R,C),n=n+Math.imul(A,H)|0,h=(h=h+Math.imul(A,J)|0)+Math.imul(S,H)|0,e=e+Math.imul(S,J)|0,n=n+Math.imul(b,Q)|0,h=(h=h+Math.imul(b,V)|0)+Math.imul(_,Q)|0,e=e+Math.imul(_,V)|0,n=n+Math.imul(c,X)|0,h=(h=h+Math.imul(c,Y)|0)+Math.imul(w,X)|0,e=e+Math.imul(w,Y)|0,n=n+Math.imul(M,tt)|0,h=(h=h+Math.imul(M,it)|0)+Math.imul(v,tt)|0,e=e+Math.imul(v,it)|0;var _t=(a+(n=n+Math.imul(m,nt)|0)|0)+((8191&(h=(h=h+Math.imul(m,ht)|0)+Math.imul(f,nt)|0))<<13)|0;a=((e=e+Math.imul(f,ht)|0)+(h>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,U),h=(h=Math.imul(Z,C))+Math.imul(L,U)|0,e=Math.imul(L,C),n=n+Math.imul(B,H)|0,h=(h=h+Math.imul(B,J)|0)+Math.imul(R,H)|0,e=e+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,h=(h=h+Math.imul(A,V)|0)+Math.imul(S,Q)|0,e=e+Math.imul(S,V)|0,n=n+Math.imul(b,X)|0,h=(h=h+Math.imul(b,Y)|0)+Math.imul(_,X)|0,e=e+Math.imul(_,Y)|0,n=n+Math.imul(c,tt)|0,h=(h=h+Math.imul(c,it)|0)+Math.imul(w,tt)|0,e=e+Math.imul(w,it)|0,n=n+Math.imul(M,nt)|0,h=(h=h+Math.imul(M,ht)|0)+Math.imul(v,nt)|0,e=e+Math.imul(v,ht)|0;var kt=(a+(n=n+Math.imul(m,ot)|0)|0)+((8191&(h=(h=h+Math.imul(m,st)|0)+Math.imul(f,ot)|0))<<13)|0;a=((e=e+Math.imul(f,st)|0)+(h>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(I,U),h=(h=Math.imul(I,C))+Math.imul(E,U)|0,e=Math.imul(E,C),n=n+Math.imul(Z,H)|0,h=(h=h+Math.imul(Z,J)|0)+Math.imul(L,H)|0,e=e+Math.imul(L,J)|0,n=n+Math.imul(B,Q)|0,h=(h=h+Math.imul(B,V)|0)+Math.imul(R,Q)|0,e=e+Math.imul(R,V)|0,n=n+Math.imul(A,X)|0,h=(h=h+Math.imul(A,Y)|0)+Math.imul(S,X)|0,e=e+Math.imul(S,Y)|0,n=n+Math.imul(b,tt)|0,h=(h=h+Math.imul(b,it)|0)+Math.imul(_,tt)|0,e=e+Math.imul(_,it)|0,n=n+Math.imul(c,nt)|0,h=(h=h+Math.imul(c,ht)|0)+Math.imul(w,nt)|0,e=e+Math.imul(w,ht)|0,n=n+Math.imul(M,ot)|0,h=(h=h+Math.imul(M,st)|0)+Math.imul(v,ot)|0,e=e+Math.imul(v,st)|0;var At=(a+(n=n+Math.imul(m,at)|0)|0)+((8191&(h=(h=h+Math.imul(m,lt)|0)+Math.imul(f,at)|0))<<13)|0;a=((e=e+Math.imul(f,lt)|0)+(h>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(T,U),h=(h=Math.imul(T,C))+Math.imul(O,U)|0,e=Math.imul(O,C),n=n+Math.imul(I,H)|0,h=(h=h+Math.imul(I,J)|0)+Math.imul(E,H)|0,e=e+Math.imul(E,J)|0,n=n+Math.imul(Z,Q)|0,h=(h=h+Math.imul(Z,V)|0)+Math.imul(L,Q)|0,e=e+Math.imul(L,V)|0,n=n+Math.imul(B,X)|0,h=(h=h+Math.imul(B,Y)|0)+Math.imul(R,X)|0,e=e+Math.imul(R,Y)|0,n=n+Math.imul(A,tt)|0,h=(h=h+Math.imul(A,it)|0)+Math.imul(S,tt)|0,e=e+Math.imul(S,it)|0,n=n+Math.imul(b,nt)|0,h=(h=h+Math.imul(b,ht)|0)+Math.imul(_,nt)|0,e=e+Math.imul(_,ht)|0,n=n+Math.imul(c,ot)|0,h=(h=h+Math.imul(c,st)|0)+Math.imul(w,ot)|0,e=e+Math.imul(w,st)|0,n=n+Math.imul(M,at)|0,h=(h=h+Math.imul(M,lt)|0)+Math.imul(v,at)|0,e=e+Math.imul(v,lt)|0;var St=(a+(n=n+Math.imul(m,ft)|0)|0)+((8191&(h=(h=h+Math.imul(m,dt)|0)+Math.imul(f,ft)|0))<<13)|0;a=((e=e+Math.imul(f,dt)|0)+(h>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(K,U),h=(h=Math.imul(K,C))+Math.imul(P,U)|0,e=Math.imul(P,C),n=n+Math.imul(T,H)|0,h=(h=h+Math.imul(T,J)|0)+Math.imul(O,H)|0,e=e+Math.imul(O,J)|0,n=n+Math.imul(I,Q)|0,h=(h=h+Math.imul(I,V)|0)+Math.imul(E,Q)|0,e=e+Math.imul(E,V)|0,n=n+Math.imul(Z,X)|0,h=(h=h+Math.imul(Z,Y)|0)+Math.imul(L,X)|0,e=e+Math.imul(L,Y)|0,n=n+Math.imul(B,tt)|0,h=(h=h+Math.imul(B,it)|0)+Math.imul(R,tt)|0,e=e+Math.imul(R,it)|0,n=n+Math.imul(A,nt)|0,h=(h=h+Math.imul(A,ht)|0)+Math.imul(S,nt)|0,e=e+Math.imul(S,ht)|0,n=n+Math.imul(b,ot)|0,h=(h=h+Math.imul(b,st)|0)+Math.imul(_,ot)|0,e=e+Math.imul(_,st)|0,n=n+Math.imul(c,at)|0,h=(h=h+Math.imul(c,lt)|0)+Math.imul(w,at)|0,e=e+Math.imul(w,lt)|0,n=n+Math.imul(M,ft)|0,h=(h=h+Math.imul(M,dt)|0)+Math.imul(v,ft)|0,e=e+Math.imul(v,dt)|0;var xt=(a+(n=n+Math.imul(m,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(m,vt)|0)+Math.imul(f,Mt)|0))<<13)|0;a=((e=e+Math.imul(f,vt)|0)+(h>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(K,H),h=(h=Math.imul(K,J))+Math.imul(P,H)|0,e=Math.imul(P,J),n=n+Math.imul(T,Q)|0,h=(h=h+Math.imul(T,V)|0)+Math.imul(O,Q)|0,e=e+Math.imul(O,V)|0,n=n+Math.imul(I,X)|0,h=(h=h+Math.imul(I,Y)|0)+Math.imul(E,X)|0,e=e+Math.imul(E,Y)|0,n=n+Math.imul(Z,tt)|0,h=(h=h+Math.imul(Z,it)|0)+Math.imul(L,tt)|0,e=e+Math.imul(L,it)|0,n=n+Math.imul(B,nt)|0,h=(h=h+Math.imul(B,ht)|0)+Math.imul(R,nt)|0,e=e+Math.imul(R,ht)|0,n=n+Math.imul(A,ot)|0,h=(h=h+Math.imul(A,st)|0)+Math.imul(S,ot)|0,e=e+Math.imul(S,st)|0,n=n+Math.imul(b,at)|0,h=(h=h+Math.imul(b,lt)|0)+Math.imul(_,at)|0,e=e+Math.imul(_,lt)|0,n=n+Math.imul(c,ft)|0,h=(h=h+Math.imul(c,dt)|0)+Math.imul(w,ft)|0,e=e+Math.imul(w,dt)|0;var Bt=(a+(n=n+Math.imul(M,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(M,vt)|0)+Math.imul(v,Mt)|0))<<13)|0;a=((e=e+Math.imul(v,vt)|0)+(h>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(K,Q),h=(h=Math.imul(K,V))+Math.imul(P,Q)|0,e=Math.imul(P,V),n=n+Math.imul(T,X)|0,h=(h=h+Math.imul(T,Y)|0)+Math.imul(O,X)|0,e=e+Math.imul(O,Y)|0,n=n+Math.imul(I,tt)|0,h=(h=h+Math.imul(I,it)|0)+Math.imul(E,tt)|0,e=e+Math.imul(E,it)|0,n=n+Math.imul(Z,nt)|0,h=(h=h+Math.imul(Z,ht)|0)+Math.imul(L,nt)|0,e=e+Math.imul(L,ht)|0,n=n+Math.imul(B,ot)|0,h=(h=h+Math.imul(B,st)|0)+Math.imul(R,ot)|0,e=e+Math.imul(R,st)|0,n=n+Math.imul(A,at)|0,h=(h=h+Math.imul(A,lt)|0)+Math.imul(S,at)|0,e=e+Math.imul(S,lt)|0,n=n+Math.imul(b,ft)|0,h=(h=h+Math.imul(b,dt)|0)+Math.imul(_,ft)|0,e=e+Math.imul(_,dt)|0;var Rt=(a+(n=n+Math.imul(c,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(c,vt)|0)+Math.imul(w,Mt)|0))<<13)|0;a=((e=e+Math.imul(w,vt)|0)+(h>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(K,X),h=(h=Math.imul(K,Y))+Math.imul(P,X)|0,e=Math.imul(P,Y),n=n+Math.imul(T,tt)|0,h=(h=h+Math.imul(T,it)|0)+Math.imul(O,tt)|0,e=e+Math.imul(O,it)|0,n=n+Math.imul(I,nt)|0,h=(h=h+Math.imul(I,ht)|0)+Math.imul(E,nt)|0,e=e+Math.imul(E,ht)|0,n=n+Math.imul(Z,ot)|0,h=(h=h+Math.imul(Z,st)|0)+Math.imul(L,ot)|0,e=e+Math.imul(L,st)|0,n=n+Math.imul(B,at)|0,h=(h=h+Math.imul(B,lt)|0)+Math.imul(R,at)|0,e=e+Math.imul(R,lt)|0,n=n+Math.imul(A,ft)|0,h=(h=h+Math.imul(A,dt)|0)+Math.imul(S,ft)|0,e=e+Math.imul(S,dt)|0;var qt=(a+(n=n+Math.imul(b,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(b,vt)|0)+Math.imul(_,Mt)|0))<<13)|0;a=((e=e+Math.imul(_,vt)|0)+(h>>>13)|0)+(qt>>>26)|0,qt&=67108863,n=Math.imul(K,tt),h=(h=Math.imul(K,it))+Math.imul(P,tt)|0,e=Math.imul(P,it),n=n+Math.imul(T,nt)|0,h=(h=h+Math.imul(T,ht)|0)+Math.imul(O,nt)|0,e=e+Math.imul(O,ht)|0,n=n+Math.imul(I,ot)|0,h=(h=h+Math.imul(I,st)|0)+Math.imul(E,ot)|0,e=e+Math.imul(E,st)|0,n=n+Math.imul(Z,at)|0,h=(h=h+Math.imul(Z,lt)|0)+Math.imul(L,at)|0,e=e+Math.imul(L,lt)|0,n=n+Math.imul(B,ft)|0,h=(h=h+Math.imul(B,dt)|0)+Math.imul(R,ft)|0,e=e+Math.imul(R,dt)|0;var Zt=(a+(n=n+Math.imul(A,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(A,vt)|0)+Math.imul(S,Mt)|0))<<13)|0;a=((e=e+Math.imul(S,vt)|0)+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(K,nt),h=(h=Math.imul(K,ht))+Math.imul(P,nt)|0,e=Math.imul(P,ht),n=n+Math.imul(T,ot)|0,h=(h=h+Math.imul(T,st)|0)+Math.imul(O,ot)|0,e=e+Math.imul(O,st)|0,n=n+Math.imul(I,at)|0,h=(h=h+Math.imul(I,lt)|0)+Math.imul(E,at)|0,e=e+Math.imul(E,lt)|0,n=n+Math.imul(Z,ft)|0,h=(h=h+Math.imul(Z,dt)|0)+Math.imul(L,ft)|0,e=e+Math.imul(L,dt)|0;var Lt=(a+(n=n+Math.imul(B,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(B,vt)|0)+Math.imul(R,Mt)|0))<<13)|0;a=((e=e+Math.imul(R,vt)|0)+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(K,ot),h=(h=Math.imul(K,st))+Math.imul(P,ot)|0,e=Math.imul(P,st),n=n+Math.imul(T,at)|0,h=(h=h+Math.imul(T,lt)|0)+Math.imul(O,at)|0,e=e+Math.imul(O,lt)|0,n=n+Math.imul(I,ft)|0,h=(h=h+Math.imul(I,dt)|0)+Math.imul(E,ft)|0,e=e+Math.imul(E,dt)|0;var Nt=(a+(n=n+Math.imul(Z,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(Z,vt)|0)+Math.imul(L,Mt)|0))<<13)|0;a=((e=e+Math.imul(L,vt)|0)+(h>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(K,at),h=(h=Math.imul(K,lt))+Math.imul(P,at)|0,e=Math.imul(P,lt),n=n+Math.imul(T,ft)|0,h=(h=h+Math.imul(T,dt)|0)+Math.imul(O,ft)|0,e=e+Math.imul(O,dt)|0;var It=(a+(n=n+Math.imul(I,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(I,vt)|0)+Math.imul(E,Mt)|0))<<13)|0;a=((e=e+Math.imul(E,vt)|0)+(h>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(K,ft),h=(h=Math.imul(K,dt))+Math.imul(P,ft)|0,e=Math.imul(P,dt);var Et=(a+(n=n+Math.imul(T,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(T,vt)|0)+Math.imul(O,Mt)|0))<<13)|0;a=((e=e+Math.imul(O,vt)|0)+(h>>>13)|0)+(Et>>>26)|0,Et&=67108863;var zt=(a+(n=Math.imul(K,Mt))|0)+((8191&(h=(h=Math.imul(K,vt))+Math.imul(P,Mt)|0))<<13)|0;return a=((e=Math.imul(P,vt))+(h>>>13)|0)+(zt>>>26)|0,zt&=67108863,u[0]=gt,u[1]=ct,u[2]=wt,u[3]=yt,u[4]=bt,u[5]=_t,u[6]=kt,u[7]=At,u[8]=St,u[9]=xt,u[10]=Bt,u[11]=Rt,u[12]=qt,u[13]=Zt,u[14]=Lt,u[15]=Nt,u[16]=It,u[17]=Et,u[18]=zt,0!==a&&(u[19]=a,r.length++),r};function w(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var n=0,h=0,e=0;e>>26)|0)>>>26,o&=67108863}r.words[e]=s,n=o,o=h}return 0!==n?r.words[e]=n:r.length--,r._strip()}function y(t,i,r){return w(t,i,r)}function b(t,i){this.x=t,this.y=i}Math.imul||(c=g),h.prototype.mulTo=function(t,i){var r=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,i):r<63?g(this,t,i):r<1024?w(this,t,i):y(this,t,i)},b.prototype.makeRBT=function(t){for(var i=new Array(t),r=h.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,i,r,n,h,e){for(var o=0;o>>=1)h++;return 1<>>=13,n[2*o+1]=8191&e,e>>>=13;for(o=2*i;o>=26,n+=e/67108864|0,n+=o>>>26,this.words[h]=67108863&o}return 0!==n&&(this.words[h]=n,this.length++),this.length=0===t?1:this.length,i?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var i=v(t);if(0===i.length)return new h(1);for(var r=this,n=0;n=0);var i,n=t%26,h=(t-n)/26,e=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(i=0;i>>26-n}o&&(this.words[i]=o,this.length++)}if(0!==h){for(i=this.length-1;i>=0;i--)this.words[i+h]=this.words[i];for(i=0;i=0),h=i?(i-i%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<o)for(this.length-=o,a=0;a=0&&(0!==l||a>=h);a--){var m=0|this.words[a];this.words[a]=l<<26-e|m>>>e,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,i,n){return r(0===this.negative),this.iushrn(t,i,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r('number'==typeof t&&t>=0);var i=t%26,n=(t-i)/26,h=1<=0);var i=t%26,n=(t-i)/26;if(r(0===this.negative,'imaskn works only with positive numbers'),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var h=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r('number'==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[h+n]=67108863&e}for(;h>26,this.words[h+n]=67108863&e;if(0===s)return this._strip();for(r(-1===s),s=0,h=0;h>26,this.words[h]=67108863&e;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,i){var r=(this.length,t.length),n=this.clone(),e=t,o=0|e.words[e.length-1];0!==(r=26-this._countBits(o))&&(e=e.ushln(r),n.iushln(r),o=0|e.words[e.length-1]);var s,u=n.length-e.length;if('mod'!==i){(s=new h(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a=0;m--){var f=67108864*(0|n.words[e.length+m])+(0|n.words[e.length+m-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(e,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(e,1,m),n.isZero()||(n.negative^=1);s&&(s.words[m]=f)}return s&&s._strip(),n._strip(),'div'!==i&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},h.prototype.divmod=function(t,i,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,i),'mod'!==i&&(e=s.div.neg()),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:e,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),i),'mod'!==i&&(e=s.div.neg()),{div:e,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),i),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?'div'===i?{div:this.divn(t.words[0]),mod:null}:'mod'===i?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,i);var e,o,s},h.prototype.div=function(t){return this.divmod(t,'div',!1).div},h.prototype.mod=function(t){return this.divmod(t,'mod',!1).mod},h.prototype.umod=function(t){return this.divmod(t,'mod',!0).mod},h.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,n=t.ushrn(1),h=t.andln(1),e=r.cmp(n);return e<0||1===h&&0===e?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},h.prototype.modrn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=67108864%t,h=0,e=this.length-1;e>=0;e--)h=(n*h+(0|this.words[e]))%t;return i?-h:h},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=0,h=this.length-1;h>=0;h--){var e=(0|this.words[h])+67108864*n;this.words[h]=e/t|0,n=e%t}return this._strip(),i?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e=new h(1),o=new h(0),s=new h(0),u=new h(1),a=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++a;for(var l=n.clone(),m=i.clone();!i.isZero();){for(var f=0,p=1;0===(i.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(l),o.isub(m)),e.iushrn(1),o.iushrn(1);for(var M=0,v=1;0===(n.words[0]&v)&&M<26;++M,v<<=1);if(M>0)for(n.iushrn(M);M-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);i.cmp(n)>=0?(i.isub(n),e.isub(s),o.isub(u)):(n.isub(i),s.isub(e),u.isub(o))}return{a:s,b:u,gcd:n.iushln(a)}},h.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e,o=new h(1),s=new h(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;0===(i.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return(e=0===i.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var n=0;i.isEven()&&r.isEven();n++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var h=i.cmp(r);if(h<0){var e=i;i=r,r=e}else if(0===h||0===r.cmpn(1))break;i.isub(r)}return r.iushln(n)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return!(1&this.words[0])},h.prototype.isOdd=function(){return!(1&~this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r('number'==typeof t);var i=t%26,n=(t-i)/26,h=1<>>26,s&=67108863,this.words[o]=s}return 0!==e&&(this.words[o]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var i,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)i=1;else{n&&(t=-t),r(t<=67108863,'Number is too big');var h=0|this.words[0];i=h===t?0:ht.length)return 1;if(this.length=0;r--){var n=0|this.words[r],h=0|t.words[r];if(n!==h){nh&&(i=1);break}}return i},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return r(!this.red,'Already a number in reduction context'),r(0===this.negative,'red works only with positives'),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,'fromRed works only with numbers in reduction context'),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,'Already a number in reduction context'),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,'redAdd works only with red numbers'),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,'redIAdd works only with red numbers'),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,'redSub works only with red numbers'),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,'redISub works only with red numbers'),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,'redShl works only with red numbers'),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,'redSqr works only with red numbers'),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,'redISqr works only with red numbers'),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,'redSqrt works only with red numbers'),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,'redInvm works only with red numbers'),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,'redNeg works only with red numbers'),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,'redPow(normalNum)'),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,i){this.name=t,this.p=new h(i,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){k.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}function S(){k.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}function x(){k.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}function B(){k.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}function R(t){if('string'==typeof t){var i=h._prime(t);this.m=i.p,this.prime=i}else r(t.gtn(1),'modulus must be greater than 1'),this.m=t,this.prime=null}function q(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var n=i0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,i){t.iushrn(this.n,0,i)},k.prototype.imulK=function(t){return t.imul(this.k)},n(A,k),A.prototype.split=function(t,i){for(var r=4194303,n=Math.min(t.length,9),h=0;h>>22,e=o}e>>>=22,t.words[h-10]=e,0===e&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r>>=26,t.words[r]=h,i=n}return 0!==i&&(t.words[t.length++]=i),t},h._prime=function(t){if(_[t])return _[t];var i;if('k256'===t)i=new A;else if('p224'===t)i=new S;else if('p192'===t)i=new x;else{if('p25519'!==t)throw new Error('Unknown prime '+t);i=new B}return _[t]=i,i},R.prototype._verify1=function(t){r(0===t.negative,'red works only with positives'),r(t.red,'red works only with red numbers')},R.prototype._verify2=function(t,i){r(0===(t.negative|i.negative),'red works only with positives'),r(t.red&&t.red===i.red,'red works only with red numbers')},R.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},R.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},R.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},R.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},R.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},R.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},R.prototype.isqr=function(t){return this.imul(t,t.clone())},R.prototype.sqr=function(t){return this.mul(t,t)},R.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(r(i%2==1),3===i){var n=this.m.add(new h(1)).iushrn(2);return this.pow(t,n)}for(var e=this.m.subn(1),o=0;!e.isZero()&&0===e.andln(1);)o++,e.iushrn(1);r(!e.isZero());var s=new h(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,e),f=this.pow(t,e.addn(1).iushrn(1)),p=this.pow(t,e),M=o;0!==p.cmp(s);){for(var v=p,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;n--){for(var a=i.words[n],l=u-1;l>=0;l--){var m=a>>l&1;e!==r[0]&&(e=this.sqr(e)),0!==m||0!==o?(o<<=1,o|=m,(4===++s||0===n&&0===l)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}u=26}return e},R.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},R.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},h.mont=function(t){return new q(t)},n(q,R),q.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},q.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},q.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=r.isub(n).iushrn(this.shift),e=h;return h.cmp(this.m)>=0?e=h.isub(this.m):h.cmpn(0)<0&&(e=h.iadd(this.m)),e._forceRed(this)},q.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new h(0)._forceRed(this);var r=t.mul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(n).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},q.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(void 0===_m||_m,this)},1326,[1327]); -__d(function(g,r,i,a,m,e,d){},1327,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="bignumber/5.8.0"},1328,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinSignature=e.splitSignature=e.hexZeroPad=e.hexStripZeros=e.hexValue=e.hexConcat=e.hexDataSlice=e.hexDataLength=e.hexlify=e.isHexString=e.zeroPad=e.stripZeros=e.concat=e.arrayify=e.isBytes=e.isBytesLike=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version);function n(t){return!!t.toHexString}function i(t){return t.slice||(t.slice=function(){var n=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(t,n)))}),t}function u(t){return f(t)&&!(t.length%2)||o(t)}function s(t){return"number"==typeof t&&t==t&&t%1==0}function o(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!s(t.length)||t.length<0)return!1;for(var n=0;n=256)return!1}return!0}function v(u,s){if(s||(s={}),"number"==typeof u){t.checkSafeUint53(u,"invalid arrayify value");for(var v=[];u;)v.unshift(255&u),u=parseInt(String(u/256));return 0===v.length&&v.push(0),i(new Uint8Array(v))}if(s.allowMissingPrefix&&"string"==typeof u&&"0x"!==u.substring(0,2)&&(u="0x"+u),n(u)&&(u=u.toHexString()),f(u)){var l=u.substring(2);l.length%2&&("left"===s.hexPad?l="0"+l:"right"===s.hexPad?l+="0":t.throwArgumentError("hex data is odd-length","value",u));v=[];for(var h=0;hu&&t.throwArgumentError("value out of range","value",arguments[0]);var s=new Uint8Array(u);return s.set(n,u-n.length),i(s)}function f(t,n){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!n||t.length===2+2*n)}e.isBytesLike=u,e.isBytes=o,e.arrayify=v,e.concat=l,e.stripZeros=function(t){var n=v(t);if(0===n.length)return n;for(var i=0;i>4]+c[15&h]}return v}return t.throwArgumentError("invalid hexlify value","value",i)}function x(n){"string"!=typeof n&&(n=y(n)),f(n)||t.throwArgumentError("invalid hex string","value",n),n=n.substring(2);for(var i=0;i2*i+2&&t.throwArgumentError("value out of range","value",arguments[1]);n.length<2*i+2;)n="0x0"+n.substring(2);return n}function P(n){var i={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(u(n)){var s=v(n);64===s.length?(i.v=27+(s[32]>>7),s[32]&=127,i.r=y(s.slice(0,32)),i.s=y(s.slice(32,64))):65===s.length?(i.r=y(s.slice(0,32)),i.s=y(s.slice(32,64)),i.v=s[64]):t.throwArgumentError("invalid signature string","signature",n),i.v<27&&(0===i.v||1===i.v?i.v+=27:t.throwArgumentError("signature invalid v byte","signature",n)),i.recoveryParam=1-i.v%2,i.recoveryParam&&(s[32]|=128),i._vs=y(s.slice(32,64))}else{if(i.r=n.r,i.s=n.s,i.v=n.v,i.recoveryParam=n.recoveryParam,i._vs=n._vs,null!=i._vs){var o=h(v(i._vs),32);i._vs=y(o);var l=o[0]>=128?1:0;null==i.recoveryParam?i.recoveryParam=l:i.recoveryParam!==l&&t.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),o[0]&=127;var c=y(o);null==i.s?i.s=c:i.s!==c&&t.throwArgumentError("signature v mismatch _vs","signature",n)}if(null==i.recoveryParam)null==i.v?t.throwArgumentError("signature missing v and recoveryParam","signature",n):0===i.v||1===i.v?i.recoveryParam=i.v:i.recoveryParam=1-i.v%2;else if(null==i.v)i.v=27+i.recoveryParam;else{var x=0===i.v||1===i.v?i.v:1-i.v%2;i.recoveryParam!==x&&t.throwArgumentError("signature recoveryParam mismatch v","signature",n)}null!=i.r&&f(i.r)?i.r=A(i.r,32):t.throwArgumentError("signature missing or invalid r","signature",n),null!=i.s&&f(i.s)?i.s=A(i.s,32):t.throwArgumentError("signature missing or invalid s","signature",n);var P=v(i.s);P[0]>=128&&t.throwArgumentError("signature s out of range","signature",n),i.recoveryParam&&(P[0]|=128);var p=y(P);i._vs&&(f(i._vs)||t.throwArgumentError("signature invalid _vs","signature",n),i._vs=A(i._vs,32)),null==i._vs?i._vs=p:i._vs!==p&&t.throwArgumentError("signature _vs mismatch v and s","signature",n)}return i.yParityAndS=i._vs,i.compact=i.r+i.yParityAndS.substring(2),i}e.hexlify=y,e.hexDataLength=function(t){if("string"!=typeof t)t=y(t);else if(!f(t)||t.length%2)return null;return(t.length-2)/2},e.hexDataSlice=function(n,i,u){return"string"!=typeof n?n=y(n):(!f(n)||n.length%2)&&t.throwArgumentError("invalid hexData","value",n),i=2+2*i,null!=u?"0x"+n.substring(i,2+2*u):"0x"+n.substring(i)},e.hexConcat=function(t){var n="0x";return t.forEach(function(t){n+=y(t).substring(2)}),n},e.hexValue=function(t){var n=x(y(t,{hexPad:"left"}));return"0x"===n?"0x0":n},e.hexStripZeros=x,e.hexZeroPad=A,e.splitSignature=P,e.joinSignature=function(t){return y(l([(t=P(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},1329,[1321,1330]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="bytes/5.8.0"},1330,[]); -__d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.FixedNumber=_e.FixedFormat=_e.parseFixed=_e.formatFixed=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version),e={},o=r(d[2]).BigNumber.from(0),n=r(d[2]).BigNumber.from(-1);function a(e,o,n,a){var u={fault:o,operation:n};return void 0!==a&&(u.value=a),t.throwError(e,r(d[0]).Logger.errors.NUMERIC_FAULT,u)}for(var u="0";u.length<256;)u+=u;function s(e){if("number"!=typeof e)try{e=r(d[2]).BigNumber.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+u.substring(0,e):t.throwArgumentError("invalid decimal size","decimals",e)}function f(t,e){null==e&&(e=0);var a=s(e),u=(t=r(d[2]).BigNumber.from(t)).lt(o);u&&(t=t.mul(n));for(var f=t.mod(a).toString();f.length2&&t.throwArgumentError("too many decimal points","value",e);var h=l[0],c=l[1];for(h||(h="0"),c||(c="0");"0"===c[c.length-1];)c=c.substring(0,c.length-1);for(c.length>u.length-1&&a("fractional component exceeds decimals","underflow","parseFixed"),""===c&&(c="0");c.length80&&t.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",s),new o(e,a,u,s)},o})();_e.FixedFormat=h;var c=(function(){function n(o,n,a,u){o!==e&&t.throwError("cannot use FixedNumber constructor; use FixedNumber.from",r(d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=u,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return n.prototype._checkFormat=function(e){this.format.name!==e.format.name&&t.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},n.prototype.addUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.add(o),this.format.decimals,this.format)},n.prototype.subUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.sub(o),this.format.decimals,this.format)},n.prototype.mulUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.mul(o).div(this.format._multiplier),this.format.decimals,this.format)},n.prototype.divUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.mul(this.format._multiplier).div(o),this.format.decimals,this.format)},n.prototype.floor=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var e=n.from(t[0],this.format),o=!t[1].match(/^(0*)$/);return this.isNegative()&&o&&(e=e.subUnsafe(v.toFormat(e.format))),e},n.prototype.ceiling=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var e=n.from(t[0],this.format),o=!t[1].match(/^(0*)$/);return!this.isNegative()&&o&&(e=e.addUnsafe(v.toFormat(e.format))),e},n.prototype.round=function(e){null==e&&(e=0);var o=this.toString().split(".");if(1===o.length&&o.push("0"),(e<0||e>80||e%1)&&t.throwArgumentError("invalid decimal count","decimals",e),o[1].length<=e)return this;var a=n.from("1"+u.substring(0,e),this.format),s=p.toFormat(this.format);return this.mulUnsafe(a).addUnsafe(s).floor().divUnsafe(a)},n.prototype.isZero=function(){return"0.0"===this._value||"0"===this._value},n.prototype.isNegative=function(){return"-"===this._value[0]},n.prototype.toString=function(){return this._value},n.prototype.toHexString=function(e){if(null==e)return this._hex;e%8&&t.throwArgumentError("invalid byte width","width",e);var o=r(d[2]).BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,r(d[3]).hexZeroPad)(o,e/8)},n.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},n.prototype.toFormat=function(t){return n.fromString(this._value,t)},n.fromValue=function(t,e,o){return null!=o||null==e||(0,r(d[2]).isBigNumberish)(e)||(o=e,e=null),null==e&&(e=0),null==o&&(o="fixed"),n.fromString(f(t,e),h.from(o))},n.fromString=function(t,u){null==u&&(u="fixed");var s=h.from(u),c=l(t,s.decimals);!s.signed&&c.lt(o)&&a("unsigned value cannot be negative","overflow","value",t);var v=null;s.signed?v=c.toTwos(s.width).toHexString():(v=c.toHexString(),v=(0,r(d[3]).hexZeroPad)(v,s.width/8));var p=f(c,s.decimals);return new n(e,v,p,s)},n.fromBytes=function(t,o){null==o&&(o="fixed");var a=h.from(o);if((0,r(d[3]).arrayify)(t).length>a.width/8)throw new Error("overflow");var u=r(d[2]).BigNumber.from(t);a.signed&&(u=u.fromTwos(a.width));var s=u.toTwos((a.signed?0:1)+a.width).toHexString(),l=f(u,a.decimals);return new n(e,s,l,a)},n.from=function(e,o){if("string"==typeof e)return n.fromString(e,o);if((0,r(d[3]).isBytes)(e))return n.fromBytes(e,o);try{return n.fromValue(e,0,o)}catch(t){if(t.code!==r(d[0]).Logger.errors.INVALID_ARGUMENT)throw t}return t.throwArgumentError("invalid FixedNumber value","value",e)},n.isFixedNumber=function(t){return!(!t||!t._isFixedNumber)},n})();_e.FixedNumber=c;var v=c.from(1),p=c.from("0.5")},1331,[1321,1328,1325,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionDescription=e.LogDescription=e.checkResultErrors=e.Indexed=e.Interface=e.defaultAbiCoder=e.AbiCoder=e.FormatTypes=e.ParamType=e.FunctionFragment=e.Fragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=void 0,Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return r(d[0]).ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return r(d[0]).ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return r(d[0]).EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return r(d[0]).FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return r(d[0]).Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return r(d[0]).FunctionFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return r(d[0]).ParamType}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return r(d[1]).AbiCoder}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return r(d[1]).defaultAbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return r(d[2]).checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return r(d[2]).Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return r(d[2]).Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return r(d[2]).LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return r(d[2]).TransactionDescription}})},1332,[1333,1337,1365]); -__d(function(g,r,_i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorFragment=e.FunctionFragment=e.ConstructorFragment=e.EventFragment=e.Fragment=e.ParamType=e.FormatTypes=void 0;var o=new(r(_d[0]).Logger)(r(_d[1]).version),i={},s={calldata:!0,memory:!0,storage:!0},u={calldata:!0,memory:!0};function p(t,n){if("bytes"===t||"string"===t){if(s[n])return!0}else if("address"===t){if("payable"===n)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&u[n])return!0;return(s[n]||"payable"===n)&&o.throwArgumentError("invalid modifier","name",n),!1}function l(t,n){var i=t;function s(n){o.throwArgumentError("unexpected character at position "+n,"param",t)}function u(t){var o={type:"",name:"",parent:t,state:{allowType:!0}};return n&&(o.indexed=!1),o}t=t.replace(/\s/g," ");for(var l={type:"",name:"",state:{allowType:!0}},c=l,y=0;y2&&o.throwArgumentError("invalid human-readable ABI signature","value",t),i[1].match(/^[0-9]+$/)||o.throwArgumentError("invalid human-readable ABI signature gas","value",t),n.gas=r(_d[3]).BigNumber.from(i[1]),i[0]):t}function w(t,n){n.constant=!1,n.payable=!1,n.stateMutability="nonpayable",t.split(" ").forEach(function(t){switch(t.trim()){case"constant":n.constant=!0;break;case"payable":n.payable=!0,n.stateMutability="payable";break;case"nonpayable":n.payable=!1,n.stateMutability="nonpayable";break;case"pure":n.constant=!0,n.stateMutability="pure";break;case"view":n.constant=!0,n.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function F(t){var n={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(n.stateMutability=t.stateMutability,n.constant="view"===n.stateMutability||"pure"===n.stateMutability,null!=t.constant&&!!t.constant!==n.constant&&o.throwArgumentError("cannot have constant function with mutability "+n.stateMutability,"value",t),n.payable="payable"===n.stateMutability,null!=t.payable&&!!t.payable!==n.payable&&o.throwArgumentError("cannot have payable function with mutability "+n.stateMutability,"value",t)):null!=t.payable?(n.payable=!!t.payable,null!=t.constant||n.payable||"constructor"===t.type||o.throwArgumentError("unable to determine stateMutability","value",t),n.constant=!!t.constant,n.constant?n.stateMutability="view":n.stateMutability=n.payable?"payable":"nonpayable",n.payable&&n.constant&&o.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(n.constant=!!t.constant,n.payable=!n.constant,n.stateMutability=n.constant?"view":"payable"):"constructor"!==t.type&&o.throwArgumentError("unable to determine stateMutability","value",t),n}e.EventFragment=v;var O=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))})});t===e.FormatTypes.sighash&&o.throwError("cannot format a constructor for sighash",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "),n.trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isConstructorFragment(t))return t;"constructor"!==t.type&&o.throwArgumentError("invalid constructor object","value",t);var n=F(t);n.constant&&o.throwArgumentError("constructor cannot be constant","value",t);var u={name:null,type:t.type,inputs:t.inputs?t.inputs.map(f.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?r(_d[3]).BigNumber.from(t.gas):null};return new s(i,u)},s.fromString=function(t){var n={type:"constructor"},i=(t=d(t,n)).match(x);return i&&"constructor"===i[1].trim()||o.throwArgumentError("invalid constructor string","value",t),n.inputs=h(i[2].trim(),!1),w(i[3].trim(),n),s.fromObject(n)},s.isConstructorFragment=function(t){return t&&t._isFragment&&"constructor"===t.type},s})(b);e.ConstructorFragment=O;var T=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))}),outputs:this.outputs.map(function(n){return JSON.parse(n.format(t))})});var n="";return t!==e.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ",t!==e.FormatTypes.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(n){return n.format(t)}).join(", ")+") "),null!=this.gas&&(n+="@"+this.gas.toString()+" ")),n.trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isFunctionFragment(t))return t;"function"!==t.type&&o.throwArgumentError("invalid function object","value",t);var n=F(t),u={type:t.type,name:S(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(f.fromObject):[],outputs:t.outputs?t.outputs.map(f.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?r(_d[3]).BigNumber.from(t.gas):null};return new s(i,u)},s.fromString=function(t){var n={type:"function"},i=(t=d(t,n)).split(" returns ");i.length>2&&o.throwArgumentError("invalid function string","value",t);var u=i[0].match(x);if(u||o.throwArgumentError("invalid function signature","value",t),n.name=u[1].trim(),n.name&&S(n.name),n.inputs=h(u[2],!1),w(u[3].trim(),n),i.length>1){var p=i[1].match(x);""==p[1].trim()&&""==p[3].trim()||o.throwArgumentError("unexpected tokens","value",t),n.outputs=h(p[2],!1)}else n.outputs=[];return s.fromObject(n)},s.isFunctionFragment=function(t){return t&&t._isFragment&&"function"===t.type},s})(O);function E(t){var n=t.format();return"Error(string)"!==n&&"Panic(uint256)"!==n||o.throwArgumentError("cannot specify user defined "+n+" error","fragment",t),t}e.FunctionFragment=T;var j=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))})});var n="";return t!==e.FormatTypes.sighash&&(n+="error "),(n+=this.name+"("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ").trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isErrorFragment(t))return t;"error"!==t.type&&o.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:S(t.name),inputs:t.inputs?t.inputs.map(f.fromObject):[]};return E(new s(i,n))},s.fromString=function(t){var n={type:"error"},i=t.match(x);return i||o.throwArgumentError("invalid error signature","value",t),n.name=i[1].trim(),n.name&&S(n.name),n.inputs=h(i[2],!1),E(s.fromObject(n))},s.isErrorFragment=function(t){return t&&t._isFragment&&"error"===t.type},s})(b);function A(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}e.ErrorFragment=j;var M=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function S(t){return t&&t.match(M)||o.throwArgumentError("invalid identifier \""+t+"\"","value",t),t}var x=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function N(t){t=t.trim();for(var n=[],i="",s=0,u=0;u0&&i[i.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]256||p%8!=0)&&t.throwArgumentError("invalid "+c[1]+" bit length","param",u),new(r(d[10]).NumberCoder)(p/8,"int"===c[1],u.name)):(c=u.type.match(n))?((0===(p=parseInt(c[1]))||p>32)&&t.throwArgumentError("invalid bytes length","param",u),new(r(d[11]).FixedBytesCoder)(p,u.name)):t.throwArgumentError("invalid type","type",u.type)},u.prototype._getWordSize=function(){return 32},u.prototype._getReader=function(t,n){return new(r(d[12]).Reader)(t,this._getWordSize(),this.coerceFunc,n)},u.prototype._getWriter=function(){return new(r(d[12]).Writer)(this._getWordSize())},u.prototype.getDefaultValue=function(t){var n=this,o=t.map(function(t){return n._getCoder(r(d[13]).ParamType.from(t))});return new(r(d[8]).TupleCoder)(o,"_").defaultValue()},u.prototype.encode=function(n,o){var u=this;n.length!==o.length&&t.throwError("types/values length mismatch",r(d[0]).Logger.errors.INVALID_ARGUMENT,{count:{types:n.length,values:o.length},value:{types:n,values:o}});var s=n.map(function(t){return u._getCoder(r(d[13]).ParamType.from(t))}),p=new(r(d[8]).TupleCoder)(s,"_"),c=this._getWriter();return p.encode(c,o),c.data},u.prototype.decode=function(t,n,o){var u=this,s=t.map(function(t){return u._getCoder(r(d[13]).ParamType.from(t))});return new(r(d[8]).TupleCoder)(s,"_").decode(this._getReader((0,r(d[14]).arrayify)(n),o))},u})();e.AbiCoder=u,e.defaultAbiCoder=new u},1337,[1321,1334,1335,1338,1346,1347,1358,1359,1361,1362,1363,1364,1345,1333,1329]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.AddressCoder=void 0;var n=(function(t){function n(o){return t.call(this,"address","address",o,!1)||this}return o(n,t),n.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},n.prototype.encode=function(t,o){try{o=(0,r(_d[0]).getAddress)(o)}catch(t){this._throwError(t.message,o)}return t.writeValue(o)},n.prototype.decode=function(t){return(0,r(_d[0]).getAddress)((0,r(_d[1]).hexZeroPad)(t.readValue().toHexString(),20))},n})(r(_d[2]).Coder);e.AddressCoder=n},1338,[1339,1329,1345]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCreate2Address=e.getContractAddress=e.getIcapAddress=e.isAddress=e.getAddress=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version);function s(s){(0,r(d[2]).isHexString)(s,20)||t.throwArgumentError("invalid address","address",s);for(var n=(s=s.toLowerCase()).substring(2).split(""),o=new Uint8Array(40),i=0;i<40;i++)o[i]=n[i].charCodeAt(0);var u=(0,r(d[2]).arrayify)((0,r(d[3]).keccak256)(o));for(i=0;i<40;i+=2)u[i>>1]>>4>=8&&(n[i]=n[i].toUpperCase()),(15&u[i>>1])>=8&&(n[i+1]=n[i+1].toUpperCase());return"0x"+n.join("")}for(var n={},o=0;o<10;o++)n[String(o)]=String(o);for(o=0;o<26;o++)n[String.fromCharCode(65+o)]=String(10+o);var i,u=Math.floor((i=9007199254740991,Math.log10?Math.log10(i):Math.log(i)/Math.LN10));function c(t){for(var s=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(function(t){return n[t]}).join("");s.length>=u;){var o=s.substring(0,u);s=parseInt(o,10)%97+s.substring(o.length)}for(var i=String(98-parseInt(s,10)%97);i.length<2;)i="0"+i;return i}function h(n){var o=null;if("string"!=typeof n&&t.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),o=s(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&o!==n&&t.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==c(n)&&t.throwArgumentError("bad icap checksum","address",n),o=(0,r(d[4])._base36To16)(n.substring(4));o.length<40;)o="0"+o;o=s("0x"+o)}else t.throwArgumentError("invalid address","address",n);return o}e.getAddress=h,e.isAddress=function(t){try{return h(t),!0}catch(t){}return!1},e.getIcapAddress=function(t){for(var s=(0,r(d[4])._base16To36)(h(t).substring(2)).toUpperCase();s.length<30;)s="0"+s;return"XE"+c("XE00"+s)+s},e.getContractAddress=function(s){var n=null;try{n=h(s.from)}catch(n){t.throwArgumentError("missing from address","transaction",s)}var o=(0,r(d[2]).stripZeros)((0,r(d[2]).arrayify)(r(d[4]).BigNumber.from(s.nonce).toHexString()));return h((0,r(d[2]).hexDataSlice)((0,r(d[3]).keccak256)((0,r(d[5]).encode)([n,o])),12))},e.getCreate2Address=function(s,n,o){return 32!==(0,r(d[2]).hexDataLength)(n)&&t.throwArgumentError("salt must be 32 bytes","salt",n),32!==(0,r(d[2]).hexDataLength)(o)&&t.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",o),h((0,r(d[2]).hexDataSlice)((0,r(d[3]).keccak256)((0,r(d[2]).concat)(["0xff",h(s),n,o])),12))}},1339,[1321,1340,1329,1341,1324,1343]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="address/5.8.0"},1340,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.keccak256=void 0;var u=t(r(d[0]));e.keccak256=function(t){return'0x'+u.default.keccak_256((0,r(d[1]).arrayify)(t))}},1341,[1342,1329]); +e.ifDefined=function(n){return null!=n?n:r(d[0]).nothing}},1831,[1726]); +__d(function(g,r,i,a,m,e,d){"use strict";var n=r(d[0]);function t(n,t){var u=g[`${__METRO_GLOBAL_PREFIX__}__loadBundleAsync`];if(null!=u){var l=String(n);if(null!=t){var c=t[l];if(null!=c)return u(c)}}}function u(n,u){var l=t(n,u),c=function(){return r.importAll(n)};return null!=l?l.then(c):c()}function l(n,t,u){return c.apply(this,arguments)}function c(){return(c=n(function*(n,t,l){return u(n,t)})).apply(this,arguments)}l.unstable_importMaybeSync=function(n,t){return u(n,t)},l.prefetch=function(n,u,l){var c;null==(c=t(n,u))||c.then(function(){},function(){})},m.exports=l},1832,[367]); +__d(function(_g,_r1,_i3,_a2,_m,_e2,_d){"use strict";var e=_r1(_d[0]),t=_r1(_d[1]),i=_r1(_d[2]),n=_r1(_d[3]),r=_r1(_d[4]),s=_r1(_d[5]);function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(_e2,"__esModule",{value:!0});var o=a(_r1(_d[6])),c=a(_r1(_d[7])),u=a(_r1(_d[8])),l="error",p="wc@2:universal_provider:",h="https://rpc.walletconnect.org/v1/",f="generic",d=`${h}bundler`,v="call_status",y="default_chain_changed";function m(e){return null==e||"object"!=typeof e&&"function"!=typeof e}function g(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function b(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var P="[object String]",w="[object Number]",O="[object Boolean]",j="[object Arguments]";function C(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function I(e,t){return k(e,void 0,e,new Map,t)}function k(e,t,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:new Map,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=null==r?void 0:r(e,t,i,n);if(null!=a)return a;if(m(e))return e;if(n.has(e))return n.get(e);if(Array.isArray(e)){var o=new Array(e.length);n.set(e,o);for(var c=0;c2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,a=[].concat(r(Object.keys(t)),r(g(t))),o=0;o1?t-1:0),n=1;n1?t-1:0),n=1;n0}))}function Z(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return B(Y(ee(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{})),Y(ee(e)))}function ee(e){var t,i,n,r,a,o={};if(!_r1(_d[9]).isValidObject(e))return o;for(var c of Object.entries(e)){var u=s(c,2),l=u[0],p=u[1],h=_r1(_d[9]).isCaipNamespace(l)?[l]:p.chains,f=p.methods||[],d=p.events||[],v=p.rpcMap||{},y=_r1(_d[9]).parseNamespaceKey(l);o[y]=W(L(L({},o[y]),p),{chains:_r1(_d[9]).mergeArrays(h,null==(t=o[y])?void 0:t.chains),methods:_r1(_d[9]).mergeArrays(f,null==(i=o[y])?void 0:i.methods),events:_r1(_d[9]).mergeArrays(d,null==(n=o[y])?void 0:n.events)}),(_r1(_d[9]).isValidObject(v)||_r1(_d[9]).isValidObject((null==(r=o[y])?void 0:r.rpcMap)||{}))&&(o[y].rpcMap=L(L({},v),null==(a=o[y])?void 0:a.rpcMap))}return o}function te(e){return e.includes(":")?e.split(":")[2]:e}function ie(e){var t={};for(var i of Object.entries(e)){var n=s(i,2),r=n[0],a=n[1],o=a.methods||[],c=a.events||[],u=a.accounts||[],l=_r1(_d[9]).isCaipNamespace(r)?[r]:a.chains?a.chains:Q(a.accounts);t[r]={chains:l,methods:o,events:c,accounts:u}}return t}function ne(e){return"number"==typeof e?e:e.includes("0x")?parseInt(e,16):(e=e.includes(":")?e.split(":")[1]:e,isNaN(Number(e))?e:Number(e))}function re(e){try{var t=JSON.parse(e);return"object"==typeof t&&null!==t&&!Array.isArray(t)}catch(e){return!1}}var se,ae={},oe=function(e){return ae[e]},ce=function(e,t){ae[e]=t},ue=Object.defineProperty,le=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,he=Object.prototype.propertyIsEnumerable,fe=function(e,t,i){return t in e?ue(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},de=function(e,t){for(var i in t||(t={}))pe.call(t,i)&&fe(e,i,t[i]);if(le)for(var i of le(t))he.call(t,i)&&fe(e,i,t[i]);return e},ve="eip155",ye=["atomic","flow-control","paymasterService","sessionKeys","auxiliaryFunds"],me=function(e){return e&&e.startsWith("0x")?BigInt(e).toString(10):e},ge=function(e){return e&&e.startsWith("0x")?e:`0x${BigInt(e).toString(16)}`},be=function(e){return Object.keys(e).filter(function(e){return ye.includes(e)}).reduce(function(t,i){return t[i]=Pe(e[i]),t},{})},Pe=function(e){return"string"==typeof e&&re(e)?JSON.parse(e):e},we=function(e,t,i){var n=e.sessionProperties,r=void 0===n?{}:n,a=e.scopedProperties,o=void 0===a?{}:a,c={};if(_r1(_d[9]).isValidObject(o)||_r1(_d[9]).isValidObject(r)){var u=be(r);for(var l of i){var p=me(l);if(p){c[ge(p)]=u;var h=null==o?void 0:o[`${ve}:${p}`];if(h){var f=null==h?void 0:h[`${ve}:${p}:${t}`];c[ge(p)]=de(de({},c[ge(p)]),be(f||h))}}}for(var d of Object.entries(c)){var v=s(d,2),y=v[0],m=v[1];0===Object.keys(m).length&&delete c[y]}return Object.keys(c).length>0?c:void 0}},Oe=Object.defineProperty,je=function(e,t,i){return t in e?Oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Ce=function(e,t,i){return je(e,"symbol"!=typeof t?t+"":t,i)},Ie=(function(){function e(t){i(this,e),Ce(this,"storage"),this.storage=t}return n(e,[{key:"getItem",value:(a=t(function*(e){return yield this.storage.getItem(e)}),function(e){return a.apply(this,arguments)})},{key:"setItem",value:(s=t(function*(e,t){return yield this.storage.setItem(e,t)}),function(e,t){return s.apply(this,arguments)})},{key:"removeItem",value:(r=t(function*(e){return yield this.storage.removeItem(e)}),function(e){return r.apply(this,arguments)})}],[{key:"getStorage",value:function(t){return se||(se=new e(t)),se}}]);var r,s,a})(),ke=Object.defineProperty,Se=Object.defineProperties,Ae=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,Ee=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,qe=function(e,t,i){return t in e?ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},xe=function(e,t){for(var i in t||(t={}))Ee.call(t,i)&&qe(e,i,t[i]);if($e)for(var i of $e(t))Ne.call(t,i)&&qe(e,i,t[i]);return e},De=function(e,t){return Se(e,Ae(t))};function _e(e,t){return Fe.apply(this,arguments)}function Fe(){return(Fe=t(function*(e,t){var i=_r1(_d[9]).parseChainId(e.result.capabilities.caip345.caip2),n=e.result.capabilities.caip345.transactionHashes,r=yield Promise.allSettled(n.map(function(e){return Re(i.reference,e,t)})),s=r.filter(function(e){return"fulfilled"===e.status}).map(function(e){return e.value}).filter(function(e){return e});r.filter(function(e){return"rejected"===e.status}).forEach(function(e){return console.warn("Failed to fetch transaction receipt:",e.reason)});var a,o=!s.length||s.some(function(e){return!e}),c=s.every(function(e){return"0x1"===(null==e?void 0:e.status)}),u=s.every(function(e){return"0x0"===(null==e?void 0:e.status)}),l=s.some(function(e){return"0x0"===(null==e?void 0:e.status)});return o?a=100:c?a=200:u?a=500:l&&(a=600),{id:e.result.id,version:e.request.version,atomic:e.request.atomicRequired,chainId:e.request.chainId,capabilities:e.result.capabilities,receipts:s,status:a}})).apply(this,arguments)}function Re(e,t,i){return He.apply(this,arguments)}function He(){return(He=t(function*(e,t,i){return yield i(parseInt(e)).request(_r1(_d[10]).formatJsonRpcRequest("eth_getTransactionReceipt",[t]))})).apply(this,arguments)}function Be(e){return Ue.apply(this,arguments)}function Ue(){return(Ue=t(function*(t){var i=t.sendCalls,n=t.storage,r=yield n.getItem(v);yield n.setItem(v,De(xe({},r),e({},i.result.id,{request:i.request,result:i.result,expiry:_r1(_d[9]).calcExpiry(86400)})))})).apply(this,arguments)}function Me(e){return Te.apply(this,arguments)}function Te(){return(Te=t(function*(e){var t=e.resultId,i=e.storage,n=yield i.getItem(v);if(n){for(var r in delete n[t],yield i.setItem(v,n),n)_r1(_d[9]).isExpired(n[r].expiry)&&delete n[r];yield i.setItem(v,n)}})).apply(this,arguments)}function Ve(e){return ze.apply(this,arguments)}function ze(){return(ze=t(function*(e){var t=e.resultId,i=e.storage,n=yield i.getItem(v),r=null==n?void 0:n[t];if(r&&!_r1(_d[9]).isExpired(r.expiry))return r;yield Me({resultId:t,storage:i})})).apply(this,arguments)}var Je=Object.defineProperty,Ke=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Ge=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,Xe=function(e,t,i){return t in e?Je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Ye=function(e,t){for(var i in t||(t={}))Ge.call(t,i)&&Xe(e,i,t[i]);if(We)for(var i of We(t))Qe.call(t,i)&&Xe(e,i,t[i]);return e},Ze=function(e,t){return Ke(e,Le(t))},et=function(e,t,i){return Xe(e,"symbol"!=typeof t?t+"":t,i)},tt=(function(){return n(function e(t){i(this,e),et(this,"name","eip155"),et(this,"client"),et(this,"chainId"),et(this,"namespace"),et(this,"httpProviders"),et(this,"events"),et(this,"storage"),this.namespace=t.namespace,this.events=oe("events"),this.client=oe("client"),this.httpProviders=this.createHttpProviders(),this.chainId=parseInt(this.getDefaultChain()),this.storage=Ie.getStorage(this.client.core.storage)},[{key:"request",value:(l=t(function*(e){switch(e.request.method){case"eth_requestAccounts":case"eth_accounts":return this.getAccounts();case"wallet_switchEthereumChain":return yield this.handleSwitchChain(e);case"eth_chainId":return parseInt(this.getDefaultChain());case"wallet_getCapabilities":return yield this.getCapabilities(e);case"wallet_getCallsStatus":return yield this.getCallStatus(e);case"wallet_sendCalls":return yield this.sendCalls(e)}return this.namespace.methods.includes(e.request.method)?yield this.client.request(e):this.getHttpProvider().request(e.request)}),function(e){return l.apply(this,arguments)})},{key:"updateNamespace",value:function(e){this.namespace=Object.assign(this.namespace,e)}},{key:"setDefaultChain",value:function(e,t){this.httpProviders[e]||this.setHttpProvider(parseInt(e),t);var i=this.chainId;this.chainId=parseInt(e),this.events.emit(y,{currentCaipChainId:`${this.name}:${e}`,previousCaipChainId:`${this.name}:${i}`})}},{key:"requestAccounts",value:function(){return this.getAccounts()}},{key:"getDefaultChain",value:function(){if(this.chainId)return this.chainId.toString();if(this.namespace.defaultChain)return this.namespace.defaultChain;var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}},{key:"createHttpProvider",value:function(e,t){var i=t||G(`${this.name}:${e}`,this.namespace,this.client.core.projectId);if(!i)throw new Error(`No RPC url provided for chainId: ${e}`);return new(_r1(_d[11]).JsonRpcProvider)(new(_r1(_d[7]).HttpConnection)(i,oe("disableProviderPing")))}},{key:"setHttpProvider",value:function(e,t){var i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}},{key:"createHttpProviders",value:function(){var e=this,t={};return this.namespace.chains.forEach(function(i){var n,r,s=parseInt((r=i).includes(":")?r.split(":")[1]:r);t[s]=e.createHttpProvider(s,null==(n=e.namespace.rpcMap)?void 0:n[i])}),t}},{key:"getAccounts",value:function(){var e=this,t=this.namespace.accounts;return t?r(new Set(t.filter(function(t){return t.split(":")[1]===e.chainId.toString()}).map(function(e){return e.split(":")[2]}))):[]}},{key:"getHttpProvider",value:function(t){var i=t||this.chainId;return this.httpProviders[i]||(this.httpProviders=Ze(Ye({},this.httpProviders),e({},i,this.createHttpProvider(i))),this.httpProviders[i])}},{key:"handleSwitchChain",value:(u=t(function*(e){var t,i,n=e.request.params?null==(t=e.request.params[0])?void 0:t.chainId:"0x0";n=n.startsWith("0x")?n:`0x${n}`;var r=parseInt(n,16);if(this.isChainApproved(r))this.setDefaultChain(`${r}`);else{if(!this.namespace.methods.includes("wallet_switchEthereumChain"))throw new Error(`Failed to switch to chain 'eip155:${r}'. The chain is not approved or the wallet does not support 'wallet_switchEthereumChain' method.`);yield this.client.request({topic:e.topic,request:{method:e.request.method,params:[{chainId:n}]},chainId:null==(i=this.namespace.chains)?void 0:i[0]}),this.setDefaultChain(`${r}`)}return null}),function(e){return u.apply(this,arguments)})},{key:"isChainApproved",value:function(e){return this.namespace.chains.includes(`${this.name}:${e}`)}},{key:"getCapabilities",value:(c=t(function*(t){var i,n,r,s,a,o=null==(n=null==(i=t.request)?void 0:i.params)?void 0:n[0],c=(null==(s=null==(r=t.request)?void 0:r.params)?void 0:s[1])||[];if(!o)throw new Error("Missing address parameter in `wallet_getCapabilities` request");var u,l=this.client.session.get(t.topic),p=(null==(a=null==l?void 0:l.sessionProperties)?void 0:a.capabilities)||{},h=`${o}${c.join(",")}`,f=null==p?void 0:p[h];if(f)return f;try{u=we(l,o,c)}catch(e){console.warn("Failed to extract capabilities from session",e)}if(u)return u;var d=yield this.client.request(t);try{yield this.client.session.update(t.topic,{sessionProperties:Ze(Ye({},l.sessionProperties||{}),{capabilities:Ze(Ye({},p||{}),e({},h,d))})})}catch(e){console.warn("Failed to update session with capabilities",e)}return d}),function(e){return c.apply(this,arguments)})},{key:"getCallStatus",value:(o=t(function*(e){var t,i,n,r=this.client.session.get(e.topic),s=null==(t=r.sessionProperties)?void 0:t.bundler_name;if(s){var a=this.getBundlerUrl(e.chainId,s);try{return yield this.getUserOperationReceipt(a,e)}catch(e){console.warn("Failed to fetch call status from bundler",e,a)}}var o=null==(i=r.sessionProperties)?void 0:i.bundler_url;if(o)try{return yield this.getUserOperationReceipt(o,e)}catch(a){console.warn("Failed to fetch call status from custom bundler",a,o)}var c=yield Ve({resultId:null==(n=e.request.params)?void 0:n[0],storage:this.storage});if(c)try{return yield _e(c,this.getHttpProvider.bind(this))}catch(a){console.warn("Failed to fetch call status from stored send calls",a,c)}if(this.namespace.methods.includes(e.request.method))return yield this.client.request(e);throw new Error("Fetching call status not approved by the wallet.")}),function(e){return o.apply(this,arguments)})},{key:"getUserOperationReceipt",value:(a=t(function*(e,t){var i,n=new URL(e),r=yield fetch(n,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_r1(_d[10]).formatJsonRpcRequest("eth_getUserOperationReceipt",[null==(i=t.request.params)?void 0:i[0]]))});if(!r.ok)throw new Error(`Failed to fetch user operation receipt - ${r.status}`);return yield r.json()}),function(e,t){return a.apply(this,arguments)})},{key:"getBundlerUrl",value:function(e,t){return`${d}?projectId=${this.client.core.projectId}&chainId=${e}&bundler=${t}`}},{key:"sendCalls",value:(s=t(function*(e){var t,i,n,r=yield this.client.request(e),s=null==(t=e.request.params)?void 0:t[0],a=null==r?void 0:r.id,o=(null==r?void 0:r.capabilities)||{},c=null==(i=null==o?void 0:o.caip345)?void 0:i.caip2,u=null==(n=null==o?void 0:o.caip345)?void 0:n.transactionHashes;return!a||!c||!(null!=u&&u.length)||(yield Be({sendCalls:{request:s,result:r},storage:this.storage})),r}),function(e){return s.apply(this,arguments)})}]);var s,a,o,c,u,l})(),it=Object.defineProperty,nt=function(e,t,i){return t in e?it(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},rt=function(e,t,i){return nt(e,"symbol"!=typeof t?t+"":t,i)},st=(function(){return n(function e(t){i(this,e),rt(this,"name",f),rt(this,"client"),rt(this,"httpProviders"),rt(this,"events"),rt(this,"namespace"),rt(this,"chainId"),this.namespace=t.namespace,this.events=oe("events"),this.client=oe("client"),this.chainId=this.getDefaultChain(),this.name=this.getNamespaceName(),this.httpProviders=this.createHttpProviders()},[{key:"updateNamespace",value:function(e){this.namespace.chains=r(new Set((this.namespace.chains||[]).concat(e.chains||[]))),this.namespace.accounts=r(new Set((this.namespace.accounts||[]).concat(e.accounts||[]))),this.namespace.methods=r(new Set((this.namespace.methods||[]).concat(e.methods||[]))),this.namespace.events=r(new Set((this.namespace.events||[]).concat(e.events||[]))),this.httpProviders=this.createHttpProviders()}},{key:"requestAccounts",value:function(){return this.getAccounts()}},{key:"request",value:function(e){return this.namespace.methods.includes(e.request.method)?this.client.request(e):this.getHttpProvider(e.chainId).request(e.request)}},{key:"setDefaultChain",value:function(e,t){this.httpProviders[e]||this.setHttpProvider(e,t);var i=this.chainId;this.chainId=e,this.events.emit(y,{currentCaipChainId:`${this.name}:${e}`,previousCaipChainId:`${this.name}:${i}`})}},{key:"getDefaultChain",value:function(){if(this.chainId)return this.chainId;if(this.namespace.defaultChain)return this.namespace.defaultChain;var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return e.split(":")[1]}},{key:"getNamespaceName",value:function(){var e=this.namespace.chains[0];if(!e)throw new Error("ChainId not found");return _r1(_d[9]).parseChainId(e).namespace}},{key:"getAccounts",value:function(){var e=this,t=this.namespace.accounts;return t?r(new Set(t.filter(function(t){return t.split(":")[1]===e.chainId.toString()}).map(function(e){return e.split(":")[2]}))):[]}},{key:"createHttpProviders",value:function(){var e,t,i=this,n={};return null==(t=null==(e=this.namespace)?void 0:e.accounts)||t.forEach(function(e){var t,r,s=_r1(_d[9]).parseChainId(e),a=null==(r=null==(t=i.namespace)?void 0:t.rpcMap)?void 0:r[`${s.namespace}:${s.reference}`];n[s.reference]=i.createHttpProvider(e,a)}),n}},{key:"getHttpProvider",value:function(e){var t=_r1(_d[9]).parseChainId(e).reference,i=this.httpProviders[t];if(typeof i>"u")throw new Error(`JSON-RPC provider for ${e} not found`);return i}},{key:"setHttpProvider",value:function(e,t){var i=this.createHttpProvider(e,t);i&&(this.httpProviders[e]=i)}},{key:"createHttpProvider",value:function(e,t){var i=t||G(e,this.namespace,this.client.core.projectId);if(!i)throw new Error(`No RPC url provided for chainId: ${e}`);return new(_r1(_d[11]).JsonRpcProvider)(new c.default(i,oe("disableProviderPing")))}}])})(),at=Object.defineProperty,ot=Object.defineProperties,ct=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,pt=Object.prototype.propertyIsEnumerable,ht=function(e,t,i){return t in e?at(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},ft=function(e,t){for(var i in t||(t={}))lt.call(t,i)&&ht(e,i,t[i]);if(ut)for(var i of ut(t))pt.call(t,i)&&ht(e,i,t[i]);return e},dt=function(e,t){return ot(e,ct(t))},vt=function(e,t,i){return ht(e,"symbol"!=typeof t?t+"":t,i)},yt=(function(){function e(t){i(this,e),vt(this,"client"),vt(this,"namespaces"),vt(this,"optionalNamespaces"),vt(this,"sessionProperties"),vt(this,"scopedProperties"),vt(this,"events",new u.default),vt(this,"rpcProviders",{}),vt(this,"session"),vt(this,"providerOpts"),vt(this,"logger"),vt(this,"uri"),vt(this,"disableProviderPing",!1),this.providerOpts=t,this.logger=typeof(null==t?void 0:t.logger)<"u"&&"string"!=typeof(null==t?void 0:t.logger)?t.logger:_r1(_d[12]).pino(_r1(_d[12]).getDefaultLoggerOptions({level:(null==t?void 0:t.logger)||l})),this.disableProviderPing=(null==t?void 0:t.disableProviderPing)||!1}return n(e,[{key:"request",value:($=t(function*(e,t,i){var n=this.validateChain(t),r=s(n,2),a=r[0],o=r[1];if(!this.session)throw new Error("Please call connect() before request()");return yield this.getProvider(a).request({request:ft({},e),chainId:`${a}:${o}`,topic:this.session.topic,expiry:i})}),function(e,t,i){return $.apply(this,arguments)})},{key:"sendAsync",value:function(e,t,i,n){var r=(new Date).getTime();this.request(e,i,n).then(function(e){return t(null,_r1(_d[10]).formatJsonRpcResult(r,e))}).catch(function(e){return t(e,void 0)})}},{key:"enable",value:(A=t(function*(){if(!this.client)throw new Error("Sign Client not initialized");return this.session||(yield this.connect({namespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties})),yield this.requestAccounts()}),function(){return A.apply(this,arguments)})},{key:"disconnect",value:(S=t(function*(){var e;if(!this.session)throw new Error("Please call connect() before enable()");yield this.client.disconnect({topic:null==(e=this.session)?void 0:e.topic,reason:_r1(_d[9]).getSdkError("USER_DISCONNECTED")}),yield this.cleanup()}),function(){return S.apply(this,arguments)})},{key:"connect",value:(k=t(function*(e){if(!this.client)throw new Error("Sign Client not initialized");if(this.setNamespaces(e),this.cleanupPendingPairings(),!e.skipPairing)return yield this.pair(e.pairingTopic)}),function(e){return k.apply(this,arguments)})},{key:"authenticate",value:(I=t(function*(e,t){if(!this.client)throw new Error("Sign Client not initialized");this.setNamespaces(e),yield this.cleanupPendingPairings();var i=yield this.client.authenticate(e,t),n=i.uri,r=i.response;n&&(this.uri=n,this.events.emit("display_uri",n));var s=yield r();if(this.session=s.session,this.session){var a=ie(this.session.namespaces);this.namespaces=Z(this.namespaces,a),yield this.persist("namespaces",this.namespaces),this.onConnect()}return s}),function(e,t){return I.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"isWalletConnect",get:function(){return!0}},{key:"pair",value:(C=t(function*(e){var t=yield this.client.connect({pairingTopic:e,requiredNamespaces:this.namespaces,optionalNamespaces:this.optionalNamespaces,sessionProperties:this.sessionProperties,scopedProperties:this.scopedProperties}),i=t.uri,n=t.approval;i&&(this.uri=i,this.events.emit("display_uri",i));var r=yield n();this.session=r;var s=ie(r.namespaces);return this.namespaces=Z(this.namespaces,s),yield this.persist("namespaces",this.namespaces),yield this.persist("optionalNamespaces",this.optionalNamespaces),this.onConnect(),this.session}),function(e){return C.apply(this,arguments)})},{key:"setDefaultChain",value:function(e,t){try{if(!this.session)return;var i=this.validateChain(e),n=s(i,2),r=n[0],a=n[1];this.getProvider(r).setDefaultChain(a,t)}catch(r){if(!/Please call connect/.test(r.message))throw r}}},{key:"cleanupPendingPairings",value:(j=t(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{this.logger.info("Cleaning up inactive pairings...");var t=this.client.pairing.getAll();if(!_r1(_d[9]).isValidArray(t))return;for(var i of t)e.deletePairings?this.client.core.expirer.set(i.topic,0):yield this.client.core.relayer.subscriber.unsubscribe(i.topic);this.logger.info(`Inactive pairings cleared: ${t.length}`)}catch(t){this.logger.warn("Failed to cleanup pending pairings",t)}}),function(){return j.apply(this,arguments)})},{key:"abortPairingAttempt",value:function(){this.logger.warn("abortPairingAttempt is deprecated. This is now a no-op.")}},{key:"checkStorage",value:(O=t(function*(){this.namespaces=(yield this.getFromStore("namespaces"))||{},this.optionalNamespaces=(yield this.getFromStore("optionalNamespaces"))||{},this.session&&this.createProviders()}),function(){return O.apply(this,arguments)})},{key:"initialize",value:(w=t(function*(){this.logger.trace("Initialized"),yield this.createClient(),yield this.checkStorage(),this.registerEventListeners()}),function(){return w.apply(this,arguments)})},{key:"createClient",value:(P=t(function*(){var e,t;if(this.client=this.providerOpts.client||(yield o.default.init({core:this.providerOpts.core,logger:this.providerOpts.logger||l,relayUrl:this.providerOpts.relayUrl||"wss://relay.walletconnect.org",projectId:this.providerOpts.projectId,metadata:this.providerOpts.metadata,storageOptions:this.providerOpts.storageOptions,storage:this.providerOpts.storage,name:this.providerOpts.name,customStoragePrefix:this.providerOpts.customStoragePrefix,telemetryEnabled:this.providerOpts.telemetryEnabled})),this.providerOpts.session)try{this.session=this.client.session.get(this.providerOpts.session.topic)}catch(i){throw this.logger.error("Failed to get session",i),new Error(`The provided session: ${null==(t=null==(e=this.providerOpts)?void 0:e.session)?void 0:t.topic} doesn't exist in the Sign client`)}else{var i=this.client.session.getAll();this.session=i[0]}this.logger.trace("SignClient Initialized")}),function(){return P.apply(this,arguments)})},{key:"createProviders",value:function(){var e=this;if(!this.client)throw new Error("Sign Client not initialized");if(!this.session)throw new Error("Session not initialized. Please call connect() before enable()");var t=r(new Set(Object.keys(this.session.namespaces).map(function(e){return _r1(_d[9]).parseNamespaceKey(e)})));ce("client",this.client),ce("events",this.events),ce("disableProviderPing",this.disableProviderPing),t.forEach(function(t){if(e.session){var i=X(t,e.session);if(0!==(null==i?void 0:i.length)){var n=Q(i),r=Z(e.namespaces,e.optionalNamespaces),s=dt(ft({},r[t]),{accounts:i,chains:n});if("eip155"===t)e.rpcProviders[t]=new tt({namespace:s});else e.rpcProviders[t]=new st({namespace:s})}}})}},{key:"registerEventListeners",value:function(){var e=this;if(typeof this.client>"u")throw new Error("Sign Client is not initialized");this.client.on("session_ping",function(t){var i;t.topic===(null==(i=e.session)?void 0:i.topic)&&e.events.emit("session_ping",t)}),this.client.on("session_event",function(t){var i,n=t.params;if(t.topic===(null==(i=e.session)?void 0:i.topic)){var r=n.event;if("accountsChanged"===r.name){var s=r.data;s&&_r1(_d[9]).isValidArray(s)&&e.events.emit("accountsChanged",s.map(te))}else if("chainChanged"===r.name){var a=n.chainId,o=n.event.data,c=_r1(_d[9]).parseNamespaceKey(a),u=ne(a)!==ne(o)?`${c}:${ne(o)}`:a;e.onChainChanged({currentCaipChainId:u})}else e.events.emit(r.name,r.data);e.events.emit("session_event",t)}}),this.client.on("session_update",function(t){var i,n,r=t.topic,s=t.params;if(r===(null==(i=e.session)?void 0:i.topic)){var a=s.namespaces,o=null==(n=e.client)?void 0:n.session.get(r);e.session=dt(ft({},o),{namespaces:a}),e.onSessionUpdate(),e.events.emit("session_update",{topic:r,params:s})}}),this.client.on("session_delete",(function(){var i=t(function*(t){var i;t.topic===(null==(i=e.session)?void 0:i.topic)&&(yield e.cleanup(),e.events.emit("session_delete",t),e.events.emit("disconnect",dt(ft({},_r1(_d[9]).getSdkError("USER_DISCONNECTED")),{data:t.topic})))});return function(e){return i.apply(this,arguments)}})()),this.on(y,function(t){e.onChainChanged(dt(ft({},t),{internal:!0}))})}},{key:"getProvider",value:function(e){return this.rpcProviders[e]||this.rpcProviders[f]}},{key:"onSessionUpdate",value:function(){var e=this;Object.keys(this.rpcProviders).forEach(function(t){var i;e.getProvider(t).updateNamespace(null==(i=e.session)?void 0:i.namespaces[t])})}},{key:"setNamespaces",value:function(e){var t=e.namespaces,i=void 0===t?{}:t,n=e.optionalNamespaces,r=void 0===n?{}:n,s=e.sessionProperties,a=e.scopedProperties;this.optionalNamespaces=Z(i,r),this.sessionProperties=s,this.scopedProperties=a}},{key:"validateChain",value:function(e){var t=(null==e?void 0:e.split(":"))||["",""],i=s(t,2),n=i[0],r=i[1];if(!this.namespaces||!Object.keys(this.namespaces).length)return[n,r];if(n&&!Object.keys(this.namespaces||{}).map(function(e){return _r1(_d[9]).parseNamespaceKey(e)}).includes(n))throw new Error(`Namespace '${n}' is not configured. Please call connect() first with namespace config.`);if(n&&r)return[n,r];var a=_r1(_d[9]).parseNamespaceKey(Object.keys(this.namespaces)[0]);return[a,this.rpcProviders[a].getDefaultChain()]}},{key:"requestAccounts",value:(b=t(function*(){var e=this.validateChain(),t=s(e,1)[0];return yield this.getProvider(t).requestAccounts()}),function(){return b.apply(this,arguments)})},{key:"onChainChanged",value:(g=t(function*(e){var t=e.currentCaipChainId,i=e.previousCaipChainId,n=e.internal,r=void 0!==n&&n;if(this.namespaces){var a=this.validateChain(t),o=s(a,2),c=o[0],u=o[1];u&&(this.updateNamespaceChain(c,u),r?(this.events.emit("chainChanged",u),this.emitAccountsChangedOnChainChange({namespace:c,currentCaipChainId:t,previousCaipChainId:i})):this.getProvider(c).setDefaultChain(u),yield this.persist("namespaces",this.namespaces))}}),function(e){return g.apply(this,arguments)})},{key:"emitAccountsChangedOnChainChange",value:function(e){var t,i,n=e.namespace,r=e.currentCaipChainId,s=e.previousCaipChainId;try{if(s===r)return;var a=null==(i=null==(t=this.session)?void 0:t.namespaces[n])?void 0:i.accounts;if(!a)return;var o=a.filter(function(e){return e.includes(`${r}:`)}).map(te);if(!_r1(_d[9]).isValidArray(o))return;this.events.emit("accountsChanged",o)}catch(a){this.logger.warn("Failed to emit accountsChanged on chain change",a)}}},{key:"updateNamespaceChain",value:function(e,t){if(this.namespaces){var i=this.namespaces[e]?e:`${e}:${t}`,n={chains:[],methods:[],events:[],defaultChain:t};this.namespaces[i]?this.namespaces[i]&&(this.namespaces[i].defaultChain=t):this.namespaces[i]=n}}},{key:"onConnect",value:function(){this.createProviders(),this.events.emit("connect",{session:this.session})}},{key:"cleanup",value:(m=t(function*(){this.namespaces=void 0,this.optionalNamespaces=void 0,this.sessionProperties=void 0,yield this.deleteFromStore("namespaces"),yield this.deleteFromStore("optionalNamespaces"),yield this.deleteFromStore("sessionProperties"),this.session=void 0,this.cleanupPendingPairings({deletePairings:!0}),yield this.cleanupStorage()}),function(){return m.apply(this,arguments)})},{key:"persist",value:(v=t(function*(e,t){var i,n=(null==(i=this.session)?void 0:i.topic)||"";yield this.client.core.storage.setItem(`${p}/${e}${n}`,t)}),function(e,t){return v.apply(this,arguments)})},{key:"getFromStore",value:(d=t(function*(e){var t,i=(null==(t=this.session)?void 0:t.topic)||"";return yield this.client.core.storage.getItem(`${p}/${e}${i}`)}),function(e){return d.apply(this,arguments)})},{key:"deleteFromStore",value:(h=t(function*(e){var t,i=(null==(t=this.session)?void 0:t.topic)||"";yield this.client.core.storage.removeItem(`${p}/${e}${i}`)}),function(e){return h.apply(this,arguments)})},{key:"cleanupStorage",value:(c=t(function*(){var e;try{if((null==(e=this.client)?void 0:e.session.length)>0)return;var t=yield this.client.core.storage.getKeys();for(var i of t)i.startsWith(p)&&(yield this.client.core.storage.removeItem(i))}catch(t){this.logger.warn("Failed to cleanup storage",t)}}),function(){return c.apply(this,arguments)})}],[{key:"init",value:(a=t(function*(t){var i=new e(t);return yield i.initialize(),i}),function(e){return a.apply(this,arguments)})}]);var a,c,h,d,v,m,g,b,P,w,O,j,C,I,k,S,A,$})(),mt=yt;_e2.UniversalProvider=mt,_e2.default=yt},1833,[18,367,3,4,32,19,1834,1866,1644,1384,1845,1865,1858]); +__d(function(_g4,r,_i2,_a,_m,_e2,d){"use strict";var e=r(d[0]),t=r(d[1]),i=r(d[2]),n=r(d[3]),s=r(d[4]),o=r(d[5]),a=r(d[6]),c=r(d[7]),l=r(d[8]);function p(e,t,i){return t=c(t),a(e,u()?Reflect.construct(t,i||[],c(e).constructor):t.apply(e,i))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(u=function(){return!!e})()}Object.defineProperty(_e2,"__esModule",{value:!0});var g,y=(g=r(d[9]))&&"object"==typeof g&&"default"in g?g:{default:g},f="wc",h="client",v=`${f}@2:${h}:`,E={name:h,logger:"error",controller:!1,relayUrl:"wss://relay.walletconnect.org"},m="WALLETCONNECT_DEEPLINK_CHOICE",_="proposal",S="Proposal expired",R="session",I="engine",T={wc_sessionPropose:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1100},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1101},reject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1120},autoReject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1121}},wc_sessionSettle:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1102},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1103}},wc_sessionUpdate:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1104},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1105}},wc_sessionExtend:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1106},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1107}},wc_sessionRequest:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1108},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1109}},wc_sessionEvent:{req:{ttl:r(d[10]).FIVE_MINUTES,prompt:!0,tag:1110},res:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1111}},wc_sessionDelete:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1112},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1113}},wc_sessionPing:{req:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1114},res:{ttl:r(d[10]).ONE_DAY,prompt:!1,tag:1115}},wc_sessionAuthenticate:{req:{ttl:r(d[10]).ONE_HOUR,prompt:!0,tag:1116},res:{ttl:r(d[10]).ONE_HOUR,prompt:!1,tag:1117},reject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1118},autoReject:{ttl:r(d[10]).FIVE_MINUTES,prompt:!1,tag:1119}}},N={min:r(d[10]).FIVE_MINUTES,max:r(d[10]).SEVEN_DAYS},w={idle:"IDLE",active:"ACTIVE"},P={eth_sendTransaction:{key:""},eth_sendRawTransaction:{key:""},wallet_sendCalls:{key:""},solana_signTransaction:{key:"signature"},solana_signAllTransactions:{key:"transactions"},solana_signAndSendTransaction:{key:"signature"},sui_signAndExecuteTransaction:{key:"digest"},sui_signTransaction:{key:""},hedera_signAndExecuteTransaction:{key:"transactionId"},hedera_executeTransaction:{key:"transactionId"},near_signTransaction:{key:""},near_signTransactions:{key:""},tron_signTransaction:{key:"txID"},xrpl_signTransaction:{key:""},xrpl_signTransactionFor:{key:""},algo_signTxn:{key:""},sendTransfer:{key:"txid"},stacks_stxTransfer:{key:"txId"},polkadot_signTransaction:{key:""},cosmos_signDirect:{key:""}},q="request",O=["wc_sessionPropose","wc_sessionRequest","wc_authRequest","wc_sessionAuthenticate"],A="auth",V="authKeys",C="pairingTopics",b="requests",x=`wc@1.5:${A}:`,L=`${x}:PUB_KEY`,k=Object.defineProperty,D=Object.defineProperties,M=Object.getOwnPropertyDescriptors,U=Object.getOwnPropertySymbols,$=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,F=function(e,t,i){return t in e?k(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},Y=function(e,t){for(var i in t||(t={}))$.call(t,i)&&F(e,i,t[i]);if(U)for(var i of U(t))K.call(t,i)&&F(e,i,t[i]);return e},j=function(e,t){return D(e,M(t))},G=function(e,t,i){return F(e,"symbol"!=typeof t?t+"":t,i)},H=(function(a){function c(e){var s;return n(this,c),s=p(this,c,[e]),G(o(s),"name",I),G(o(s),"events",new y.default),G(o(s),"initialized",!1),G(o(s),"requestQueue",{state:w.idle,queue:[]}),G(o(s),"sessionRequestQueue",{state:w.idle,queue:[]}),G(o(s),"emittedSessionRequests",new(r(d[11]).LimitedSet)({limit:500})),G(o(s),"requestQueueDelay",r(d[10]).ONE_SECOND),G(o(s),"expectedPairingMethodMap",new Map),G(o(s),"recentlyDeletedMap",new Map),G(o(s),"recentlyDeletedLimit",200),G(o(s),"relayMessageCache",[]),G(o(s),"pendingSessions",new Map),G(o(s),"init",i(function*(){s.initialized||(yield s.cleanup(),s.registerRelayerEvents(),s.registerExpirerEvents(),s.registerPairingEvents(),yield s.registerLinkModeListeners(),s.client.core.pairing.register({methods:Object.keys(T)}),s.initialized=!0,setTimeout(i(function*(){yield s.processPendingMessageEvents(),s.sessionRequestQueue.queue=s.getPendingSessionRequests(),s.processSessionRequestQueue()}),r(d[10]).toMiliseconds(s.requestQueueDelay)))})),G(o(s),"connect",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();var t=j(Y({},e),{requiredNamespaces:e.requiredNamespaces||{},optionalNamespaces:e.optionalNamespaces||{}});yield s.isValidConnect(t),t.optionalNamespaces=r(d[11]).mergeRequiredAndOptionalNamespaces(t.requiredNamespaces,t.optionalNamespaces),t.requiredNamespaces={};var i,n=t.pairingTopic,o=t.requiredNamespaces,a=t.optionalNamespaces,c=t.sessionProperties,l=t.scopedProperties,p=t.relays,u=n,g=!1;try{if(u){var y=s.client.core.pairing.pairings.get(u);s.client.logger.warn("connect() with existing pairing topic is deprecated and will be removed in the next major release."),g=y.active}}catch(y){throw s.client.logger.error(`connect() -> pairing.get(${u}) failed`),y}if(!u||!g){var f=yield s.client.core.pairing.create({internal:{skipSubscribe:!0}});u=f.topic,i=f.uri}if(!u){var h=r(d[11]).getInternalError("NO_MATCHING_KEY",`connect() pairing topic: ${u}`).message;throw new Error(h)}var v=yield s.client.core.crypto.generateKeyPair(),E=T.wc_sessionPropose.req.ttl||r(d[10]).FIVE_MINUTES,m=r(d[11]).calcExpiry(E),_=j(Y(Y({requiredNamespaces:o,optionalNamespaces:a,relays:null!=p?p:[{protocol:r(d[12]).RELAYER_DEFAULT_PROTOCOL}],proposer:{publicKey:v,metadata:s.client.metadata},expiryTimestamp:m,pairingTopic:u},c&&{sessionProperties:c}),l&&{scopedProperties:l}),{id:r(d[13]).payloadId()}),R=r(d[11]).engineEvent("session_connect",_.id),I=r(d[11]).createDelayedPromise(E,S),N=I.reject,w=I.resolve,P=I.done,q=function(e){e.id===_.id&&(s.client.events.off("proposal_expire",q),s.pendingSessions.delete(_.id),s.events.emit(R,{error:{message:S,code:0}}))};return s.client.events.on("proposal_expire",q),s.events.once(R,function(e){var t=e.error,i=e.session;s.client.events.off("proposal_expire",q),t?N(t):i&&w(i)}),yield s.sendProposeSession({proposal:_,publishOpts:{internal:{throwOnFailedPublish:!0},tvf:{correlationId:_.id}}}),yield s.setProposal(_.id,_),{uri:i,approval:P}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"pair",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{return yield s.client.core.pairing.pair(e)}catch(e){throw s.client.logger.error("pair() failed"),e}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"approve",(function(){var e=i(function*(e){var t,i,n,o=s.client.core.eventClient.createEvent({properties:{topic:null==(t=null==e?void 0:e.id)?void 0:t.toString(),trace:[r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started]}});try{s.isInitialized(),yield s.confirmOnlineStateOrThrow()}catch(e){throw o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.no_internet_connection),e}try{yield s.isValidProposalId(null==e?void 0:e.id)}catch(t){throw s.client.logger.error(`approve() -> proposal.get(${null==e?void 0:e.id}) failed`),o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.proposal_not_found),t}try{yield s.isValidApprove(e)}catch(e){throw s.client.logger.error("approve() -> isValidApprove() failed"),o.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.session_approve_namespace_validation_failure),e}var a=e.id,c=e.relayProtocol,l=e.namespaces,p=e.sessionProperties,u=e.scopedProperties,g=e.sessionConfig,y=s.client.proposal.get(a);s.client.core.eventClient.deleteEvent({eventId:o.eventId});var f=y.pairingTopic,h=y.proposer,v=y.requiredNamespaces,E=y.optionalNamespaces,m=null==(i=s.client.core.eventClient)?void 0:i.getEvent({topic:f});m||(m=null==(n=s.client.core.eventClient)?void 0:n.createEvent({type:r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started,properties:{topic:f,trace:[r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_started,r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_namespaces_validation_success]}}));var _=yield s.client.core.crypto.generateKeyPair(),S=h.publicKey,R=yield s.client.core.crypto.generateSharedKey(_,S),I=Y(Y(Y({relay:{protocol:null!=c?c:"irn"},namespaces:l,controller:{publicKey:_,metadata:s.client.metadata},expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)},p&&{sessionProperties:p}),u&&{scopedProperties:u}),g&&{sessionConfig:g}),T=r(d[12]).TRANSPORT_TYPES.relay;m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.subscribing_session_topic);try{yield s.client.core.relayer.subscribe(R,{transportType:T,internal:{skipSubscribe:!0}})}catch(e){throw m.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.subscribe_session_topic_failure),e}m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.subscribe_session_topic_success);var N=j(Y({},I),{topic:R,requiredNamespaces:v,optionalNamespaces:E,pairingTopic:f,acknowledged:!1,self:I.controller,peer:{publicKey:h.publicKey,metadata:h.metadata},controller:_,transportType:r(d[12]).TRANSPORT_TYPES.relay});yield s.client.session.set(R,N),m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.store_session);try{yield s.sendApproveSession({sessionTopic:R,proposal:y,pairingProposalResponse:{relay:{protocol:null!=c?c:"irn"},responderPublicKey:_},sessionSettleRequest:I,publishOpts:{internal:{throwOnFailedPublish:!0},tvf:{correlationId:a}}}),m.addTrace(r(d[12]).EVENT_CLIENT_SESSION_TRACES.session_approve_publish_success)}catch(e){throw s.client.logger.error(e),s.client.session.delete(R,r(d[11]).getSdkError("USER_DISCONNECTED")),yield s.client.core.relayer.unsubscribe(R),e}return s.client.core.eventClient.deleteEvent({eventId:m.eventId}),yield s.client.core.pairing.updateMetadata({topic:f,metadata:h.metadata}),yield s.deleteProposal(a),yield s.client.core.pairing.activate({topic:f}),yield s.setExpiry(R,r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)),{topic:R,acknowledged:function(){return Promise.resolve(s.client.session.get(R))}}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"reject",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidReject(e)}catch(e){throw s.client.logger.error("reject() -> isValidReject() failed"),e}var t,i=e.id,n=e.reason;try{t=s.client.proposal.get(i).pairingTopic}catch(e){throw s.client.logger.error(`reject() -> proposal.get(${i}) failed`),e}t&&(yield s.sendError({id:i,topic:t,error:n,rpcOpts:T.wc_sessionPropose.reject})),yield s.deleteProposal(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"update",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidUpdate(e)}catch(e){throw s.client.logger.error("update() -> isValidUpdate() failed"),e}var t=e.topic,i=e.namespaces,n=r(d[11]).createDelayedPromise(),o=n.done,a=n.resolve,c=n.reject,l=r(d[13]).payloadId(),p=r(d[13]).getBigIntRpcId().toString(),u=s.client.session.get(t).namespaces;return s.events.once(r(d[11]).engineEvent("session_update",l),function(e){var t=e.error;t?c(t):a()}),yield s.client.session.update(t,{namespaces:i}),yield s.sendRequest({topic:t,method:"wc_sessionUpdate",params:{namespaces:i},throwOnFailedPublish:!0,clientRpcId:l,relayRpcId:p}).catch(function(e){s.client.logger.error(e),s.client.session.update(t,{namespaces:u}),c(e)}),{acknowledged:o}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"extend",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidExtend(e)}catch(e){throw s.client.logger.error("extend() -> isValidExtend() failed"),e}var t=e.topic,i=r(d[13]).payloadId(),n=r(d[11]).createDelayedPromise(),o=n.done,a=n.resolve,c=n.reject;return s.events.once(r(d[11]).engineEvent("session_extend",i),function(e){var t=e.error;t?c(t):a()}),yield s.setExpiry(t,r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS)),s.sendRequest({topic:t,method:"wc_sessionExtend",params:{},clientRpcId:i,throwOnFailedPublish:!0}).catch(function(e){c(e)}),{acknowledged:o}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"request",(function(){var e=i(function*(e){s.isInitialized();try{yield s.isValidRequest(e)}catch(e){throw s.client.logger.error("request() -> isValidRequest() failed"),e}var t=e.chainId,n=e.request,o=e.topic,a=e.expiry,c=void 0===a?T.wc_sessionRequest.req.ttl:a,l=s.client.session.get(o);(null==l?void 0:l.transportType)===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var p=r(d[13]).payloadId(),u=r(d[13]).getBigIntRpcId().toString(),g=r(d[11]).createDelayedPromise(c,"Request expired. Please try again."),y=g.done,f=g.resolve,h=g.reject;s.events.once(r(d[11]).engineEvent("session_request",p),function(e){var t=e.error,i=e.result;t?h(t):f(i)});var v="wc_sessionRequest",E=s.getAppLinkIfEnabled(l.peer.metadata,l.transportType);if(E)return yield s.sendRequest({clientRpcId:p,relayRpcId:u,topic:o,method:v,params:{request:j(Y({},n),{expiryTimestamp:r(d[11]).calcExpiry(c)}),chainId:t},expiry:c,throwOnFailedPublish:!0,appLink:E}).catch(function(e){return h(e)}),s.client.events.emit("session_request_sent",{topic:o,request:n,chainId:t,id:p}),yield y();var _={request:j(Y({},n),{expiryTimestamp:r(d[11]).calcExpiry(c)}),chainId:t};return yield Promise.all([new Promise((function(){var e=i(function*(e){yield s.sendRequest({clientRpcId:p,relayRpcId:u,topic:o,method:v,params:_,expiry:c,throwOnFailedPublish:!0,tvf:s.getTVFParams(p,_)}).catch(function(e){return h(e)}),s.client.events.emit("session_request_sent",{topic:o,request:n,chainId:t,id:p}),e()});return function(t){return e.apply(this,arguments)}})()),new Promise((function(){var e=i(function*(e){var t;if(null==(t=l.sessionConfig)||!t.disableDeepLink){var i=yield r(d[11]).getDeepLink(s.client.core.storage,m);yield r(d[11]).handleDeeplinkRedirect({id:p,topic:o,wcDeepLink:i})}e()});return function(t){return e.apply(this,arguments)}})()),y()]).then(function(e){return e[2]})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"respond",(function(){var e=i(function*(e){s.isInitialized(),yield s.isValidRespond(e);var t=e.topic,i=e.response,n=i.id,o=s.client.session.get(t);o.transportType===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var a=s.getAppLinkIfEnabled(o.peer.metadata,o.transportType);r(d[13]).isJsonRpcResult(i)?yield s.sendResult({id:n,topic:t,result:i.result,throwOnFailedPublish:!0,appLink:a}):r(d[13]).isJsonRpcError(i)&&(yield s.sendError({id:n,topic:t,error:i.error,appLink:a})),s.cleanupAfterResponse(e)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"ping",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow();try{yield s.isValidPing(e)}catch(i){throw s.client.logger.error("ping() -> isValidPing() failed"),i}var t=e.topic;if(s.client.session.keys.includes(t)){var i=r(d[13]).payloadId(),n=r(d[13]).getBigIntRpcId().toString(),o=r(d[11]).createDelayedPromise(),a=o.done,c=o.resolve,l=o.reject;s.events.once(r(d[11]).engineEvent("session_ping",i),function(e){var t=e.error;t?l(t):c()}),yield Promise.all([s.sendRequest({topic:t,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:i,relayRpcId:n}),a()])}else s.client.core.pairing.pairings.keys.includes(t)&&(s.client.logger.warn("ping() on pairing topic is deprecated and will be removed in the next major release."),yield s.client.core.pairing.ping({topic:t}))});return function(t){return e.apply(this,arguments)}})()),G(o(s),"emit",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow(),yield s.isValidEmit(e);var t=e.topic,i=e.event,n=e.chainId,o=r(d[13]).getBigIntRpcId().toString(),a=r(d[13]).payloadId();yield s.sendRequest({topic:t,method:"wc_sessionEvent",params:{event:i,chainId:n},throwOnFailedPublish:!0,relayRpcId:o,clientRpcId:a})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"disconnect",(function(){var e=i(function*(e){s.isInitialized(),yield s.confirmOnlineStateOrThrow(),yield s.isValidDisconnect(e);var t=e.topic;if(s.client.session.keys.includes(t))yield s.sendRequest({topic:t,method:"wc_sessionDelete",params:r(d[11]).getSdkError("USER_DISCONNECTED"),throwOnFailedPublish:!0}),yield s.deleteSession({topic:t,emitEvent:!1});else{if(!s.client.core.pairing.pairings.keys.includes(t)){var i=r(d[11]).getInternalError("MISMATCHED_TOPIC",`Session or pairing topic not found: ${t}`).message;throw new Error(i)}yield s.client.core.pairing.disconnect({topic:t})}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"find",function(e){return s.isInitialized(),s.client.session.getAll().filter(function(t){return r(d[11]).isSessionCompatible(t,e)})}),G(o(s),"getPendingSessionRequests",function(){return s.client.pendingRequest.getAll()}),G(o(s),"authenticate",(function(){var e=i(function*(e,n){var o;s.isInitialized(),s.isValidAuthenticate(e);var a=n&&s.client.core.linkModeSupportedApps.includes(n)&&(null==(o=s.client.metadata.redirect)?void 0:o.linkMode),c=a?r(d[12]).TRANSPORT_TYPES.link_mode:r(d[12]).TRANSPORT_TYPES.relay;c===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var l=e.chains,p=e.statement,u=void 0===p?"":p,g=e.uri,y=e.domain,f=e.nonce,h=e.type,v=e.exp,E=e.nbf,m=e.methods,_=void 0===m?[]:m,S=e.expiry,R=t(e.resources||[]),I=yield s.client.core.pairing.create({methods:["wc_sessionAuthenticate"],transportType:c}),N=I.topic,w=I.uri;s.client.logger.info({message:"Generated new pairing",pairing:{topic:N,uri:w}});var P=yield s.client.core.crypto.generateKeyPair(),q=r(d[11]).hashKey(P);if(yield Promise.all([s.client.auth.authKeys.set(L,{responseTopic:q,publicKey:P}),s.client.auth.pairingTopics.set(q,{topic:q,pairingTopic:N})]),yield s.client.core.relayer.subscribe(q,{transportType:c}),s.client.logger.info(`sending request to new pairing topic: ${N}`),_.length>0){var O=r(d[11]).parseChainId(l[0]).namespace,A=r(d[11]).createEncodedRecap(O,"request",_);r(d[11]).getRecapFromResources(R)&&(A=r(d[11]).mergeEncodedRecaps(A,R.pop())),R.push(A)}var V,C=S&&S>T.wc_sessionAuthenticate.req.ttl?S:T.wc_sessionAuthenticate.req.ttl,b={authPayload:{type:null!=h?h:"caip122",chains:l,statement:u,aud:g,domain:y,version:"1",nonce:f,iat:(new Date).toISOString(),exp:v,nbf:E,resources:R},requester:{publicKey:P,metadata:s.client.metadata},expiryTimestamp:r(d[11]).calcExpiry(C)},x={requiredNamespaces:{},optionalNamespaces:{eip155:{chains:l,methods:t(new Set(["personal_sign"].concat(t(_)))),events:["chainChanged","accountsChanged"]}},relays:[{protocol:"irn"}],pairingTopic:N,proposer:{publicKey:P,metadata:s.client.metadata},expiryTimestamp:r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl),id:r(d[13]).payloadId()},k=r(d[11]).createDelayedPromise(C,"Request expired"),D=k.done,M=k.resolve,U=k.reject,$=r(d[13]).payloadId(),K=r(d[11]).engineEvent("session_connect",x.id),F=r(d[11]).engineEvent("session_request",$),G=(function(){var e=i(function*(e){var t=e.error,i=e.session;s.events.off(F,H),t?U(t):i&&M({session:i})});return function(t){return e.apply(this,arguments)}})(),H=(function(){var e=i(function*(e){var i,o,a;if(yield s.deletePendingAuthRequest($,{message:"fulfilled",code:0}),e.error){var l=r(d[11]).getSdkError("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate");return e.error.code===l.code?void 0:(s.events.off(K,G),U(e.error.message))}yield s.deleteProposal(x.id),s.events.off(K,G);var p=e.result,u=p.cacaos,g=p.responder,y=[],f=[];for(var h of u){(yield r(d[11]).validateSignedCacao({cacao:h,projectId:s.client.core.projectId}))||(s.client.logger.error(h,"Signature verification failed"),U(r(d[11]).getSdkError("SESSION_SETTLEMENT_FAILED","Signature verification failed")));var v=h.p,E=r(d[11]).getRecapFromResources(v.resources),m=[r(d[11]).getNamespacedDidChainId(v.iss)],_=r(d[11]).getDidAddress(v.iss);if(E){var S=r(d[11]).getMethodsFromRecap(E),R=r(d[11]).getChainsFromRecap(E);y.push.apply(y,t(S)),m.push.apply(m,t(R))}for(var I of m)f.push(`${I}:${_}`)}var T,w=yield s.client.core.crypto.generateSharedKey(P,g.publicKey);y.length>0&&(T={topic:w,acknowledged:!0,self:{publicKey:P,metadata:s.client.metadata},peer:g,controller:g.publicKey,expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:N,namespaces:r(d[11]).buildNamespacesFromAuth(t(new Set(y)),t(new Set(f))),transportType:c},yield s.client.core.relayer.subscribe(w,{transportType:c}),yield s.client.session.set(w,T),N&&(yield s.client.core.pairing.updateMetadata({topic:N,metadata:g.metadata})),T=s.client.session.get(w)),null!=(i=s.client.metadata.redirect)&&i.linkMode&&null!=(o=g.metadata.redirect)&&o.linkMode&&null!=(a=g.metadata.redirect)&&a.universal&&n&&(s.client.core.addLinkModeSupportedApp(g.metadata.redirect.universal),s.client.session.update(w,{transportType:r(d[12]).TRANSPORT_TYPES.link_mode})),M({auths:u,session:T})});return function(t){return e.apply(this,arguments)}})();s.events.once(K,G),s.events.once(F,H);try{if(a){var J=r(d[13]).formatJsonRpcRequest("wc_sessionAuthenticate",b,$);s.client.core.history.set(N,J);var Q=yield s.client.core.crypto.encode("",J,{type:r(d[11]).TYPE_2,encoding:r(d[11]).BASE64URL});V=r(d[11]).getLinkModeURL(n,N,Q)}else yield Promise.all([s.sendRequest({topic:N,method:"wc_sessionAuthenticate",params:b,expiry:e.expiry,throwOnFailedPublish:!0,clientRpcId:$}),s.sendRequest({topic:N,method:"wc_sessionPropose",params:x,expiry:T.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:x.id})])}catch(O){throw s.events.off(K,G),s.events.off(F,H),O}return yield s.setProposal(x.id,x),yield s.setAuthRequest($,{request:j(Y({},b),{verifyContext:{}}),pairingTopic:N,transportType:c}),{uri:null!=V?V:w,response:D}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"approveSessionAuthenticate",(function(){var e=i(function*(e){var i=e.id,n=e.auths,o=s.client.core.eventClient.createEvent({properties:{topic:i.toString(),trace:[r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.authenticated_session_approve_started]}});try{s.isInitialized()}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.no_internet_connection),h}var a=s.getPendingAuthRequest(i);if(!a)throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.authenticated_session_pending_request_not_found),new Error(`Could not find pending auth request with id ${i}`);var c=a.transportType||r(d[12]).TRANSPORT_TYPES.relay;c===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var l=a.requester.publicKey,p=yield s.client.core.crypto.generateKeyPair(),u=r(d[11]).hashKey(l),g={type:r(d[11]).TYPE_1,receiverPublicKey:l,senderPublicKey:p},y=[],f=[];for(var h of n){if(!(yield r(d[11]).validateSignedCacao({cacao:h,projectId:s.client.core.projectId}))){o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.invalid_cacao);var v=r(d[11]).getSdkError("SESSION_SETTLEMENT_FAILED","Signature verification failed");throw yield s.sendError({id:i,topic:u,error:v,encodeOpts:g}),new Error(v.message)}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.cacaos_verified);var E=h.p,m=r(d[11]).getRecapFromResources(E.resources),_=[r(d[11]).getNamespacedDidChainId(E.iss)],S=r(d[11]).getDidAddress(E.iss);if(m){var R=r(d[11]).getMethodsFromRecap(m),I=r(d[11]).getChainsFromRecap(m);y.push.apply(y,t(R)),_.push.apply(_,t(I))}for(var T of _)f.push(`${T}:${S}`)}var N,w=yield s.client.core.crypto.generateSharedKey(p,l);if(o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.create_authenticated_session_topic),(null==y?void 0:y.length)>0){N={topic:w,acknowledged:!0,self:{publicKey:p,metadata:s.client.metadata},peer:{publicKey:l,metadata:a.requester.metadata},controller:l,expiry:r(d[11]).calcExpiry(r(d[10]).SEVEN_DAYS),authentication:n,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:a.pairingTopic,namespaces:r(d[11]).buildNamespacesFromAuth(t(new Set(y)),t(new Set(f))),transportType:c},o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.subscribing_authenticated_session_topic);try{yield s.client.core.relayer.subscribe(w,{transportType:c})}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.subscribe_authenticated_session_topic_failure),h}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.subscribe_authenticated_session_topic_success),yield s.client.session.set(w,N),o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.store_authenticated_session),yield s.client.core.pairing.updateMetadata({topic:a.pairingTopic,metadata:a.requester.metadata})}o.addTrace(r(d[12]).EVENT_CLIENT_AUTHENTICATE_TRACES.publishing_authenticated_session_approve);try{yield s.sendResult({topic:u,id:i,result:{cacaos:n,responder:{publicKey:p,metadata:s.client.metadata}},encodeOpts:g,throwOnFailedPublish:!0,appLink:s.getAppLinkIfEnabled(a.requester.metadata,c)})}catch(h){throw o.setError(r(d[12]).EVENT_CLIENT_AUTHENTICATE_ERRORS.authenticated_session_approve_publish_failure),h}return yield s.client.auth.requests.delete(i,{message:"fulfilled",code:0}),yield s.client.core.pairing.activate({topic:a.pairingTopic}),s.client.core.eventClient.deleteEvent({eventId:o.eventId}),{session:N}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"rejectSessionAuthenticate",(function(){var e=i(function*(e){s.isInitialized();var t=e.id,i=e.reason,n=s.getPendingAuthRequest(t);if(!n)throw new Error(`Could not find pending auth request with id ${t}`);n.transportType===r(d[12]).TRANSPORT_TYPES.relay&&(yield s.confirmOnlineStateOrThrow());var o=n.requester.publicKey,a=yield s.client.core.crypto.generateKeyPair(),c=r(d[11]).hashKey(o),l={type:r(d[11]).TYPE_1,receiverPublicKey:o,senderPublicKey:a};yield s.sendError({id:t,topic:c,error:i,encodeOpts:l,rpcOpts:T.wc_sessionAuthenticate.reject,appLink:s.getAppLinkIfEnabled(n.requester.metadata,n.transportType)}),yield s.client.auth.requests.delete(t,{message:"rejected",code:0}),yield s.deleteProposal(t)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"formatAuthMessage",function(e){s.isInitialized();var t=e.request,i=e.iss;return r(d[11]).formatMessage(t,i)}),G(o(s),"processRelayMessageCache",function(){setTimeout(i(function*(){if(0!==s.relayMessageCache.length)for(;s.relayMessageCache.length>0;)try{var e=s.relayMessageCache.shift();e&&(yield s.onRelayMessage(e))}catch(e){s.client.logger.error(e)}}),50)}),G(o(s),"cleanupDuplicatePairings",(function(){var e=i(function*(e){if(e.pairingTopic)try{var t=s.client.core.pairing.pairings.get(e.pairingTopic),i=s.client.core.pairing.pairings.getAll().filter(function(i){var n,s;return(null==(n=i.peerMetadata)?void 0:n.url)&&(null==(s=i.peerMetadata)?void 0:s.url)===e.peer.metadata.url&&i.topic&&i.topic!==t.topic});if(0===i.length)return;s.client.logger.info(`Cleaning up ${i.length} duplicate pairing(s)`),yield Promise.all(i.map(function(e){return s.client.core.pairing.disconnect({topic:e.topic})})),s.client.logger.info("Duplicate pairings clean up finished")}catch(t){s.client.logger.error(t)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"deleteSession",(function(){var e=i(function*(e){var t,i=e.topic,n=e.expirerHasDeleted,o=void 0!==n&&n,a=e.emitEvent,c=void 0===a||a,l=e.id,p=void 0===l?0:l,u=s.client.session.get(i).self;yield s.client.core.relayer.unsubscribe(i),yield s.client.session.delete(i,r(d[11]).getSdkError("USER_DISCONNECTED")),s.addToRecentlyDeleted(i,"session"),s.client.core.crypto.keychain.has(u.publicKey)&&(yield s.client.core.crypto.deleteKeyPair(u.publicKey)),s.client.core.crypto.keychain.has(i)&&(yield s.client.core.crypto.deleteSymKey(i)),o||s.client.core.expirer.del(i),s.client.core.storage.removeItem(m).catch(function(e){return s.client.logger.warn(e)}),s.getPendingSessionRequests().forEach(function(e){e.topic===i&&s.deletePendingSessionRequest(e.id,r(d[11]).getSdkError("USER_DISCONNECTED"))}),i===(null==(t=s.sessionRequestQueue.queue[0])?void 0:t.topic)&&(s.sessionRequestQueue.state=w.idle),c&&s.client.events.emit("session_delete",{id:p,topic:i})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"deleteProposal",(function(){var e=i(function*(e,t){if(t)try{var i=s.client.proposal.get(e),n=s.client.core.eventClient.getEvent({topic:i.pairingTopic});null==n||n.setError(r(d[12]).EVENT_CLIENT_SESSION_ERRORS.proposal_expired)}catch(e){}yield Promise.all([s.client.proposal.delete(e,r(d[11]).getSdkError("USER_DISCONNECTED")),t?Promise.resolve():s.client.core.expirer.del(e)]),s.addToRecentlyDeleted(e,"proposal")});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"deletePendingSessionRequest",(function(){var e=i(function*(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];yield Promise.all([s.client.pendingRequest.delete(e,t),i?Promise.resolve():s.client.core.expirer.del(e)]),s.addToRecentlyDeleted(e,"request"),s.sessionRequestQueue.queue=s.sessionRequestQueue.queue.filter(function(t){return t.id!==e}),i&&(s.sessionRequestQueue.state=w.idle,s.client.events.emit("session_request_expire",{id:e}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"deletePendingAuthRequest",(function(){var e=i(function*(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];yield Promise.all([s.client.auth.requests.delete(e,t),i?Promise.resolve():s.client.core.expirer.del(e)])});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setExpiry",(function(){var e=i(function*(e,t){s.client.session.keys.includes(e)&&(s.client.core.expirer.set(e,t),yield s.client.session.update(e,{expiry:t}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setProposal",(function(){var e=i(function*(e,t){s.client.core.expirer.set(e,r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl)),yield s.client.proposal.set(e,t)});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setAuthRequest",(function(){var e=i(function*(e,t){var i=t.request,n=t.pairingTopic,o=t.transportType,a=void 0===o?r(d[12]).TRANSPORT_TYPES.relay:o;s.client.core.expirer.set(e,i.expiryTimestamp),yield s.client.auth.requests.set(e,{authPayload:i.authPayload,requester:i.requester,expiryTimestamp:i.expiryTimestamp,id:e,pairingTopic:n,verifyContext:i.verifyContext,transportType:a})});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"setPendingSessionRequest",(function(){var e=i(function*(e){var t=e.id,i=e.topic,n=e.params,o=e.verifyContext,a=n.request.expiryTimestamp||r(d[11]).calcExpiry(T.wc_sessionRequest.req.ttl);s.client.core.expirer.set(t,a),yield s.client.pendingRequest.set(t,{id:t,topic:i,params:n,verifyContext:o})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendRequest",(function(){var e=i(function*(e){var t,i,n=e.topic,o=e.method,a=e.params,c=e.expiry,l=e.relayRpcId,p=e.clientRpcId,u=e.throwOnFailedPublish,g=e.appLink,y=e.tvf,f=e.publishOpts,h=void 0===f?{}:f,v=r(d[13]).formatJsonRpcRequest(o,a,p),E=!!g;try{var m=E?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(n,v,{encoding:m})}catch(m){throw yield s.cleanup(),s.client.logger.error(`sendRequest() -> core.crypto.encode() for topic ${n} failed`),m}if(O.includes(o)){var _=r(d[11]).hashMessage(JSON.stringify(v)),S=r(d[11]).hashMessage(t);i=yield s.client.core.verify.register({id:S,decryptedId:_})}var R=Y(Y({},T[o].req),h);if(R.attestation=i,c&&(R.ttl=c),l&&(R.id=l),s.client.core.history.set(n,v),E){var I=r(d[11]).getLinkModeURL(g,n,t);yield _g4.Linking.openURL(I,s.client.name)}else R.tvf=j(Y({},y),{correlationId:v.id}),u?(R.internal=j(Y({},R.internal),{throwOnFailedPublish:!0}),yield s.client.core.relayer.publish(n,t,R)):s.client.core.relayer.publish(n,t,R).catch(function(e){return s.client.logger.error(e)});return v.id});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendProposeSession",(function(){var e=i(function*(e){var t=e.proposal,i=e.publishOpts,n=r(d[13]).formatJsonRpcRequest("wc_sessionPropose",t,t.id);s.client.core.history.set(t.pairingTopic,n);var o=yield s.client.core.crypto.encode(t.pairingTopic,n,{encoding:r(d[11]).BASE64}),a=r(d[11]).hashMessage(JSON.stringify(n)),c=r(d[11]).hashMessage(o),l=yield s.client.core.verify.register({id:c,decryptedId:a});yield s.client.core.relayer.publishCustom({payload:{pairingTopic:t.pairingTopic,sessionProposal:o},opts:j(Y({},i),{publishMethod:"wc_proposeSession",attestation:l})})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendApproveSession",(function(){var e=i(function*(e){var t=e.sessionTopic,i=e.pairingProposalResponse,n=e.proposal,o=e.sessionSettleRequest,a=e.publishOpts,c=r(d[13]).formatJsonRpcResult(n.id,i),l=yield s.client.core.crypto.encode(n.pairingTopic,c,{encoding:r(d[11]).BASE64}),p=r(d[13]).formatJsonRpcRequest("wc_sessionSettle",o,null==a?void 0:a.id),u=yield s.client.core.crypto.encode(t,p,{encoding:r(d[11]).BASE64});s.client.core.history.set(t,p),yield s.client.core.relayer.publishCustom({payload:{sessionTopic:t,pairingTopic:n.pairingTopic,sessionProposalResponse:l,sessionSettlementRequest:u},opts:j(Y({},a),{publishMethod:"wc_approveSession"})})});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendResult",(function(){var e=i(function*(e){var t,i,n,o=e.id,a=e.topic,c=e.result,l=e.throwOnFailedPublish,p=e.encodeOpts,u=e.appLink,g=r(d[13]).formatJsonRpcResult(o,c),y=u&&typeof(null==_g4?void 0:_g4.Linking)<"u";try{var f=y?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(a,g,j(Y({},p||{}),{encoding:f}))}catch(f){throw yield s.cleanup(),s.client.logger.error(`sendResult() -> core.crypto.encode() for topic ${a} failed`),f}try{var h=(i=yield s.client.core.history.get(a,o)).request;try{n=s.getTVFParams(o,h.params,c)}catch(m){s.client.logger.warn(`sendResult() -> getTVFParams() failed: ${null==m?void 0:m.message}`)}}catch(f){throw s.client.logger.error(`sendResult() -> history.get(${a}, ${o}) failed`),f}if(y){var v=r(d[11]).getLinkModeURL(u,a,t);yield _g4.Linking.openURL(v,s.client.name)}else{var E=i.request.method,m=T[E].res;m.tvf=j(Y({},n),{correlationId:o}),l?(m.internal=j(Y({},m.internal),{throwOnFailedPublish:!0}),yield s.client.core.relayer.publish(a,t,m)):s.client.core.relayer.publish(a,t,m).catch(function(e){return s.client.logger.error(e)})}yield s.client.core.history.resolve(g)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"sendError",(function(){var e=i(function*(e){var t,i,n=e.id,o=e.topic,a=e.error,c=e.encodeOpts,l=e.rpcOpts,p=e.appLink,u=r(d[13]).formatJsonRpcError(n,a),g=p&&typeof(null==_g4?void 0:_g4.Linking)<"u";try{var y=g?r(d[11]).BASE64URL:r(d[11]).BASE64;t=yield s.client.core.crypto.encode(o,u,j(Y({},c||{}),{encoding:y}))}catch(y){throw yield s.cleanup(),s.client.logger.error(`sendError() -> core.crypto.encode() for topic ${o} failed`),y}try{i=yield s.client.core.history.get(o,n)}catch(y){throw s.client.logger.error(`sendError() -> history.get(${o}, ${n}) failed`),y}if(g){var f=r(d[11]).getLinkModeURL(p,o,t);yield _g4.Linking.openURL(f,s.client.name)}else{var h=i.request.method,v=l||T[h].res;s.client.core.relayer.publish(o,t,v)}yield s.client.core.history.resolve(u)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"cleanup",i(function*(){var e=[],i=[];s.client.session.getAll().forEach(function(t){var i=!1;r(d[11]).isExpired(t.expiry)&&(i=!0),s.client.core.crypto.keychain.has(t.topic)||(i=!0),i&&e.push(t.topic)}),s.client.proposal.getAll().forEach(function(e){r(d[11]).isExpired(e.expiryTimestamp)&&i.push(e.id)}),yield Promise.all([].concat(t(e.map(function(e){return s.deleteSession({topic:e})})),t(i.map(function(e){return s.deleteProposal(e)}))))})),G(o(s),"onProviderMessageEvent",(function(){var e=i(function*(e){!s.initialized||s.relayMessageCache.length>0?s.relayMessageCache.push(e):yield s.onRelayMessage(e)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventRequest",(function(){var e=i(function*(e){s.requestQueue.queue.push(e),yield s.processRequestsQueue()});return function(t){return e.apply(this,arguments)}})()),G(o(s),"processRequestsQueue",i(function*(){if(s.requestQueue.state!==w.active){for(s.client.logger.info(`Request queue starting with ${s.requestQueue.queue.length} requests`);s.requestQueue.queue.length>0;){s.requestQueue.state=w.active;var e=s.requestQueue.queue.shift();if(e)try{yield s.processRequest(e)}catch(e){s.client.logger.warn(e)}}s.requestQueue.state=w.idle}else s.client.logger.info("Request queue already active, skipping...")})),G(o(s),"processRequest",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.attestation,o=e.transportType,a=e.encryptedId,c=i.method;if(!s.shouldIgnorePairingRequest({topic:t,requestMethod:c}))switch(c){case"wc_sessionPropose":return yield s.onSessionProposeRequest({topic:t,payload:i,attestation:n,encryptedId:a});case"wc_sessionSettle":return yield s.onSessionSettleRequest(t,i);case"wc_sessionUpdate":return yield s.onSessionUpdateRequest(t,i);case"wc_sessionExtend":return yield s.onSessionExtendRequest(t,i);case"wc_sessionPing":return yield s.onSessionPingRequest(t,i);case"wc_sessionDelete":return yield s.onSessionDeleteRequest(t,i);case"wc_sessionRequest":return yield s.onSessionRequest({topic:t,payload:i,attestation:n,encryptedId:a,transportType:o});case"wc_sessionEvent":return yield s.onSessionEventRequest(t,i);case"wc_sessionAuthenticate":return yield s.onSessionAuthenticateRequest({topic:t,payload:i,attestation:n,encryptedId:a,transportType:o});default:return s.client.logger.info(`Unsupported request method ${c}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventResponse",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.transportType,o=(yield s.client.core.history.get(t,i.id)).request.method;switch(o){case"wc_sessionPropose":return s.onSessionProposeResponse(t,i,n);case"wc_sessionSettle":return s.onSessionSettleResponse(t,i);case"wc_sessionUpdate":return s.onSessionUpdateResponse(t,i);case"wc_sessionExtend":return s.onSessionExtendResponse(t,i);case"wc_sessionPing":return s.onSessionPingResponse(t,i);case"wc_sessionRequest":return s.onSessionRequestResponse(t,i);case"wc_sessionAuthenticate":return s.onSessionAuthenticateResponse(t,i);default:return s.client.logger.info(`Unsupported response method ${o}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onRelayEventUnknownPayload",function(e){var t=e.topic,i=r(d[11]).getInternalError("MISSING_OR_INVALID",`Decoded payload on topic ${t} is not identifiable as a JSON-RPC request or a response.`).message;throw new Error(i)}),G(o(s),"shouldIgnorePairingRequest",function(e){var t=e.topic,i=e.requestMethod,n=s.expectedPairingMethodMap.get(t);return!(!n||n.includes(i))&&!!(n.includes("wc_sessionAuthenticate")&&s.client.events.listenerCount("session_authenticate")>0)}),G(o(s),"onSessionProposeRequest",(function(){var e=i(function*(e){var t=e.topic,i=e.payload,n=e.attestation,o=e.encryptedId,a=i.params,c=i.id;try{var l=s.client.core.eventClient.getEvent({topic:t});0===s.client.events.listenerCount("session_proposal")&&(console.warn("No listener for session_proposal event"),null!=l&&l.setError(r(d[12]).EVENT_CLIENT_PAIRING_ERRORS.proposal_listener_not_found)),s.isValidConnect(Y({},i.params));var p=a.expiryTimestamp||r(d[11]).calcExpiry(T.wc_sessionPropose.req.ttl),u=Y({id:c,pairingTopic:t,expiryTimestamp:p,attestation:n,encryptedId:o},a);yield s.setProposal(c,u);var g=yield s.getVerifyContext({attestationId:n,hash:r(d[11]).hashMessage(JSON.stringify(i)),encryptedId:o,metadata:u.proposer.metadata});null!=l&&l.addTrace(r(d[12]).EVENT_CLIENT_PAIRING_TRACES.emit_session_proposal),s.client.events.emit("session_proposal",{id:c,params:u,verifyContext:g})}catch(l){yield s.sendError({id:c,topic:t,error:l,rpcOpts:T.wc_sessionPropose.autoReject}),s.client.logger.error(l)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"onSessionProposeResponse",(function(){var e=i(function*(e,t,i){var n=t.id;if(r(d[13]).isJsonRpcResult(t)){var o=t.result;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:o});var a=s.client.proposal.get(n);s.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:a});var c=a.proposer.publicKey;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:c});var l=o.responderPublicKey;s.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:l});var p=yield s.client.core.crypto.generateSharedKey(c,l);s.pendingSessions.set(n,{sessionTopic:p,pairingTopic:e,proposalId:n,publicKey:c});var u=yield s.client.core.relayer.subscribe(p,{transportType:i});s.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:u}),yield s.client.core.pairing.activate({topic:e})}else if(r(d[13]).isJsonRpcError(t)){yield s.deleteProposal(n);var g=r(d[11]).engineEvent("session_connect",n);if(0===s.events.listenerCount(g))throw new Error(`emitting ${g} without any listeners, 954`);s.events.emit(g,{error:t.error})}});return function(t,i,n){return e.apply(this,arguments)}})()),G(o(s),"onSessionSettleRequest",(function(){var e=i(function*(e,i){var n=i.id,o=i.params;try{s.isValidSessionSettleRequest(o);var a=i.params,c=a.relay,l=a.controller,p=a.expiry,u=a.namespaces,g=a.sessionProperties,y=a.scopedProperties,f=a.sessionConfig,h=t(s.pendingSessions.values()).find(function(t){return t.sessionTopic===e});if(!h)return s.client.logger.error(`Pending session not found for topic ${e}`);var v=s.client.proposal.get(h.proposalId),E=j(Y(Y(Y({topic:e,relay:c,expiry:p,namespaces:u,acknowledged:!0,pairingTopic:h.pairingTopic,requiredNamespaces:v.requiredNamespaces,optionalNamespaces:v.optionalNamespaces,controller:l.publicKey,self:{publicKey:h.publicKey,metadata:s.client.metadata},peer:{publicKey:l.publicKey,metadata:l.metadata}},g&&{sessionProperties:g}),y&&{scopedProperties:y}),f&&{sessionConfig:f}),{transportType:r(d[12]).TRANSPORT_TYPES.relay});yield s.client.session.set(E.topic,E),yield s.setExpiry(E.topic,E.expiry),yield s.client.core.pairing.updateMetadata({topic:h.pairingTopic,metadata:E.peer.metadata}),s.client.events.emit("session_connect",{session:E}),s.events.emit(r(d[11]).engineEvent("session_connect",h.proposalId),{session:E}),s.pendingSessions.delete(h.proposalId),s.deleteProposal(h.proposalId,!1),s.cleanupDuplicatePairings(E),yield s.sendResult({id:i.id,topic:e,result:!0})}catch(c){yield s.sendError({id:n,topic:e,error:c}),s.client.logger.error(c)}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"onSessionSettleResponse",(function(){var e=i(function*(e,t){var i=t.id;r(d[13]).isJsonRpcResult(t)?(yield s.client.session.update(e,{acknowledged:!0}),s.events.emit(r(d[11]).engineEvent("session_approve",i),{})):r(d[13]).isJsonRpcError(t)&&(yield s.client.session.delete(e,r(d[11]).getSdkError("USER_DISCONNECTED")),s.events.emit(r(d[11]).engineEvent("session_approve",i),{error:t.error}))});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"onSessionUpdateRequest",(function(){var e=i(function*(e,t){var i=t.params,n=t.id;try{var o=`${e}_session_update`,a=r(d[11]).MemoryStore.get(o);if(a&&s.isRequestOutOfSync(a,n))return s.client.logger.warn(`Discarding out of sync request - ${n}`),void s.sendError({id:n,topic:e,error:r(d[11]).getSdkError("INVALID_UPDATE_REQUEST")});s.isValidUpdate(Y({topic:e},i));try{r(d[11]).MemoryStore.set(o,n),yield s.client.session.update(e,{namespaces:i.namespaces}),yield s.sendResult({id:n,topic:e,result:!0})}catch(e){throw r(d[11]).MemoryStore.delete(o),e}s.client.events.emit("session_update",{id:n,topic:e,params:i})}catch(o){yield s.sendError({id:n,topic:e,error:o}),s.client.logger.error(o)}});return function(t,i){return e.apply(this,arguments)}})()),G(o(s),"isRequestOutOfSync",function(e,t){return t.toString().slice(0,-3)0&&n.filter(function(e){return e.topic===t&&"wc_sessionRequest"===e.request.method}).forEach(function(e){var t=e.request.id,n=r(d[11]).engineEvent("session_request",t);if(0===s.events.listenerCount(n))throw new Error(`emitting ${n} without any listeners`);s.events.emit(r(d[11]).engineEvent("session_request",e.request.id),{error:i})})}),G(o(s),"processSessionRequestQueue",function(){if(s.sessionRequestQueue.state!==w.active){var e=s.sessionRequestQueue.queue[0];if(e)try{s.emitSessionRequest(e)}catch(e){s.client.logger.error(e)}else s.client.logger.info("session request queue is empty.")}else s.client.logger.info("session request queue is already active.")}),G(o(s),"emitSessionRequest",function(e){s.emittedSessionRequests.has(e.id)?s.client.logger.warn({id:e.id},`Skipping emitting \`session_request\` event for duplicate request. id: ${e.id}`):(s.sessionRequestQueue.state=w.active,s.emittedSessionRequests.add(e.id),s.client.events.emit("session_request",e))}),G(o(s),"onPairingCreated",function(e){if(e.methods&&s.expectedPairingMethodMap.set(e.topic,e.methods),!e.active){var t=s.client.proposal.getAll().find(function(t){return t.pairingTopic===e.topic});t&&s.onSessionProposeRequest({topic:e.topic,payload:r(d[13]).formatJsonRpcRequest("wc_sessionPropose",j(Y({},t),{requiredNamespaces:t.requiredNamespaces,optionalNamespaces:t.optionalNamespaces,relays:t.relays,proposer:t.proposer,sessionProperties:t.sessionProperties,scopedProperties:t.scopedProperties}),t.id),attestation:t.attestation,encryptedId:t.encryptedId})}}),G(o(s),"isValidConnect",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`connect() params: ${JSON.stringify(e)}`).message;throw new Error(t)}var i=e.pairingTopic,n=e.requiredNamespaces,o=e.optionalNamespaces,a=e.sessionProperties,c=e.scopedProperties,l=e.relays;if(r(d[11]).isUndefined(i)||(yield s.isValidPairingTopic(i)),!r(d[11]).isValidRelays(l,!0)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`connect() relays: ${l}`).message;throw new Error(p)}if(!r(d[11]).isUndefined(n)&&0!==r(d[11]).isValidObject(n)){var u="requiredNamespaces are deprecated and are automatically assigned to optionalNamespaces";["fatal","error","silent"].includes(s.client.logger.level)?console.warn(u):s.client.logger.warn(u),s.validateNamespaces(n,"requiredNamespaces")}if(!r(d[11]).isUndefined(o)&&0!==r(d[11]).isValidObject(o)&&s.validateNamespaces(o,"optionalNamespaces"),r(d[11]).isUndefined(a)||s.validateSessionProps(a,"sessionProperties"),!r(d[11]).isUndefined(c)){s.validateSessionProps(c,"scopedProperties");var g=Object.keys(n||{}).concat(Object.keys(o||{}));if(!Object.keys(c).every(function(e){return g.includes(e.split(":")[0])}))throw new Error(`Scoped properties must be a subset of required/optional namespaces, received: ${JSON.stringify(c)}, required/optional namespaces: ${JSON.stringify(g)}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"validateNamespaces",function(e,t){var i=r(d[11]).isValidRequiredNamespaces(e,"connect()",t);if(i)throw new Error(i.message)}),G(o(s),"isValidApprove",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e))throw new Error(r(d[11]).getInternalError("MISSING_OR_INVALID",`approve() params: ${e}`).message);var t=e.id,i=e.namespaces,n=e.relayProtocol,o=e.sessionProperties,a=e.scopedProperties;s.checkRecentlyDeleted(t),yield s.isValidProposalId(t);var c=s.client.proposal.get(t),l=r(d[11]).isValidNamespaces(i,"approve()");if(l)throw new Error(l.message);var p=r(d[11]).isConformingNamespaces(c.requiredNamespaces,i,"approve()");if(p)throw new Error(p.message);if(!r(d[11]).isValidString(n,!0)){var u=r(d[11]).getInternalError("MISSING_OR_INVALID",`approve() relayProtocol: ${n}`).message;throw new Error(u)}if(r(d[11]).isUndefined(o)||s.validateSessionProps(o,"sessionProperties"),!r(d[11]).isUndefined(a)){s.validateSessionProps(a,"scopedProperties");var g=new Set(Object.keys(i));if(!Object.keys(a).every(function(e){return g.has(e.split(":")[0])}))throw new Error(`Scoped properties must be a subset of approved namespaces, received: ${JSON.stringify(a)}, approved namespaces: ${Array.from(g).join(", ")}`)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidReject",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`reject() params: ${e}`).message;throw new Error(t)}var i=e.id,n=e.reason;if(s.checkRecentlyDeleted(i),yield s.isValidProposalId(i),!r(d[11]).isValidErrorReason(n)){var o=r(d[11]).getInternalError("MISSING_OR_INVALID",`reject() reason: ${JSON.stringify(n)}`).message;throw new Error(o)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidSessionSettleRequest",function(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`onSessionSettleRequest() params: ${e}`).message;throw new Error(t)}var i=e.relay,n=e.controller,s=e.namespaces,o=e.expiry;if(!r(d[11]).isValidRelay(i)){var a=r(d[11]).getInternalError("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string").message;throw new Error(a)}var c=r(d[11]).isValidController(n,"onSessionSettleRequest()");if(c)throw new Error(c.message);var l=r(d[11]).isValidNamespaces(s,"onSessionSettleRequest()");if(l)throw new Error(l.message);if(r(d[11]).isExpired(o)){var p=r(d[11]).getInternalError("EXPIRED","onSessionSettleRequest()").message;throw new Error(p)}}),G(o(s),"isValidUpdate",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`update() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.namespaces;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i);var o=s.client.session.get(i),a=r(d[11]).isValidNamespaces(n,"update()");if(a)throw new Error(a.message);var c=r(d[11]).isConformingNamespaces(o.requiredNamespaces,n,"update()");if(c)throw new Error(c.message)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidExtend",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`extend() params: ${e}`).message;throw new Error(t)}var i=e.topic;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidRequest",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.request,o=e.chainId,a=e.expiry;s.checkRecentlyDeleted(i),yield s.isValidSessionTopic(i);var c=s.client.session.get(i).namespaces;if(!r(d[11]).isValidNamespacesChainId(c,o)){var l=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() chainId: ${o}`).message;throw new Error(l)}if(!r(d[11]).isValidRequest(n)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() ${JSON.stringify(n)}`).message;throw new Error(p)}if(!r(d[11]).isValidNamespacesRequest(c,o,n.method)){var u=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() method: ${n.method}`).message;throw new Error(u)}if(a&&!r(d[11]).isValidRequestExpiry(a,N)){var g=r(d[11]).getInternalError("MISSING_OR_INVALID",`request() expiry: ${a}. Expiry must be a number (in seconds) between ${N.min} and ${N.max}`).message;throw new Error(g)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidRespond",(function(){var e=i(function*(e){var t;if(!r(d[11]).isValidParams(e)){var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`respond() params: ${e}`).message;throw new Error(i)}var n=e.topic,o=e.response;try{yield s.isValidSessionTopic(n)}catch(i){throw null!=(t=null==e?void 0:e.response)&&t.id&&s.cleanupAfterResponse(e),i}if(!r(d[11]).isValidResponse(o)){var a=r(d[11]).getInternalError("MISSING_OR_INVALID",`respond() response: ${JSON.stringify(o)}`).message;throw new Error(a)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidPing",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`ping() params: ${e}`).message;throw new Error(t)}var i=e.topic;yield s.isValidSessionOrPairingTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidEmit",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() params: ${e}`).message;throw new Error(t)}var i=e.topic,n=e.event,o=e.chainId;yield s.isValidSessionTopic(i);var a=s.client.session.get(i).namespaces;if(!r(d[11]).isValidNamespacesChainId(a,o)){var c=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() chainId: ${o}`).message;throw new Error(c)}if(!r(d[11]).isValidEvent(n)){var l=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`).message;throw new Error(l)}if(!r(d[11]).isValidNamespacesEvent(a,o,n.name)){var p=r(d[11]).getInternalError("MISSING_OR_INVALID",`emit() event: ${JSON.stringify(n)}`).message;throw new Error(p)}});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidDisconnect",(function(){var e=i(function*(e){if(!r(d[11]).isValidParams(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`disconnect() params: ${e}`).message;throw new Error(t)}var i=e.topic;yield s.isValidSessionOrPairingTopic(i)});return function(t){return e.apply(this,arguments)}})()),G(o(s),"isValidAuthenticate",function(e){var i=e.chains,n=e.uri,s=e.domain,o=e.nonce;if(!Array.isArray(i)||0===i.length)throw new Error("chains is required and must be a non-empty array");if(!r(d[11]).isValidString(n,!1))throw new Error("uri is required parameter");if(!r(d[11]).isValidString(s,!1))throw new Error("domain is required parameter");if(!r(d[11]).isValidString(o,!1))throw new Error("nonce is required parameter");if(t(new Set(i.map(function(e){return r(d[11]).parseChainId(e).namespace}))).length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");if("eip155"!==r(d[11]).parseChainId(i[0]).namespace)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")}),G(o(s),"getVerifyContext",(function(){var e=i(function*(e){var t=e.attestationId,i=e.hash,n=e.encryptedId,o=e.metadata,a=e.transportType,c={verified:{verifyUrl:o.verifyUrl||r(d[12]).VERIFY_SERVER,validation:"UNKNOWN",origin:o.url||""}};try{if(a===r(d[12]).TRANSPORT_TYPES.link_mode){var l=s.getAppLinkIfEnabled(o,a);return c.verified.validation=l&&new URL(l).origin===new URL(o.url).origin?"VALID":"INVALID",c}var p=yield s.client.core.verify.resolve({attestationId:t,hash:i,encryptedId:n,verifyUrl:o.verifyUrl});p&&(c.verified.origin=p.origin,c.verified.isScam=p.isScam,c.verified.validation=p.origin===new URL(o.url).origin?"VALID":"INVALID")}catch(p){s.client.logger.warn(p)}return s.client.logger.debug(`Verify context: ${JSON.stringify(c)}`),c});return function(t){return e.apply(this,arguments)}})()),G(o(s),"validateSessionProps",function(e,t){Object.values(e).forEach(function(i,n){if(null==i){var s=r(d[11]).getInternalError("MISSING_OR_INVALID",`${t} must contain an existing value for each key. Received: ${i} for key ${Object.keys(e)[n]}`).message;throw new Error(s)}})}),G(o(s),"getPendingAuthRequest",function(e){var t=s.client.auth.requests.get(e);return"object"==typeof t?t:void 0}),G(o(s),"addToRecentlyDeleted",function(e,t){if(s.recentlyDeletedMap.set(e,t),s.recentlyDeletedMap.size>=s.recentlyDeletedLimit){var i=0,n=s.recentlyDeletedLimit/2;for(var o of s.recentlyDeletedMap.keys()){if(i++>=n)break;s.recentlyDeletedMap.delete(o)}}}),G(o(s),"checkRecentlyDeleted",function(e){var t=s.recentlyDeletedMap.get(e);if(t){var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`Record was recently deleted - ${t}: ${e}`).message;throw new Error(i)}}),G(o(s),"isLinkModeEnabled",function(e,t){var i,n,o,a,c,l,p,u,g;return!(!e||t!==r(d[12]).TRANSPORT_TYPES.link_mode)&&(!0===(null==(n=null==(i=s.client.metadata)?void 0:i.redirect)?void 0:n.linkMode)&&void 0!==(null==(a=null==(o=s.client.metadata)?void 0:o.redirect)?void 0:a.universal)&&""!==(null==(l=null==(c=s.client.metadata)?void 0:c.redirect)?void 0:l.universal)&&void 0!==(null==(p=null==e?void 0:e.redirect)?void 0:p.universal)&&""!==(null==(u=null==e?void 0:e.redirect)?void 0:u.universal)&&!0===(null==(g=null==e?void 0:e.redirect)?void 0:g.linkMode)&&s.client.core.linkModeSupportedApps.includes(e.redirect.universal)&&typeof(null==_g4?void 0:_g4.Linking)<"u")}),G(o(s),"getAppLinkIfEnabled",function(e,t){var i;return s.isLinkModeEnabled(e,t)?null==(i=null==e?void 0:e.redirect)?void 0:i.universal:void 0}),G(o(s),"handleLinkModeMessage",function(e){var t=e.url;if(t&&t.includes("wc_ev")&&t.includes("topic")){var i=r(d[11]).getSearchParamFromURL(t,"topic")||"",n=decodeURIComponent(r(d[11]).getSearchParamFromURL(t,"wc_ev")||""),o=s.client.session.keys.includes(i);o&&s.client.session.update(i,{transportType:r(d[12]).TRANSPORT_TYPES.link_mode}),s.client.core.dispatchEnvelope({topic:i,message:n,sessionExists:o})}}),G(o(s),"registerLinkModeListeners",i(function*(){var e;if(r(d[11]).isTestRun()||r(d[11]).isReactNative()&&null!=(e=s.client.metadata.redirect)&&e.linkMode){var t=null==_g4?void 0:_g4.Linking;if(typeof t<"u"){t.addEventListener("url",s.handleLinkModeMessage,s.client.name);var i=yield t.getInitialURL();i&&setTimeout(function(){s.handleLinkModeMessage({url:i})},50)}}})),G(o(s),"getTVFParams",function(e,t,i){var n,o,a;if(null==(n=t.request)||!n.method)return{};var c={correlationId:e,rpcMethods:[t.request.method],chainId:t.chainId};try{var l=s.extractTxHashesFromResult(t.request,i);c.txHashes=l,c.contractAddresses=s.isValidContractData(t.request.params)?[null==(a=null==(o=t.request.params)?void 0:o[0])?void 0:a.to]:[]}catch(l){s.client.logger.warn("Error getting TVF params",l)}return c}),G(o(s),"isValidContractData",function(e){var t;if(!e)return!1;try{var i=(null==e?void 0:e.data)||(null==(t=null==e?void 0:e[0])?void 0:t.data);if(!i.startsWith("0x"))return!1;var n=i.slice(2);return!!/^[0-9a-fA-F]*$/.test(n)&&n.length%2==0}catch(e){}return!1}),G(o(s),"extractTxHashesFromResult",function(e,t){var i;try{if(!t)return[];var n=e.method,o=P[n];if("sui_signTransaction"===n)return[r(d[11]).getSuiDigest(t.transactionBytes)];if("near_signTransaction"===n)return[r(d[11]).getNearTransactionIdFromSignedTransaction(t)];if("near_signTransactions"===n)return t.map(function(e){return r(d[11]).getNearTransactionIdFromSignedTransaction(e)});if("xrpl_signTransactionFor"===n||"xrpl_signTransaction"===n)return[null==(i=t.tx_json)?void 0:i.hash];if("polkadot_signTransaction"===n)return[r(d[11]).buildSignedExtrinsicHash({transaction:e.params.transactionPayload,signature:t.signature})];if("algo_signTxn"===n)return r(d[11]).isValidArray(t)?t.map(function(e){return r(d[11]).getAlgorandTransactionId(e)}):[r(d[11]).getAlgorandTransactionId(t)];if("cosmos_signDirect"===n)return[r(d[11]).getSignDirectHash(t)];if("wallet_sendCalls"===n)return r(d[11]).getWalletSendCallsHashes(t);if("string"==typeof t)return[t];var a=t[o.key];if(r(d[11]).isValidArray(a))return"solana_signAllTransactions"===n?a.map(function(e){return r(d[11]).extractSolanaTransactionId(e)}):a;if("string"==typeof a)return[a]}catch(n){s.client.logger.warn("Error extracting tx hashes from result",n)}return[]}),s}return l(c,a),s(c,[{key:"processPendingMessageEvents",value:(E=i(function*(){try{var t=this.client.session.keys,i=this.client.core.relayer.messages.getWithoutAck(t);for(var n of Object.entries(i)){var s=e(n,2),o=s[0],a=s[1];for(var c of a)try{yield this.onProviderMessageEvent({topic:o,message:c,publishedAt:Date.now()})}catch(e){this.client.logger.warn(`Error processing pending message event for topic: ${o}, message: ${c}`)}}}catch(t){this.client.logger.warn("processPendingMessageEvents failed",t)}}),function(){return E.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=r(d[11]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"confirmOnlineStateOrThrow",value:(v=i(function*(){yield this.client.core.relayer.confirmOnlineStateOrThrow()}),function(){return v.apply(this,arguments)})},{key:"registerRelayerEvents",value:function(){var e=this;this.client.core.relayer.on(r(d[12]).RELAYER_EVENTS.message,function(t){e.onProviderMessageEvent(t)})}},{key:"onRelayMessage",value:(h=i(function*(e){var t=e.topic,i=e.message,n=e.attestation,s=e.transportType,o=(this.client.auth.authKeys.keys.includes(L)?this.client.auth.authKeys.get(L):{responseTopic:void 0,publicKey:void 0}).publicKey;try{var a=yield this.client.core.crypto.decode(t,i,{receiverPublicKey:o,encoding:s===r(d[12]).TRANSPORT_TYPES.link_mode?r(d[11]).BASE64URL:r(d[11]).BASE64});r(d[13]).isJsonRpcRequest(a)?(this.client.core.history.set(t,a),yield this.onRelayEventRequest({topic:t,payload:a,attestation:n,transportType:s,encryptedId:r(d[11]).hashMessage(i)})):r(d[13]).isJsonRpcResponse(a)?(yield this.client.core.history.resolve(a),yield this.onRelayEventResponse({topic:t,payload:a,transportType:s}),this.client.core.history.delete(t,a.id)):yield this.onRelayEventUnknownPayload({topic:t,payload:a,transportType:s}),yield this.client.core.relayer.messages.ack(t,i)}catch(a){this.client.logger.error(a)}}),function(e){return h.apply(this,arguments)})},{key:"registerExpirerEvents",value:function(){var e=this;this.client.core.expirer.on(r(d[12]).EXPIRER_EVENTS.expired,(function(){var t=i(function*(t){var i=r(d[11]).parseExpirerTarget(t.target),n=i.topic,s=i.id;return s&&e.client.pendingRequest.keys.includes(s)?yield e.deletePendingSessionRequest(s,r(d[11]).getInternalError("EXPIRED"),!0):s&&e.client.auth.requests.keys.includes(s)?yield e.deletePendingAuthRequest(s,r(d[11]).getInternalError("EXPIRED"),!0):void(n?e.client.session.keys.includes(n)&&(yield e.deleteSession({topic:n,expirerHasDeleted:!0}),e.client.events.emit("session_expire",{topic:n})):s&&(yield e.deleteProposal(s,!0),e.client.events.emit("proposal_expire",{id:s})))});return function(e){return t.apply(this,arguments)}})())}},{key:"registerPairingEvents",value:function(){var e=this;this.client.core.pairing.events.on(r(d[12]).PAIRING_EVENTS.create,function(t){return e.onPairingCreated(t)}),this.client.core.pairing.events.on(r(d[12]).PAIRING_EVENTS.delete,function(t){e.addToRecentlyDeleted(t.topic,"pairing")})}},{key:"isValidPairingTopic",value:function(e){if(!r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`pairing topic should be a string: ${e}`).message;throw new Error(t)}if(!this.client.core.pairing.pairings.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`pairing topic doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.core.pairing.pairings.get(e).expiry)){var n=r(d[11]).getInternalError("EXPIRED",`pairing topic: ${e}`).message;throw new Error(n)}}},{key:"isValidSessionTopic",value:(f=i(function*(e){if(!r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`session topic should be a string: ${e}`).message;throw new Error(t)}if(this.checkRecentlyDeleted(e),!this.client.session.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`session topic doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.session.get(e).expiry)){yield this.deleteSession({topic:e});var n=r(d[11]).getInternalError("EXPIRED",`session topic: ${e}`).message;throw new Error(n)}if(!this.client.core.crypto.keychain.has(e)){var s=r(d[11]).getInternalError("MISSING_OR_INVALID",`session topic does not exist in keychain: ${e}`).message;throw yield this.deleteSession({topic:e}),new Error(s)}}),function(e){return f.apply(this,arguments)})},{key:"isValidSessionOrPairingTopic",value:(g=i(function*(e){if(this.checkRecentlyDeleted(e),this.client.session.keys.includes(e))yield this.isValidSessionTopic(e);else{if(!this.client.core.pairing.pairings.keys.includes(e)){if(r(d[11]).isValidString(e,!1)){var t=r(d[11]).getInternalError("NO_MATCHING_KEY",`session or pairing topic doesn't exist: ${e}`).message;throw new Error(t)}var i=r(d[11]).getInternalError("MISSING_OR_INVALID",`session or pairing topic should be a string: ${e}`).message;throw new Error(i)}this.isValidPairingTopic(e)}}),function(e){return g.apply(this,arguments)})},{key:"isValidProposalId",value:(u=i(function*(e){if(!r(d[11]).isValidId(e)){var t=r(d[11]).getInternalError("MISSING_OR_INVALID",`proposal id should be a number: ${e}`).message;throw new Error(t)}if(!this.client.proposal.keys.includes(e)){var i=r(d[11]).getInternalError("NO_MATCHING_KEY",`proposal id doesn't exist: ${e}`).message;throw new Error(i)}if(r(d[11]).isExpired(this.client.proposal.get(e).expiryTimestamp)){yield this.deleteProposal(e);var n=r(d[11]).getInternalError("EXPIRED",`proposal id: ${e}`).message;throw new Error(n)}}),function(e){return u.apply(this,arguments)})}]);var u,g,f,h,v,E})(r(d[14]).IEngine),J=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,_,v])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),Q=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,R,v])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),z=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,q,v,function(e){return e.id}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),X=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,V,x,function(){return L}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),B=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,C,x])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),W=(function(e){function t(e,i){var s;return n(this,t),(s=p(this,t,[e,i,b,x,function(e){return e.id}])).core=e,s.logger=i,s}return l(t,e),s(t)})(r(d[12]).Store),Z=Object.defineProperty,ee=function(e,t,i){return t in e?Z(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},te=function(e,t,i){return ee(e,"symbol"!=typeof t?t+"":t,i)},re=(function(){return s(function e(t,i){n(this,e),this.core=t,this.logger=i,te(this,"authKeys"),te(this,"pairingTopics"),te(this,"requests"),this.authKeys=new X(this.core,this.logger),this.pairingTopics=new B(this.core,this.logger),this.requests=new W(this.core,this.logger)},[{key:"init",value:(e=i(function*(){yield this.authKeys.init(),yield this.pairingTopics.init(),yield this.requests.init()}),function(){return e.apply(this,arguments)})}]);var e})(),ie=Object.defineProperty,ne=function(e,t,i){return t in e?ie(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},se=function(e,t,i){return ne(e,"symbol"!=typeof t?t+"":t,i)},oe=(function(e){function t(e){var s;n(this,t),s=p(this,t,[e]),se(o(s),"protocol",f),se(o(s),"version",2),se(o(s),"name",E.name),se(o(s),"metadata"),se(o(s),"core"),se(o(s),"logger"),se(o(s),"events",new(r(d[9]).EventEmitter)),se(o(s),"engine"),se(o(s),"session"),se(o(s),"proposal"),se(o(s),"pendingRequest"),se(o(s),"auth"),se(o(s),"signConfig"),se(o(s),"on",function(e,t){return s.events.on(e,t)}),se(o(s),"once",function(e,t){return s.events.once(e,t)}),se(o(s),"off",function(e,t){return s.events.off(e,t)}),se(o(s),"removeListener",function(e,t){return s.events.removeListener(e,t)}),se(o(s),"removeAllListeners",function(e){return s.events.removeAllListeners(e)}),se(o(s),"connect",(function(){var e=i(function*(e){try{return yield s.engine.connect(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"pair",(function(){var e=i(function*(e){try{return yield s.engine.pair(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"approve",(function(){var e=i(function*(e){try{return yield s.engine.approve(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"reject",(function(){var e=i(function*(e){try{return yield s.engine.reject(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"update",(function(){var e=i(function*(e){try{return yield s.engine.update(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"extend",(function(){var e=i(function*(e){try{return yield s.engine.extend(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"request",(function(){var e=i(function*(e){try{return yield s.engine.request(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"respond",(function(){var e=i(function*(e){try{return yield s.engine.respond(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"ping",(function(){var e=i(function*(e){try{return yield s.engine.ping(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"emit",(function(){var e=i(function*(e){try{return yield s.engine.emit(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"disconnect",(function(){var e=i(function*(e){try{return yield s.engine.disconnect(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"find",function(e){try{return s.engine.find(e)}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"getPendingSessionRequests",function(){try{return s.engine.getPendingSessionRequests()}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"authenticate",(function(){var e=i(function*(e,t){try{return yield s.engine.authenticate(e,t)}catch(e){throw s.logger.error(e.message),e}});return function(t,i){return e.apply(this,arguments)}})()),se(o(s),"formatAuthMessage",function(e){try{return s.engine.formatAuthMessage(e)}catch(e){throw s.logger.error(e.message),e}}),se(o(s),"approveSessionAuthenticate",(function(){var e=i(function*(e){try{return yield s.engine.approveSessionAuthenticate(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),se(o(s),"rejectSessionAuthenticate",(function(){var e=i(function*(e){try{return yield s.engine.rejectSessionAuthenticate(e)}catch(e){throw s.logger.error(e.message),e}});return function(t){return e.apply(this,arguments)}})()),s.name=(null==e?void 0:e.name)||E.name,s.metadata=r(d[11]).populateAppMetadata(null==e?void 0:e.metadata),s.signConfig=null==e?void 0:e.signConfig;var a=typeof(null==e?void 0:e.logger)<"u"&&"string"!=typeof(null==e?void 0:e.logger)?e.logger:r(d[15]).pino(r(d[15]).getDefaultLoggerOptions({level:(null==e?void 0:e.logger)||E.logger}));return s.core=(null==e?void 0:e.core)||new(r(d[12]).Core)(e),s.logger=r(d[15]).generateChildLogger(a,s.name),s.session=new Q(s.core,s.logger),s.proposal=new J(s.core,s.logger),s.pendingRequest=new z(s.core,s.logger),s.engine=new H(s),s.auth=new re(s.core,s.logger),s}return l(t,e),s(t,[{key:"context",get:function(){return r(d[15]).getLoggerContext(this.logger)}},{key:"pairing",get:function(){return this.core.pairing.pairings}},{key:"initialize",value:(c=i(function*(){this.logger.trace("Initialized");try{yield this.core.start(),yield this.session.init(),yield this.proposal.init(),yield this.pendingRequest.init(),yield this.auth.init(),yield this.engine.init(),this.logger.info("SignClient Initialization Success")}catch(e){throw this.logger.info("SignClient Initialization Failure"),this.logger.error(e.message),e}}),function(){return c.apply(this,arguments)})}],[{key:"init",value:(a=i(function*(e){var i=new t(e);return yield i.initialize(),i}),function(e){return a.apply(this,arguments)})}]);var a,c})(r(d[14]).ISignClient),ae=Q,ce=oe;_e2.AUTH_CONTEXT=A,_e2.AUTH_KEYS_CONTEXT=V,_e2.AUTH_PAIRING_TOPIC_CONTEXT=C,_e2.AUTH_PROTOCOL="wc",_e2.AUTH_PUBLIC_KEY_NAME=L,_e2.AUTH_REQUEST_CONTEXT=b,_e2.AUTH_STORAGE_PREFIX=x,_e2.AUTH_VERSION=1.5,_e2.ENGINE_CONTEXT=I,_e2.ENGINE_QUEUE_STATES=w,_e2.ENGINE_RPC_OPTS=T,_e2.HISTORY_CONTEXT="history",_e2.HISTORY_EVENTS={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},_e2.HISTORY_STORAGE_VERSION="0.3",_e2.METHODS_TO_VERIFY=O,_e2.PROPOSAL_CONTEXT=_,_e2.PROPOSAL_EXPIRY=r(d[10]).THIRTY_DAYS,_e2.PROPOSAL_EXPIRY_MESSAGE=S,_e2.REQUEST_CONTEXT=q,_e2.SESSION_CONTEXT=R,_e2.SESSION_EXPIRY=r(d[10]).SEVEN_DAYS,_e2.SESSION_REQUEST_EXPIRY_BOUNDARIES=N,_e2.SIGN_CLIENT_CONTEXT=h,_e2.SIGN_CLIENT_DEFAULT=E,_e2.SIGN_CLIENT_EVENTS={session_proposal:"session_proposal",session_update:"session_update",session_extend:"session_extend",session_ping:"session_ping",session_delete:"session_delete",session_expire:"session_expire",session_request:"session_request",session_request_sent:"session_request_sent",session_event:"session_event",proposal_expire:"proposal_expire",session_authenticate:"session_authenticate",session_request_expire:"session_request_expire",session_connect:"session_connect"},_e2.SIGN_CLIENT_PROTOCOL=f,_e2.SIGN_CLIENT_STORAGE_OPTIONS={database:":memory:"},_e2.SIGN_CLIENT_STORAGE_PREFIX=v,_e2.SIGN_CLIENT_VERSION=2,_e2.SessionStore=ae,_e2.SignClient=ce,_e2.TVF_METHODS=P,_e2.WALLETCONNECT_DEEPLINK_CHOICE=m,_e2.default=oe},1834,[19,32,367,3,4,10,9,11,12,1644,1390,1384,1835,1845,1861,1858]); +__d(function(_g3,_r2,_i2,_a5,m,_e,_d){"use strict";var e=_r2(_d[0]),t=_r2(_d[1]),r=_r2(_d[2]),i=_r2(_d[3]),n=_r2(_d[4]),o=_r2(_d[5]),s=_r2(_d[6]),a=_r2(_d[7]),c=_r2(_d[8]),l=_r2(_d[9]);function u(e,t,r){return t=n(t),i(e,p()?Reflect.construct(t,r||[],n(e).constructor):t.apply(e,r))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(_e,"__esModule",{value:!0});var g=d(_r2(_d[10])),h=d(_r2(_d[11])),f=(function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(r){if("default"!==r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}}),t.default=e,Object.freeze(t)})(_r2(_d[12])),y=d(_r2(_d[13])),v="wc",b="core",_=`${v}@2:${b}:`,E={name:b,logger:"error"},I={database:":memory:"},w="crypto",T="client_ed25519_seed",P="keychain",S="messages",k="publisher",O="error",R="wss://relay.walletconnect.org",x="relayer",C={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},A="_subscription",N={payload:"payload",connect:"connect",disconnect:"disconnect",error:"error"},L="2.21.10",D={link_mode:"link_mode",relay:"relay"},z={inbound:"inbound",outbound:"outbound"},j="WALLETCONNECT_CLIENT_ID",M="WALLETCONNECT_LINK_MODE_APPS",U={created:"subscription_created",deleted:"subscription_deleted",expired:"subscription_expired",disabled:"subscription_disabled",sync:"subscription_sync",resubscribed:"subscription_resubscribed"},K="subscription",$=1e3*_r2(_d[14]).FIVE_SECONDS,V="pairing",B={wc_pairingDelete:{req:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:1e3},res:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:_r2(_d[14]).THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:_r2(_d[14]).THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:0},res:{ttl:_r2(_d[14]).ONE_DAY,prompt:!1,tag:0}}},q={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},F={created:"history_created",updated:"history_updated",deleted:"history_deleted",sync:"history_sync"},G="history",H="expirer",Y={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},J="verify-api",W="https://verify.walletconnect.org",X=W,Z=`${X}/v3`,Q=["https://verify.walletconnect.com",W],ee="echo",te="https://echo.walletconnect.com",re={pairing_started:"pairing_started",pairing_uri_validation_success:"pairing_uri_validation_success",pairing_uri_not_expired:"pairing_uri_not_expired",store_new_pairing:"store_new_pairing",subscribing_pairing_topic:"subscribing_pairing_topic",subscribe_pairing_topic_success:"subscribe_pairing_topic_success",existing_pairing:"existing_pairing",pairing_not_expired:"pairing_not_expired",emit_inactive_pairing:"emit_inactive_pairing",emit_session_proposal:"emit_session_proposal",subscribing_to_pairing_topic:"subscribing_to_pairing_topic"},ie={no_wss_connection:"no_wss_connection",no_internet_connection:"no_internet_connection",malformed_pairing_uri:"malformed_pairing_uri",active_pairing_already_exists:"active_pairing_already_exists",subscribe_pairing_topic_failure:"subscribe_pairing_topic_failure",pairing_expired:"pairing_expired",proposal_expired:"proposal_expired",proposal_listener_not_found:"proposal_listener_not_found"},ne="event-client",oe="https://pulse.walletconnect.org/batch";var se=function(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),i=0;i>>0,s=new Uint8Array(o);e[t];){var u=r[e.charCodeAt(t)];if(255===u)return;for(var p=0,d=o-1;(0!==u||p>>0,s[d]=u%256>>>0,u=u/256>>>0;if(0!==u)throw new Error("Non-zero carry");n=p,t++}if(" "!==e[t]){for(var g=o-n;g!==o&&0===s[g];)g++;for(var h=new Uint8Array(i+(o-g)),f=i;g!==o;)h[f++]=s[g++];return h}}}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===t.length)return"";for(var r=0,i=0,n=0,o=t.length;n!==o&&0===t[n];)n++,r++;for(var s=(o-n)*u+1>>>0,l=new Uint8Array(s);n!==o;){for(var p=t[n],d=0,g=s-1;(0!==p||d>>0,l[g]=p%a>>>0,p=p/a>>>0;if(0!==p)throw new Error("Non-zero carry");i=d,n++}for(var h=s-i;h!==s&&0===l[h];)h++;for(var f=c.repeat(r);h=8&&(c-=8,a[u++]=255&l>>c)}if(c>=r||255&l<<8-c)throw new SyntaxError("Unexpected end of data");return a},be=function(e,t,r){for(var i="="===t[t.length-1],n=(1<r;)o+=t[n&a>>(s-=r)];if(s&&(o+=t[n&a<=at;)r[i++]=255&t|ot,t/=128;for(;t&st;)r[i++]=255&t|ot,t>>>=7;return r[i]=0|t,e.bytes=i-n+1,r},ot=128,st=-128,at=Math.pow(2,31);var ct=function e(t,r){var i,n=0,o=0,s=r=r||0,a=t.length;do{if(s>=a)throw e.bytes=0,new RangeError("Could not decode varint");i=t[s++],n+=o<28?(i&ut)<=lt);return e.bytes=s-r,n},lt=128,ut=127;var pt=Math.pow(2,7),dt=Math.pow(2,14),gt=Math.pow(2,21),ht=Math.pow(2,28),ft=Math.pow(2,35),yt=Math.pow(2,42),vt=Math.pow(2,49),bt=Math.pow(2,56),mt=Math.pow(2,63),_t={encode:nt,decode:ct,encodingLength:function(e){return e2&&void 0!==arguments[2]?arguments[2]:0;return _t.encode(e,t,r),t},It=function(e){return _t.encodingLength(e)},wt=function(e,t){var r=t.byteLength,i=It(e),n=i+It(r),o=new Uint8Array(n+r);return Et(e,o,0),Et(r,o,i),o.set(t,n),new Tt(e,r,t,o)},Tt=l(function e(t,r,i,n){c(this,e),this.code=t,this.size=r,this.digest=i,this.bytes=n}),Pt=function(e){var t=e.name,r=e.code,i=e.encode;return new St(t,r,i)},St=(function(){return l(function e(t,r,i){c(this,e),this.name=t,this.code=r,this.encode=i},[{key:"digest",value:function(e){var t=this;if(e instanceof Uint8Array){var r=this.encode(e);return r instanceof Uint8Array?wt(this.code,r):r.then(function(e){return wt(t.code,e)})}throw Error("Unknown type, must be binary type")}}])})(),kt=function(e){return(function(){var t=s(function*(t){return new Uint8Array(yield crypto.subtle.digest(e,t))});return function(e){return t.apply(this,arguments)}})()},Ot=Pt({name:"sha2-256",code:18,encode:kt("SHA-256")}),Rt=Pt({name:"sha2-512",code:19,encode:kt("SHA-512")}),xt=Object.freeze({__proto__:null,sha256:Ot,sha512:Rt}),Ct=ae,At={code:0,name:"identity",encode:Ct,digest:function(e){return wt(0,Ct(e))}},Nt=Object.freeze({__proto__:null,identity:At});new TextEncoder,new TextDecoder;var Lt=Object.assign({},Ie,Te,Se,Oe,Ce,$e,qe,He,Ze,it);function Dt(e){return null!=globalThis.Buffer?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function zt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?Dt(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function jt(e,t,r,i){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:i}}}Object.assign({},xt,Nt);var Mt=jt("utf8","u",function(e){return"u"+new TextDecoder("utf8").decode(e)},function(e){return(new TextEncoder).encode(e.substring(1))}),Ut=jt("ascii","a",function(e){for(var t="a",r=0;r1&&void 0!==arguments[1]?arguments[1]:"utf8",r=Kt[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return"utf8"!==t&&"utf-8"!==t||null==globalThis.Buffer||null==globalThis.Buffer.from?r.decoder.decode(`${r.prefix}${e}`):Dt(globalThis.Buffer.from(e,"utf-8"))}var Vt=Object.defineProperty,Bt=function(e,t,r){return t in e?Vt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},qt=function(e,t,r){return Bt(e,"symbol"!=typeof t?t+"":t,r)},Ft=(function(){return l(function e(t,r){var i=this;c(this,e),this.core=t,this.logger=r,qt(this,"keychain",new Map),qt(this,"name",P),qt(this,"version","0.3"),qt(this,"initialized",!1),qt(this,"storagePrefix",_),qt(this,"init",s(function*(){if(!i.initialized){var e=yield i.getKeyChain();typeof e<"u"&&(i.keychain=e),i.initialized=!0}})),qt(this,"has",function(e){return i.isInitialized(),i.keychain.has(e)}),qt(this,"set",(function(){var e=s(function*(e,t){i.isInitialized(),i.keychain.set(e,t),yield i.persist()});return function(t,r){return e.apply(this,arguments)}})()),qt(this,"get",function(e){i.isInitialized();var t=i.keychain.get(e);if(typeof t>"u"){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${i.name}: ${e}`).message;throw new Error(r)}return t}),qt(this,"del",(function(){var e=s(function*(e){i.isInitialized(),i.keychain.delete(e),yield i.persist()});return function(t){return e.apply(this,arguments)}})()),this.core=t,this.logger=_r2(_d[16]).generateChildLogger(r,this.name)},[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setKeyChain",value:(r=s(function*(e){yield this.core.storage.setItem(this.storageKey,_r2(_d[15]).mapToObj(e))}),function(e){return r.apply(this,arguments)})},{key:"getKeyChain",value:(t=s(function*(){var e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return t.apply(this,arguments)})},{key:"persist",value:(e=s(function*(){yield this.setKeyChain(this.keychain)}),function(){return e.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var e,t,r})(),Gt=Object.defineProperty,Ht=function(e,t,r){return t in e?Gt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Yt=function(e,t,r){return Ht(e,"symbol"!=typeof t?t+"":t,r)},Jt=(function(){return l(function e(t,r,i){var n=this;c(this,e),this.core=t,this.logger=r,Yt(this,"name",w),Yt(this,"keychain"),Yt(this,"randomSessionIdentifier",_r2(_d[15]).generateRandomBytes32()),Yt(this,"initialized",!1),Yt(this,"init",s(function*(){n.initialized||(yield n.keychain.init(),n.initialized=!0)})),Yt(this,"hasKeys",function(e){return n.isInitialized(),n.keychain.has(e)}),Yt(this,"getClientId",s(function*(){n.isInitialized();var e=yield n.getClientSeed(),t=f.generateKeyPair(e);return f.encodeIss(t.publicKey)})),Yt(this,"generateKeyPair",function(){n.isInitialized();var e=_r2(_d[15]).generateKeyPair();return n.setPrivateKey(e.publicKey,e.privateKey)}),Yt(this,"signJWT",(function(){var e=s(function*(e){n.isInitialized();var t=yield n.getClientSeed(),r=f.generateKeyPair(t),i=n.randomSessionIdentifier,o=_r2(_d[14]).ONE_DAY;return yield f.signJWT(i,e,o,r)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"generateSharedKey",function(e,t,r){n.isInitialized();var i=n.getPrivateKey(e),o=_r2(_d[15]).deriveSymKey(i,t);return n.setSymKey(o,r)}),Yt(this,"setSymKey",(function(){var e=s(function*(e,t){n.isInitialized();var r=t||_r2(_d[15]).hashKey(e);return yield n.keychain.set(r,e),r});return function(t,r){return e.apply(this,arguments)}})()),Yt(this,"deleteKeyPair",(function(){var e=s(function*(e){n.isInitialized(),yield n.keychain.del(e)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"deleteSymKey",(function(){var e=s(function*(e){n.isInitialized(),yield n.keychain.del(e)});return function(t){return e.apply(this,arguments)}})()),Yt(this,"encode",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).validateEncoding(r),o=_r2(_d[17]).safeJsonStringify(t);if(_r2(_d[15]).isTypeTwoEnvelope(i))return _r2(_d[15]).encodeTypeTwoEnvelope(o,null==r?void 0:r.encoding);if(_r2(_d[15]).isTypeOneEnvelope(i)){var s=i.senderPublicKey,a=i.receiverPublicKey;e=yield n.generateSharedKey(s,a)}var c=n.getSymKey(e),l=i.type,u=i.senderPublicKey;return _r2(_d[15]).encrypt({type:l,symKey:c,message:o,senderPublicKey:u,encoding:null==r?void 0:r.encoding})});return function(t,r,i){return e.apply(this,arguments)}})()),Yt(this,"decode",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).validateDecoding(t,r);if(_r2(_d[15]).isTypeTwoEnvelope(i)){var o=_r2(_d[15]).decodeTypeTwoEnvelope(t,null==r?void 0:r.encoding);return _r2(_d[17]).safeJsonParse(o)}if(_r2(_d[15]).isTypeOneEnvelope(i)){var s=i.receiverPublicKey,a=i.senderPublicKey;e=yield n.generateSharedKey(s,a)}try{var c=n.getSymKey(e),l=_r2(_d[15]).decrypt({symKey:c,encoded:t,encoding:null==r?void 0:r.encoding});return _r2(_d[17]).safeJsonParse(l)}catch(o){n.logger.error(`Failed to decode message from topic: '${e}', clientId: '${yield n.getClientId()}'`),n.logger.error(o)}});return function(t,r,i){return e.apply(this,arguments)}})()),Yt(this,"getPayloadType",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_r2(_d[15]).BASE64,r=_r2(_d[15]).deserialize({encoded:e,encoding:t});return _r2(_d[15]).decodeTypeByte(r.type)}),Yt(this,"getPayloadSenderPublicKey",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:_r2(_d[15]).BASE64,r=_r2(_d[15]).deserialize({encoded:e,encoding:t});return r.senderPublicKey?_r2(_d[18]).toString(r.senderPublicKey,_r2(_d[15]).BASE16):void 0}),this.core=t,this.logger=_r2(_d[16]).generateChildLogger(r,this.name),this.keychain=i||new Ft(this.core,this.logger)},[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"setPrivateKey",value:(t=s(function*(e,t){return yield this.keychain.set(e,t),e}),function(e,r){return t.apply(this,arguments)})},{key:"getPrivateKey",value:function(e){return this.keychain.get(e)}},{key:"getClientSeed",value:(e=s(function*(){var e="";try{e=this.keychain.get(T)}catch(t){e=_r2(_d[15]).generateRandomBytes32(),yield this.keychain.set(T,e)}return $t(e,"base16")}),function(){return e.apply(this,arguments)})},{key:"getSymKey",value:function(e){return this.keychain.get(e)}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var e,t})(),Wt=Object.defineProperty,Xt=Object.defineProperties,Zt=Object.getOwnPropertyDescriptors,Qt=Object.getOwnPropertySymbols,er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,rr=function(e,t,r){return t in e?Wt(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ir=function(e,t){for(var r in t||(t={}))er.call(t,r)&&rr(e,r,t[r]);if(Qt)for(var r of Qt(t))tr.call(t,r)&&rr(e,r,t[r]);return e},nr=function(e,t){return Xt(e,Zt(t))},or=function(e,t,r){return rr(e,"symbol"!=typeof t?t+"":t,r)},sr=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).logger=e,n.core=i,or(r(n),"messages",new Map),or(r(n),"messagesWithoutClientAck",new Map),or(r(n),"name",S),or(r(n),"version","0.3"),or(r(n),"initialized",!1),or(r(n),"storagePrefix",_),or(r(n),"init",s(function*(){if(!n.initialized){n.logger.trace("Initialized");try{var e=yield n.getRelayerMessages();typeof e<"u"&&(n.messages=e);var t=yield n.getRelayerMessagesWithoutClientAck();typeof t<"u"&&(n.messagesWithoutClientAck=t),n.logger.debug(`Successfully Restored records for ${n.name}`),n.logger.trace({type:"method",method:"restore",size:n.messages.size})}catch(e){n.logger.debug(`Failed to Restore records for ${n.name}`),n.logger.error(e)}finally{n.initialized=!0}}})),or(r(n),"set",(function(){var e=s(function*(e,t,r){n.isInitialized();var i=_r2(_d[15]).hashMessage(t),o=n.messages.get(e);if(typeof o>"u"&&(o={}),typeof o[i]<"u")return i;if(o[i]=t,n.messages.set(e,o),r===z.inbound){var s=n.messagesWithoutClientAck.get(e)||{};n.messagesWithoutClientAck.set(e,nr(ir({},s),a({},i,t)))}return yield n.persist(),i});return function(t,r,i){return e.apply(this,arguments)}})()),or(r(n),"get",function(e){n.isInitialized();var t=n.messages.get(e);return typeof t>"u"&&(t={}),t}),or(r(n),"getWithoutAck",function(e){n.isInitialized();var t={};for(var r of e){var i=n.messagesWithoutClientAck.get(r)||{};t[r]=Object.values(i)}return t}),or(r(n),"has",function(e,t){return n.isInitialized(),typeof n.get(e)[_r2(_d[15]).hashMessage(t)]<"u"}),or(r(n),"ack",(function(){var e=s(function*(e,t){n.isInitialized();var r=n.messagesWithoutClientAck.get(e);typeof r>"u"||(delete r[_r2(_d[15]).hashMessage(t)],0===Object.keys(r).length?n.messagesWithoutClientAck.delete(e):n.messagesWithoutClientAck.set(e,r),yield n.persist())});return function(t,r){return e.apply(this,arguments)}})()),or(r(n),"del",(function(){var e=s(function*(e){n.isInitialized(),n.messages.delete(e),n.messagesWithoutClientAck.delete(e),yield n.persist()});return function(t){return e.apply(this,arguments)}})()),n.logger=_r2(_d[16]).generateChildLogger(e,n.name),n.core=i,n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"storageKeyWithoutClientAck",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name+"_withoutClientAck"}},{key:"setRelayerMessages",value:(g=s(function*(e){yield this.core.storage.setItem(this.storageKey,_r2(_d[15]).mapToObj(e))}),function(e){return g.apply(this,arguments)})},{key:"setRelayerMessagesWithoutClientAck",value:(d=s(function*(e){yield this.core.storage.setItem(this.storageKeyWithoutClientAck,_r2(_d[15]).mapToObj(e))}),function(e){return d.apply(this,arguments)})},{key:"getRelayerMessages",value:(p=s(function*(){var e=yield this.core.storage.getItem(this.storageKey);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return p.apply(this,arguments)})},{key:"getRelayerMessagesWithoutClientAck",value:(n=s(function*(){var e=yield this.core.storage.getItem(this.storageKeyWithoutClientAck);return typeof e<"u"?_r2(_d[15]).objToMap(e):void 0}),function(){return n.apply(this,arguments)})},{key:"persist",value:(i=s(function*(){yield this.setRelayerMessages(this.messages),yield this.setRelayerMessagesWithoutClientAck(this.messagesWithoutClientAck)}),function(){return i.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,p,d,g})(_r2(_d[19]).IMessageTracker),ar=Object.defineProperty,cr=Object.defineProperties,lr=Object.getOwnPropertyDescriptors,ur=Object.getOwnPropertySymbols,pr=Object.prototype.hasOwnProperty,dr=Object.prototype.propertyIsEnumerable,gr=function(e,t,r){return t in e?ar(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},hr=function(e,t){for(var r in t||(t={}))pr.call(t,r)&&gr(e,r,t[r]);if(ur)for(var r of ur(t))dr.call(t,r)&&gr(e,r,t[r]);return e},fr=function(e,t){return cr(e,lr(t))},yr=function(e,t,r){return gr(e,"symbol"!=typeof t?t+"":t,r)},vr=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).relayer=e,n.logger=i,yr(r(n),"events",new(_r2(_d[10]).EventEmitter)),yr(r(n),"name",k),yr(r(n),"queue",new Map),yr(r(n),"publishTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_MINUTE)),yr(r(n),"initialPublishTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),yr(r(n),"needsTransportRestart",!1),yr(r(n),"publish",(function(){var e=s(function*(e,t,r){var i,o,a,c,l;n.logger.debug("Publishing Payload"),n.logger.trace({type:"method",method:"publish",params:{topic:e,message:t,opts:r}});var u=(null==r?void 0:r.ttl)||_r2(_d[14]).SIX_HOURS,p=(null==r?void 0:r.prompt)||!1,d=(null==r?void 0:r.tag)||0,g=(null==r?void 0:r.id)||_r2(_d[20]).getBigIntRpcId().toString(),h=_r2(_d[15]).getRelayProtocolApi(_r2(_d[15]).getRelayProtocolName().protocol),f={id:g,method:(null==r?void 0:r.publishMethod)||h.publish,params:hr({topic:e,message:t,ttl:u,prompt:p,tag:d,attestation:null==r?void 0:r.attestation},null==r?void 0:r.tvf)},y=`Failed to publish payload, please try again. id:${g} tag:${d}`;try{_r2(_d[15]).isUndefined(null==(i=f.params)?void 0:i.prompt)&&(null==(o=f.params)||delete o.prompt),_r2(_d[15]).isUndefined(null==(a=f.params)?void 0:a.tag)&&(null==(c=f.params)||delete c.tag);var v=new Promise((function(){var e=s(function*(e){var t=function(r){var i,o=r.id;(null==(i=f.id)?void 0:i.toString())===o.toString()&&(n.removeRequestFromQueue(o),n.relayer.events.removeListener(C.publish,t),e())};n.relayer.events.on(C.publish,t);var i=_r2(_d[15]).createExpiringPromise(new Promise(function(e,t){n.rpcPublish(f,r).then(e).catch(function(e){n.logger.warn(e,null==e?void 0:e.message),t(e)})}),n.initialPublishTimeout,`Failed initial publish, retrying.... id:${g} tag:${d}`);try{yield i,n.events.removeListener(C.publish,t)}catch(e){n.queue.set(g,{request:f,opts:r,attempt:1}),n.logger.warn(e,null==e?void 0:e.message)}});return function(t){return e.apply(this,arguments)}})());n.logger.trace({type:"method",method:"publish",params:{id:g,topic:e,message:t,opts:r}}),yield _r2(_d[15]).createExpiringPromise(v,n.publishTimeout,y)}catch(v){if(n.logger.debug("Failed to Publish Payload"),n.logger.error(v),null!=(l=null==r?void 0:r.internal)&&l.throwOnFailedPublish)throw v}finally{n.queue.delete(g)}});return function(t,r,i){return e.apply(this,arguments)}})()),yr(r(n),"publishCustom",(function(){var e=s(function*(e){var t,r,i,o,a;n.logger.debug("Publishing custom payload"),n.logger.trace({type:"method",method:"publishCustom",params:e});var c=e.payload,l=e.opts,u=void 0===l?{}:l,p=u.attestation,d=u.tvf,g=u.publishMethod,h=u.prompt,f=u.tag,y=u.ttl,v=void 0===y?_r2(_d[14]).FIVE_MINUTES:y,b=u.id||_r2(_d[20]).getBigIntRpcId().toString(),_=_r2(_d[15]).getRelayProtocolApi(_r2(_d[15]).getRelayProtocolName().protocol),E=g||_.publish,I={id:b,method:E,params:hr(fr(hr({},c),{ttl:v,prompt:h,tag:f,attestation:p}),d)},w=`Failed to publish custom payload, please try again. id:${b} tag:${f}`;try{_r2(_d[15]).isUndefined(null==(t=I.params)?void 0:t.prompt)&&(null==(r=I.params)||delete r.prompt),_r2(_d[15]).isUndefined(null==(i=I.params)?void 0:i.tag)&&(null==(o=I.params)||delete o.tag);var T=new Promise((function(){var e=s(function*(e){var t=function(r){var i,o=r.id;(null==(i=I.id)?void 0:i.toString())===o.toString()&&(n.removeRequestFromQueue(o),n.relayer.events.removeListener(C.publish,t),e())};n.relayer.events.on(C.publish,t);var r=_r2(_d[15]).createExpiringPromise(new Promise(function(e,t){n.rpcPublish(I,u).then(e).catch(function(e){n.logger.warn(e,null==e?void 0:e.message),t(e)})}),n.initialPublishTimeout,`Failed initial custom payload publish, retrying.... method:${E} id:${b} tag:${f}`);try{yield r,n.events.removeListener(C.publish,t)}catch(e){n.queue.set(b,{request:I,opts:u,attempt:1}),n.logger.warn(e,null==e?void 0:e.message)}});return function(t){return e.apply(this,arguments)}})());n.logger.trace({type:"method",method:"publish",params:{id:b,payload:c,opts:u}}),yield _r2(_d[15]).createExpiringPromise(T,n.publishTimeout,w)}catch(T){if(n.logger.debug("Failed to Publish Payload"),n.logger.error(T),null!=(a=null==u?void 0:u.internal)&&a.throwOnFailedPublish)throw T}finally{n.queue.delete(b)}});return function(t){return e.apply(this,arguments)}})()),yr(r(n),"on",function(e,t){n.events.on(e,t)}),yr(r(n),"once",function(e,t){n.events.once(e,t)}),yr(r(n),"off",function(e,t){n.events.off(e,t)}),yr(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.relayer=e,n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n.registerEventListeners(),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"rpcPublish",value:(i=s(function*(e,t){this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:e});var r=yield this.relayer.request(e);return this.relayer.events.emit(C.publish,hr(hr({},e),t)),this.logger.debug("Successfully Published Payload"),r}),function(e,t){return i.apply(this,arguments)})},{key:"removeRequestFromQueue",value:function(e){this.queue.delete(e)}},{key:"checkQueue",value:function(){var e=this;this.queue.forEach((function(){var t=s(function*(t,r){var i,n=t.attempt+1;e.queue.set(r,fr(hr({},t),{attempt:n})),e.logger.warn({},`Publisher: queue->publishing: ${t.request.id}, tag: ${null==(i=t.request.params)?void 0:i.tag}, attempt: ${n}`),yield e.rpcPublish(t.request,t.opts),e.logger.warn({},`Publisher: queue->published: ${t.request.id}`)});return function(e,r){return t.apply(this,arguments)}})())}},{key:"registerEventListeners",value:function(){var e=this;this.relayer.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){if(e.needsTransportRestart)return e.needsTransportRestart=!1,void e.relayer.events.emit(C.connection_stalled);e.checkQueue()}),this.relayer.on(C.message_ack,function(t){e.removeRequestFromQueue(t.id.toString())})}}]);var i})(_r2(_d[19]).IPublisher),br=Object.defineProperty,mr=function(e,t,r){return t in e?br(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_r=function(e,t,r){return mr(e,"symbol"!=typeof t?t+"":t,r)},Er=(function(){return l(function e(){var r=this;c(this,e),_r(this,"map",new Map),_r(this,"set",function(e,i){var n=r.get(e);r.exists(e,i)||r.map.set(e,[].concat(t(n),[i]))}),_r(this,"get",function(e){return r.map.get(e)||[]}),_r(this,"exists",function(e,t){return r.get(e).includes(t)}),_r(this,"delete",function(e,t){if(typeof t>"u")r.map.delete(e);else if(r.map.has(e)){var i=r.get(e);if(r.exists(e,t)){var n=i.filter(function(e){return e!==t});n.length?r.map.set(e,n):r.map.delete(e)}}}),_r(this,"clear",function(){r.map.clear()})},[{key:"topics",get:function(){return Array.from(this.map.keys())}}])})(),Ir=Object.defineProperty,wr=Object.defineProperties,Tr=Object.getOwnPropertyDescriptors,Pr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable,Or=function(e,t,r){return t in e?Ir(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Rr=function(e,t){for(var r in t||(t={}))Sr.call(t,r)&&Or(e,r,t[r]);if(Pr)for(var r of Pr(t))kr.call(t,r)&&Or(e,r,t[r]);return e},xr=function(e,t){return wr(e,Tr(t))},Cr=function(e,t,r){return Or(e,"symbol"!=typeof t?t+"":t,r)},Ar=(function(e){function i(e,t){var n;return c(this,i),(n=u(this,i,[e,t])).relayer=e,n.logger=t,Cr(r(n),"subscriptions",new Map),Cr(r(n),"topicMap",new Er),Cr(r(n),"events",new(_r2(_d[10]).EventEmitter)),Cr(r(n),"name",K),Cr(r(n),"version","0.3"),Cr(r(n),"pending",new Map),Cr(r(n),"cached",[]),Cr(r(n),"initialized",!1),Cr(r(n),"storagePrefix",_),Cr(r(n),"subscribeTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_MINUTE)),Cr(r(n),"initialSubscribeTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),Cr(r(n),"clientId"),Cr(r(n),"batchSubscribeTopicsLimit",500),Cr(r(n),"init",s(function*(){n.initialized||(n.logger.trace("Initialized"),n.registerEventListeners(),yield n.restore()),n.initialized=!0})),Cr(r(n),"subscribe",(function(){var e=s(function*(e,t){var r;n.isInitialized(),n.logger.debug("Subscribing Topic"),n.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}});try{var i=_r2(_d[15]).getRelayProtocolName(t),o={topic:e,relay:i,transportType:null==t?void 0:t.transportType};null!=(r=null==t?void 0:t.internal)&&r.skipSubscribe||n.pending.set(e,o);var s=yield n.rpcSubscribe(e,i,t);return"string"==typeof s&&(n.onSubscribe(s,o),n.logger.debug("Successfully Subscribed Topic"),n.logger.trace({type:"method",method:"subscribe",params:{topic:e,opts:t}})),s}catch(i){throw n.logger.debug("Failed to Subscribe Topic"),n.logger.error(i),i}});return function(t,r){return e.apply(this,arguments)}})()),Cr(r(n),"unsubscribe",(function(){var e=s(function*(e,t){n.isInitialized(),typeof(null==t?void 0:t.id)<"u"?yield n.unsubscribeById(e,t.id,t):yield n.unsubscribeByTopic(e,t)});return function(t,r){return e.apply(this,arguments)}})()),Cr(r(n),"isSubscribed",function(e){return new Promise(function(t){t(n.topicMap.topics.includes(e))})}),Cr(r(n),"isKnownTopic",function(e){return new Promise(function(t){t(n.topicMap.topics.includes(e)||n.pending.has(e)||n.cached.some(function(t){return t.topic===e}))})}),Cr(r(n),"on",function(e,t){n.events.on(e,t)}),Cr(r(n),"once",function(e,t){n.events.once(e,t)}),Cr(r(n),"off",function(e,t){n.events.off(e,t)}),Cr(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),Cr(r(n),"start",s(function*(){yield n.onConnect()})),Cr(r(n),"stop",s(function*(){yield n.onDisconnect()})),Cr(r(n),"restart",s(function*(){yield n.restore(),yield n.onRestart()})),Cr(r(n),"checkPending",s(function*(){if(0!==n.pending.size||n.initialized&&n.relayer.connected){var e=[];n.pending.forEach(function(t){e.push(t)}),yield n.batchSubscribe(e)}})),Cr(r(n),"registerEventListeners",function(){n.relayer.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){yield n.checkPending()})),n.events.on(U.created,(function(){var e=s(function*(e){var t=U.created;n.logger.info(`Emitting ${t}`),n.logger.debug({type:"event",event:t,data:e}),yield n.persist()});return function(t){return e.apply(this,arguments)}})()),n.events.on(U.deleted,(function(){var e=s(function*(e){var t=U.deleted;n.logger.info(`Emitting ${t}`),n.logger.debug({type:"event",event:t,data:e}),yield n.persist()});return function(t){return e.apply(this,arguments)}})())}),n.relayer=e,n.logger=_r2(_d[16]).generateChildLogger(t,n.name),n.clientId="",n}return o(i,e),l(i,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.subscriptions.size}},{key:"ids",get:function(){return Array.from(this.subscriptions.keys())}},{key:"values",get:function(){return Array.from(this.subscriptions.values())}},{key:"topics",get:function(){return this.topicMap.topics}},{key:"hasAnyTopics",get:function(){return this.topicMap.topics.length>0||this.pending.size>0||this.cached.length>0||this.subscriptions.size>0}},{key:"hasSubscription",value:function(e,t){var r=!1;try{r=this.getSubscription(e).topic===t}catch(e){}return r}},{key:"reset",value:function(){this.cached=[],this.initialized=!0}},{key:"onDisable",value:function(){this.values.length>0&&(this.cached=this.values),this.subscriptions.clear(),this.topicMap.clear()}},{key:"unsubscribeByTopic",value:(k=s(function*(e,t){var r=this,i=this.topicMap.get(e);yield Promise.all(i.map((function(){var i=s(function*(i){return yield r.unsubscribeById(e,i,t)});return function(e){return i.apply(this,arguments)}})()))}),function(e,t){return k.apply(this,arguments)})},{key:"unsubscribeById",value:(S=s(function*(e,t,r){this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}});try{var i=_r2(_d[15]).getRelayProtocolName(r);yield this.restartToComplete({topic:e,id:t,relay:i}),yield this.rpcUnsubscribe(e,t,i);var n=_r2(_d[15]).getSdkError("USER_DISCONNECTED",`${this.name}, ${e}`);yield this.onUnsubscribe(e,t,n),this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:e,id:t,opts:r}})}catch(i){throw this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(i),i}}),function(e,t,r){return S.apply(this,arguments)})},{key:"rpcSubscribe",value:(P=s(function*(e,t,r){var i,n,o=this,a=yield this.getSubscriptionId(e);if(null!=(i=null==r?void 0:r.internal)&&i.skipSubscribe)return a;(!r||(null==r?void 0:r.transportType)===D.relay)&&(yield this.restartToComplete({topic:e,id:e,relay:t}));var c={method:_r2(_d[15]).getRelayProtocolApi(t.protocol).subscribe,params:{topic:e}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:c});var l=null==(n=null==r?void 0:r.internal)?void 0:n.throwOnFailedPublish;try{if((null==r?void 0:r.transportType)===D.link_mode)return setTimeout(function(){(o.relayer.connected||o.relayer.connecting)&&o.relayer.request(c).catch(function(e){return o.logger.warn(e)})},_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_SECOND)),a;var u=new Promise((function(){var t=s(function*(t){var r=function(i){i.topic===e&&(o.events.removeListener(U.created,r),t(i.id))};o.events.on(U.created,r);try{var i=yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,t){o.relayer.request(c).catch(function(e){o.logger.warn(e,null==e?void 0:e.message),t(e)}).then(e)}),o.initialSubscribeTimeout,`Subscribing to ${e} failed, please try again`);o.events.removeListener(U.created,r),t(i)}catch(e){}});return function(e){return t.apply(this,arguments)}})()),p=yield _r2(_d[15]).createExpiringPromise(u,this.subscribeTimeout,`Subscribing to ${e} failed, please try again`);if(!p&&l)throw new Error(`Subscribing to ${e} failed, please try again`);return p?a:null}catch(u){if(this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(C.connection_stalled),l)throw u}return null}),function(e,t,r){return P.apply(this,arguments)})},{key:"rpcBatchSubscribe",value:(T=s(function*(e){var t=this;if(e.length){var r=e[0].relay,i={method:_r2(_d[15]).getRelayProtocolApi(r.protocol).batchSubscribe,params:{topics:e.map(function(e){return e.topic})}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i});try{yield yield _r2(_d[15]).createExpiringPromise(new Promise(function(e){t.relayer.request(i).catch(function(e){return t.logger.warn(e)}).then(e)}),this.subscribeTimeout,"rpcBatchSubscribe failed, please try again")}catch(e){this.relayer.events.emit(C.connection_stalled)}}}),function(e){return T.apply(this,arguments)})},{key:"rpcBatchFetchMessages",value:(w=s(function*(e){var t=this;if(e.length){var r,i=e[0].relay,n={method:_r2(_d[15]).getRelayProtocolApi(i.protocol).batchFetchMessages,params:{topics:e.map(function(e){return e.topic})}};this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:n});try{r=yield yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,r){t.relayer.request(n).catch(function(e){t.logger.warn(e),r(e)}).then(e)}),this.subscribeTimeout,"rpcBatchFetchMessages failed, please try again")}catch(e){this.relayer.events.emit(C.connection_stalled)}return r}}),function(e){return w.apply(this,arguments)})},{key:"rpcUnsubscribe",value:function(e,t,r){var i={method:_r2(_d[15]).getRelayProtocolApi(r.protocol).unsubscribe,params:{topic:e,id:t}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:i}),this.relayer.request(i)}},{key:"onSubscribe",value:function(e,t){this.setSubscription(e,xr(Rr({},t),{id:e})),this.pending.delete(t.topic)}},{key:"onBatchSubscribe",value:function(e){var t=this;e.length&&e.forEach(function(e){t.setSubscription(e.id,Rr({},e)),t.pending.delete(e.topic)})}},{key:"onUnsubscribe",value:(I=s(function*(e,t,r){this.events.removeAllListeners(t),this.hasSubscription(t,e)&&this.deleteSubscription(t,r),yield this.relayer.messages.del(e)}),function(e,t,r){return I.apply(this,arguments)})},{key:"setRelayerSubscriptions",value:(E=s(function*(e){yield this.relayer.core.storage.setItem(this.storageKey,e)}),function(e){return E.apply(this,arguments)})},{key:"getRelayerSubscriptions",value:(b=s(function*(){return yield this.relayer.core.storage.getItem(this.storageKey)}),function(){return b.apply(this,arguments)})},{key:"setSubscription",value:function(e,t){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:e,subscription:t}),this.addSubscription(e,t)}},{key:"addSubscription",value:function(e,t){this.subscriptions.set(e,Rr({},t)),this.topicMap.set(t.topic,e),this.events.emit(U.created,t)}},{key:"getSubscription",value:function(e){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:e});var t=this.subscriptions.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw new Error(r)}return t}},{key:"deleteSubscription",value:function(e,t){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:e,reason:t});var r=this.getSubscription(e);this.subscriptions.delete(e),this.topicMap.delete(r.topic,e),this.events.emit(U.deleted,xr(Rr({},r),{reason:t}))}},{key:"persist",value:(v=s(function*(){yield this.setRelayerSubscriptions(this.values),this.events.emit(U.sync)}),function(){return v.apply(this,arguments)})},{key:"onRestart",value:(y=s(function*(){if(this.cached.length)for(var e=t(this.cached),r=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit),i=0;i"u"||!t.length)return;if(this.subscriptions.size&&!t.every(function(t){var r;return t.topic===(null==(r=e.subscriptions.get(t.id))?void 0:r.topic)})){var r=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(r),this.logger.error(`${this.name}: ${JSON.stringify(this.values)}`),new Error(r)}this.cached=t,this.logger.debug(`Successfully Restored subscriptions for ${this.name}`),this.logger.trace({type:"method",method:"restore",subscriptions:this.values})}catch(t){this.logger.debug(`Failed to Restore subscriptions for ${this.name}`),this.logger.error(t)}}),function(){return f.apply(this,arguments)})},{key:"batchSubscribe",value:(h=s(function*(e){var t=this;e.length&&(yield this.rpcBatchSubscribe(e),this.onBatchSubscribe(yield Promise.all(e.map((function(){var e=s(function*(e){return xr(Rr({},e),{id:yield t.getSubscriptionId(e.topic)})});return function(t){return e.apply(this,arguments)}})()))))}),function(e){return h.apply(this,arguments)})},{key:"batchFetchMessages",value:(g=s(function*(e){if(e.length){this.logger.trace(`Fetching batch messages for ${e.length} subscriptions`);var t=yield this.rpcBatchFetchMessages(e);t&&t.messages&&(yield _r2(_d[15]).sleep(_r2(_d[14]).toMiliseconds(_r2(_d[14]).ONE_SECOND)),yield this.relayer.handleBatchMessageEvents(t.messages))}}),function(e){return g.apply(this,arguments)})},{key:"onConnect",value:(d=s(function*(){yield this.restart(),this.reset()}),function(){return d.apply(this,arguments)})},{key:"onDisconnect",value:function(){this.onDisable()}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"restartToComplete",value:(p=s(function*(e){!this.relayer.connected&&!this.relayer.connecting&&(this.cached.push(e),yield this.relayer.transportOpen())}),function(e){return p.apply(this,arguments)})},{key:"getClientId",value:(a=s(function*(){return this.clientId||(this.clientId=yield this.relayer.core.crypto.getClientId()),this.clientId}),function(){return a.apply(this,arguments)})},{key:"getSubscriptionId",value:(n=s(function*(e){return _r2(_d[15]).hashMessage(e+(yield this.getClientId()))}),function(e){return n.apply(this,arguments)})}]);var n,a,p,d,g,h,f,y,v,b,E,I,w,T,P,S,k})(_r2(_d[19]).ISubscriber),Nr=Object.defineProperty,Lr=Object.getOwnPropertySymbols,Dr=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,jr=function(e,t,r){return t in e?Nr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Mr=function(e,t){for(var r in t||(t={}))Dr.call(t,r)&&jr(e,r,t[r]);if(Lr)for(var r of Lr(t))zr.call(t,r)&&jr(e,r,t[r]);return e},Ur=function(e,t,r){return jr(e,"symbol"!=typeof t?t+"":t,r)},Kr=(function(e){function t(e){var i;return c(this,t),i=u(this,t,[e]),Ur(r(i),"protocol","wc"),Ur(r(i),"version",2),Ur(r(i),"core"),Ur(r(i),"logger"),Ur(r(i),"events",new(_r2(_d[10]).EventEmitter)),Ur(r(i),"provider"),Ur(r(i),"messages"),Ur(r(i),"subscriber"),Ur(r(i),"publisher"),Ur(r(i),"name",x),Ur(r(i),"transportExplicitlyClosed",!1),Ur(r(i),"initialized",!1),Ur(r(i),"connectionAttemptInProgress",!1),Ur(r(i),"relayUrl"),Ur(r(i),"projectId"),Ur(r(i),"packageName"),Ur(r(i),"bundleId"),Ur(r(i),"hasExperiencedNetworkDisruption",!1),Ur(r(i),"pingTimeout"),Ur(r(i),"heartBeatTimeout",_r2(_d[14]).toMiliseconds(_r2(_d[14]).THIRTY_SECONDS+_r2(_d[14]).FIVE_SECONDS)),Ur(r(i),"reconnectTimeout"),Ur(r(i),"connectPromise"),Ur(r(i),"reconnectInProgress",!1),Ur(r(i),"requestsInFlight",[]),Ur(r(i),"connectTimeout",_r2(_d[14]).toMiliseconds(15*_r2(_d[14]).ONE_SECOND)),Ur(r(i),"request",(function(){var e=s(function*(e){var t,r;i.logger.debug("Publishing Request Payload");var n=e.id||_r2(_d[20]).getBigIntRpcId().toString();yield i.toEstablishConnection();try{i.logger.trace({id:n,method:e.method,topic:null==(t=e.params)?void 0:t.topic},"relayer.request - publishing...");var o=`${n}:${(null==(r=e.params)?void 0:r.tag)||""}`;i.requestsInFlight.push(o);var s=yield i.provider.request(e);return i.requestsInFlight=i.requestsInFlight.filter(function(e){return e!==o}),s}catch(o){throw i.logger.debug(`Failed to Publish Request: ${n}`),o}});return function(t){return e.apply(this,arguments)}})()),Ur(r(i),"resetPingTimeout",function(){_r2(_d[15]).isNode()&&(clearTimeout(i.pingTimeout),i.pingTimeout=setTimeout(function(){var e,t,r,n;try{i.logger.debug({},"pingTimeout: Connection stalled, terminating..."),null==(n=null==(r=null==(t=null==(e=i.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.terminate)||n.call(r)}catch(e){i.logger.warn(e,null==e?void 0:e.message)}},i.heartBeatTimeout))}),Ur(r(i),"onPayloadHandler",function(e){i.onProviderPayload(e),i.resetPingTimeout()}),Ur(r(i),"onConnectHandler",function(){i.logger.warn({},"Relayer connected \ud83d\udedc"),i.startPingTimeout(),i.events.emit(C.connect)}),Ur(r(i),"onDisconnectHandler",function(){i.logger.warn({},"Relayer disconnected \ud83d\uded1"),i.requestsInFlight=[],i.onProviderDisconnect()}),Ur(r(i),"onProviderErrorHandler",function(e){i.logger.fatal(`Fatal socket error: ${e.message}`),i.events.emit(C.error,e),i.logger.fatal("Fatal socket error received, closing transport"),i.transportClose()}),Ur(r(i),"registerProviderListeners",function(){i.provider.on(N.payload,i.onPayloadHandler),i.provider.on(N.connect,i.onConnectHandler),i.provider.on(N.disconnect,i.onDisconnectHandler),i.provider.on(N.error,i.onProviderErrorHandler)}),i.core=e.core,i.logger=typeof e.logger<"u"&&"string"!=typeof e.logger?_r2(_d[16]).generateChildLogger(e.logger,i.name):_r2(_d[16]).pino(_r2(_d[16]).getDefaultLoggerOptions({level:e.logger||O})),i.messages=new sr(i.logger,e.core),i.subscriber=new Ar(r(i),i.logger),i.publisher=new vr(r(i),i.logger),i.projectId=null==e?void 0:e.projectId,i.relayUrl=(null==e?void 0:e.relayUrl)||R,_r2(_d[15]).isAndroid()?i.packageName=_r2(_d[15]).getAppId():_r2(_d[15]).isIos()&&(i.bundleId=_r2(_d[15]).getAppId()),i.provider={},i}return o(t,e),l(t,[{key:"init",value:($=s(function*(){var e=this;this.logger.trace("Initialized"),this.registerEventListeners(),yield Promise.all([this.messages.init(),this.subscriber.init()]),this.initialized=!0,this.transportOpen().catch(function(t){return e.logger.warn(t,null==t?void 0:t.message)})}),function(){return $.apply(this,arguments)})},{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"connected",get:function(){var e,t,r;return 1===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)||!1}},{key:"connecting",get:function(){var e,t,r;return 0===(null==(r=null==(t=null==(e=this.provider)?void 0:e.connection)?void 0:t.socket)?void 0:r.readyState)||void 0!==this.connectPromise||!1}},{key:"publish",value:(K=s(function*(e,t,r){this.isInitialized(),yield this.publisher.publish(e,t,r),yield this.recordMessageEvent({topic:e,message:t,publishedAt:Date.now(),transportType:D.relay},z.outbound)}),function(e,t,r){return K.apply(this,arguments)})},{key:"publishCustom",value:(M=s(function*(e){this.isInitialized(),yield this.publisher.publishCustom(e)}),function(e){return M.apply(this,arguments)})},{key:"subscribe",value:(j=s(function*(e,t){var r,i,n,o=this;this.isInitialized(),(null==t||!t.transportType||"relay"===(null==t?void 0:t.transportType))&&(yield this.toEstablishConnection());var a,c=typeof(null==(r=null==t?void 0:t.internal)?void 0:r.throwOnFailedPublish)>"u"||(null==(i=null==t?void 0:t.internal)?void 0:i.throwOnFailedPublish),l=(null==(n=this.subscriber.topicMap.get(e))?void 0:n[0])||"",u=function(t){t.topic===e&&(o.subscriber.off(U.created,u),a())};return yield Promise.all([new Promise(function(e){a=e,o.subscriber.on(U.created,u)}),new Promise((function(){var r=s(function*(r,i){l=(yield o.subscriber.subscribe(e,Mr({internal:{throwOnFailedPublish:c}},t)).catch(function(e){c&&i(e)}))||l,r()});return function(e,t){return r.apply(this,arguments)}})())]),l}),function(e,t){return j.apply(this,arguments)})},{key:"unsubscribe",value:(k=s(function*(e,t){this.isInitialized(),yield this.subscriber.unsubscribe(e,t)}),function(e,t){return k.apply(this,arguments)})},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"transportDisconnect",value:(S=s(function*(){var e=this;this.provider.disconnect&&(this.hasExperiencedNetworkDisruption||this.connected)?yield _r2(_d[15]).createExpiringPromise(this.provider.disconnect(),2e3,"provider.disconnect()").catch(function(){return e.onProviderDisconnect()}):this.onProviderDisconnect()}),function(){return S.apply(this,arguments)})},{key:"transportClose",value:(P=s(function*(){this.transportExplicitlyClosed=!0,yield this.transportDisconnect()}),function(){return P.apply(this,arguments)})},{key:"transportOpen",value:(T=s(function*(e){var t=this;if(this.subscriber.hasAnyTopics){if(this.connectPromise?(this.logger.debug({},"Waiting for existing connection attempt to resolve..."),yield this.connectPromise,this.logger.debug({},"Existing connection attempt resolved")):(this.connectPromise=new Promise((function(){var r=s(function*(r,i){yield t.connect(e).then(r).catch(i).finally(function(){t.connectPromise=void 0})});return function(e,t){return r.apply(this,arguments)}})()),yield this.connectPromise),!this.connected)throw new Error(`Couldn't establish socket connection to the relay server: ${this.relayUrl}`)}else this.logger.info("Starting WS connection skipped because the client has no topics to work with.")}),function(e){return T.apply(this,arguments)})},{key:"restartTransport",value:(w=s(function*(e){this.logger.debug({},"Restarting transport..."),!this.connectionAttemptInProgress&&(this.relayUrl=e||this.relayUrl,yield this.confirmOnlineStateOrThrow(),yield this.transportClose(),yield this.transportOpen())}),function(e){return w.apply(this,arguments)})},{key:"confirmOnlineStateOrThrow",value:(I=s(function*(){if(!(yield _r2(_d[15]).isOnline()))throw new Error("No internet connection detected. Please restart your network and try again.")}),function(){return I.apply(this,arguments)})},{key:"handleBatchMessageEvents",value:(E=s(function*(e){if(0!==(null==e?void 0:e.length)){var t=e.sort(function(e,t){return e.publishedAt-t.publishedAt});for(var r of(this.logger.debug(`Batch of ${t.length} message events sorted`),t))try{yield this.onMessageEvent(r)}catch(e){this.logger.warn(e,"Error while processing batch message event: "+(null==e?void 0:e.message))}this.logger.trace(`Batch of ${t.length} message events processed`)}else this.logger.trace("Batch message events is empty. Ignoring...")}),function(e){return E.apply(this,arguments)})},{key:"onLinkMessageEvent",value:(_=s(function*(e,t){var r=e.topic;if(!t.sessionExists){var i={topic:r,expiry:_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),relay:{protocol:"irn"},active:!1};yield this.core.pairing.pairings.set(r,i)}this.events.emit(C.message,e),yield this.recordMessageEvent(e,z.inbound)}),function(e,t){return _.apply(this,arguments)})},{key:"connect",value:(b=s(function*(e){var t=this;yield this.confirmOnlineStateOrThrow(),e&&e!==this.relayUrl&&(this.relayUrl=e,yield this.transportDisconnect()),this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1;for(var r=1;r<6;){try{if(this.transportExplicitlyClosed)break;this.logger.debug({},`Connecting to ${this.relayUrl}, attempt: ${r}...`),yield this.createProvider(),yield new Promise((function(){var e=s(function*(e,r){var i=function(){r(new Error("Connection interrupted while trying to connect"))};t.provider.once(N.disconnect,i),yield _r2(_d[15]).createExpiringPromise(new Promise(function(e,r){t.provider.connect().then(e).catch(r)}),t.connectTimeout,`Socket stalled when trying to connect to ${t.relayUrl}`).catch(function(e){r(e)}).finally(function(){t.provider.off(N.disconnect,i),clearTimeout(t.reconnectTimeout)}),yield new Promise((function(){var e=s(function*(e,i){var n=function(){r(new Error("Connection interrupted while trying to subscribe"))};t.provider.once(N.disconnect,n),yield t.subscriber.start().then(e).catch(i).finally(function(){t.provider.off(N.disconnect,n)})});return function(t,r){return e.apply(this,arguments)}})()),t.hasExperiencedNetworkDisruption=!1,e()});return function(t,r){return e.apply(this,arguments)}})())}catch(e){yield this.subscriber.stop();var i=e;this.logger.warn({},i.message),this.hasExperiencedNetworkDisruption=!0}finally{this.connectionAttemptInProgress=!1}if(this.connected){this.logger.debug({},`Connected to ${this.relayUrl} successfully on attempt: ${r}`);break}yield new Promise(function(e){return setTimeout(e,_r2(_d[14]).toMiliseconds(1*r))}),r++}}),function(e){return b.apply(this,arguments)})},{key:"startPingTimeout",value:function(){var e,t,r,i,n,o=this;if(_r2(_d[15]).isNode())try{null!=(t=null==(e=this.provider)?void 0:e.connection)&&t.socket&&(null==(n=null==(i=null==(r=this.provider)?void 0:r.connection)?void 0:i.socket)||n.on("ping",function(){o.resetPingTimeout()})),this.resetPingTimeout()}catch(e){this.logger.warn(e,null==e?void 0:e.message)}}},{key:"createProvider",value:(v=s(function*(){this.provider.connection&&this.unregisterProviderListeners();var e=yield this.core.crypto.signJWT(this.relayUrl);this.provider=new(_r2(_d[22]).JsonRpcProvider)(new y.default(_r2(_d[15]).formatRelayRpcUrl({sdkVersion:L,protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId,packageName:this.packageName}))),this.registerProviderListeners()}),function(){return v.apply(this,arguments)})},{key:"recordMessageEvent",value:(f=s(function*(e,t){var r=e.topic,i=e.message;yield this.messages.set(r,i,t)}),function(e,t){return f.apply(this,arguments)})},{key:"shouldIgnoreMessageEvent",value:(h=s(function*(e){var t=e.topic,r=e.message;if(!r||0===r.length)return this.logger.warn(`Ignoring invalid/empty message: ${r}`),!0;if(!(yield this.subscriber.isKnownTopic(t)))return this.logger.warn(`Ignoring message for unknown topic ${t}`),!0;var i=this.messages.has(t,r);return i&&this.logger.warn(`Ignoring duplicate message: ${r}`),i}),function(e){return h.apply(this,arguments)})},{key:"onProviderPayload",value:(g=s(function*(e){if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:e}),_r2(_d[20]).isJsonRpcRequest(e)){if(!e.method.endsWith(A))return;var t=e.params,r=t.data,i=r.topic,n=r.message,o=r.publishedAt,s=r.attestation,a={topic:i,message:n,publishedAt:o,transportType:D.relay,attestation:s};this.logger.debug("Emitting Relayer Payload"),this.logger.trace(Mr({type:"event",event:t.id},a)),this.events.emit(t.id,a),yield this.acknowledgePayload(e),yield this.onMessageEvent(a)}else _r2(_d[20]).isJsonRpcResponse(e)&&this.events.emit(C.message_ack,e)}),function(e){return g.apply(this,arguments)})},{key:"onMessageEvent",value:(d=s(function*(e){(yield this.shouldIgnoreMessageEvent(e))||(yield this.recordMessageEvent(e,z.inbound),this.events.emit(C.message,e))}),function(e){return d.apply(this,arguments)})},{key:"acknowledgePayload",value:(p=s(function*(e){var t=_r2(_d[20]).formatJsonRpcResult(e.id,!0);yield this.provider.connection.send(t)}),function(e){return p.apply(this,arguments)})},{key:"unregisterProviderListeners",value:function(){this.provider.off(N.payload,this.onPayloadHandler),this.provider.off(N.connect,this.onConnectHandler),this.provider.off(N.disconnect,this.onDisconnectHandler),this.provider.off(N.error,this.onProviderErrorHandler),clearTimeout(this.pingTimeout)}},{key:"registerEventListeners",value:(a=s(function*(){var e=this,t=yield _r2(_d[15]).isOnline();_r2(_d[15]).subscribeToNetworkChange((function(){var r=s(function*(r){t!==r&&(t=r,r?yield e.transportOpen().catch(function(t){return e.logger.error(t,null==t?void 0:t.message)}):(e.hasExperiencedNetworkDisruption=!0,yield e.transportDisconnect(),e.transportExplicitlyClosed=!1))});return function(e){return r.apply(this,arguments)}})()),this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){if(!e.transportExplicitlyClosed&&!e.connected&&_r2(_d[15]).isAppVisible())try{yield e.confirmOnlineStateOrThrow(),yield e.transportOpen()}catch(t){e.logger.warn(t,null==t?void 0:t.message)}}))}),function(){return a.apply(this,arguments)})},{key:"onProviderDisconnect",value:(n=s(function*(){var e=this;clearTimeout(this.pingTimeout),this.events.emit(C.disconnect),this.connectionAttemptInProgress=!1,!this.reconnectInProgress&&(this.reconnectInProgress=!0,yield this.subscriber.stop(),this.subscriber.hasAnyTopics&&(this.transportExplicitlyClosed||(this.reconnectTimeout=setTimeout(s(function*(){yield e.transportOpen().catch(function(t){return e.logger.error(t,null==t?void 0:t.message)}),e.reconnectTimeout=void 0,e.reconnectInProgress=!1}),_r2(_d[14]).toMiliseconds(.1)))))}),function(){return n.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}},{key:"toEstablishConnection",value:(i=s(function*(){if(yield this.confirmOnlineStateOrThrow(),!this.connected){if(this.connectPromise)return void(yield this.connectPromise);yield this.connect()}}),function(){return i.apply(this,arguments)})}]);var i,n,a,p,d,g,h,f,v,b,_,E,I,w,T,P,S,k,j,M,K,$})(_r2(_d[19]).IRelayer);function $r(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Vr(e){return Object.getOwnPropertySymbols(e).filter(function(t){return Object.prototype.propertyIsEnumerable.call(e,t)})}function Br(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}var qr="[object Arguments]",Fr="[object Object]";function Gr(){}function Hr(e){if(!e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&"[object Object]"===Object.prototype.toString.call(e)}function Yr(e,t,r){return Jr(e,t,void 0,void 0,void 0,void 0,r)}function Jr(e,t,r,i,n,o,s){var a=s(e,t,r,i,n,o);if(void 0!==a)return a;if(typeof e==typeof t)switch(typeof e){case"bigint":case"string":case"boolean":case"symbol":case"undefined":case"function":return e===t;case"number":return e===t||Object.is(e,t);case"object":return Wr(e,t,o,s)}return Wr(e,t,o,s)}function Wr(r,i,n,o){if(Object.is(r,i))return!0;var s=Br(r),a=Br(i);if(s===qr&&(s=Fr),a===qr&&(a=Fr),s!==a)return!1;switch(s){case"[object String]":return r.toString()===i.toString();case"[object Number]":return $r(r.valueOf(),i.valueOf());case"[object Boolean]":case"[object Date]":case"[object Symbol]":return Object.is(r.valueOf(),i.valueOf());case"[object RegExp]":return r.source===i.source&&r.flags===i.flags;case"[object Function]":return r===i}var c=(n=null!=n?n:new Map).get(r),l=n.get(i);if(null!=c&&null!=l)return c===i;n.set(r,i),n.set(i,r);try{switch(s){case"[object Map]":if(r.size!==i.size)return!1;for(var u of r.entries()){var p=e(u,2),d=p[0],g=p[1];if(!i.has(d)||!Jr(g,i.get(d),d,r,i,n,o))return!1}return!0;case"[object Set]":if(r.size!==i.size)return!1;for(var h,f=Array.from(r.values()),y=Array.from(i.values()),v=function(){var e=f[b],t=y.findIndex(function(t){return Jr(e,t,void 0,r,i,n,o)});if(-1===t)return{v:!1};y.splice(t,1)},b=0;b3&&void 0!==arguments[3]?arguments[3]:_,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return c(this,t),(o=u(this,t,[e,i,n,a])).core=e,o.logger=i,o.name=n,ni(r(o),"map",new Map),ni(r(o),"version","0.3"),ni(r(o),"cached",[]),ni(r(o),"initialized",!1),ni(r(o),"getKey"),ni(r(o),"storagePrefix",_),ni(r(o),"recentlyDeleted",[]),ni(r(o),"recentlyDeletedLimit",200),ni(r(o),"init",s(function*(){o.initialized||(o.logger.trace("Initialized"),yield o.restore(),o.cached.forEach(function(e){o.getKey&&null!==e&&!_r2(_d[15]).isUndefined(e)?o.map.set(o.getKey(e),e):_r2(_d[15]).isProposalStruct(e)?o.map.set(e.id,e):_r2(_d[15]).isSessionStruct(e)&&o.map.set(e.topic,e)}),o.cached=[],o.initialized=!0)})),ni(r(o),"set",(function(){var e=s(function*(e,t){o.isInitialized(),o.map.has(e)?yield o.update(e,t):(o.logger.debug("Setting value"),o.logger.trace({type:"method",method:"set",key:e,value:t}),o.map.set(e,t),yield o.persist())});return function(t,r){return e.apply(this,arguments)}})()),ni(r(o),"get",function(e){return o.isInitialized(),o.logger.debug("Getting value"),o.logger.trace({type:"method",method:"get",key:e}),o.getData(e)}),ni(r(o),"getAll",function(e){return o.isInitialized(),e?o.values.filter(function(t){return Object.keys(e).every(function(r){return Xr(t[r],e[r])})}):o.values}),ni(r(o),"update",(function(){var e=s(function*(e,t){o.isInitialized(),o.logger.debug("Updating value"),o.logger.trace({type:"method",method:"update",key:e,update:t});var r=ii(ii({},o.getData(e)),t);o.map.set(e,r),yield o.persist()});return function(t,r){return e.apply(this,arguments)}})()),ni(r(o),"delete",(function(){var e=s(function*(e,t){o.isInitialized(),o.map.has(e)&&(o.logger.debug("Deleting value"),o.logger.trace({type:"method",method:"delete",key:e,reason:t}),o.map.delete(e),o.addToRecentlyDeleted(e),yield o.persist())});return function(t,r){return e.apply(this,arguments)}})()),o.logger=_r2(_d[16]).generateChildLogger(i,o.name),o.storagePrefix=a,o.getKey=l,o}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.map.size}},{key:"keys",get:function(){return Array.from(this.map.keys())}},{key:"values",get:function(){return Array.from(this.map.values())}},{key:"addToRecentlyDeleted",value:function(e){this.recentlyDeleted.push(e),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}},{key:"setDataStore",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getDataStore",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"getData",value:function(e){var t=this.map.get(e);if(!t){if(this.recentlyDeleted.includes(e)){var r=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`Record was recently deleted - ${this.name}: ${e}`).message;throw this.logger.error(r),new Error(r)}var i=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw this.logger.error(i),new Error(i)}return t}},{key:"persist",value:(n=s(function*(){yield this.setDataStore(this.values)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getDataStore();if(typeof e>"u"||!e.length)return;if(this.map.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored value for ${this.name}`),this.logger.trace({type:"method",method:"restore",value:this.values})}catch(e){this.logger.debug(`Failed to Restore value for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IStore),si=Object.defineProperty,ai=function(e,t,r){return t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},ci=function(e,t,r){return ai(e,"symbol"!=typeof t?t+"":t,r)},li=(function(){return l(function e(r,i){var n=this;c(this,e),this.core=r,this.logger=i,ci(this,"name",V),ci(this,"version","0.3"),ci(this,"events",new g.default),ci(this,"pairings"),ci(this,"initialized",!1),ci(this,"storagePrefix",_),ci(this,"ignoredPayloadTypes",[_r2(_d[15]).TYPE_1]),ci(this,"registeredMethods",[]),ci(this,"init",s(function*(){n.initialized||(yield n.pairings.init(),yield n.cleanup(),n.registerRelayerEvents(),n.registerExpirerEvents(),n.initialized=!0,n.logger.trace("Initialized"))})),ci(this,"register",function(e){var r=e.methods;n.isInitialized(),n.registeredMethods=t(new Set([].concat(t(n.registeredMethods),t(r))))}),ci(this,"create",(function(){var e=s(function*(e){n.isInitialized();var t=_r2(_d[15]).generateRandomBytes32(),r=yield n.core.crypto.setSymKey(t),i=_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),o={protocol:"irn"},s={topic:r,expiry:i,relay:o,active:!1,methods:null==e?void 0:e.methods},a=_r2(_d[15]).formatUri({protocol:n.core.protocol,version:n.core.version,topic:r,symKey:t,relay:o,expiryTimestamp:i,methods:null==e?void 0:e.methods});return n.events.emit(q.create,s),n.core.expirer.set(r,i),yield n.pairings.set(r,s),yield n.core.relayer.subscribe(r,{transportType:null==e?void 0:e.transportType,internal:null==e?void 0:e.internal}),{topic:r,uri:a}});return function(t){return e.apply(this,arguments)}})()),ci(this,"pair",(function(){var e=s(function*(e){n.isInitialized();var t=n.core.eventClient.createEvent({properties:{topic:null==e?void 0:e.uri,trace:[re.pairing_started]}});n.isValidPair(e,t);var r,i=_r2(_d[15]).parseUri(e.uri),o=i.topic,s=i.symKey,a=i.relay,c=i.expiryTimestamp,l=i.methods;if(t.props.properties.topic=o,t.addTrace(re.pairing_uri_validation_success),t.addTrace(re.pairing_uri_not_expired),n.pairings.keys.includes(o)){if(r=n.pairings.get(o),t.addTrace(re.existing_pairing),r.active)throw t.setError(ie.active_pairing_already_exists),new Error(`Pairing already exists: ${o}. Please try again with a new connection URI.`);t.addTrace(re.pairing_not_expired)}var u=c||_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES),p={topic:o,relay:a,expiry:u,active:!1,methods:l};n.core.expirer.set(o,u),yield n.pairings.set(o,p),t.addTrace(re.store_new_pairing),e.activatePairing&&(yield n.activate({topic:o})),n.events.emit(q.create,p),t.addTrace(re.emit_inactive_pairing),n.core.crypto.keychain.has(o)||(yield n.core.crypto.setSymKey(s,o)),t.addTrace(re.subscribing_pairing_topic);try{yield n.core.relayer.confirmOnlineStateOrThrow()}catch(e){t.setError(ie.no_internet_connection)}try{yield n.core.relayer.subscribe(o,{relay:a})}catch(e){throw t.setError(ie.subscribe_pairing_topic_failure),e}return t.addTrace(re.subscribe_pairing_topic_success),p});return function(t){return e.apply(this,arguments)}})()),ci(this,"activate",(function(){var e=s(function*(e){var t=e.topic;n.isInitialized();var r=_r2(_d[15]).calcExpiry(_r2(_d[14]).FIVE_MINUTES);n.core.expirer.set(t,r),yield n.pairings.update(t,{active:!0,expiry:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"ping",(function(){var e=s(function*(e){n.isInitialized(),yield n.isValidPing(e),n.logger.warn("ping() is deprecated and will be removed in the next major release.");var t=e.topic;if(n.pairings.keys.includes(t)){var r=yield n.sendRequest(t,"wc_pairingPing",{}),i=_r2(_d[15]).createDelayedPromise(),o=i.done,s=i.resolve,a=i.reject;n.events.once(_r2(_d[15]).engineEvent("pairing_ping",r),function(e){var t=e.error;t?a(t):s()}),yield o()}});return function(t){return e.apply(this,arguments)}})()),ci(this,"updateExpiry",(function(){var e=s(function*(e){var t=e.topic,r=e.expiry;n.isInitialized(),yield n.pairings.update(t,{expiry:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"updateMetadata",(function(){var e=s(function*(e){var t=e.topic,r=e.metadata;n.isInitialized(),yield n.pairings.update(t,{peerMetadata:r})});return function(t){return e.apply(this,arguments)}})()),ci(this,"getPairings",function(){return n.isInitialized(),n.pairings.values}),ci(this,"disconnect",(function(){var e=s(function*(e){n.isInitialized(),yield n.isValidDisconnect(e);var t=e.topic;n.pairings.keys.includes(t)&&(yield n.sendRequest(t,"wc_pairingDelete",_r2(_d[15]).getSdkError("USER_DISCONNECTED")),yield n.deletePairing(t))});return function(t){return e.apply(this,arguments)}})()),ci(this,"formatUriFromPairing",function(e){n.isInitialized();var t=e.topic,r=e.relay,i=e.expiry,o=e.methods,s=n.core.crypto.keychain.get(t);return _r2(_d[15]).formatUri({protocol:n.core.protocol,version:n.core.version,topic:t,symKey:s,relay:r,expiryTimestamp:i,methods:o})}),ci(this,"sendRequest",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcRequest(t,r),o=yield n.core.crypto.encode(e,i),s=B[t].req;return n.core.history.set(e,i),n.core.relayer.publish(e,o,s),i.id});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"sendResult",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcResult(e,r),o=yield n.core.crypto.encode(t,i),s=(yield n.core.history.get(t,e)).request.method,a=B[s].res;yield n.core.relayer.publish(t,o,a),yield n.core.history.resolve(i)});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"sendError",(function(){var e=s(function*(e,t,r){var i=_r2(_d[20]).formatJsonRpcError(e,r),o=yield n.core.crypto.encode(t,i),s=(yield n.core.history.get(t,e)).request.method,a=B[s]?B[s].res:B.unregistered_method.res;yield n.core.relayer.publish(t,o,a),yield n.core.history.resolve(i)});return function(t,r,i){return e.apply(this,arguments)}})()),ci(this,"deletePairing",(function(){var e=s(function*(e,t){yield n.core.relayer.unsubscribe(e),yield Promise.all([n.pairings.delete(e,_r2(_d[15]).getSdkError("USER_DISCONNECTED")),n.core.crypto.deleteSymKey(e),t?Promise.resolve():n.core.expirer.del(e)])});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"cleanup",s(function*(){var e=n.pairings.getAll().filter(function(e){return _r2(_d[15]).isExpired(e.expiry)});yield Promise.all(e.map(function(e){return n.deletePairing(e.topic)}))})),ci(this,"onRelayEventRequest",(function(){var e=s(function*(e){var t=e.topic,r=e.payload;switch(r.method){case"wc_pairingPing":return yield n.onPairingPingRequest(t,r);case"wc_pairingDelete":return yield n.onPairingDeleteRequest(t,r);default:return yield n.onUnknownRpcMethodRequest(t,r)}});return function(t){return e.apply(this,arguments)}})()),ci(this,"onRelayEventResponse",(function(){var e=s(function*(e){var t=e.topic,r=e.payload,i=(yield n.core.history.get(t,r.id)).request.method;return"wc_pairingPing"===i?n.onPairingPingResponse(t,r):n.onUnknownRpcMethodResponse(i)});return function(t){return e.apply(this,arguments)}})()),ci(this,"onPairingPingRequest",(function(){var e=s(function*(e,t){var r=t.id;try{n.isValidPing({topic:e}),yield n.sendResult(r,e,!0),n.events.emit(q.ping,{id:r,topic:e})}catch(t){yield n.sendError(r,e,t),n.logger.error(t)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onPairingPingResponse",function(e,t){var r=t.id;setTimeout(function(){_r2(_d[20]).isJsonRpcResult(t)?n.events.emit(_r2(_d[15]).engineEvent("pairing_ping",r),{}):_r2(_d[20]).isJsonRpcError(t)&&n.events.emit(_r2(_d[15]).engineEvent("pairing_ping",r),{error:t.error})},500)}),ci(this,"onPairingDeleteRequest",(function(){var e=s(function*(e,t){var r=t.id;try{n.isValidDisconnect({topic:e}),yield n.deletePairing(e),n.events.emit(q.delete,{id:r,topic:e})}catch(t){yield n.sendError(r,e,t),n.logger.error(t)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onUnknownRpcMethodRequest",(function(){var e=s(function*(e,t){var r=t.id,i=t.method;try{if(n.registeredMethods.includes(i))return;var o=_r2(_d[15]).getSdkError("WC_METHOD_UNSUPPORTED",i);yield n.sendError(r,e,o),n.logger.error(o)}catch(o){yield n.sendError(r,e,o),n.logger.error(o)}});return function(t,r){return e.apply(this,arguments)}})()),ci(this,"onUnknownRpcMethodResponse",function(e){n.registeredMethods.includes(e)||n.logger.error(_r2(_d[15]).getSdkError("WC_METHOD_UNSUPPORTED",e))}),ci(this,"isValidPair",function(e,t){var r;if(!_r2(_d[15]).isValidParams(e)){var i=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`pair() params: ${e}`).message;throw t.setError(ie.malformed_pairing_uri),new Error(i)}if(!_r2(_d[15]).isValidUrl(e.uri)){var n=_r2(_d[15]).getInternalError("MISSING_OR_INVALID",`pair() uri: ${e.uri}`).message;throw t.setError(ie.malformed_pairing_uri),new Error(n)}var o=_r2(_d[15]).parseUri(null==e?void 0:e.uri);if(null==(r=null==o?void 0:o.relay)||!r.protocol){var s=_r2(_d[15]).getInternalError("MISSING_OR_INVALID","pair() uri#relay-protocol").message;throw t.setError(ie.malformed_pairing_uri),new Error(s)}if(null==o||!o.symKey){var a=_r2(_d[15]).getInternalError("MISSING_OR_INVALID","pair() uri#symKey").message;throw t.setError(ie.malformed_pairing_uri),new Error(a)}if(null!=o&&o.expiryTimestamp&&_r2(_d[14]).toMiliseconds(null==o?void 0:o.expiryTimestamp)"u"&&(t.response=_r2(_d[20]).isJsonRpcError(e)?{error:e.error}:{result:e.result},n.records.set(t.id,t),n.persist(),n.events.emit(F.updated,t))}});return function(t){return e.apply(this,arguments)}})()),di(r(n),"get",(function(){var e=s(function*(e,t){return n.isInitialized(),n.logger.debug("Getting record"),n.logger.trace({type:"method",method:"get",topic:e,id:t}),yield n.getRecord(t)});return function(t,r){return e.apply(this,arguments)}})()),di(r(n),"delete",function(e,t){n.isInitialized(),n.logger.debug("Deleting record"),n.logger.trace({type:"method",method:"delete",id:t}),n.values.forEach(function(r){if(r.topic===e){if(typeof t<"u"&&r.id!==t)return;n.records.delete(r.id),n.events.emit(F.deleted,r)}}),n.persist()}),di(r(n),"exists",(function(){var e=s(function*(e,t){return n.isInitialized(),!!n.records.has(t)&&(yield n.getRecord(t)).topic===e});return function(t,r){return e.apply(this,arguments)}})()),di(r(n),"on",function(e,t){n.events.on(e,t)}),di(r(n),"once",function(e,t){n.events.once(e,t)}),di(r(n),"off",function(e,t){n.events.off(e,t)}),di(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"size",get:function(){return this.records.size}},{key:"keys",get:function(){return Array.from(this.records.keys())}},{key:"values",get:function(){return Array.from(this.records.values())}},{key:"pending",get:function(){var e=[];return this.values.forEach(function(t){if(!(typeof t.response<"u")){var r={topic:t.topic,request:_r2(_d[20]).formatJsonRpcRequest(t.request.method,t.request.params,t.id),chainId:t.chainId};return e.push(r)}}),e}},{key:"setJsonRpcRecords",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getJsonRpcRecords",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"getRecord",value:function(e){this.isInitialized();var t=this.records.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw new Error(r)}return t}},{key:"persist",value:(n=s(function*(){yield this.setJsonRpcRecords(this.values),this.events.emit(F.sync)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getJsonRpcRecords();if(typeof e>"u"||!e.length)return;if(this.records.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored records for ${this.name}`),this.logger.trace({type:"method",method:"restore",records:this.values})}catch(e){this.logger.debug(`Failed to Restore records for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.events.on(F.created,function(t){var r=F.created;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.events.on(F.updated,function(t){var r=F.updated;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.events.on(F.deleted,function(t){var r=F.deleted;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,record:t})}),this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){e.cleanup()})}},{key:"cleanup",value:function(){var e=this;try{this.isInitialized();var t=!1;this.records.forEach(function(r){_r2(_d[14]).toMiliseconds(r.expiry||0)-Date.now()<=0&&(e.logger.info(`Deleting expired history log: ${r.id}`),e.records.delete(r.id),e.events.emit(F.deleted,r,!1),t=!0)}),t&&this.persist()}catch(t){this.logger.warn(t)}}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IJsonRpcHistory),hi=Object.defineProperty,fi=function(e,t,r){return t in e?hi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},yi=function(e,t,r){return fi(e,"symbol"!=typeof t?t+"":t,r)},vi=(function(e){function t(e,i){var n;return c(this,t),(n=u(this,t,[e,i])).core=e,n.logger=i,yi(r(n),"expirations",new Map),yi(r(n),"events",new(_r2(_d[10]).EventEmitter)),yi(r(n),"name",H),yi(r(n),"version","0.3"),yi(r(n),"cached",[]),yi(r(n),"initialized",!1),yi(r(n),"storagePrefix",_),yi(r(n),"init",s(function*(){n.initialized||(n.logger.trace("Initialized"),yield n.restore(),n.cached.forEach(function(e){return n.expirations.set(e.target,e)}),n.cached=[],n.registerEventListeners(),n.initialized=!0)})),yi(r(n),"has",function(e){try{var t=n.formatTarget(e);return typeof n.getExpiration(t)<"u"}catch(e){return!1}}),yi(r(n),"set",function(e,t){n.isInitialized();var r=n.formatTarget(e),i={target:r,expiry:t};n.expirations.set(r,i),n.checkExpiry(r,i),n.events.emit(Y.created,{target:r,expiration:i})}),yi(r(n),"get",function(e){n.isInitialized();var t=n.formatTarget(e);return n.getExpiration(t)}),yi(r(n),"del",function(e){if(n.isInitialized(),n.has(e)){var t=n.formatTarget(e),r=n.getExpiration(t);n.expirations.delete(t),n.events.emit(Y.deleted,{target:t,expiration:r})}}),yi(r(n),"on",function(e,t){n.events.on(e,t)}),yi(r(n),"once",function(e,t){n.events.once(e,t)}),yi(r(n),"off",function(e,t){n.events.off(e,t)}),yi(r(n),"removeListener",function(e,t){n.events.removeListener(e,t)}),n.logger=_r2(_d[16]).generateChildLogger(i,n.name),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.expirations.size}},{key:"keys",get:function(){return Array.from(this.expirations.keys())}},{key:"values",get:function(){return Array.from(this.expirations.values())}},{key:"formatTarget",value:function(e){if("string"==typeof e)return _r2(_d[15]).formatTopicTarget(e);if("number"==typeof e)return _r2(_d[15]).formatIdTarget(e);var t=_r2(_d[15]).getInternalError("UNKNOWN_TYPE","Target type: "+typeof e).message;throw new Error(t)}},{key:"setExpirations",value:(p=s(function*(e){yield this.core.storage.setItem(this.storageKey,e)}),function(e){return p.apply(this,arguments)})},{key:"getExpirations",value:(a=s(function*(){return yield this.core.storage.getItem(this.storageKey)}),function(){return a.apply(this,arguments)})},{key:"persist",value:(n=s(function*(){yield this.setExpirations(this.values),this.events.emit(Y.sync)}),function(){return n.apply(this,arguments)})},{key:"restore",value:(i=s(function*(){try{var e=yield this.getExpirations();if(typeof e>"u"||!e.length)return;if(this.expirations.size){var t=_r2(_d[15]).getInternalError("RESTORE_WILL_OVERRIDE",this.name).message;throw this.logger.error(t),new Error(t)}this.cached=e,this.logger.debug(`Successfully Restored expirations for ${this.name}`),this.logger.trace({type:"method",method:"restore",expirations:this.values})}catch(e){this.logger.debug(`Failed to Restore expirations for ${this.name}`),this.logger.error(e)}}),function(){return i.apply(this,arguments)})},{key:"getExpiration",value:function(e){var t=this.expirations.get(e);if(!t){var r=_r2(_d[15]).getInternalError("NO_MATCHING_KEY",`${this.name}: ${e}`).message;throw this.logger.warn(r),new Error(r)}return t}},{key:"checkExpiry",value:function(e,t){var r=t.expiry;_r2(_d[14]).toMiliseconds(r)-Date.now()<=0&&this.expire(e,t)}},{key:"expire",value:function(e,t){this.expirations.delete(e),this.events.emit(Y.expired,{target:e,expiration:t})}},{key:"checkExpirations",value:function(){var e=this;this.core.relayer.connected&&this.expirations.forEach(function(t,r){return e.checkExpiry(r,t)})}},{key:"registerEventListeners",value:function(){var e=this;this.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,function(){return e.checkExpirations()}),this.events.on(Y.created,function(t){var r=Y.created;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()}),this.events.on(Y.expired,function(t){var r=Y.expired;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()}),this.events.on(Y.deleted,function(t){var r=Y.deleted;e.logger.info(`Emitting ${r}`),e.logger.debug({type:"event",event:r,data:t}),e.persist()})}},{key:"isInitialized",value:function(){if(!this.initialized){var e=_r2(_d[15]).getInternalError("NOT_INITIALIZED",this.name).message;throw new Error(e)}}}]);var i,n,a,p})(_r2(_d[19]).IExpirer),bi=Object.defineProperty,mi=function(e,t,r){return t in e?bi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},_i=function(e,t,r){return mi(e,"symbol"!=typeof t?t+"":t,r)},Ei=(function(e){function t(e,i,n){var o;return c(this,t),(o=u(this,t,[e,i,n])).core=e,o.logger=i,o.store=n,_i(r(o),"name",J),_i(r(o),"abortController"),_i(r(o),"isDevEnv"),_i(r(o),"verifyUrlV3",Z),_i(r(o),"storagePrefix",_),_i(r(o),"version",2),_i(r(o),"publicKey"),_i(r(o),"fetchPromise"),_i(r(o),"init",s(function*(){var e;o.isDevEnv||(o.publicKey=yield o.store.getItem(o.storeKey),o.publicKey&&_r2(_d[14]).toMiliseconds(null==(e=o.publicKey)?void 0:e.expiresAt)2&&void 0!==arguments[2])||arguments[2];return c(this,i),(o=u(this,i,[t,n,a])).core=t,o.logger=n,Ai(r(o),"context",ne),Ai(r(o),"storagePrefix",_),Ai(r(o),"storageVersion",.1),Ai(r(o),"events",new Map),Ai(r(o),"shouldPersist",!1),Ai(r(o),"init",s(function*(){if(!_r2(_d[15]).isTestRun())try{var e={eventId:_r2(_d[15]).uuidv4(),timestamp:Date.now(),domain:o.getAppDomain(),props:{event:"INIT",type:"",properties:{client_id:yield o.core.crypto.getClientId(),user_agent:_r2(_d[15]).formatUA(o.core.relayer.protocol,o.core.relayer.version,L)}}};yield o.sendEvent([e])}catch(e){o.logger.warn(e)}})),Ai(r(o),"createEvent",function(e){var t=e.event,r=void 0===t?"ERROR":t,i=e.type,n=void 0===i?"":i,s=e.properties,a=s.topic,c=s.trace,l=_r2(_d[15]).uuidv4(),u=o.core.projectId||"",p=Date.now(),d=Ci({eventId:l,timestamp:p,props:{event:r,type:n,properties:{topic:a,trace:c}},bundleId:u,domain:o.getAppDomain()},o.setMethods(l));return o.telemetryEnabled&&(o.events.set(l,d),o.shouldPersist=!0),d}),Ai(r(o),"getEvent",function(e){var t=e.eventId,r=e.topic;if(t)return o.events.get(t);var i=Array.from(o.events.values()).find(function(e){return e.props.properties.topic===r});return i?Ci(Ci({},i),o.setMethods(i.eventId)):void 0}),Ai(r(o),"deleteEvent",function(e){var t=e.eventId;o.events.delete(t),o.shouldPersist=!0}),Ai(r(o),"setEventListeners",function(){o.core.heartbeat.on(_r2(_d[21]).HEARTBEAT_EVENTS.pulse,s(function*(){o.shouldPersist&&(yield o.persist()),o.events.forEach(function(e){_r2(_d[14]).fromMiliseconds(Date.now())-_r2(_d[14]).fromMiliseconds(e.timestamp)>86400&&(o.events.delete(e.eventId),o.shouldPersist=!0)})}))}),Ai(r(o),"setMethods",function(e){return{addTrace:function(t){return o.addTrace(e,t)},setError:function(t){return o.setError(e,t)}}}),Ai(r(o),"addTrace",function(e,t){var r=o.events.get(e);r&&(r.props.properties.trace.push(t),o.events.set(e,r),o.shouldPersist=!0)}),Ai(r(o),"setError",function(e,t){var r=o.events.get(e);r&&(r.props.type=t,r.timestamp=Date.now(),o.events.set(e,r),o.shouldPersist=!0)}),Ai(r(o),"persist",s(function*(){yield o.core.storage.setItem(o.storageKey,Array.from(o.events.values())),o.shouldPersist=!1})),Ai(r(o),"restore",s(function*(){try{var e=(yield o.core.storage.getItem(o.storageKey))||[];if(!e.length)return;e.forEach(function(e){o.events.set(e.eventId,Ci(Ci({},e),o.setMethods(e.eventId)))})}catch(e){o.logger.warn(e)}})),Ai(r(o),"submit",s(function*(){if(o.telemetryEnabled&&0!==o.events.size){var t=[];for(var r of o.events){var i=e(r,2),n=i[0],s=i[1];s.props.type&&t.push(s)}if(0!==t.length)try{if((yield o.sendEvent(t)).ok)for(var a of t)o.events.delete(a.eventId),o.shouldPersist=!0}catch(n){o.logger.warn(n)}}})),Ai(r(o),"sendEvent",(function(){var e=s(function*(e){var t=o.getAppDomain()?"":"&sp=desktop";return yield fetch(`${oe}?projectId=${o.core.projectId}&st=events_sdk&sv=js-${L}${t}`,{method:"POST",body:JSON.stringify(e)})});return function(t){return e.apply(this,arguments)}})()),Ai(r(o),"getAppDomain",function(){return _r2(_d[15]).getAppMetadata().url}),o.logger=_r2(_d[16]).generateChildLogger(n,o.context),o.telemetryEnabled=a,a?o.restore().then(s(function*(){yield o.submit(),o.setEventListeners()})):o.persist(),o}return o(i,t),l(i,[{key:"storageKey",get:function(){return this.storagePrefix+this.storageVersion+this.core.customStoragePrefix+"//"+this.context}}])})(_r2(_d[19]).IEventClient),Li=Object.defineProperty,Di=Object.getOwnPropertySymbols,zi=Object.prototype.hasOwnProperty,ji=Object.prototype.propertyIsEnumerable,Mi=function(e,t,r){return t in e?Li(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ui=function(e,t){for(var r in t||(t={}))zi.call(t,r)&&Mi(e,r,t[r]);if(Di)for(var r of Di(t))ji.call(t,r)&&Mi(e,r,t[r]);return e},Ki=function(e,t,r){return Mi(e,"symbol"!=typeof t?t+"":t,r)},$i=(function(e){function t(e){var n,o;c(this,t),n=u(this,t,[e]),Ki(r(n),"protocol",v),Ki(r(n),"version",2),Ki(r(n),"name",b),Ki(r(n),"relayUrl"),Ki(r(n),"projectId"),Ki(r(n),"customStoragePrefix"),Ki(r(n),"events",new(_r2(_d[10]).EventEmitter)),Ki(r(n),"logger"),Ki(r(n),"heartbeat"),Ki(r(n),"relayer"),Ki(r(n),"crypto"),Ki(r(n),"storage"),Ki(r(n),"history"),Ki(r(n),"expirer"),Ki(r(n),"pairing"),Ki(r(n),"verify"),Ki(r(n),"echoClient"),Ki(r(n),"linkModeSupportedApps"),Ki(r(n),"eventClient"),Ki(r(n),"initialized",!1),Ki(r(n),"logChunkController"),Ki(r(n),"on",function(e,t){return n.events.on(e,t)}),Ki(r(n),"once",function(e,t){return n.events.once(e,t)}),Ki(r(n),"off",function(e,t){return n.events.off(e,t)}),Ki(r(n),"removeListener",function(e,t){return n.events.removeListener(e,t)}),Ki(r(n),"dispatchEnvelope",function(e){var t=e.topic,r=e.message,i=e.sessionExists;if(t&&r){var o={topic:t,message:r,publishedAt:Date.now(),transportType:D.link_mode};n.relayer.onLinkMessageEvent(o,{sessionExists:i})}});var a=n.getGlobalCore(null==e?void 0:e.customStoragePrefix);if(a)try{return i(n,(n.customStoragePrefix=a.customStoragePrefix,n.logger=a.logger,n.heartbeat=a.heartbeat,n.crypto=a.crypto,n.history=a.history,n.expirer=a.expirer,n.storage=a.storage,n.relayer=a.relayer,n.pairing=a.pairing,n.verify=a.verify,n.echoClient=a.echoClient,n.linkModeSupportedApps=a.linkModeSupportedApps,n.eventClient=a.eventClient,n.initialized=a.initialized,n.logChunkController=a.logChunkController,a))}catch(e){console.warn("Failed to copy global core",e)}n.projectId=null==e?void 0:e.projectId,n.relayUrl=(null==e?void 0:e.relayUrl)||R,n.customStoragePrefix=null!=e&&e.customStoragePrefix?`:${e.customStoragePrefix}`:"";var l=_r2(_d[16]).getDefaultLoggerOptions({level:"string"==typeof(null==e?void 0:e.logger)&&e.logger?e.logger:E.logger,name:b}),p=_r2(_d[16]).generatePlatformLogger({opts:l,maxSizeInBytes:null==e?void 0:e.maxLogBlobSizeInBytes,loggerOverride:null==e?void 0:e.logger}),d=p.logger,g=p.chunkLoggerController;return n.logChunkController=g,null!=(o=n.logChunkController)&&o.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=s(function*(){var e,t;null!=(e=n.logChunkController)&&e.downloadLogsBlobInBrowser&&(null==(t=n.logChunkController)||t.downloadLogsBlobInBrowser({clientId:yield n.crypto.getClientId()}))})),n.logger=_r2(_d[16]).generateChildLogger(d,n.name),n.heartbeat=new(_r2(_d[21]).HeartBeat),n.crypto=new Jt(n,n.logger,null==e?void 0:e.keychain),n.history=new gi(n,n.logger),n.expirer=new vi(n,n.logger),n.storage=null!=e&&e.storage?e.storage:new h.default(Ui(Ui({},I),null==e?void 0:e.storageOptions)),n.relayer=new Kr({core:n,logger:n.logger,relayUrl:n.relayUrl,projectId:n.projectId}),n.pairing=new li(n,n.logger),n.verify=new Ei(n,n.logger,n.storage),n.echoClient=new Pi(n.projectId||"",n.logger),n.linkModeSupportedApps=[],n.eventClient=new Ni(n,n.logger,null==e?void 0:e.telemetryEnabled),n.setGlobalCore(n),n}return o(t,e),l(t,[{key:"context",get:function(){return _r2(_d[16]).getLoggerContext(this.logger)}},{key:"start",value:(g=s(function*(){this.initialized||(yield this.initialize())}),function(){return g.apply(this,arguments)})},{key:"getLogsBlob",value:(d=s(function*(){var e;return null==(e=this.logChunkController)?void 0:e.logsToBlob({clientId:yield this.crypto.getClientId()})}),function(){return d.apply(this,arguments)})},{key:"addLinkModeSupportedApp",value:(p=s(function*(e){this.linkModeSupportedApps.includes(e)||(this.linkModeSupportedApps.push(e),yield this.storage.setItem(M,this.linkModeSupportedApps))}),function(e){return p.apply(this,arguments)})},{key:"initialize",value:(a=s(function*(){this.logger.trace("Initialized");try{yield this.crypto.init(),yield this.history.init(),yield this.expirer.init(),yield this.relayer.init(),yield this.heartbeat.init(),yield this.pairing.init(),this.linkModeSupportedApps=(yield this.storage.getItem(M))||[],this.initialized=!0,this.logger.info("Core Initialization Success")}catch(e){throw this.logger.warn(`Core Initialization Failure at epoch ${Date.now()}`,e),this.logger.error(e.message),e}}),function(){return a.apply(this,arguments)})},{key:"getGlobalCore",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";try{if(this.isGlobalCoreDisabled())return;var t=`_walletConnectCore_${e}`,r=`${t}_count`;return globalThis[r]=(globalThis[r]||0)+1,globalThis[r]>1&&console.warn(`WalletConnect Core is already initialized. This is probably a mistake and can lead to unexpected behavior. Init() was called ${globalThis[r]} times.`),globalThis[t]}catch(t){return void console.warn("Failed to get global WalletConnect core",t)}}},{key:"setGlobalCore",value:function(e){var t;try{if(this.isGlobalCoreDisabled())return;var r=`_walletConnectCore_${(null==(t=e.opts)?void 0:t.customStoragePrefix)||""}`;globalThis[r]=e}catch(r){console.warn("Failed to set global WalletConnect core",r)}}},{key:"isGlobalCoreDisabled",value:function(){try{return typeof process<"u"&&"true"===process.env.DISABLE_GLOBAL_CORE}catch(e){return!0}}}],[{key:"init",value:(n=s(function*(e){var r=new t(e);yield r.initialize();var i=yield r.crypto.getClientId();return yield r.storage.setItem(j,i),r}),function(e){return n.apply(this,arguments)})}]);var n,a,p,d,g})(_r2(_d[19]).ICore),Vi=$i;_e.CORE_CONTEXT=b,_e.CORE_DEFAULT=E,_e.CORE_PROTOCOL=v,_e.CORE_STORAGE_OPTIONS=I,_e.CORE_STORAGE_PREFIX=_,_e.CORE_VERSION=2,_e.CRYPTO_CLIENT_SEED=T,_e.CRYPTO_CONTEXT=w,_e.CRYPTO_JWT_TTL=_r2(_d[14]).ONE_DAY,_e.Core=Vi,_e.Crypto=Jt,_e.ECHO_CONTEXT=ee,_e.ECHO_URL=te,_e.EVENTS_CLIENT_API_URL=oe,_e.EVENTS_STORAGE_CLEANUP_INTERVAL=86400,_e.EVENTS_STORAGE_CONTEXT=ne,_e.EVENTS_STORAGE_VERSION=.1,_e.EVENT_CLIENT_AUTHENTICATE_ERRORS={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",missing_session_authenticate_request:"missing_session_authenticate_request",session_authenticate_request_expired:"session_authenticate_request_expired",chains_caip2_compliant_failure:"chains_caip2_compliant_failure",chains_evm_compliant_failure:"chains_evm_compliant_failure",invalid_cacao:"invalid_cacao",subscribe_authenticated_session_topic_failure:"subscribe_authenticated_session_topic_failure",authenticated_session_approve_publish_failure:"authenticated_session_approve_publish_failure",authenticated_session_pending_request_not_found:"authenticated_session_pending_request_not_found"},_e.EVENT_CLIENT_AUTHENTICATE_TRACES={authenticated_session_approve_started:"authenticated_session_approve_started",authenticated_session_not_expired:"authenticated_session_not_expired",chains_caip2_compliant:"chains_caip2_compliant",chains_evm_compliant:"chains_evm_compliant",create_authenticated_session_topic:"create_authenticated_session_topic",cacaos_verified:"cacaos_verified",store_authenticated_session:"store_authenticated_session",subscribing_authenticated_session_topic:"subscribing_authenticated_session_topic",subscribe_authenticated_session_topic_success:"subscribe_authenticated_session_topic_success",publishing_authenticated_session_approve:"publishing_authenticated_session_approve",authenticated_session_approve_publish_success:"authenticated_session_approve_publish_success"},_e.EVENT_CLIENT_CONTEXT="event-client",_e.EVENT_CLIENT_PAIRING_ERRORS=ie,_e.EVENT_CLIENT_PAIRING_TRACES=re,_e.EVENT_CLIENT_SESSION_ERRORS={no_internet_connection:"no_internet_connection",no_wss_connection:"no_wss_connection",proposal_expired:"proposal_expired",subscribe_session_topic_failure:"subscribe_session_topic_failure",session_approve_publish_failure:"session_approve_publish_failure",session_settle_publish_failure:"session_settle_publish_failure",session_approve_namespace_validation_failure:"session_approve_namespace_validation_failure",proposal_not_found:"proposal_not_found"},_e.EVENT_CLIENT_SESSION_TRACES={session_approve_started:"session_approve_started",proposal_not_expired:"proposal_not_expired",session_namespaces_validation_success:"session_namespaces_validation_success",create_session_topic:"create_session_topic",subscribing_session_topic:"subscribing_session_topic",subscribe_session_topic_success:"subscribe_session_topic_success",publishing_session_approve:"publishing_session_approve",session_approve_publish_success:"session_approve_publish_success",store_session:"store_session",publishing_session_settle:"publishing_session_settle",session_settle_publish_success:"session_settle_publish_success"},_e.EXPIRER_CONTEXT=H,_e.EXPIRER_DEFAULT_TTL=_r2(_d[14]).ONE_DAY,_e.EXPIRER_EVENTS=Y,_e.EXPIRER_STORAGE_VERSION="0.3",_e.EchoClient=Pi,_e.EventClient=Ni,_e.Expirer=vi,_e.HISTORY_CONTEXT=G,_e.HISTORY_EVENTS=F,_e.HISTORY_STORAGE_VERSION="0.3",_e.JsonRpcHistory=gi,_e.KEYCHAIN_CONTEXT=P,_e.KEYCHAIN_STORAGE_VERSION="0.3",_e.KeyChain=Ft,_e.MESSAGES_CONTEXT=S,_e.MESSAGES_STORAGE_VERSION="0.3",_e.MESSAGE_DIRECTION=z,_e.MessageTracker=sr,_e.PAIRING_CONTEXT=V,_e.PAIRING_DEFAULT_TTL=_r2(_d[14]).THIRTY_DAYS,_e.PAIRING_EVENTS=q,_e.PAIRING_RPC_OPTS=B,_e.PAIRING_STORAGE_VERSION="0.3",_e.PENDING_SUB_RESOLUTION_TIMEOUT=$,_e.PUBLISHER_CONTEXT=k,_e.PUBLISHER_DEFAULT_TTL=_r2(_d[14]).SIX_HOURS,_e.Pairing=li,_e.RELAYER_CONTEXT=x,_e.RELAYER_DEFAULT_LOGGER=O,_e.RELAYER_DEFAULT_PROTOCOL="irn",_e.RELAYER_DEFAULT_RELAY_URL=R,_e.RELAYER_EVENTS=C,_e.RELAYER_PROVIDER_EVENTS=N,_e.RELAYER_RECONNECT_TIMEOUT=.1,_e.RELAYER_SDK_VERSION=L,_e.RELAYER_STORAGE_OPTIONS={database:":memory:"},_e.RELAYER_SUBSCRIBER_SUFFIX=A,_e.RELAYER_TRANSPORT_CUTOFF=1e4,_e.Relayer=Kr,_e.STORE_STORAGE_VERSION="0.3",_e.SUBSCRIBER_CONTEXT=K,_e.SUBSCRIBER_DEFAULT_TTL=_r2(_d[14]).THIRTY_DAYS,_e.SUBSCRIBER_EVENTS=U,_e.SUBSCRIBER_STORAGE_VERSION="0.3",_e.Store=oi,_e.Subscriber=Ar,_e.TRANSPORT_TYPES=D,_e.TRUSTED_VERIFY_URLS=Q,_e.VERIFY_CONTEXT=J,_e.VERIFY_SERVER=X,_e.VERIFY_SERVER_V3=Z,_e.Verify=Ei,_e.WALLETCONNECT_CLIENT_ID=j,_e.WALLETCONNECT_LINK_MODE_APPS=M,_e.default=$i},1835,[19,32,10,9,11,12,367,18,3,4,1644,1836,1614,1843,1390,1384,1858,1615,1580,1861,1845,1864,1865,1387]); +__d(function(_g,_r,_i,_a,m,_e,d){"use strict";var t=_r(d[0]),e=_r(d[1]),n=_r(d[2]);Object.defineProperty(_e,"__esModule",{value:!0});var r,u=(r=_r(d[3]))&&"object"==typeof r&&"default"in r?r:{default:r},i=function(t){return JSON.stringify(t,function(t,e){return"bigint"==typeof e?e.toString()+"n":e})},a=function(t){var e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3');return JSON.parse(e,function(t,e){return"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e})};function o(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type "+typeof t);try{return a(t)}catch(e){return t}}function s(t){return"string"==typeof t?t:i(t)||""}function f(t){var e;return[t[0],o(null!=(e=t[1])?e:"")]}var y=(function(){return n(function t(){e(this,t),this.asyncStorage=u.default},[{key:"getKeys",value:(c=t(function*(){return this.asyncStorage.getAllKeys()}),function(){return c.apply(this,arguments)})},{key:"getEntries",value:(y=t(function*(){var t=yield this.getKeys();return(yield this.asyncStorage.multiGet(t)).map(f)}),function(){return y.apply(this,arguments)})},{key:"getItem",value:(a=t(function*(t){var e=yield this.asyncStorage.getItem(t);if(!(typeof e>"u"||null===e))return o(e)}),function(t){return a.apply(this,arguments)})},{key:"setItem",value:(i=t(function*(t,e){yield this.asyncStorage.setItem(t,s(e))}),function(t,e){return i.apply(this,arguments)})},{key:"removeItem",value:(r=t(function*(t){yield this.asyncStorage.removeItem(t)}),function(t){return r.apply(this,arguments)})}]);var r,i,a,y,c})();_e.KeyValueStorage=y,_e.default=y},1836,[367,3,4,1837]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,Object.defineProperty(e,"useAsyncStorage",{enumerable:!0,get:function(){return r(d[1]).useAsyncStorage}});var u=t(r(d[2]));e.default=u.default},1837,[1,1838,1839]); +__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.useAsyncStorage=function(t){return{getItem:function(){for(var u=arguments.length,f=new Array(u),o=0;o1&&"string"!=typeof s){if(null==s)throw new Error(`[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: ${s}\nPassed key: ${o}\n`);console.warn(`[AsyncStorage] The value for key "${o}" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: ${s}\nPassed key: ${o}\n`)}},_e.convertError=e,_e.convertErrors=function(t){var o=n(t);return o?o.map(function(n){return e(n)}):null}},1842,[]); +__d(function(g,_r,_i,_a,m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.WsConnection=void 0;var t=e(_r(_d[1])),n=e(_r(_d[2])),o=e(_r(_d[3])),r=function(e){return e.split("?")[0]},i=typeof WebSocket<"u"?WebSocket:typeof g<"u"&&typeof g.WebSocket<"u"?g.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:_r(_d[4]);_e.default=_e.WsConnection=(function(){return(0,o.default)(function e(t){if((0,n.default)(this,e),this.url=t,this.events=new(_r(_d[5]).EventEmitter),this.registering=!1,!(0,_r(_d[6]).isWsUrl)(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t},[{key:"connected",get:function(){return typeof this.socket<"u"}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(u=(0,t.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;yield this.register(e)}),function(){return u.apply(this,arguments)})},{key:"close",value:(s=(0,t.default)(function*(){var e=this;return new Promise(function(t,n){typeof e.socket>"u"?n(new Error("Connection already closed")):(e.socket.onclose=function(n){e.onClose(n),t()},e.socket.close())})}),function(){return s.apply(this,arguments)})},{key:"send",value:(e=(0,t.default)(function*(e){typeof this.socket>"u"&&(this.socket=yield this.register());try{this.socket.send((0,_r(_d[7]).safeJsonStringify)(e))}catch(t){this.onError(e.id,t)}}),function(t){return e.apply(this,arguments)})},{key:"register",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!(0,_r(_d[6]).isWsUrl)(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){var n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise(function(t,n){e.events.once("register_error",function(t){e.resetMaxListeners(),n(t)}),e.events.once("open",function(){if(e.resetMaxListeners(),typeof e.socket>"u")return n(new Error("WebSocket connection is missing or invalid"));t(e.socket)})})}return this.url=t,this.registering=!0,new Promise(function(n,o){var r=(0,_r(_d[6]).isReactNative)()?void 0:{rejectUnauthorized:!(0,_r(_d[6]).isLocalhostUrl)(t)},s=new i(t,[],r);typeof WebSocket<"u"||typeof g<"u"&&typeof g.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u"?s.onerror=function(t){var n=t;o(e.emitError(n.error))}:s.on("error",function(t){o(e.emitError(t))}),s.onopen=function(){e.onOpen(s),n(s)}})}},{key:"onOpen",value:function(e){var t=this;e.onmessage=function(e){return t.onPayload(e)},e.onclose=function(e){return t.onClose(e)},this.socket=e,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(e){this.socket=void 0,this.registering=!1,this.events.emit("close",e)}},{key:"onPayload",value:function(e){if(!(typeof e.data>"u")){var t="string"==typeof e.data?(0,_r(_d[7]).safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var n=this.parseError(t),o=n.message||n.toString(),r=(0,_r(_d[6]).formatJsonRpcError)(e,o);this.events.emit("payload",r)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,_r(_d[6]).parseConnectionError)(e,r(t),"WS")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}},{key:"emitError",value:function(e){var t=this.parseError(new Error((null==e?void 0:e.message)||`WebSocket connection failed for host: ${r(this.url)}`));return this.events.emit("register_error",t),t}}]);var e,s,u})()},1843,[1,367,3,4,1844,1644,1845,1615]); +__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){throw new Error("ws does not work in the browser. Browser clients must use the native WebSocket object")}},1844,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))}),Object.keys(r(d[1])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[1])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[1])[n]}}))}),Object.keys(r(d[2])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[2])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[2])[n]}}))}),Object.keys(r(d[3])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[3])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[3])[n]}}))}),Object.keys(r(d[4])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[4])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[4])[n]}}))}),Object.keys(r(d[5])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[5])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[5])[n]}}))}),Object.keys(r(d[6])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[6])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[6])[n]}}))}),Object.keys(r(d[7])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[7])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[7])[n]}}))})},1845,[1846,1847,1848,1852,1853,1854,1856,1857]); +__d(function(g,r,i,a,m,e,d){var R=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.STANDARD_ERROR_MAP=e.SERVER_ERROR_CODE_RANGE=e.SERVER_ERROR=e.RESERVED_ERROR_CODES=e.PARSE_ERROR=e.METHOD_NOT_FOUND=e.INVALID_REQUEST=e.INVALID_PARAMS=e.INTERNAL_ERROR=e.DEFAULT_ERROR=void 0;var E=R(r(d[1])),_=e.PARSE_ERROR="PARSE_ERROR",O=e.INVALID_REQUEST="INVALID_REQUEST",A=e.METHOD_NOT_FOUND="METHOD_NOT_FOUND",D=e.INVALID_PARAMS="INVALID_PARAMS",N=e.INTERNAL_ERROR="INTERNAL_ERROR",S=e.SERVER_ERROR="SERVER_ERROR";e.RESERVED_ERROR_CODES=[-32700,-32600,-32601,-32602,-32603],e.SERVER_ERROR_CODE_RANGE=[-32e3,-32099],e.STANDARD_ERROR_MAP=(0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)((0,E.default)({},_,{code:-32700,message:"Parse error"}),O,{code:-32600,message:"Invalid Request"}),A,{code:-32601,message:"Method not found"}),D,{code:-32602,message:"Invalid params"}),N,{code:-32603,message:"Internal error"}),S,{code:-32e3,message:"Server error"}),e.DEFAULT_ERROR=S},1846,[1,18]); +__d(function(g,r,i,a,m,_e,d){function e(e){return r(d[0]).RESERVED_ERROR_CODES.includes(e)}function o(e){return"number"==typeof e}function R(e){var o=Object.values(r(d[0]).STANDARD_ERROR_MAP).find(function(o){return o.code===e});return o||r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR]}Object.defineProperty(_e,"__esModule",{value:!0}),_e.getError=function(e){if(!Object.keys(r(d[0]).STANDARD_ERROR_MAP).includes(e))return r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR];return r(d[0]).STANDARD_ERROR_MAP[e]},_e.getErrorByCode=R,_e.isReservedErrorCode=e,_e.isServerErrorCode=function(e){return e<=r(d[0]).SERVER_ERROR_CODE_RANGE[0]&&e>=r(d[0]).SERVER_ERROR_CODE_RANGE[1]},_e.isValidErrorCode=o,_e.parseConnectionError=function(e,o,R){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${R} RPC url at ${o}`):e},_e.validateJsonRpcError=function(n){if(void 0===n.error.code)return{valid:!1,error:"Missing code for JSON-RPC error"};if(void 0===n.error.message)return{valid:!1,error:"Missing message for JSON-RPC error"};if(!o(n.error.code))return{valid:!1,error:`Invalid error code type for JSON-RPC: ${n.error.code}`};if(e(n.error.code)){var E=R(n.error.code);if(E.message!==r(d[0]).STANDARD_ERROR_MAP[r(d[0]).DEFAULT_ERROR].message&&n.error.message===E.message)return{valid:!1,error:`Invalid error code message for JSON-RPC: ${n.error.code}`}}return{valid:!0}}},1847,[1846]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0});var o={isNodeJs:!0};e.isNodeJs=void 0,Object.keys(r(d[0])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(o,t)||t in e&&e[t]===r(d[0])[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r(d[0])[t]}}))});e.isNodeJs=r(d[0]).isNode},1848,[1849]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),r(d[0]).__exportStar(r(d[1]),e),r(d[0]).__exportStar(r(d[2]),e)},1849,[1391,1850,1851]); +__d(function(g,r,i,a,m,e,d){"use strict";function t(){return(null==g?void 0:g.crypto)||(null==g?void 0:g.msCrypto)||{}}function o(){var o=t();return o.subtle||o.webkitSubtle}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowserCryptoAvailable=e.getSubtleCrypto=e.getBrowerCrypto=void 0,e.getBrowerCrypto=t,e.getSubtleCrypto=o,e.isBrowserCryptoAvailable=function(){return!!t()&&!!o()}},1850,[]); +__d(function(g,r,i,a,m,e,d){"use strict";function o(){return"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product}function n(){return"undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.node}Object.defineProperty(e,"__esModule",{value:!0}),e.isBrowser=e.isNode=e.isReactNative=void 0,e.isReactNative=o,e.isNode=n,e.isBrowser=function(){return!o()&&!n()}},1851,[]); +__d(function(g,r,i,a,m,e,d){function o(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3;return Date.now()*Math.pow(10,o)+Math.floor(Math.random()*Math.pow(10,o))}function t(o,t){return void 0===o?(0,r(d[0]).getError)(r(d[1]).INTERNAL_ERROR):("string"==typeof o&&(o=Object.assign(Object.assign({},(0,r(d[0]).getError)(r(d[1]).SERVER_ERROR)),{message:o})),void 0!==t&&(o.data=t),(0,r(d[0]).isReservedErrorCode)(o.code)&&(o=(0,r(d[0]).getErrorByCode)(o.code)),o)}Object.defineProperty(e,"__esModule",{value:!0}),e.formatErrorMessage=t,e.formatJsonRpcError=function(o,n,s){return{id:o,jsonrpc:"2.0",error:t(n,s)}},e.formatJsonRpcRequest=function(t,n,s){return{id:s||o(),jsonrpc:"2.0",method:t,params:n}},e.formatJsonRpcResult=function(o,t){return{id:o,jsonrpc:"2.0",result:t}},e.getBigIntRpcId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return BigInt(o(t))},e.payloadId=o},1852,[1847,1846]); +__d(function(g,r,i,a,m,e,d){function t(t){return"*"===t}function n(n){return!!t(n)||!!n.includes("*")&&(2===n.split("*").length&&1===n.split("*").filter(function(t){return""===t.trim()}).length)}Object.defineProperty(e,"__esModule",{value:!0}),e.isValidDefaultRoute=t,e.isValidLeadingWildcardRoute=function(u){return!t(u)&&n(u)&&!u.split("*")[0].trim()},e.isValidRoute=function(t){if(t.includes("*"))return n(t);if(/\W/g.test(t))return!1;return!0},e.isValidTrailingWildcardRoute=function(u){return!t(u)&&n(u)&&!u.split("*")[1].trim()},e.isValidWildcardRoute=n},1853,[]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1854,[1855]); +__d(function(g,_r,i,a,m,_e3,d){var t=_r(d[0]);Object.defineProperty(_e3,"__esModule",{value:!0}),_e3.IJsonRpcProvider=_e3.IJsonRpcConnection=_e3.IEvents=_e3.IBaseJsonRpcProvider=void 0;var n=t(_r(d[1])),e=t(_r(d[2])),u=t(_r(d[3])),o=t(_r(d[4])),r=t(_r(d[5]));function c(t,u,o){return u=(0,e.default)(u),(0,n.default)(t,f()?Reflect.construct(u,o||[],(0,e.default)(t).constructor):u.apply(t,o))}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var l=_e3.IEvents=(0,o.default)(function t(){(0,r.default)(this,t)}),s=(_e3.IJsonRpcConnection=(function(t){function n(t){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(l),_e3.IBaseJsonRpcProvider=(function(t){function n(){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(l));_e3.IJsonRpcProvider=(function(t){function n(t){return(0,r.default)(this,n),c(this,n)}return(0,u.default)(n,t),(0,o.default)(n)})(s)},1855,[1,9,11,12,4,3]); +__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isHttpUrl=function(n){return o(n,t)},e.isLocalhostUrl=function(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)},e.isWsUrl=function(t){return o(t,n)};var t="^https?:",n="^wss?:";function s(t){var n=t.match(new RegExp(/^\w+:/,"gi"));if(n&&n.length)return n[0]}function o(t,n){var o=s(t);return void 0!==o&&new RegExp(n).test(o)}},1856,[]); +__d(function(g,r,i,a,m,e,d){function n(n){return"object"==typeof n&&"id"in n&&"jsonrpc"in n&&"2.0"===n.jsonrpc}function o(n){return"result"in n}function t(n){return"error"in n}Object.defineProperty(e,"__esModule",{value:!0}),e.isJsonRpcError=t,e.isJsonRpcPayload=n,e.isJsonRpcRequest=function(o){return n(o)&&"method"in o},e.isJsonRpcResponse=function(s){return n(s)&&(o(s)||t(s))},e.isJsonRpcResult=o,e.isJsonRpcValidationInvalid=function(n){return"error"in n&&!1===n.valid}},1857,[]); +__d(function(_g,_r,_i,_a,_m,_e,_d){var e=_r(_d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PINO_LOGGER_DEFAULTS=_e.PINO_CUSTOM_CONTEXT_KEY=_e.MAX_LOG_SIZE_IN_BYTES_DEFAULT=void 0,_e.formatChildLoggerContext=I,_e.generateChildLogger=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i,r=I(e,t,n);return w(e.child({context:r}),r,n)},_e.generateClientLogger=C,_e.generatePlatformLogger=function(e){return typeof e.loggerOverride<"u"&&"string"!=typeof e.loggerOverride?{logger:e.loggerOverride,chunkLoggerController:null}:typeof window<"u"?C(e):S(e)},_e.generateServerLogger=S,_e.getBrowserLoggerContext=_,_e.getDefaultLoggerOptions=function(e){return k(b({},e),{level:(null==e?void 0:e.level)||o.level})},_e.getLoggerContext=O,Object.defineProperty(_e,"pino",{enumerable:!0,get:function(){return r.default}}),_e.setBrowserLoggerContext=w;var t=e(_r(_d[1])),n=e(_r(_d[2])),r=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,l)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(i.get||i.set)?o(l,u,i):l[u]=e[u]);return l})(e,t)})(_r(_d[3]));var o=_e.PINO_LOGGER_DEFAULTS={level:"info"},i=_e.PINO_CUSTOM_CONTEXT_KEY="custom_context",l=_e.MAX_LOG_SIZE_IN_BYTES_DEFAULT=1024e3,u=(function(){return(0,n.default)(function e(n){(0,t.default)(this,e),this.nodeValue=n,this.sizeInBytes=(new TextEncoder).encode(this.nodeValue).length,this.next=null},[{key:"value",get:function(){return this.nodeValue}},{key:"size",get:function(){return this.sizeInBytes}}])})(),s=(function(){return(0,n.default)(function e(n){(0,t.default)(this,e),this.head=null,this.tail=null,this.lengthInNodes=0,this.maxSizeInBytes=n,this.sizeInBytes=0},[{key:"append",value:function(e){var t=new u(e);if(t.size>this.maxSizeInBytes)throw new Error(`[LinkedList] Value too big to insert into list: ${e} with size ${t.size}`);for(;this.size+t.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=t),this.tail=t):(this.head=t,this.tail=t),this.lengthInNodes++,this.sizeInBytes+=t.size}},{key:"shift",value:function(){if(this.head){var e=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=e.size}}},{key:"toArray",value:function(){for(var e=[],t=this.head;null!==t;)e.push(t.value),t=t.next;return e}},{key:"length",get:function(){return this.lengthInNodes}},{key:"size",get:function(){return this.sizeInBytes}},{key:"toOrderedArray",value:function(){return Array.from(this)}},{key:Symbol.iterator,value:function(){var e=this.head;return{next:function(){if(!e)return{done:!0,value:null};var t=e.value;return e=e.next,{done:!1,value:t}}}}}])})(),a=(function(){return(0,n.default)(function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.level=null!=n?n:"error",this.levelValue=r.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=o,this.logs=new s(this.MAX_LOG_SIZE_IN_BYTES)},[{key:"forwardToConsole",value:function(e,t){t===r.levels.values.error?console.error(e):t===r.levels.values.warn?console.warn(e):t===r.levels.values.debug?console.debug(e):t===r.levels.values.trace?console.trace(e):console.log(e)}},{key:"appendToLogs",value:function(e){this.logs.append((0,_r(_d[4]).safeJsonStringify)({timestamp:(new Date).toISOString(),log:e}));var t="string"==typeof e?JSON.parse(e).level:e.level;t>=this.levelValue&&this.forwardToConsole(e,t)}},{key:"getLogs",value:function(){return this.logs}},{key:"clearLogs",value:function(){this.logs=new s(this.MAX_LOG_SIZE_IN_BYTES)}},{key:"getLogArray",value:function(){return Array.from(this.logs)}},{key:"logsToBlob",value:function(e){var t=this.getLogArray();return t.push((0,_r(_d[4]).safeJsonStringify)({extraMetadata:e})),new Blob(t,{type:"application/json"})}}])})(),g=(function(){return(0,n.default)(function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.baseChunkLogger=new a(n,r)},[{key:"write",value:function(e){this.baseChunkLogger.appendToLogs(e)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(e){return this.baseChunkLogger.logsToBlob(e)}},{key:"downloadLogsBlobInBrowser",value:function(e){var t=URL.createObjectURL(this.logsToBlob(e)),n=document.createElement("a");n.href=t,n.download=`walletconnect-logs-${(new Date).toISOString()}.txt`,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(t)}}])})(),h=(function(){return(0,n.default)(function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l;(0,t.default)(this,e),this.baseChunkLogger=new a(n,r)},[{key:"write",value:function(e){this.baseChunkLogger.appendToLogs(e)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(e){return this.baseChunkLogger.logsToBlob(e)}}])})(),f=Object.defineProperty,c=Object.defineProperties,v=Object.getOwnPropertyDescriptors,d=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable,p=function(e,t,n){return t in e?f(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},b=function(e,t){for(var n in t||(t={}))y.call(t,n)&&p(e,n,t[n]);if(d)for(var n of d(t))L.call(t,n)&&p(e,n,t[n]);return e},k=function(e,t){return c(e,v(t))};function _(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:i]||""}function w(e,t){return e[arguments.length>2&&void 0!==arguments[2]?arguments[2]:i]=t,e}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i;return typeof e.bindings>"u"?_(e,t):e.bindings().context||""}function I(e,t){var n=O(e,arguments.length>2&&void 0!==arguments[2]?arguments[2]:i);return n.trim()?`${n}/${t}`:t}function C(e){var t,n,o=new g(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:(0,r.default)(k(b({},e.opts),{level:"trace",browser:k(b({},null==(n=e.opts)?void 0:n.browser),{write:function(e){return o.write(e)}})})),chunkLoggerController:o}}function S(e){var t,n=new h(null==(t=e.opts)?void 0:t.level,e.maxSizeInBytes);return{logger:(0,r.default)(k(b({},e.opts),{level:"trace"}),n),chunkLoggerController:n}}},1858,[1,3,4,1859,1615]); +__d(function(g,r,_i,_a,m,_e,d){'use strict';m.exports=s;var e=(function(){function e(e){return void 0!==e&&e}try{return'undefined'!=typeof globalThis||Object.defineProperty(Object.prototype,'globalThis',{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(t){return e(self)||e(window)||e(this)||{}}})().console||{},t={mapHttpRequest:h,mapHttpResponse:h,wrapRequestSerializer:b,wrapResponseSerializer:b,wrapErrorSerializer:b,req:h,res:h,err:function(e){var t={type:e.constructor.name,msg:e.message,stack:e.stack};for(var i in e)void 0===t[i]&&(t[i]=e[i]);return t}};function i(e,t){return Array.isArray(e)?e.filter(function(e){return'!stdSerializers.err'!==e}):!0===e&&Object.keys(t)}function s(t){(t=t||{}).browser=t.browser||{};var l=t.browser.transmit;if(l&&'function'!=typeof l.send)throw Error('pino: transmit option must have a send function');var a=t.browser.write||e;t.browser.write&&(t.browser.asObject=!0);var f=t.serializers||{},h=i(t.browser.serialize,f),b=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf('!stdSerializers.err')>-1&&(b=!1);'function'==typeof a&&(a.error=a.fatal=a.warn=a.info=a.debug=a.trace=a),!1===t.enabled&&(t.level='silent');var w=t.level||'info',z=Object.create(a);z.log||(z.log=p),Object.defineProperty(z,'levelVal',{get:function(){return'silent'===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(z,'level',{get:function(){return this._level},set:function(e){if('silent'!==e&&!this.levels.values[e])throw Error('unknown level '+e);this._level=e,n(y,z,'error','log'),n(y,z,'fatal','error'),n(y,z,'warn','error'),n(y,z,'info','log'),n(y,z,'debug','log'),n(y,z,'trace','log')}});var y={transmit:l,serialize:h,asObject:t.browser.asObject,levels:['error','fatal','warn','info','debug','trace'],timestamp:v(t)};return z.levels=s.levels,z.level=w,z.setMaxListeners=z.getMaxListeners=z.emit=z.addListener=z.on=z.prependListener=z.once=z.prependOnceListener=z.removeListener=z.removeAllListeners=z.listeners=z.listenerCount=z.eventNames=z.write=z.flush=p,z.serializers=f,z._serialize=h,z._stdErrSerialize=b,z.child=function(e,i){if(!e)throw new Error('missing bindings for child Pino');i=i||{},h&&e.serializers&&(i.serializers=e.serializers);var s=i.serializers;if(h&&s){var n=Object.assign({},f,s),a=!0===t.browser.serialize?Object.keys(n):h;delete e.serializers,o([e],a,n,this._stdErrSerialize)}function v(t){this._childLevel=1+(0|t._childLevel),this.error=u(t,e,'error'),this.fatal=u(t,e,'fatal'),this.warn=u(t,e,'warn'),this.info=u(t,e,'info'),this.debug=u(t,e,'debug'),this.trace=u(t,e,'trace'),n&&(this.serializers=n,this._serialize=a),l&&(this._logEvent=c([].concat(t._logEvent.bindings,e)))}return v.prototype=this,new v(this)},l&&(z._logEvent=c()),z}function n(t,i,s,n){var a=Object.getPrototypeOf(i);i[s]=i.levelVal>i.levels.values[s]?p:a[s]?a[s]:e[s]||e[n]||p,l(t,i,s)}function l(t,i,n){var l;(t.transmit||i[n]!==p)&&(i[n]=(l=i[n],function(){for(var u=t.timestamp(),c=new Array(arguments.length),v=Object.getPrototypeOf&&Object.getPrototypeOf(this)===e?e:this,h=0;h-1&&a in i&&(e[l][a]=i[a](e[l][a]))}function u(e,t,i){return function(){var s=new Array(1+arguments.length);s[0]=t;for(var n=1;n-1?b:0,i.charCodeAt(h+1)){case 100:case 102:if(l>=u)break;if(null==a[l])break;b=u)break;if(null==a[l])break;b=u)break;if(void 0===a[l])break;b',b=h+2,h++;break}o+=n(a[l]),b=h+2,h++;break;case 115:if(l>=u)break;b0&&void 0!==arguments[0]?arguments[0]:this.connection;yield this.open(e)}),function(){return y.apply(this,arguments)})},{key:"disconnect",value:(v=(0,n.default)(function*(){yield this.close()}),function(){return v.apply(this,arguments)})},{key:"on",value:function(e,n){this.events.on(e,n)}},{key:"once",value:function(e,n){this.events.once(e,n)}},{key:"off",value:function(e,n){this.events.off(e,n)}},{key:"removeListener",value:function(e,n){this.events.removeListener(e,n)}},{key:"request",value:(h=(0,n.default)(function*(e,n){return this.requestStrict((0,r(d[8]).formatJsonRpcRequest)(e.method,e.params||[],e.id||(0,r(d[8]).getBigIntRpcId)().toString()),n)}),function(e,n){return h.apply(this,arguments)})},{key:"requestStrict",value:(f=(0,n.default)(function*(e,t){var o=this;return new Promise((function(){var i=(0,n.default)(function*(n,i){if(!o.connection.connected)try{yield o.open()}catch(e){i(e)}o.events.on(`${e.id}`,function(e){(0,r(d[8]).isJsonRpcError)(e)?i(e.error):n(e.result)});try{yield o.connection.send(e,t)}catch(e){i(e)}});return function(e,n){return i.apply(this,arguments)}})())}),function(e,n){return f.apply(this,arguments)})},{key:"setConnection",value:function(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection}},{key:"onPayload",value:function(e){this.events.emit("payload",e),(0,r(d[8]).isJsonRpcResponse)(e)?this.events.emit(`${e.id}`,e):this.events.emit("message",{type:e.method,data:e.params})}},{key:"onClose",value:function(e){e&&3e3===e.code&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${e.code} ${e.reason?`(${e.reason})`:""}`)),this.events.emit("disconnect")}},{key:"open",value:(l=(0,n.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;this.connection===e&&this.connection.connected||(this.connection.connected&&this.close(),"string"==typeof e&&(yield this.connection.open(e),e=this.connection),this.connection=this.setConnection(e),yield this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}),function(){return l.apply(this,arguments)})},{key:"close",value:(c=(0,n.default)(function*(){yield this.connection.close()}),function(){return c.apply(this,arguments)})},{key:"registerEventListeners",value:function(){var e=this;this.hasRegisteredEventListeners||(this.connection.on("payload",function(n){return e.onPayload(n)}),this.connection.on("close",function(n){return e.onClose(n)}),this.connection.on("error",function(n){return e.events.emit("error",n)}),this.connection.on("register_error",function(n){return e.onClose()}),this.hasRegisteredEventListeners=!0)}}]);var c,l,f,h,v,y})(r(d[8]).IJsonRpcProvider)},1865,[1,367,3,4,9,11,12,1644,1845]); +__d(function(_g,_r,_i,a,m,_e2,_d){var e=_r(_d[0]);Object.defineProperty(_e2,"__esModule",{value:!0}),_e2.default=_e2.HttpConnection=void 0;var t=e(_r(_d[1])),i=e(_r(_d[2])),n=e(_r(_d[3])),r=e(_r(_d[4])),s=Object.defineProperty,o=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,h=function(e,t,i){return t in e?s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[t]=i},f=function(e,t){for(var i in t||(t={}))c.call(t,i)&&h(e,i,t[i]);if(u)for(var i of u(t))v.call(t,i)&&h(e,i,t[i]);return e},d=function(e,t){return o(e,l(t))},p={headers:{Accept:"application/json","Content-Type":"application/json"},method:"POST"};_e2.default=_e2.HttpConnection=(function(){return(0,n.default)(function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,i.default)(this,e),this.url=t,this.disableProviderPing=n,this.events=new(_r(_d[5]).EventEmitter),this.isAvailable=!1,this.registering=!1,!(0,_r(_d[6]).isHttpUrl)(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);this.url=t,this.disableProviderPing=n},[{key:"connected",get:function(){return this.isAvailable}},{key:"connecting",get:function(){return this.registering}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"once",value:function(e,t){this.events.once(e,t)}},{key:"off",value:function(e,t){this.events.off(e,t)}},{key:"removeListener",value:function(e,t){this.events.removeListener(e,t)}},{key:"open",value:(l=(0,t.default)(function*(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;yield this.register(e)}),function(){return l.apply(this,arguments)})},{key:"close",value:(o=(0,t.default)(function*(){if(!this.isAvailable)throw new Error("Connection already closed");this.onClose()}),function(){return o.apply(this,arguments)})},{key:"send",value:(s=(0,t.default)(function*(e){this.isAvailable||(yield this.register());try{var t=(0,_r(_d[7]).safeJsonStringify)(e),i=yield(yield(0,r.default)(this.url,d(f({},p),{body:t}))).json();this.onPayload({data:i})}catch(t){this.onError(e.id,t)}}),function(e){return s.apply(this,arguments)})},{key:"register",value:(e=(0,t.default)(function*(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!(0,_r(_d[6]).isHttpUrl)(t))throw new Error(`Provided URL is not compatible with HTTP connection: ${t}`);if(this.registering){var i=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=i||this.events.listenerCount("open")>=i)&&this.events.setMaxListeners(i+1),new Promise(function(t,i){e.events.once("register_error",function(t){e.resetMaxListeners(),i(t)}),e.events.once("open",function(){if(e.resetMaxListeners(),typeof e.isAvailable>"u")return i(new Error("HTTP connection is missing or invalid"));t()})})}this.url=t,this.registering=!0;try{if(!this.disableProviderPing){var n=(0,_r(_d[7]).safeJsonStringify)({id:1,jsonrpc:"2.0",method:"test",params:[]});yield(0,r.default)(t,d(f({},p),{body:n}))}this.onOpen()}catch(i){var s=this.parseError(i);throw this.events.emit("register_error",s),this.onClose(),s}}),function(){return e.apply(this,arguments)})},{key:"onOpen",value:function(){this.isAvailable=!0,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(){this.isAvailable=!1,this.registering=!1,this.events.emit("close")}},{key:"onPayload",value:function(e){if(!(typeof e.data>"u")){var t="string"==typeof e.data?(0,_r(_d[7]).safeJsonParse)(e.data):e.data;this.events.emit("payload",t)}}},{key:"onError",value:function(e,t){var i=this.parseError(t),n=i.message||i.toString(),r=(0,_r(_d[6]).formatJsonRpcError)(e,n);this.events.emit("payload",r)}},{key:"parseError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return(0,_r(_d[6]).parseConnectionError)(e,t,"HTTP")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}}]);var e,s,o,l})()},1866,[1,367,3,4,1867,1644,1845,1615]); +__d(function(g,r,i,a,m,e,d){m.exports=g.fetch,m.exports.default=g.fetch,m.exports.fetch=g.fetch,m.exports.Headers=g.Headers,m.exports.Request=g.Request,m.exports.Response=g.Response},1867,[]); +__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),n=r(d[1]),t=r(d[2]),s=r(d[3]),o=r(d[4]),u=r(d[5]),c=r(d[6]);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=(function(e){return e[e.INVALID_REQUEST=-32600]="INVALID_REQUEST",e[e.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",e[e.INVALID_PARAMS=-32602]="INVALID_PARAMS",e[e.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",e[e.PARSE_ERROR=-32700]="PARSE_ERROR",e})({}),l=(function(e){function c(e,n,u){var h,l,p,v;return t(this,c),l=this,v=[n],p=o(p=c),(h=s(l,f()?Reflect.construct(p,v||[],o(l).constructor):p.apply(l,v))).code=e,h.message=n,h.data=u,h}return u(c,e),n(c)})(c(Error)),p=(function(e){return e.HELLO="rpc_hello",e})(p||{}),v=(function(){return n(function e(n){var s=this;t(this,e),this.id=0,this.setSend=function(){},this._send=new Promise(function(e){s.setSend=e}),this.peerInfo=new Promise(function(e,n){s.resolvePeerInfo=e,s.rejectPeerInfo=n}),this.enabledNotifications=[],this.requestHandlers={},this.subscriptions={},this.messageListeners=[];var o=n.notifications;this.enabledNotifications=o||[],this.on(p.HELLO,function(e){return s.resolvePeerInfo(e),s.ownInfo()})},[{key:"connect",value:function(e){var n=this,t=e.send;this.setSend(t),this.requestWithoutConnection(p.HELLO,this.ownInfo()).then(function(e){n.resolvePeerInfo(e)}).catch(this.rejectPeerInfo)}},{key:"ownInfo",value:function(){return{requests:Object.keys(this.requestHandlers),notifications:this.enabledNotifications}}},{key:"send",value:(R=e(function*(e){return(yield this._send)(e)}),function(e){return R.apply(this,arguments)})},{key:"receive",value:function(e){"2.0"===(null==e?void 0:e.jsonrpc)&&("method"in e&&("id"in e?this.handleRequest(e):this.handleNotification(e)),this.messageListeners.forEach(function(n){return n(e)}))}},{key:"handleRequest",value:(y=e(function*(e){var n=this.requestHandlers[e.method];if(n)try{var t=yield n(e.params);this.send({jsonrpc:"2.0",id:e.id,result:t})}catch(n){n instanceof l?this.send({jsonrpc:"2.0",id:e.id,error:{code:n.code,message:n.message,data:n.data}}):this.send({jsonrpc:"2.0",id:e.id,error:{code:h.INTERNAL_ERROR,message:null==n?void 0:n.message}})}else this.send({jsonrpc:"2.0",id:e.id,error:{code:h.METHOD_NOT_FOUND,message:`Method not found: ${e.method}`}})}),function(e){return y.apply(this,arguments)})},{key:"handleNotification",value:function(e){this.subscriptions[e.method]&&this.subscriptions[e.method].forEach(function(n){return n(e.params)})}},{key:"onMessage",value:function(e){var n=this;return this.messageListeners.push(e),function(){n.messageListeners=n.messageListeners.filter(function(n){return n!==e})}}},{key:"notify",value:(v=e(function*(e,n){yield this.onceConnected(),this.send({jsonrpc:"2.0",method:e,params:n})}),function(e,n){return v.apply(this,arguments)})},{key:"request",value:(f=e(function*(e,n){return yield this.onceConnected(),this.requestWithoutConnection(e,n)}),function(e,n){return f.apply(this,arguments)})},{key:"requestWithoutConnection",value:(c=e(function*(e,n){var t=this,s=this.id++,o=function(){},u=new Promise(function(e,n){o=t.onMessage(function(t){if(t.id===s&&("result"in t||"error"in t)){if(t.error){var o=new l(t.error.code,t.error.message,t.error.data);n(o)}e(t.result)}})}).finally(o);return this.send({jsonrpc:"2.0",method:e,params:n,id:s}),u}),function(e,n){return c.apply(this,arguments)})},{key:"on",value:function(e,n){this.requestHandlers[e]=n}},{key:"subscribe",value:function(e,n){this.subscriptions[e]=this.subscriptions[e]||new Set,this.subscriptions[e].add(n)}},{key:"unsubscribe",value:function(e,n){var t;null==(t=this.subscriptions[e])||t.delete(n)}},{key:"onceConnected",value:(u=e(function*(){return this.peerInfo.then(function(){})}),function(){return u.apply(this,arguments)})},{key:"getAvailableRequests",value:(o=e(function*(){return this.peerInfo.then(function(e){return e.requests})}),function(){return o.apply(this,arguments)})},{key:"getAvailableNotifications",value:(s=e(function*(){return this.peerInfo.then(function(e){return e.notifications})}),function(){return s.apply(this,arguments)})}]);var s,o,u,c,f,v,y,R})();_e.RpcClient=v,_e.RpcError=l,_e.RpcErrorCode=h},1868,[367,4,3,9,11,12,14]); +__d(function(g,r,i,a,m,e,d){'use strict';var n="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";e.uid=function(){for(var t="",u=32;u--;)t+=n[62*Math.random()|0];return t}},1869,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,l,y){if(f&&"object"==typeof f||"function"==typeof f){var s=function(o){c.call(n,o)||o===l||t(n,o,{get:function(){return f[o]},enumerable:!(y=u(f,o))||y.enumerable})};for(var h of o(f))s(h)}return n},l={};!(function(n,u){for(var o in u)t(n,o,{get:u[o],enumerable:!0})})(l,{CancelledError:function(){return r(d[0]).CancelledError},InfiniteQueryObserver:function(){return r(d[1]).InfiniteQueryObserver},Mutation:function(){return r(d[2]).Mutation},MutationCache:function(){return r(d[3]).MutationCache},MutationObserver:function(){return r(d[4]).MutationObserver},QueriesObserver:function(){return r(d[5]).QueriesObserver},Query:function(){return r(d[6]).Query},QueryCache:function(){return r(d[7]).QueryCache},QueryClient:function(){return r(d[8]).QueryClient},QueryObserver:function(){return r(d[9]).QueryObserver},defaultScheduler:function(){return r(d[10]).defaultScheduler},defaultShouldDehydrateMutation:function(){return r(d[11]).defaultShouldDehydrateMutation},defaultShouldDehydrateQuery:function(){return r(d[11]).defaultShouldDehydrateQuery},dehydrate:function(){return r(d[11]).dehydrate},experimental_streamedQuery:function(){return r(d[12]).streamedQuery},focusManager:function(){return r(d[13]).focusManager},hashKey:function(){return r(d[14]).hashKey},hydrate:function(){return r(d[11]).hydrate},isCancelledError:function(){return r(d[0]).isCancelledError},isServer:function(){return r(d[14]).isServer},keepPreviousData:function(){return r(d[14]).keepPreviousData},matchMutation:function(){return r(d[14]).matchMutation},matchQuery:function(){return r(d[14]).matchQuery},noop:function(){return r(d[14]).noop},notifyManager:function(){return r(d[10]).notifyManager},onlineManager:function(){return r(d[15]).onlineManager},partialMatchKey:function(){return r(d[14]).partialMatchKey},replaceEqualDeep:function(){return r(d[14]).replaceEqualDeep},shouldThrowError:function(){return r(d[14]).shouldThrowError},skipToken:function(){return r(d[14]).skipToken},timeoutManager:function(){return r(d[16]).timeoutManager}}),m.exports=(n=l,f(t({},"__esModule",{value:!0}),n)),(function(n,t,u){f(n,t,"default"),u&&f(u,t,"default")})(l,r(d[17]),m.exports)},1870,[1871,1878,1885,1886,1887,1888,1882,1889,1890,1880,1884,1891,1892,1877,1873,1872,1874,1893]); +__d(function(g,r,i,a,m,_e,d){"use strict";var n=r(d[0]),e=r(d[1]),t=r(d[2]),o=r(d[3]),u=r(d[4]),c=r(d[5]);function l(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(l=function(){return!!n})()}var f,s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,h=function(n,e,t,o){if(e&&"object"==typeof e||"function"==typeof e){var u=function(u){y.call(n,u)||u===t||s(n,u,{get:function(){return e[u]},enumerable:!(o=v(e,u))||o.enumerable})};for(var c of p(e))u(c)}return n},b={};function O(n){return Math.min(1e3*2**n,3e4)}function P(n){return"online"!==(null!=n?n:"online")||r(d[6]).onlineManager.isOnline()}!(function(n,e){for(var t in e)s(n,t,{get:e[t],enumerable:!0})})(b,{CancelledError:function(){return w},canFetch:function(){return P},createRetryer:function(){return C},isCancelledError:function(){return j}}),m.exports=(f=b,h(s({},"__esModule",{value:!0}),f));var w=(function(c){function f(n){var u,c,s,v;return e(this,f),c=this,v=["CancelledError"],s=o(s=f),(u=t(c,l()?Reflect.construct(s,v||[],o(c).constructor):s.apply(c,v))).revert=null==n?void 0:n.revert,u.silent=null==n?void 0:n.silent,u}return u(f,c),n(f)})(c(Error));function j(n){return n instanceof w}function C(n){var e,t=!1,o=0,u=(0,r(d[7]).pendingThenable)(),c=function(){return"pending"!==u.status},l=function(){return r(d[8]).focusManager.isFocused()&&("always"===n.networkMode||r(d[6]).onlineManager.isOnline())&&n.canRun()},f=function(){return P(n.networkMode)&&n.canRun()},s=function(n){c()||(null==e||e(),u.resolve(n))},v=function(n){c()||(null==e||e(),u.reject(n))},p=function(){return new Promise(function(t){e=function(n){(c()||l())&&t(n)},null==n.onPause||n.onPause()}).then(function(){e=void 0,c()||null==n.onContinue||n.onContinue()})},y=function(){if(!c()){var e,u=0===o?n.initialPromise:void 0;try{e=null!=u?u:n.fn()}catch(n){e=Promise.reject(n)}Promise.resolve(e).then(s).catch(function(e){var u,f;if(!c()){var s=null!=(u=n.retry)?u:r(d[9]).isServer?0:3,h=null!=(f=n.retryDelay)?f:O,b="function"==typeof h?h(o,e):h,P=!0===s||"number"==typeof s&&o=0&&t!==1/0}function v(t,n){return Math.max(t+(n||0)-Date.now(),0)}function h(t,n){return"function"==typeof t?t(n):t}function b(t,n){return"function"==typeof t?t(n):t}function O(t,n){var u=t.type,o=void 0===u?"all":u,i=t.exact,c=t.fetchStatus,f=t.predicate,a=t.queryKey,s=t.stale;if(a)if(i){if(n.queryHash!==P(a,n.options))return!1}else if(!S(n.queryKey,a))return!1;if("all"!==o){var l=n.isActive();if("active"===o&&!l)return!1;if("inactive"===o&&l)return!1}return("boolean"!=typeof s||n.isStale()===s)&&((!c||c===n.state.fetchStatus)&&!(f&&!f(n)))}function j(t,n){var u=t.exact,o=t.status,i=t.predicate,c=t.mutationKey;if(c){if(!n.options.mutationKey)return!1;if(u){if(w(n.options.mutationKey)!==w(c))return!1}else if(!S(n.options.mutationKey,c))return!1}return(!o||n.state.status===o)&&!(i&&!i(n))}function P(t,n){return((null==n?void 0:n.queryKeyHashFn)||w)(t)}function w(t){return JSON.stringify(t,function(t,n){return F(n)?Object.keys(n).sort().reduce(function(t,u){return t[u]=n[u],t},{}):n})}function S(t,n){return t===n||typeof t==typeof n&&(!(!t||!n||"object"!=typeof t||"object"!=typeof n)&&Object.keys(n).every(function(u){return S(t[u],n[u])}))}var q=Object.prototype.hasOwnProperty;function k(t,n){if(t===n)return t;var u=T(t)&&T(n);if(!(u||F(t)&&F(n)))return n;for(var o=(u?t:Object.keys(t)).length,i=u?n:Object.keys(n),c=i.length,f=u?new Array(c):{},a=0,s=0;s2&&void 0!==arguments[2]?arguments[2]:0,i=[].concat(n(t),[u]);return o&&i.length>o?i.slice(1):i}function _(t,u){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[u].concat(n(t));return o&&i.length>o?i.slice(0,-1):i}var H=Symbol();function Q(t,n){return!t.queryFn&&null!=n&&n.initialPromise?function(){return n.initialPromise}:t.queryFn&&t.queryFn!==H?t.queryFn:function(){return Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`))}}function N(t,u){return"function"==typeof t?t.apply(void 0,n(u)):!!t}},1873,[32,1874]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n,u,o=r(d[0]),c=r(d[1]),f=r(d[2]),l=r(d[3]),s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,y=Object.prototype.hasOwnProperty,h=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){y.call(t,c)||c===u||s(t,c,{get:function(){return n[c]},enumerable:!(o=v(n,c))||o.enumerable})};for(var f of p(n))c(f)}return t},T={};!(function(t,n){for(var u in n)s(t,u,{get:n[u],enumerable:!0})})(T,{TimeoutManager:function(){return O},defaultTimeoutProvider:function(){return b},systemSetTimeoutZero:function(){return I},timeoutManager:function(){return S}}),m.exports=(u=T,h(s({},"__esModule",{value:!0}),u));var b={setTimeout:(function(t){function n(n,u){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t,n){return setTimeout(t,n)}),clearTimeout:(function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t){return clearTimeout(t)}),setInterval:(function(t){function n(n,u){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t,n){return setInterval(t,n)}),clearInterval:(function(t){function n(n){return t.apply(this,arguments)}return n.toString=function(){return t.toString()},n})(function(t){return clearInterval(t)})},O=(t=l("provider"),n=l("providerCalled"),(function(){return c(function u(){o(this,u),Object.defineProperty(this,t,{writable:!0,value:b}),Object.defineProperty(this,n,{writable:!0,value:!1})},[{key:"setTimeoutProvider",value:function(n){f(this,t)[t]=n}},{key:"setTimeout",value:function(n,u){return f(this,t)[t].setTimeout(n,u)}},{key:"clearTimeout",value:function(n){f(this,t)[t].clearTimeout(n)}},{key:"setInterval",value:function(n,u){return f(this,t)[t].setInterval(n,u)}},{key:"clearInterval",value:function(n){f(this,t)[t].clearInterval(n)}}])})()),S=new O;function I(t){setTimeout(t,0)}},1874,[3,4,45,46]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=r(d[1]),u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,f=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){b.call(t,c)||c===s||u(t,c,{get:function(){return n[c]},enumerable:!(f=o(n,c))||f.enumerable})};for(var h of c(n))l(h)}return t},l={};!(function(t,n){for(var s in n)u(t,s,{get:n[s],enumerable:!0})})(l,{Subscribable:function(){return h}}),m.exports=(t=l,f(u({},"__esModule",{value:!0}),t));var h=(function(){return s(function t(){n(this,t),this.listeners=new Set,this.subscribe=this.subscribe.bind(this)},[{key:"subscribe",value:function(t){var n=this;return this.listeners.add(t),this.onSubscribe(),function(){n.listeners.delete(t),n.onUnsubscribe()}}},{key:"hasListeners",value:function(){return this.listeners.size>0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}])})()},1875,[3,4]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){c.call(t,u)||u===s||n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var v of u(f))p(v)}return t},s={};function l(){var t,n,o=new Promise(function(o,u){t=o,n=u});function u(t){Object.assign(o,t),delete o.resolve,delete o.reject}return o.status="pending",o.catch(function(){}),o.resolve=function(n){u({status:"fulfilled",value:n}),t(n)},o.reject=function(t){u({status:"rejected",reason:t}),n(t)},o}function p(t){var n,o;if(null==(n=t.then(function(t){return o=t,t},r(d[0]).noop))||n.catch(r(d[0]).noop),void 0!==o)return{data:o}}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{pendingThenable:function(){return l},tryResolveSync:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},1876,[1873]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t,n,o=r(d[0]),u=r(d[1]),c=r(d[2]),s=r(d[3]),l=r(d[4]),f=r(d[5]),v=r(d[6]);function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var h,y=Object.defineProperty,p=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,O=Object.prototype.hasOwnProperty,j=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){O.call(e,u)||u===n||y(e,u,{get:function(){return t[u]},enumerable:!(o=p(t,u))||o.enumerable})};for(var c of w(t))u(c)}return e},F={};!(function(e,t){for(var n in t)y(e,n,{get:t[n],enumerable:!0})})(F,{FocusManager:function(){return P},focusManager:function(){return k}}),m.exports=(h=F,j(y({},"__esModule",{value:!0}),h));var P=(e=v("focused"),t=v("cleanup"),n=v("setup"),(function(v){function h(){var u,l,v,y;return o(this,h),l=this,v=s(v=h),u=c(l,b()?Reflect.construct(v,y||[],s(l).constructor):v.apply(l,y)),Object.defineProperty(u,e,{writable:!0,value:void 0}),Object.defineProperty(u,t,{writable:!0,value:void 0}),Object.defineProperty(u,n,{writable:!0,value:void 0}),f(u,n)[n]=function(e){if(!r(d[7]).isServer&&window.addEventListener){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),function(){window.removeEventListener("visibilitychange",t)}}},u}return l(h,v),u(h,[{key:"onSubscribe",value:function(){f(this,t)[t]||this.setEventListener(f(this,n)[n])}},{key:"onUnsubscribe",value:function(){var e,n;this.hasListeners()||(null==(e=(n=f(this,t))[t])||e.call(n),f(this,t)[t]=void 0)}},{key:"setEventListener",value:function(e){var o,u,c=this;f(this,n)[n]=e,null==(o=(u=f(this,t))[t])||o.call(u),f(this,t)[t]=e(function(e){"boolean"==typeof e?c.setFocused(e):c.onFocus()})}},{key:"setFocused",value:function(t){f(this,e)[e]!==t&&(f(this,e)[e]=t,this.onFocus())}},{key:"onFocus",value:function(){var e=this.isFocused();this.listeners.forEach(function(t){t(e)})}},{key:"isFocused",value:function(){var t;return"boolean"==typeof f(this,e)[e]?f(this,e)[e]:"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}}])})(r(d[8]).Subscribable)),k=new P},1877,[3,4,9,11,12,45,46,1873,1875]); +__d(function(g,_r,i,a,m,_e,d){"use strict";var e=_r(d[0]),t=_r(d[1]),r=_r(d[2]),n=_r(d[3]),o=_r(d[4]),c=_r(d[5]);function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function u(e,t,r,c){var s=o(n(1&c?e.prototype:e),t,r);return 2&c&&"function"==typeof s?function(e){return s.apply(r,e)}:s}var f,h=Object.defineProperty,v=Object.getOwnPropertyDescriptor,P=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,b=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){l.call(e,o)||o===r||h(e,o,{get:function(){return t[o]},enumerable:!(n=v(t,o))||n.enumerable})};for(var c of P(t))o(c)}return e},p={};!(function(e,t){for(var r in t)h(e,r,{get:t[r],enumerable:!0})})(p,{InfiniteQueryObserver:function(){return y}}),m.exports=(f=p,b(h({},"__esModule",{value:!0}),f));var y=(function(o){function f(t,o){return e(this,f),c=this,h=[t,o],u=n(u=f),r(c,s()?Reflect.construct(u,h||[],n(c).constructor):u.apply(c,h));var c,u,h}return c(f,o),t(f,[{key:"bindMethods",value:function(){u(f,"bindMethods",this,3)([]),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}},{key:"setOptions",value:function(e){u(f,"setOptions",this,3)([Object.assign({},e,{behavior:(0,_r(d[6]).infiniteQueryBehavior)()})])}},{key:"getOptimisticResult",value:function(e){return e.behavior=(0,_r(d[6]).infiniteQueryBehavior)(),u(f,"getOptimisticResult",this,3)([e])}},{key:"fetchNextPage",value:function(e){return this.fetch(Object.assign({},e,{meta:{fetchMore:{direction:"forward"}}}))}},{key:"fetchPreviousPage",value:function(e){return this.fetch(Object.assign({},e,{meta:{fetchMore:{direction:"backward"}}}))}},{key:"createResult",value:function(e,t){var r,n=e.state,o=u(f,"createResult",this,3)([e,t]),c=o.isFetching,s=o.isRefetching,h=o.isError,v=o.isRefetchError,P=null==(r=n.fetchMeta)||null==(r=r.fetchMore)?void 0:r.direction,l=h&&"forward"===P,b=c&&"forward"===P,p=h&&"backward"===P,y=c&&"backward"===P;return Object.assign({},o,{fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,_r(d[6]).hasNextPage)(t,n.data),hasPreviousPage:(0,_r(d[6]).hasPreviousPage)(t,n.data),isFetchNextPageError:l,isFetchingNextPage:b,isFetchPreviousPageError:p,isFetchingPreviousPage:y,isRefetchError:v&&!l&&!p,isRefetching:s&&!b&&!y})}}])})(_r(d[7]).QueryObserver)},1878,[3,4,9,11,42,12,1879,1880]); +__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,c=function(n,t,c,p){if(t&&"object"==typeof t||"function"==typeof t){var f=function(s){l.call(n,s)||s===c||o(n,s,{get:function(){return t[s]},enumerable:!(p=u(t,s))||p.enumerable})};for(var P of s(t))f(P)}return n},p={};function f(n){return{onFetch:function(o,u){var s,l,c,p=o.options,f=null==(s=o.fetchOptions)||null==(s=s.meta)||null==(s=s.fetchMore)?void 0:s.direction,y=(null==(l=o.state.data)?void 0:l.pages)||[],h=(null==(c=o.state.data)?void 0:c.pageParams)||[],b={pages:[],pageParams:[]},O=0,j=(function(){var u=t(function*(){var u=!1,s=(0,r(d[1]).ensureQueryFn)(o.options,o.fetchOptions),l=(function(){var n=t(function*(n,t,l){if(u)return Promise.reject();if(null==t&&n.pages.length)return Promise.resolve(n);var c,p,f=(p={client:o.client,queryKey:o.queryKey,pageParam:t,direction:l?"backward":"forward",meta:o.options.meta},c=p,Object.defineProperty(c,"signal",{enumerable:!0,get:function(){return o.signal.aborted?u=!0:o.signal.addEventListener("abort",function(){u=!0}),o.signal}}),p),P=yield s(f),v=o.options.maxPages,y=l?r(d[1]).addToStart:r(d[1]).addToEnd;return{pages:y(n.pages,P,v),pageParams:y(n.pageParams,t,v)}});return function(t,o,u){return n.apply(this,arguments)}})();if(f&&y.length){var c="backward"===f,j={pages:y,pageParams:h},w=(c?v:P)(p,j);b=yield l(j,w,c)}else{var q=null!=n?n:y.length;do{var x,F=0===O?null!=(x=h[0])?x:p.initialPageParam:P(p,b);if(O>0&&null==F)break;b=yield l(b,F),O++}while(O0?n.getNextPageParam(o[s],o,u[s],u):void 0}function v(n,t){var o=t.pages,u=t.pageParams;return o.length>0?null==n.getPreviousPageParam?void 0:n.getPreviousPageParam(o[0],o,u[0],u):void 0}function y(n,t){return!!t&&null!=P(n,t)}function h(n,t){return!(!t||!n.getPreviousPageParam)&&null!=v(n,t)}!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(p,{hasNextPage:function(){return y},hasPreviousPage:function(){return h},infiniteQueryBehavior:function(){return f}}),m.exports=(n=p,c(o({},"__esModule",{value:!0}),n))},1879,[367,1873]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t,s,n,o,u,l,h,c,f,v,p,b,y,O,j,R,P,w,S,k,E,T,C,I=r(d[0]),U=r(d[1]),D=r(d[2]),Q=r(d[3]),F=r(d[4]),M=r(d[5]),_=r(d[6]),L=r(d[7]);function q(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(q=function(){return!!e})()}var x,A=Object.defineProperty,B=Object.getOwnPropertyDescriptor,W=Object.getOwnPropertyNames,z=Object.prototype.hasOwnProperty,H=function(e,t,s,n){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){z.call(e,o)||o===s||A(e,o,{get:function(){return t[o]},enumerable:!(n=B(t,o))||n.enumerable})};for(var u of W(t))o(u)}return e},V={};!(function(e,t){for(var s in t)A(e,s,{get:t[s],enumerable:!0})})(V,{QueryObserver:function(){return N}}),m.exports=(x=V,H(A({},"__esModule",{value:!0}),x));var N=(e=L("client"),t=L("currentQuery"),s=L("currentQueryInitialState"),n=L("currentResult"),o=L("currentResultState"),u=L("currentResultOptions"),l=L("currentThenable"),h=L("selectError"),c=L("selectFn"),f=L("selectResult"),v=L("lastQueryWithDefinedData"),p=L("staleTimeoutId"),b=L("refetchIntervalId"),y=L("currentRefetchInterval"),O=L("trackedProps"),j=L("executeFetch"),R=L("updateStaleTimeout"),P=L("computeRefetchInterval"),w=L("updateRefetchInterval"),S=L("updateTimers"),k=L("clearStaleTimeout"),E=L("clearRefetchInterval"),T=L("updateQuery"),C=L("notify"),(function(L){function x(I,D){var M,L,A,B;return U(this,x),L=this,A=F(A=x),M=Q(L,q()?Reflect.construct(A,B||[],F(L).constructor):A.apply(L,B)),Object.defineProperty(M,C,{value:te}),Object.defineProperty(M,T,{value:ee}),Object.defineProperty(M,E,{value:$}),Object.defineProperty(M,k,{value:Z}),Object.defineProperty(M,S,{value:Y}),Object.defineProperty(M,w,{value:X}),Object.defineProperty(M,P,{value:K}),Object.defineProperty(M,R,{value:J}),Object.defineProperty(M,j,{value:G}),Object.defineProperty(M,e,{writable:!0,value:void 0}),Object.defineProperty(M,t,{writable:!0,value:void 0}),Object.defineProperty(M,s,{writable:!0,value:void 0}),Object.defineProperty(M,n,{writable:!0,value:void 0}),Object.defineProperty(M,o,{writable:!0,value:void 0}),Object.defineProperty(M,u,{writable:!0,value:void 0}),Object.defineProperty(M,l,{writable:!0,value:void 0}),Object.defineProperty(M,h,{writable:!0,value:void 0}),Object.defineProperty(M,c,{writable:!0,value:void 0}),Object.defineProperty(M,f,{writable:!0,value:void 0}),Object.defineProperty(M,v,{writable:!0,value:void 0}),Object.defineProperty(M,p,{writable:!0,value:void 0}),Object.defineProperty(M,b,{writable:!0,value:void 0}),Object.defineProperty(M,y,{writable:!0,value:void 0}),Object.defineProperty(M,O,{writable:!0,value:new Set}),M.options=D,_(M,e)[e]=I,_(M,h)[h]=null,_(M,l)[l]=(0,r(d[8]).pendingThenable)(),M.bindMethods(),M.setOptions(D),M}return M(x,L),D(x,[{key:"bindMethods",value:function(){this.refetch=this.refetch.bind(this)}},{key:"onSubscribe",value:function(){1===this.listeners.size&&(_(this,t)[t].addObserver(this),re(_(this,t)[t],this.options)?_(this,j)[j]():this.updateResult(),_(this,S)[S]())}},{key:"onUnsubscribe",value:function(){this.hasListeners()||this.destroy()}},{key:"shouldFetchOnReconnect",value:function(){return se(_(this,t)[t],this.options,this.options.refetchOnReconnect)}},{key:"shouldFetchOnWindowFocus",value:function(){return se(_(this,t)[t],this.options,this.options.refetchOnWindowFocus)}},{key:"destroy",value:function(){this.listeners=new Set,_(this,k)[k](),_(this,E)[E](),_(this,t)[t].removeObserver(this)}},{key:"setOptions",value:function(s){var n=this.options,o=_(this,t)[t];if(this.options=_(this,e)[e].defaultQueryOptions(s),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t]))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");_(this,T)[T](),_(this,t)[t].setOptions(this.options),n._defaulted&&!(0,r(d[9]).shallowEqualObjects)(this.options,n)&&_(this,e)[e].getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,t)[t],observer:this});var u=this.hasListeners();u&&ne(_(this,t)[t],o,this.options,n)&&_(this,j)[j](),this.updateResult(),!u||_(this,t)[t]===o&&(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])===(0,r(d[9]).resolveEnabled)(n.enabled,_(this,t)[t])&&(0,r(d[9]).resolveStaleTime)(this.options.staleTime,_(this,t)[t])===(0,r(d[9]).resolveStaleTime)(n.staleTime,_(this,t)[t])||_(this,R)[R]();var l=_(this,P)[P]();!u||_(this,t)[t]===o&&(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])===(0,r(d[9]).resolveEnabled)(n.enabled,_(this,t)[t])&&l===_(this,y)[y]||_(this,w)[w](l)}},{key:"getOptimisticResult",value:function(s){var l=_(this,e)[e].getQueryCache().build(_(this,e)[e],s),h=this.createResult(l,s);return oe(this,h)&&(_(this,n)[n]=h,_(this,u)[u]=this.options,_(this,o)[o]=_(this,t)[t].state),h}},{key:"getCurrentResult",value:function(){return _(this,n)[n]}},{key:"trackResult",value:function(e,t){var s=this;return new Proxy(e,{get:function(e,n){return s.trackProp(n),null==t||t(n),"promise"!==n||s.options.experimental_prefetchInRender||"pending"!==_(s,l)[l].status||_(s,l)[l].reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(e,n)}})}},{key:"trackProp",value:function(e){_(this,O)[O].add(e)}},{key:"getCurrentQuery",value:function(){return _(this,t)[t]}},{key:"refetch",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},(I(e),e));return this.fetch(Object.assign({},t))}},{key:"fetchOptimistic",value:function(t){var s=this,n=_(this,e)[e].defaultQueryOptions(t),o=_(this,e)[e].getQueryCache().build(_(this,e)[e],n);return o.fetch().then(function(){return s.createResult(o,n)})}},{key:"fetch",value:function(e){var t,s=this;return _(this,j)[j](Object.assign({},e,{cancelRefetch:null==(t=e.cancelRefetch)||t})).then(function(){return s.updateResult(),_(s,n)[n]})}},{key:"createResult",value:function(e,p){var b,y=this,O=_(this,t)[t],j=this.options,R=_(this,n)[n],P=_(this,o)[o],w=_(this,u)[u],S=e!==O?e.state:_(this,s)[s],k=e.state,E=Object.assign({},k),T=!1;if(p._optimisticResults){var C=this.hasListeners(),I=!C&&re(e,p),U=C&&ne(e,O,p,j);(I||U)&&(E=Object.assign({},E,(0,r(d[10]).fetchState)(k.data,e.options))),"isRestoring"===p._optimisticResults&&(E.fetchStatus="idle")}var D=E,Q=D.error,F=D.errorUpdatedAt,M=D.status;b=E.data;var L=!1;if(void 0!==p.placeholderData&&void 0===b&&"pending"===M){var q,x;if(null!=R&&R.isPlaceholderData&&p.placeholderData===(null==w?void 0:w.placeholderData))q=R.data,L=!0;else q="function"==typeof p.placeholderData?p.placeholderData(null==(x=_(this,v)[v])?void 0:x.state.data,_(this,v)[v]):p.placeholderData;void 0!==q&&(M="success",b=(0,r(d[9]).replaceData)(null==R?void 0:R.data,q,p),T=!0)}if(p.select&&void 0!==b&&!L)if(R&&b===(null==P?void 0:P.data)&&p.select===_(this,c)[c])b=_(this,f)[f];else try{_(this,c)[c]=p.select,b=p.select(b),b=(0,r(d[9]).replaceData)(null==R?void 0:R.data,b,p),_(this,f)[f]=b,_(this,h)[h]=null}catch(e){_(this,h)[h]=e}_(this,h)[h]&&(Q=_(this,h)[h],b=_(this,f)[f],F=Date.now(),M="error");var A="fetching"===E.fetchStatus,B="pending"===M,W="error"===M,z=B&&A,H=void 0!==b,V={status:M,fetchStatus:E.fetchStatus,isPending:B,isSuccess:"success"===M,isError:W,isInitialLoading:z,isLoading:z,data:b,dataUpdatedAt:E.dataUpdatedAt,error:Q,errorUpdatedAt:F,failureCount:E.fetchFailureCount,failureReason:E.fetchFailureReason,errorUpdateCount:E.errorUpdateCount,isFetched:E.dataUpdateCount>0||E.errorUpdateCount>0,isFetchedAfterMount:E.dataUpdateCount>S.dataUpdateCount||E.errorUpdateCount>S.errorUpdateCount,isFetching:A,isRefetching:A&&!B,isLoadingError:W&&!H,isPaused:"paused"===E.fetchStatus,isPlaceholderData:T,isRefetchError:W&&H,isStale:ae(e,p),refetch:this.refetch,promise:_(this,l)[l],isEnabled:!1!==(0,r(d[9]).resolveEnabled)(p.enabled,e)};if(this.options.experimental_prefetchInRender){var N=function(e){"error"===V.status?e.reject(V.error):void 0!==V.data&&e.resolve(V.data)},G=function(){var e=_(y,l)[l]=V.promise=(0,r(d[8]).pendingThenable)();N(e)},J=_(this,l)[l];switch(J.status){case"pending":e.queryHash===O.queryHash&&N(J);break;case"fulfilled":"error"!==V.status&&V.data===J.value||G();break;case"rejected":"error"===V.status&&V.error===J.reason||G()}}return V}},{key:"updateResult",value:function(){var e=this,s=_(this,n)[n],l=this.createResult(_(this,t)[t],this.options);if(_(this,o)[o]=_(this,t)[t].state,_(this,u)[u]=this.options,void 0!==_(this,o)[o].data&&(_(this,v)[v]=_(this,t)[t]),!(0,r(d[9]).shallowEqualObjects)(l,s)){_(this,n)[n]=l;_(this,C)[C]({listeners:(function(){if(!s)return!0;var t=e.options.notifyOnChangeProps,o="function"==typeof t?t():t;if("all"===o||!o&&!_(e,O)[O].size)return!0;var u=new Set(null!=o?o:_(e,O)[O]);return e.options.throwOnError&&u.add("error"),Object.keys(_(e,n)[n]).some(function(t){var o=t;return _(e,n)[n][o]!==s[o]&&u.has(o)})})()})}}},{key:"onQueryUpdate",value:function(){this.updateResult(),this.hasListeners()&&_(this,S)[S]()}}])})(r(d[11]).Subscribable));function G(e){_(this,T)[T]();var s=_(this,t)[t].fetch(this.options,e);return null!=e&&e.throwOnError||(s=s.catch(r(d[9]).noop)),s}function J(){var e=this;_(this,k)[k]();var s=(0,r(d[9]).resolveStaleTime)(this.options.staleTime,_(this,t)[t]);if(!r(d[9]).isServer&&!_(this,n)[n].isStale&&(0,r(d[9]).isValidTimeout)(s)){var o=(0,r(d[9]).timeUntilStale)(_(this,n)[n].dataUpdatedAt,s)+1;_(this,p)[p]=r(d[12]).timeoutManager.setTimeout(function(){_(e,n)[n].isStale||e.updateResult()},o)}}function K(){var e;return null!=(e="function"==typeof this.options.refetchInterval?this.options.refetchInterval(_(this,t)[t]):this.options.refetchInterval)&&e}function X(e){var s=this;_(this,E)[E](),_(this,y)[y]=e,!r(d[9]).isServer&&!1!==(0,r(d[9]).resolveEnabled)(this.options.enabled,_(this,t)[t])&&(0,r(d[9]).isValidTimeout)(_(this,y)[y])&&0!==_(this,y)[y]&&(_(this,b)[b]=r(d[12]).timeoutManager.setInterval(function(){(s.options.refetchIntervalInBackground||r(d[13]).focusManager.isFocused())&&_(s,j)[j]()},_(this,y)[y]))}function Y(){_(this,R)[R](),_(this,w)[w](_(this,P)[P]())}function Z(){_(this,p)[p]&&(r(d[12]).timeoutManager.clearTimeout(_(this,p)[p]),_(this,p)[p]=void 0)}function $(){_(this,b)[b]&&(r(d[12]).timeoutManager.clearInterval(_(this,b)[b]),_(this,b)[b]=void 0)}function ee(){var n=_(this,e)[e].getQueryCache().build(_(this,e)[e],this.options);if(n!==_(this,t)[t]){var o=_(this,t)[t];_(this,t)[t]=n,_(this,s)[s]=n.state,this.hasListeners()&&(null==o||o.removeObserver(this),n.addObserver(this))}}function te(s){var o=this;r(d[14]).notifyManager.batch(function(){s.listeners&&o.listeners.forEach(function(e){e(_(o,n)[n])}),_(o,e)[e].getQueryCache().notify({query:_(o,t)[t],type:"observerResultsUpdated"})})}function ie(e,t){return!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}function re(e,t){return ie(e,t)||void 0!==e.state.data&&se(e,t,t.refetchOnMount)}function se(e,t,s){if(!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&"static"!==(0,r(d[9]).resolveStaleTime)(t.staleTime,e)){var n="function"==typeof s?s(e):s;return"always"===n||!1!==n&&ae(e,t)}return!1}function ne(e,t,s,n){return(e!==t||!1===(0,r(d[9]).resolveEnabled)(n.enabled,e))&&(!s.suspense||"error"!==e.state.status)&&ae(e,s)}function ae(e,t){return!1!==(0,r(d[9]).resolveEnabled)(t.enabled,e)&&e.isStaleByTime((0,r(d[9]).resolveStaleTime)(t.staleTime,e))}function oe(e,t){return!(0,r(d[9]).shallowEqualObjects)(e.getCurrentResult(),t)}},1880,[1881,3,4,9,11,12,45,46,1876,1873,1882,1875,1874,1877,1884]); +__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(null==t)throw new TypeError("Cannot destructure "+t)},m.exports.__esModule=!0,m.exports.default=m.exports},1881,[]); +__d(function(g,_r,i,a,m,_e,d){"use strict";var t,e,n,r,s,o,u,c,l=_r(d[0]),h=_r(d[1]),f=_r(d[2]),v=_r(d[3]),p=_r(d[4]),y=_r(d[5]),b=_r(d[6]),O=_r(d[7]),S=_r(d[8]);function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(C=function(){return!!t})()}var j,k=Object.defineProperty,F=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,U=Object.prototype.hasOwnProperty,R=function(t,e,n,r){if(e&&"object"==typeof e||"function"==typeof e){var s=function(s){U.call(t,s)||s===n||k(t,s,{get:function(){return e[s]},enumerable:!(r=F(e,s))||r.enumerable})};for(var o of w(e))s(o)}return t},A={};!(function(t,e){for(var n in e)k(t,n,{get:e[n],enumerable:!0})})(A,{Query:function(){return D},fetchState:function(){return q}}),m.exports=(j=A,R(k({},"__esModule",{value:!0}),j));var D=(t=S("initialState"),e=S("revertState"),n=S("cache"),r=S("client"),s=S("retryer"),o=S("defaultOptions"),u=S("abortSignalConsumed"),c=S("dispatch"),(function(S){function j(l){var f,y,b,S,k;return h(this,j),b=this,S=p(S=j),y=v(b,C()?Reflect.construct(S,k||[],p(b).constructor):S.apply(b,k)),Object.defineProperty(y,c,{value:P}),Object.defineProperty(y,t,{writable:!0,value:void 0}),Object.defineProperty(y,e,{writable:!0,value:void 0}),Object.defineProperty(y,n,{writable:!0,value:void 0}),Object.defineProperty(y,r,{writable:!0,value:void 0}),Object.defineProperty(y,s,{writable:!0,value:void 0}),Object.defineProperty(y,o,{writable:!0,value:void 0}),Object.defineProperty(y,u,{writable:!0,value:void 0}),O(y,u)[u]=!1,O(y,o)[o]=l.defaultOptions,y.setOptions(l.options),y.observers=[],O(y,r)[r]=l.client,O(y,n)[n]=O(y,r)[r].getQueryCache(),y.queryKey=l.queryKey,y.queryHash=l.queryHash,O(y,t)[t]=M(y.options),y.state=null!=(f=l.state)?f:O(y,t)[t],y.scheduleGc(),y}return b(j,S),f(j,[{key:"meta",get:function(){return this.options.meta}},{key:"promise",get:function(){var t;return null==(t=O(this,s)[s])?void 0:t.promise}},{key:"setOptions",value:function(e){if(this.options=Object.assign({},O(this,o)[o],e),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){var n=M(this.options);void 0!==n.data&&(this.setData(n.data,{updatedAt:n.dataUpdatedAt,manual:!0}),O(this,t)[t]=n)}}},{key:"optionalRemove",value:function(){this.observers.length||"idle"!==this.state.fetchStatus||O(this,n)[n].remove(this)}},{key:"setData",value:function(t,e){var n=(0,_r(d[9]).replaceData)(this.state.data,t,this.options);return O(this,c)[c]({data:n,type:"success",dataUpdatedAt:null==e?void 0:e.updatedAt,manual:null==e?void 0:e.manual}),n}},{key:"setState",value:function(t,e){O(this,c)[c]({type:"setState",state:t,setStateOptions:e})}},{key:"cancel",value:function(t){var e,n,r=null==(e=O(this,s)[s])?void 0:e.promise;return null==(n=O(this,s)[s])||n.cancel(t),r?r.then(_r(d[9]).noop).catch(_r(d[9]).noop):Promise.resolve()}},{key:"destroy",value:function(){var t,e,n,r,s;(t=j,e="destroy",n=this,s=y(p(1&(r=3)?t.prototype:t),e,n),2&r&&"function"==typeof s?function(t){return s.apply(n,t)}:s)([]),this.cancel({silent:!0})}},{key:"reset",value:function(){this.destroy(),this.setState(O(this,t)[t])}},{key:"isActive",value:function(){var t=this;return this.observers.some(function(e){return!1!==(0,_r(d[9]).resolveEnabled)(e.options.enabled,t)})}},{key:"isDisabled",value:function(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===_r(d[9]).skipToken||this.state.dataUpdateCount+this.state.errorUpdateCount===0}},{key:"isStatic",value:function(){var t=this;return this.getObserversCount()>0&&this.observers.some(function(e){return"static"===(0,_r(d[9]).resolveStaleTime)(e.options.staleTime,t)})}},{key:"isStale",value:function(){return this.getObserversCount()>0?this.observers.some(function(t){return t.getCurrentResult().isStale}):void 0===this.state.data||this.state.isInvalidated}},{key:"isStaleByTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return void 0===this.state.data||"static"!==t&&(!!this.state.isInvalidated||!(0,_r(d[9]).timeUntilStale)(this.state.dataUpdatedAt,t))}},{key:"onFocus",value:function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnWindowFocus()});null==e||e.refetch({cancelRefetch:!1}),null==(t=O(this,s)[s])||t.continue()}},{key:"onOnline",value:function(){var t,e=this.observers.find(function(t){return t.shouldFetchOnReconnect()});null==e||e.refetch({cancelRefetch:!1}),null==(t=O(this,s)[s])||t.continue()}},{key:"addObserver",value:function(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),O(this,n)[n].notify({type:"observerAdded",query:this,observer:t}))}},{key:"removeObserver",value:function(t){this.observers.includes(t)&&(this.observers=this.observers.filter(function(e){return e!==t}),this.observers.length||(O(this,s)[s]&&(O(this,u)[u]?O(this,s)[s].cancel({revert:!0}):O(this,s)[s].cancelRetry()),this.scheduleGc()),O(this,n)[n].notify({type:"observerRemoved",query:this,observer:t}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||O(this,c)[c]({type:"invalidate"})}},{key:"fetch",value:(k=l(function*(t,o){var l,h,f,v=this;if("idle"!==this.state.fetchStatus&&"rejected"!==(null==(l=O(this,s)[s])?void 0:l.status()))if(void 0!==this.state.data&&null!=o&&o.cancelRefetch)this.cancel({silent:!0});else if(O(this,s)[s])return O(this,s)[s].continueRetry(),O(this,s)[s].promise;if(t&&this.setOptions(t),!this.options.queryFn){var p=this.observers.find(function(t){return t.options.queryFn});p&&this.setOptions(p.options)}var y,b,S=new AbortController,C=function(t){Object.defineProperty(t,"signal",{enumerable:!0,get:function(){return O(v,u)[u]=!0,S.signal}})},j=function(){var t,e=(0,_r(d[9]).ensureQueryFn)(v.options,o),n=(t={client:O(v,r)[r],queryKey:v.queryKey,meta:v.meta},C(t),t);return O(v,u)[u]=!1,v.options.persister?v.options.persister(e,n,v):e(n)},k=(y={fetchOptions:o,options:v.options,queryKey:v.queryKey,client:O(v,r)[r],state:v.state,fetchFn:j},C(y),y);null==(h=this.options.behavior)||h.onFetch(k,this),O(this,e)[e]=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(f=k.fetchOptions)?void 0:f.meta))&&O(this,c)[c]({type:"fetch",meta:null==(b=k.fetchOptions)?void 0:b.meta}),O(this,s)[s]=(0,_r(d[10]).createRetryer)({initialPromise:null==o?void 0:o.initialPromise,fn:k.fetchFn,onCancel:function(t){t instanceof _r(d[10]).CancelledError&&t.revert&&v.setState(Object.assign({},O(v,e)[e],{fetchStatus:"idle"})),S.abort()},onFail:function(t,e){O(v,c)[c]({type:"failed",failureCount:t,error:e})},onPause:function(){O(v,c)[c]({type:"pause"})},onContinue:function(){O(v,c)[c]({type:"continue"})},retry:k.options.retry,retryDelay:k.options.retryDelay,networkMode:k.options.networkMode,canRun:function(){return!0}});try{var F,w,U,R,A=yield O(this,s)[s].start();if(void 0===A)throw new Error(`${this.queryHash} data is undefined`);return this.setData(A),null==(F=(w=O(this,n)[n].config).onSuccess)||F.call(w,A,this),null==(U=(R=O(this,n)[n].config).onSettled)||U.call(R,A,this.state.error,this),A}catch(t){var D,P,q,M;if(t instanceof _r(d[10]).CancelledError){if(t.silent)return O(this,s)[s].promise;if(t.revert){if(void 0===this.state.data)throw t;return this.state.data}}throw O(this,c)[c]({type:"error",error:t}),null==(D=(P=O(this,n)[n].config).onError)||D.call(P,t,this),null==(q=(M=O(this,n)[n].config).onSettled)||q.call(M,this.state.data,t,this),t}finally{this.scheduleGc()}}),function(t,e){return k.apply(this,arguments)})}]);var k})(_r(d[11]).Removable));function P(t){var r=this;this.state=(function(n){var s,o;switch(t.type){case"failed":return Object.assign({},n,{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return Object.assign({},n,{fetchStatus:"paused"});case"continue":return Object.assign({},n,{fetchStatus:"fetching"});case"fetch":return Object.assign({},n,q(n.data,r.options),{fetchMeta:null!=(s=t.meta)?s:null});case"success":var u=Object.assign({},n,{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(o=t.dataUpdatedAt)?o:Date.now(),error:null,isInvalidated:!1,status:"success"},!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});return O(r,e)[e]=t.manual?u:void 0,u;case"error":var c=t.error;return Object.assign({},n,{error:c,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"});case"invalidate":return Object.assign({},n,{isInvalidated:!0});case"setState":return Object.assign({},n,t.state)}})(this.state),_r(d[12]).notifyManager.batch(function(){r.observers.forEach(function(t){t.onQueryUpdate()}),O(r,n)[n].notify({query:r,type:"updated",action:t})})}function q(t,e){return Object.assign({fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,_r(d[10]).canFetch)(e.networkMode)?"fetching":"paused"},void 0===t&&{error:null,status:"pending"})}function M(t){var e="function"==typeof t.initialData?t.initialData():t.initialData,n=void 0!==e,r=n?"function"==typeof t.initialDataUpdatedAt?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}},1882,[367,3,4,9,11,42,12,45,46,1873,1871,1883,1884]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,o,n=r(d[0]),u=r(d[1]),c=r(d[2]),s=r(d[3]),l=Object.defineProperty,f=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,p=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){h.call(t,c)||c===n||l(t,c,{get:function(){return o[c]},enumerable:!(u=f(o,c))||u.enumerable})};for(var s of v(o))c(s)}return t},y={};!(function(t,o){for(var n in o)l(t,n,{get:o[n],enumerable:!0})})(y,{Removable:function(){return T}}),m.exports=(o=y,p(l({},"__esModule",{value:!0}),o));var T=(t=s("gcTimeout"),(function(){return u(function o(){n(this,o),Object.defineProperty(this,t,{writable:!0,value:void 0})},[{key:"destroy",value:function(){this.clearGcTimeout()}},{key:"scheduleGc",value:function(){var o=this;this.clearGcTimeout(),(0,r(d[4]).isValidTimeout)(this.gcTime)&&(c(this,t)[t]=r(d[5]).timeoutManager.setTimeout(function(){o.optionalRemove()},this.gcTime))}},{key:"updateGcTime",value:function(t){this.gcTime=Math.max(this.gcTime||0,null!=t?t:r(d[4]).isServer?1/0:3e5)}},{key:"clearGcTimeout",value:function(){c(this,t)[t]&&(r(d[5]).timeoutManager.clearTimeout(c(this,t)[t]),c(this,t)[t]=void 0)}}])})())},1883,[3,4,45,46,1873,1874]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){c.call(t,u)||u===l||n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var p of u(f))y(p)}return t},l={};function s(){var t=[],n=0,o=function(t){t()},u=function(t){t()},c=r(d[0]).systemSetTimeoutZero,f=function(u){n?t.push(u):c(function(){o(u)})};return{batch:function(f){var l,s;n++;try{l=f()}finally{--n||(s=t,t=[],s.length&&c(function(){u(function(){s.forEach(function(t){o(t)})})}))}return l},batchCalls:function(t){return function(){for(var n=arguments.length,o=new Array(n),u=0;u0&&void 0!==arguments[0]?arguments[0]:{};return o(this,h),l=this,v=f(v=h),u=c(l,y()?Reflect.construct(v,p||[],f(l).constructor):v.apply(l,p)),Object.defineProperty(u,t,{writable:!0,value:void 0}),Object.defineProperty(u,e,{writable:!0,value:void 0}),Object.defineProperty(u,n,{writable:!0,value:void 0}),u.config=b,s(u,t)[t]=new Set,s(u,e)[e]=new Map,s(u,n)[n]=0,u}return l(h,v),u(h,[{key:"build",value:function(t,e,o){var u=new(r(d[7]).Mutation)({client:t,mutationCache:this,mutationId:++s(this,n)[n],options:t.defaultMutationOptions(e),state:o});return this.add(u),u}},{key:"add",value:function(n){s(this,t)[t].add(n);var o=j(n);if("string"==typeof o){var u=s(this,e)[e].get(o);u?u.push(n):s(this,e)[e].set(o,[n])}this.notify({type:"added",mutation:n})}},{key:"remove",value:function(n){if(s(this,t)[t].delete(n)){var o=j(n);if("string"==typeof o){var u=s(this,e)[e].get(o);if(u)if(u.length>1){var c=u.indexOf(n);-1!==c&&u.splice(c,1)}else u[0]===n&&s(this,e)[e].delete(o)}}this.notify({type:"removed",mutation:n})}},{key:"canRun",value:function(t){var n=j(t);if("string"==typeof n){var o=s(this,e)[e].get(n),u=null==o?void 0:o.find(function(t){return"pending"===t.state.status});return!u||u===t}return!0}},{key:"runNext",value:function(t){var n=j(t);if("string"==typeof n){var o,u,c=null==(o=s(this,e)[e].get(n))?void 0:o.find(function(e){return e!==t&&e.state.isPaused});return null!=(u=null==c?void 0:c.continue())?u:Promise.resolve()}return Promise.resolve()}},{key:"clear",value:function(){var n=this;r(d[8]).notifyManager.batch(function(){s(n,t)[t].forEach(function(t){n.notify({type:"removed",mutation:t})}),s(n,t)[t].clear(),s(n,e)[e].clear()})}},{key:"getAll",value:function(){return Array.from(s(this,t)[t])}},{key:"find",value:function(t){var e=Object.assign({exact:!0},t);return this.getAll().find(function(t){return(0,r(d[9]).matchMutation)(e,t)})}},{key:"findAll",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getAll().filter(function(e){return(0,r(d[9]).matchMutation)(t,e)})}},{key:"notify",value:function(t){var e=this;r(d[8]).notifyManager.batch(function(){e.listeners.forEach(function(e){e(t)})})}},{key:"resumePausedMutations",value:function(){var t=this.getAll().filter(function(t){return t.state.isPaused});return r(d[8]).notifyManager.batch(function(){return Promise.all(t.map(function(t){return t.continue().catch(r(d[9]).noop)}))})}}])})(r(d[10]).Subscribable));function j(t){var e;return null==(e=t.options.scope)?void 0:e.id}},1886,[3,4,9,11,12,45,46,1885,1884,1873,1875]); +__d(function(g,r,i,a,m,_e,d){"use strict";var t,e,n,s,o,u,l=r(d[0]),c=r(d[1]),h=r(d[2]),v=r(d[3]),f=r(d[4]),p=r(d[5]),b=r(d[6]);function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var O,j=Object.defineProperty,P=Object.getOwnPropertyDescriptor,M=Object.getOwnPropertyNames,w=Object.prototype.hasOwnProperty,K=function(t,e,n,s){if(e&&"object"==typeof e||"function"==typeof e){var o=function(o){w.call(t,o)||o===n||j(t,o,{get:function(){return e[o]},enumerable:!(s=P(e,o))||s.enumerable})};for(var u of M(e))o(u)}return t},k={};!(function(t,e){for(var n in e)j(t,n,{get:e[n],enumerable:!0})})(k,{MutationObserver:function(){return S}}),m.exports=(O=k,K(j({},"__esModule",{value:!0}),O));var S=(t=b("client"),e=b("currentResult"),n=b("currentMutation"),s=b("mutateOptions"),o=b("updateResult"),u=b("notify"),(function(b){function O(c,f){var b,j,P,M;return l(this,O),j=this,P=v(P=O),b=h(j,y()?Reflect.construct(P,M||[],v(j).constructor):P.apply(j,M)),Object.defineProperty(b,u,{value:E}),Object.defineProperty(b,o,{value:R}),Object.defineProperty(b,t,{writable:!0,value:void 0}),Object.defineProperty(b,e,{writable:!0,value:void 0}),Object.defineProperty(b,n,{writable:!0,value:void 0}),Object.defineProperty(b,s,{writable:!0,value:void 0}),p(b,t)[t]=c,b.setOptions(f),b.bindMethods(),p(b,o)[o](),b}return f(O,b),c(O,[{key:"bindMethods",value:function(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}},{key:"setOptions",value:function(e){var s,o=this.options;this.options=p(this,t)[t].defaultMutationOptions(e),(0,r(d[7]).shallowEqualObjects)(this.options,o)||p(this,t)[t].getMutationCache().notify({type:"observerOptionsUpdated",mutation:p(this,n)[n],observer:this}),null!=o&&o.mutationKey&&this.options.mutationKey&&(0,r(d[7]).hashKey)(o.mutationKey)!==(0,r(d[7]).hashKey)(this.options.mutationKey)?this.reset():"pending"===(null==(s=p(this,n)[n])?void 0:s.state.status)&&p(this,n)[n].setOptions(this.options)}},{key:"onUnsubscribe",value:function(){var t;this.hasListeners()||(null==(t=p(this,n)[n])||t.removeObserver(this))}},{key:"onMutationUpdate",value:function(t){p(this,o)[o](),p(this,u)[u](t)}},{key:"getCurrentResult",value:function(){return p(this,e)[e]}},{key:"reset",value:function(){var t;null==(t=p(this,n)[n])||t.removeObserver(this),p(this,n)[n]=void 0,p(this,o)[o](),p(this,u)[u]()}},{key:"mutate",value:function(e,o){var u;return p(this,s)[s]=o,null==(u=p(this,n)[n])||u.removeObserver(this),p(this,n)[n]=p(this,t)[t].getMutationCache().build(p(this,t)[t],this.options),p(this,n)[n].addObserver(this),p(this,n)[n].execute(e)}}])})(r(d[8]).Subscribable));function R(){var t,s,o=null!=(t=null==(s=p(this,n)[n])?void 0:s.state)?t:(0,r(d[9]).getDefaultState)();p(this,e)[e]=Object.assign({},o,{isPending:"pending"===o.status,isSuccess:"success"===o.status,isError:"error"===o.status,isIdle:"idle"===o.status,mutate:this.mutate,reset:this.reset})}function E(n){var o=this;r(d[10]).notifyManager.batch(function(){if(p(o,s)[s]&&o.hasListeners()){var u,l,c,h,v=p(o,e)[e].variables,f=p(o,e)[e].context,b={client:p(o,t)[t],meta:o.options.meta,mutationKey:o.options.mutationKey};if("success"===(null==n?void 0:n.type))null==(u=(l=p(o,s)[s]).onSuccess)||u.call(l,n.data,v,f,b),null==(c=(h=p(o,s)[s]).onSettled)||c.call(h,n.data,null,v,f,b);else if("error"===(null==n?void 0:n.type)){var y,O,j,P;null==(y=(O=p(o,s)[s]).onError)||y.call(O,n.error,v,f,b),null==(j=(P=p(o,s)[s]).onSettled)||j.call(P,void 0,n.error,v,f,b)}}o.listeners.forEach(function(t){t(p(o,e)[e])})})}},1887,[3,4,9,11,12,45,46,1873,1875,1885,1884]); +__d(function(g,_r,i,a,_m,_e,d){"use strict";var e,t,r,n,u,o,s,c,f,l,v,h,b,p,y=_r(d[0]),O=_r(d[1]),j=_r(d[2]),P=_r(d[3]),m=_r(d[4]),w=_r(d[5]),Q=_r(d[6]);function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var R,E=Object.defineProperty,M=Object.getOwnPropertyDescriptor,q=Object.getOwnPropertyNames,C=Object.prototype.hasOwnProperty,S=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){C.call(e,u)||u===r||E(e,u,{get:function(){return t[u]},enumerable:!(n=M(t,u))||n.enumerable})};for(var o of q(t))u(o)}return e},_={};function x(e,t){var r=new Set(t);return e.filter(function(e){return!r.has(e)})}function z(e,t,r){var n=e.slice(0);return n[t]=r,n}!(function(e,t){for(var r in t)E(e,r,{get:t[r],enumerable:!0})})(_,{QueriesObserver:function(){return B}}),_m.exports=(R=_,S(E({},"__esModule",{value:!0}),R));var B=(e=Q("client"),t=Q("result"),r=Q("queries"),n=Q("options"),u=Q("observers"),o=Q("combinedResult"),s=Q("lastCombine"),c=Q("lastResult"),f=Q("observerMatches"),l=Q("trackResult"),v=Q("combineResult"),h=Q("findMatchingObservers"),b=Q("onUpdate"),p=Q("notify"),(function(Q){function R(O,m,Q){var E,M,q,C;return y(this,R),M=this,q=P(q=R),E=j(M,k()?Reflect.construct(q,C||[],P(M).constructor):q.apply(M,C)),Object.defineProperty(E,p,{value:N}),Object.defineProperty(E,b,{value:U}),Object.defineProperty(E,h,{value:L}),Object.defineProperty(E,v,{value:H}),Object.defineProperty(E,l,{value:D}),Object.defineProperty(E,e,{writable:!0,value:void 0}),Object.defineProperty(E,t,{writable:!0,value:void 0}),Object.defineProperty(E,r,{writable:!0,value:void 0}),Object.defineProperty(E,n,{writable:!0,value:void 0}),Object.defineProperty(E,u,{writable:!0,value:void 0}),Object.defineProperty(E,o,{writable:!0,value:void 0}),Object.defineProperty(E,s,{writable:!0,value:void 0}),Object.defineProperty(E,c,{writable:!0,value:void 0}),Object.defineProperty(E,f,{writable:!0,value:[]}),w(E,e)[e]=O,w(E,n)[n]=Q,w(E,r)[r]=[],w(E,u)[u]=[],w(E,t)[t]=[],E.setQueries(m),E}return m(R,Q),O(R,[{key:"onSubscribe",value:function(){var e=this;1===this.listeners.size&&w(this,u)[u].forEach(function(t){t.subscribe(function(r){w(e,b)[b](t,r)})})}},{key:"onUnsubscribe",value:function(){this.listeners.size||this.destroy()}},{key:"destroy",value:function(){this.listeners=new Set,w(this,u)[u].forEach(function(e){e.destroy()})}},{key:"setQueries",value:function(e,o){var s=this;w(this,r)[r]=e,w(this,n)[n]=o,_r(d[7]).notifyManager.batch(function(){var e=w(s,u)[u],n=w(s,h)[h](w(s,r)[r]);w(s,f)[f]=n,n.forEach(function(e){return e.observer.setOptions(e.defaultedQueryOptions)});var o=n.map(function(e){return e.observer}),c=o.map(function(e){return e.getCurrentResult()}),l=e.length!==o.length,v=o.some(function(t,r){return t!==e[r]}),y=l||v,O=!!y||c.some(function(e,r){var n=w(s,t)[t][r];return!n||!(0,_r(d[8]).shallowEqualObjects)(e,n)});(y||O)&&(y&&(w(s,u)[u]=o),w(s,t)[t]=c,s.hasListeners()&&(y&&(x(e,o).forEach(function(e){e.destroy()}),x(o,e).forEach(function(e){e.subscribe(function(t){w(s,b)[b](e,t)})})),w(s,p)[p]()))})}},{key:"getCurrentResult",value:function(){return w(this,t)[t]}},{key:"getQueries",value:function(){return w(this,u)[u].map(function(e){return e.getCurrentQuery()})}},{key:"getObservers",value:function(){return w(this,u)[u]}},{key:"getOptimisticResult",value:function(e,t){var r=this,n=w(this,h)[h](e),u=n.map(function(e){return e.observer.getOptimisticResult(e.defaultedQueryOptions)});return[u,function(e){return w(r,v)[v](null!=e?e:u,t)},function(){return w(r,l)[l](u,n)}]}}])})(_r(d[9]).Subscribable));function D(e,t){return t.map(function(r,n){var u=e[n];return r.defaultedQueryOptions.notifyOnChangeProps?u:r.observer.trackResult(u,function(e){t.forEach(function(t){t.observer.trackProp(e)})})})}function H(e,r){return r?(w(this,o)[o]&&w(this,t)[t]===w(this,c)[c]&&r===w(this,s)[s]||(w(this,s)[s]=r,w(this,c)[c]=w(this,t)[t],w(this,o)[o]=(0,_r(d[8]).replaceEqualDeep)(w(this,o)[o],r(e))),w(this,o)[o]):e}function L(t){var r=this,n=new Map(w(this,u)[u].map(function(e){return[e.options.queryHash,e]})),o=[];return t.forEach(function(t){var u=w(r,e)[e].defaultQueryOptions(t),s=n.get(u.queryHash);s?o.push({defaultedQueryOptions:u,observer:s}):o.push({defaultedQueryOptions:u,observer:new(_r(d[10]).QueryObserver)(w(r,e)[e],u)})}),o}function U(e,r){var n=w(this,u)[u].indexOf(e);-1!==n&&(w(this,t)[t]=z(w(this,t)[t],n,r),w(this,p)[p]())}function N(){var e=this;if(this.hasListeners()){var r,u=w(this,o)[o],s=w(this,l)[l](w(this,t)[t],w(this,f)[f]);u!==w(this,v)[v](s,null==(r=w(this,n)[n])?void 0:r.combine)&&_r(d[7]).notifyManager.batch(function(){e.listeners.forEach(function(r){r(w(e,t)[t])})})}}},1888,[3,4,9,11,12,45,46,1884,1873,1875,1880]); +__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=r(d[4]),f=r(d[5]),l=r(d[6]),s=r(d[7]);function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var h,v=Object.defineProperty,p=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,O=Object.prototype.hasOwnProperty,k=function(e,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var o=function(o){O.call(e,o)||o===n||v(e,o,{get:function(){return t[o]},enumerable:!(u=p(t,o))||u.enumerable})};for(var c of b(t))o(c)}return e},q={};!(function(e,t){for(var n in t)v(e,n,{get:t[n],enumerable:!0})})(q,{QueryCache:function(){return j}}),m.exports=(h=q,k(v({},"__esModule",{value:!0}),h));var j=(e=s("queries"),(function(s){function h(){var t,u,f,s,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return n(this,h),u=this,f=c(f=h),t=o(u,y()?Reflect.construct(f,s||[],c(u).constructor):f.apply(u,s)),Object.defineProperty(t,e,{writable:!0,value:void 0}),t.config=v,l(t,e)[e]=new Map,t}return f(h,s),u(h,[{key:"build",value:function(e,t,n){var u,o=t.queryKey,c=null!=(u=t.queryHash)?u:(0,r(d[8]).hashQueryKeyByOptions)(o,t),f=this.get(c);return f||(f=new(r(d[9]).Query)({client:e,queryKey:o,queryHash:c,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o)}),this.add(f)),f}},{key:"add",value:function(t){l(this,e)[e].has(t.queryHash)||(l(this,e)[e].set(t.queryHash,t),this.notify({type:"added",query:t}))}},{key:"remove",value:function(t){var n=l(this,e)[e].get(t.queryHash);n&&(t.destroy(),n===t&&l(this,e)[e].delete(t.queryHash),this.notify({type:"removed",query:t}))}},{key:"clear",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(t){e.remove(t)})})}},{key:"get",value:function(t){return l(this,e)[e].get(t)}},{key:"getAll",value:function(){return t(l(this,e)[e].values())}},{key:"find",value:function(e){var t=Object.assign({exact:!0},e);return this.getAll().find(function(e){return(0,r(d[8]).matchQuery)(t,e)})}},{key:"findAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.getAll();return Object.keys(e).length>0?t.filter(function(t){return(0,r(d[8]).matchQuery)(e,t)}):t}},{key:"notify",value:function(e){var t=this;r(d[10]).notifyManager.batch(function(){t.listeners.forEach(function(t){t(e)})})}},{key:"onFocus",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(e){e.onFocus()})})}},{key:"onOnline",value:function(){var e=this;r(d[10]).notifyManager.batch(function(){e.getAll().forEach(function(e){e.onOnline()})})}}])})(r(d[11]).Subscribable))},1889,[32,3,4,9,11,12,45,46,1873,1882,1884,1875]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n,u,s,o,l,c,f,h,y=r(d[0]),v=r(d[1]),p=r(d[2]),b=r(d[3]),O=r(d[4]),Q=r(d[5]),k=Object.defineProperty,M=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,P=Object.prototype.hasOwnProperty,w=function(t,n,u,s){if(n&&"object"==typeof n||"function"==typeof n){var o=function(o){P.call(t,o)||o===u||k(t,o,{get:function(){return n[o]},enumerable:!(s=M(n,o))||s.enumerable})};for(var l of j(n))o(l)}return t},D={};!(function(t,n){for(var u in n)k(t,u,{get:n[u],enumerable:!0})})(D,{QueryClient:function(){return q}}),m.exports=(h=D,w(k({},"__esModule",{value:!0}),h));var q=(t=Q("queryCache"),n=Q("mutationCache"),u=Q("defaultOptions"),s=Q("queryDefaults"),o=Q("mutationDefaults"),l=Q("mountCount"),c=Q("unsubscribeFocus"),f=Q("unsubscribeOnline"),(function(){return b(function h(){var y=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p(this,h),Object.defineProperty(this,t,{writable:!0,value:void 0}),Object.defineProperty(this,n,{writable:!0,value:void 0}),Object.defineProperty(this,u,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,l,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,f,{writable:!0,value:void 0}),O(this,t)[t]=y.queryCache||new(r(d[6]).QueryCache),O(this,n)[n]=y.mutationCache||new(r(d[7]).MutationCache),O(this,u)[u]=y.defaultOptions||{},O(this,s)[s]=new Map,O(this,o)[o]=new Map,O(this,l)[l]=0},[{key:"mount",value:function(){var n=this;O(this,l)[l]++,1===O(this,l)[l]&&(O(this,c)[c]=r(d[8]).focusManager.subscribe((function(){var u=v(function*(u){u&&(yield n.resumePausedMutations(),O(n,t)[t].onFocus())});return function(t){return u.apply(this,arguments)}})()),O(this,f)[f]=r(d[9]).onlineManager.subscribe((function(){var u=v(function*(u){u&&(yield n.resumePausedMutations(),O(n,t)[t].onOnline())});return function(t){return u.apply(this,arguments)}})()))}},{key:"unmount",value:function(){var t,n,u,s;O(this,l)[l]--,0===O(this,l)[l]&&(null==(t=(n=O(this,c))[c])||t.call(n),O(this,c)[c]=void 0,null==(u=(s=O(this,f))[f])||u.call(s),O(this,f)[f]=void 0)}},{key:"isFetching",value:function(n){return O(this,t)[t].findAll(Object.assign({},n,{fetchStatus:"fetching"})).length}},{key:"isMutating",value:function(t){return O(this,n)[n].findAll(Object.assign({},t,{status:"pending"})).length}},{key:"getQueryData",value:function(n){var u,s=this.defaultQueryOptions({queryKey:n});return null==(u=O(this,t)[t].get(s.queryHash))?void 0:u.state.data}},{key:"ensureQueryData",value:function(n){var u=this.defaultQueryOptions(n),s=O(this,t)[t].build(this,u),o=s.state.data;return void 0===o?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime((0,r(d[10]).resolveStaleTime)(u.staleTime,s))&&this.prefetchQuery(u),Promise.resolve(o))}},{key:"getQueriesData",value:function(n){return O(this,t)[t].findAll(n).map(function(t){return[t.queryKey,t.state.data]})}},{key:"setQueryData",value:function(n,u,s){var o=this.defaultQueryOptions({queryKey:n}),l=O(this,t)[t].get(o.queryHash),c=null==l?void 0:l.state.data,f=(0,r(d[10]).functionalUpdate)(u,c);if(void 0!==f)return O(this,t)[t].build(this,o).setData(f,Object.assign({},s,{manual:!0}))}},{key:"setQueriesData",value:function(n,u,s){var o=this;return r(d[11]).notifyManager.batch(function(){return O(o,t)[t].findAll(n).map(function(t){var n=t.queryKey;return[n,o.setQueryData(n,u,s)]})})}},{key:"getQueryState",value:function(n){var u,s=this.defaultQueryOptions({queryKey:n});return null==(u=O(this,t)[t].get(s.queryHash))?void 0:u.state}},{key:"removeQueries",value:function(n){var u=O(this,t)[t];r(d[11]).notifyManager.batch(function(){u.findAll(n).forEach(function(t){u.remove(t)})})}},{key:"resetQueries",value:function(n,u){var s=this,o=O(this,t)[t];return r(d[11]).notifyManager.batch(function(){return o.findAll(n).forEach(function(t){t.reset()}),s.refetchQueries(Object.assign({type:"active"},n),u)})}},{key:"cancelQueries",value:function(n){var u=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=Object.assign({revert:!0},s),l=r(d[11]).notifyManager.batch(function(){return O(u,t)[t].findAll(n).map(function(t){return t.cancel(o)})});return Promise.all(l).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"invalidateQueries",value:function(n){var u=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(d[11]).notifyManager.batch(function(){var o,l;return O(u,t)[t].findAll(n).forEach(function(t){t.invalidate()}),"none"===(null==n?void 0:n.refetchType)?Promise.resolve():u.refetchQueries(Object.assign({},n,{type:null!=(o=null!=(l=null==n?void 0:n.refetchType)?l:null==n?void 0:n.type)?o:"active"}),s)})}},{key:"refetchQueries",value:function(n){var u,s=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Object.assign({},o,{cancelRefetch:null==(u=o.cancelRefetch)||u}),c=r(d[11]).notifyManager.batch(function(){return O(s,t)[t].findAll(n).filter(function(t){return!t.isDisabled()&&!t.isStatic()}).map(function(t){var n=t.fetch(void 0,l);return l.throwOnError||(n=n.catch(r(d[10]).noop)),"paused"===t.state.fetchStatus?Promise.resolve():n})});return Promise.all(c).then(r(d[10]).noop)}},{key:"fetchQuery",value:function(n){var u=this.defaultQueryOptions(n);void 0===u.retry&&(u.retry=!1);var s=O(this,t)[t].build(this,u);return s.isStaleByTime((0,r(d[10]).resolveStaleTime)(u.staleTime,s))?s.fetch(u):Promise.resolve(s.state.data)}},{key:"prefetchQuery",value:function(t){return this.fetchQuery(t).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"fetchInfiniteQuery",value:function(t){return t.behavior=(0,r(d[12]).infiniteQueryBehavior)(t.pages),this.fetchQuery(t)}},{key:"prefetchInfiniteQuery",value:function(t){return this.fetchInfiniteQuery(t).then(r(d[10]).noop).catch(r(d[10]).noop)}},{key:"ensureInfiniteQueryData",value:function(t){return t.behavior=(0,r(d[12]).infiniteQueryBehavior)(t.pages),this.ensureQueryData(t)}},{key:"resumePausedMutations",value:function(){return r(d[9]).onlineManager.isOnline()?O(this,n)[n].resumePausedMutations():Promise.resolve()}},{key:"getQueryCache",value:function(){return O(this,t)[t]}},{key:"getMutationCache",value:function(){return O(this,n)[n]}},{key:"getDefaultOptions",value:function(){return O(this,u)[u]}},{key:"setDefaultOptions",value:function(t){O(this,u)[u]=t}},{key:"setQueryDefaults",value:function(t,n){O(this,s)[s].set((0,r(d[10]).hashKey)(t),{queryKey:t,defaultOptions:n})}},{key:"getQueryDefaults",value:function(t){var n=y(O(this,s)[s].values()),u={};return n.forEach(function(n){(0,r(d[10]).partialMatchKey)(t,n.queryKey)&&Object.assign(u,n.defaultOptions)}),u}},{key:"setMutationDefaults",value:function(t,n){O(this,o)[o].set((0,r(d[10]).hashKey)(t),{mutationKey:t,defaultOptions:n})}},{key:"getMutationDefaults",value:function(t){var n=y(O(this,o)[o].values()),u={};return n.forEach(function(n){(0,r(d[10]).partialMatchKey)(t,n.mutationKey)&&Object.assign(u,n.defaultOptions)}),u}},{key:"defaultQueryOptions",value:function(t){if(t._defaulted)return t;var n=Object.assign({},O(this,u)[u].queries,this.getQueryDefaults(t.queryKey),t,{_defaulted:!0});return n.queryHash||(n.queryHash=(0,r(d[10]).hashQueryKeyByOptions)(n.queryKey,n)),void 0===n.refetchOnReconnect&&(n.refetchOnReconnect="always"!==n.networkMode),void 0===n.throwOnError&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===r(d[10]).skipToken&&(n.enabled=!1),n}},{key:"defaultMutationOptions",value:function(t){return null!=t&&t._defaulted?t:Object.assign({},O(this,u)[u].mutations,(null==t?void 0:t.mutationKey)&&this.getMutationDefaults(t.mutationKey),t,{_defaulted:!0})}},{key:"clear",value:function(){O(this,t)[t].clear(),O(this,n)[n].clear()}}])})())},1890,[32,367,3,4,45,46,1889,1886,1877,1872,1873,1884,1879]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=["state"],o=["fetchStatus"],s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,h=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var h=function(c){f.call(t,c)||c===u||s(t,c,{get:function(){return n[c]},enumerable:!(o=l(n,c))||o.enumerable})};for(var y of c(n))h(y)}return t},y={};function v(t){return t}function p(t){return Object.assign({mutationKey:t.options.mutationKey,state:t.state},t.options.scope&&{scope:t.options.scope},t.meta&&{meta:t.meta})}function O(t,n,u){var o;return Object.assign({dehydratedAt:Date.now(),state:Object.assign({},t.state,void 0!==t.state.data&&{data:n(t.state.data)}),queryKey:t.queryKey,queryHash:t.queryHash},"pending"===t.state.status&&{promise:null==(o=t.promise)?void 0:o.then(n).catch(function(t){return u(t)?Promise.reject(new Error("redacted")):Promise.reject(t)})},t.meta&&{meta:t.meta})}function D(t){return t.state.isPaused}function b(t){return"success"===t.state.status}function j(t){return!0}function q(t){var n,u,o,s,l,c,f,h,y,q,P,A,M=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},S=null!=(n=null!=(u=M.shouldDehydrateMutation)?u:null==(o=t.getDefaultOptions().dehydrate)?void 0:o.shouldDehydrateMutation)?n:D,K=t.getMutationCache().getAll().flatMap(function(t){return S(t)?[p(t)]:[]}),w=null!=(s=null!=(l=M.shouldDehydrateQuery)?l:null==(c=t.getDefaultOptions().dehydrate)?void 0:c.shouldDehydrateQuery)?s:b,E=null!=(f=null!=(h=M.shouldRedactErrors)?h:null==(y=t.getDefaultOptions().dehydrate)?void 0:y.shouldRedactErrors)?f:j,Q=null!=(q=null!=(P=M.serializeData)?P:null==(A=t.getDefaultOptions().dehydrate)?void 0:A.serializeData)?q:v;return{mutations:K,queries:t.getQueryCache().getAll().flatMap(function(t){return w(t)?[O(t,Q,E)]:[]})}}function P(t,s,l){var c,f,h,y;if("object"==typeof s&&null!==s){var p=t.getMutationCache(),O=t.getQueryCache(),D=null!=(c=null!=(f=null==l||null==(h=l.defaultOptions)?void 0:h.deserializeData)?f:null==(y=t.getDefaultOptions().hydrate)?void 0:y.deserializeData)?c:v,b=s.mutations||[],j=s.queries||[];b.forEach(function(o){var s,c,f=o.state,h=n(o,u);p.build(t,Object.assign({},null==(s=t.getDefaultOptions().hydrate)?void 0:s.mutations,null==l||null==(c=l.defaultOptions)?void 0:c.mutations,h),f)}),j.forEach(function(u){var s,c,f=u.queryKey,h=u.state,y=u.queryHash,v=u.meta,p=u.promise,b=u.dehydratedAt,j=p?(0,r(d[1]).tryResolveSync)(p):void 0,q=void 0===h.data?null==j?void 0:j.data:h.data,P=void 0===q?q:D(q),A=O.get(y),M="pending"===(null==(s=A)?void 0:s.state.status),S="fetching"===(null==(c=A)?void 0:c.state.fetchStatus);if(A){var K=j&&void 0!==b&&b>A.state.dataUpdatedAt;if(h.dataUpdatedAt>A.state.dataUpdatedAt||K){h.fetchStatus;var w=n(h,o);A.setState(Object.assign({},w,{data:P}))}}else{var E,Q;A=O.build(t,Object.assign({},null==(E=t.getDefaultOptions().hydrate)?void 0:E.queries,null==l||null==(Q=l.defaultOptions)?void 0:Q.queries,{queryKey:f,queryHash:y,meta:v}),Object.assign({},h,{data:P,fetchStatus:"idle",status:void 0!==P?"success":h.status}))}p&&!M&&!S&&(void 0===b||b>A.state.dataUpdatedAt)&&A.fetch(void 0,{initialPromise:Promise.resolve(p).then(D)})})}}!(function(t,n){for(var u in n)s(t,u,{get:n[u],enumerable:!0})})(y,{defaultShouldDehydrateMutation:function(){return D},defaultShouldDehydrateQuery:function(){return b},dehydrate:function(){return q},hydrate:function(){return P}}),m.exports=(t=y,h(s({},"__esModule",{value:!0}),t))},1891,[207,1876]); +__d(function(g,_r,i,a,m,_e,d){"use strict";var e=_r(d[0]);function t(e){var t,n,o,u=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,o=Symbol.iterator);u--;){if(n&&null!=(t=e[n]))return t.call(e);if(o&&null!=(t=e[o]))return new r(t.call(e));n="@@asyncIterator",o="@@iterator"}throw new TypeError("Object is not async iterable")}function r(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return r=function(e){this.s=e,this.n=e.next},r.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new r(e)}var n,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(e,t,r,n){if(t&&"object"==typeof t||"function"==typeof t){var s=function(l){c.call(e,l)||l===r||o(e,l,{get:function(){return t[l]},enumerable:!(n=u(t,l))||n.enumerable})};for(var f of l(t))s(f)}return e},f={};function y(r){var n=r.streamFn,o=r.refetchMode,u=void 0===o?"reset":o,l=r.reducer,c=void 0===l?function(e,t){return(0,_r(d[1]).addToEnd)(e,t)}:l,s=r.initialValue,f=void 0===s?[]:s;return(function(){var r=e(function*(e){var r=e.client.getQueryCache().find({queryKey:e.queryKey,exact:!0}),o=!!r&&void 0!==r.state.data;o&&"reset"===u&&r.setState({status:"pending",data:void 0,error:null,fetchStatus:"fetching"});var l,s=f,y=yield n(e),v=!1,p=!1;try{for(var h,b=function*(){var t=h.value;if(e.signal.aborted)return 1;o&&"replace"===u||e.client.setQueryData(e.queryKey,function(e){return c(void 0===e?f:e,t)}),s=c(s,t)},j=t(y);(v=!(h=yield j.next()).done)&&!(yield*b());v=!1);}catch(e){p=!0,l=e}finally{try{v&&null!=j.return&&(yield j.return())}finally{if(p)throw l}}return o&&"replace"===u&&!e.signal.aborted&&e.client.setQueryData(e.queryKey,s),e.client.getQueryData(e.queryKey)});return function(e){return r.apply(this,arguments)}})()}!(function(e,t){for(var r in t)o(e,r,{get:t[r],enumerable:!0})})(f,{streamedQuery:function(){return y}}),m.exports=(n=f,s(o({},"__esModule",{value:!0}),n))},1892,[367,1873]); +__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,b,l){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){c.call(t,u)||u===b||n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))y(p)}return t},b={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(b,{dataTagErrorSymbol:function(){return y},dataTagSymbol:function(){return l},unsetMarker:function(){return p}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t));var l=Symbol("dataTagSymbol"),y=Symbol("dataTagErrorSymbol"),p=Symbol("unsetMarker")},1893,[]); +__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.validateTokenPayload=e.validateNftPayload=e.validateFlowAddress=e.validateEvmAddress=e.signLegacyEvmTransaction=e.safeConvertToUFix64=e.isVaultIdentifier=e.isValidSendTransactionPayload=e.isNFTIdentifier=e.isFlowToken=e.isFlowIdentifier=e.isCollectionIdentifier=e.getFlowTokenVault=e.encodeEvmContractCallData=e.createTransferContext=e.convertToUFix64=e.convertHexToByteArray=e.TransferContext=e.TopShotNftStrategy=e.SendTransaction=e.ParentToChildTokenStrategy=e.ParentToChildNftStrategy=e.GAS_LIMITS=e.FlowTokenBridgeToEvmStrategy=e.FlowToFlowTokenStrategy=e.FlowToFlowNftStrategy=e.FlowToEvmTokenStrategy=e.FlowToEvmNftBridgeStrategy=e.EvmToFlowTokenWithEoaBridgeStrategy=e.EvmToFlowTokenBridgeStrategy=e.EvmToFlowNftWithEoaBridgeStrategy=e.EvmToFlowNftBridgeStrategy=e.EvmToFlowCoaWithdrawalStrategy=e.EvmToEvmTokenStrategy=e.EvmToEvmNftStrategy=e.EoaToFlowCoaWithdrawalStrategy=e.EoaToEVMStrategy=e.EoaToChildNftStrategy=e.ChildToOthersTokenStrategy=e.ChildToOthersNftStrategy=e.ChildToChildTokenStrategy=e.ChildToChildNftStrategy=void 0;var n=t(r(d[1])),i=t(r(d[2])),o=t(r(d[3])),c=t(r(d[4])),u=e.GAS_LIMITS={EVM_DEFAULT:16777216,CADENCE_DEFAULT:9999},l={mainnet:"A.1654653399040a61.FlowToken.Vault",testnet:"A.7e60df042a9c0868.FlowToken.Vault"},f=e.isFlowToken=function(t){return Object.values(l).includes(t)},s=e.isVaultIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(Vault)$/.test(t)},v=e.isNFTIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(NFT)$/.test(t)},y=e.isCollectionIdentifier=function(t){return/^A\.[0-9a-fA-F]{16}\.[a-zA-Z0-9_]+\.(Collection)$/.test(t)},h=(e.isFlowIdentifier=function(t){return s(t)||v(t)||y(t)},e.getFlowTokenVault=function(t){return l[t]},e.convertToUFix64=function(t){var n="string"==typeof t?parseFloat(t):t;if(isNaN(n))throw new Error("Invalid number for UFix64 conversion");return n.toFixed(8)}),T=e.safeConvertToUFix64=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0.00000000";try{return h(t)}catch(t){return r(d[5]).logger.warn("Failed to convert amount to UFix64",t),n}},w=e.encodeEvmContractCallData=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=t.type,o=t.amount,c=void 0===o?"":o,u=t.receiver,l=t.decimal,f=t.ids,s=t.sender;t.coaAddr;if(42!==u.length)throw new Error("Invalid Ethereum address");var v="0x";if("token"===i){var y=Number(c),h=(0,r(d[6]).parseUnits)(y.toString(),l);v=new(r(d[7]).Interface)(["function transfer(address to, uint256 value)"]).encodeFunctionData("transfer",[u,h])}else if(1===f.length)if(""===c||0===Number(c)){var T=f[0];v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId)"]).encodeFunctionData("safeTransferFrom",[s,u,T])}else{var w=f[0],p=Number(c);v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId, uint256 amount, bytes data)"]).encodeFunctionData("safeTransferFrom",[s,u,w,p,"0x"])}else{var S=[];for(var E of f){v=new(r(d[7]).Interface)(["function safeTransferFrom(address from, address to, uint256 tokenId)"]).encodeFunctionData("safeTransferFrom",[s,u,E]),S.push(v)}if(n)return S}if(n)return v;for(var k=v.slice(2),F=new Uint8Array(k.length/2),A=0;A0?T+i:T,gasPrice:null!=(l=null!=(f=t.gasPrice)?f:null==n?void 0:n.gasPrice)?l:0,gasLimit:p,to:t.to,value:null!=(s=t.value)?s:0,data:null!=(v=t.data)?v:"0x"},E=(0,r(d[9]).serialize)(S),k=(0,r(d[10]).arrayify)((0,r(d[11]).keccak256)(E)),A=yield n.ethSign(k),C=(0,r(d[10]).hexlify)(A);return(0,r(d[9]).serialize)(S,C)});return function(n,i,o){return t.apply(this,arguments)}})(),b=e.validateFlowAddress=function(t){return/^0x[a-fA-F0-9]{16}$/.test(t)},V=e.validateEvmAddress=function(t){return/^0x[a-fA-F0-9]{40}$/.test(t)},L=e.validateTokenPayload=function(t){if(t.flowIdentifier&&!s(t.flowIdentifier))throw new Error("invalid send token identifier");if(Number(t.amount)<=0)throw new Error("invalid send token transaction payload");if(!t.decimal)throw new Error("invalid send token transaction payload")},U=e.validateNftPayload=function(t){if("flow"===t.assetType&&t.flowIdentifier&&!v(t.flowIdentifier))throw new Error("invalid send nft identifier");if("evm"===t.assetType&&t.flowIdentifier&&""!==t.flowIdentifier&&!b(t.receiver)&&v(t.flowIdentifier),0===t.ids.length)throw new Error("invalid send nft transaction payload")},_=(e.isValidSendTransactionPayload=function(t){var n=t.type,i=t.assetType,o=t.proposer,c=t.receiver,u=t.flowIdentifier,l=void 0===u?"":u,f=t.sender,s=t.coaAddr,v=t.isCrossVM;if(!b(o))throw new Error("invalid proposer address");if(!(o&&c&&f&&n&&i))throw new Error("invalid send transaction payload");if("evm"===i&&b(c)&&!l)throw new Error("flowIdentifier of transaction payload is missing when bridge");if("flow"===i&&!l)throw new Error("flowIdentifier of transaction payload is missing");if(v&&(!s||!V(s)))throw new Error("invalid COA address of payload");return"token"===n&&L(t),"nft"===n&&U(t),!0},e.ChildToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.sender;return"nft"===t.type&&n.length>0&&n.includes(i)&&n.includes(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.sender,c=t.receiver,u=t.ids;return yield this.cadenceService.batchSendChildNftToChild(i,o,c,u)}),function(n,i){return t.apply(this,arguments)})}]);var t})()),M=e.ChildToOthersNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.sender,o=t.assetType;return"nft"===t.type&&n.length>0&&n.includes(i)&&"flow"===o}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.proposer,o=t.receiver,c=t.coaAddr,u=t.flowIdentifier,l=t.sender,f=t.ids;return o===i?yield this.cadenceService.batchTransferChildNft(u,l,f):o===c?yield this.cadenceService.batchBridgeChildNftToEvmWithPayer(u,l,f):V(o)?yield this.cadenceService.batchBridgeChildNftToEvmAddressWithPayer(u,l,f,o):yield this.cadenceService.batchSendChildNft(u,l,o,f)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),D=e.ParentToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"nft"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchBridgeChildNftFromEvmWithPayer(i,o,c.map(function(t){return`${t}`}))}),function(n,i){return t.apply(this,arguments)})}]);var t})(),H=e.EoaToChildNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"nft"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c!==u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver,l=t.tokenContractAddr,f=t.sender,s=t.coaAddr,v=w(Object.assign({},t,{receiver:s}),!0),y=[];if(1===o.length){var h=yield N({from:f,to:l,data:v,gasLimit:u.EVM_DEFAULT},n),T=p(h);y.push(T)}else for(var S=0;S-1&&b(c)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchSendNbaNftV3(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),B=e.FlowToFlowNftStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.ids;return"nft"===t.type&&"flow"===n&&b(i)&&o.length>0}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.ids;return yield this.cadenceService.batchSendNftV3(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),W=e.FlowToEvmNftBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"nft"===t.type&&"flow"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver;return yield this.cadenceService.batchBridgeNftToEvmAddressWithPayer(i,o,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),O=e.EvmToFlowNftBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.sender,u=t.coaAddr;return"nft"===o&&"evm"===n&&b(i)&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver;return yield this.cadenceService.batchBridgeNftFromEvmToFlowWithPayer(i,o.map(function(t){return`${t}`}),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),$=e.EvmToFlowNftWithEoaBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.sender,u=t.coaAddr;return"nft"===o&&"evm"===n&&b(i)&&c!==u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.ids,c=t.receiver,l=t.tokenContractAddr,f=t.sender,s=t.coaAddr,v=w(Object.assign({},t,{receiver:s}),!0),y=[];if(1===o.length){var h=yield N({from:f,to:l,data:v,gasLimit:u.EVM_DEFAULT},n),T=p(h);y.push(T)}else for(var S=0;S1){var c=o.map(function(){return i}),l=o.map(function(n){return w(Object.assign({},t,{ids:[n]}))}),f=o.map(function(){return"0.0"});return yield this.cadenceService.batchCallContract(c,f,l,u.EVM_DEFAULT)}var s=w(t);return yield this.cadenceService.callContract(i,"0.0",s,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),z=e.EoaToEVMStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.receiver,i=t.assetType,o=t.sender,c=t.coaAddr;return"nft"===t.type&&"evm"===i&&o!==c&&V(n)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.receiver,o=t.tokenContractAddr,c=t.sender,l=t.ids,f=w(Object.assign({},t,{receiver:i}),!0);if(1===l.length){var s=yield N({from:c,to:o,data:f,gasLimit:u.EVM_DEFAULT},n),v=p(s);return yield this.cadenceService.eoaCallContract(v,c)}for(var y=[],h=0;h0&&n.includes(i)&&n.includes(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.sender,c=t.receiver,u=t.amount,l=T(u);return yield this.cadenceService.sendChildFtToChild(i,o,c,l)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),q=e.ChildToOthersTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.sender,o=t.assetType;return"token"===t.type&&n.length>0&&n.includes(i)&&"flow"===o}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.proposer,o=t.receiver,c=t.coaAddr,u=t.flowIdentifier,l=t.sender,f=t.amount;if(o===i){var s=T(f);return yield this.cadenceService.transferChildFt(u,l,s)}if(o===c){var v=T(f);return yield this.cadenceService.bridgeChildFtToEvm(u,l,v)}if(V(o)){var y=T(f);return yield this.cadenceService.bridgeChildFtToEvmAddress(u,l,y,o)}var h=T(f);return yield this.cadenceService.sendChildFt(u,l,o,h)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),G=e.ParentToChildTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.childAddrs,i=t.receiver,o=t.assetType,c=t.sender,u=t.coaAddr;return"token"===t.type&&n.length>0&&n.includes(i)&&"evm"===o&&c===u}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.amount,u=t.decimal,l=(0,r(d[6]).parseUnits)(T(c),u);return yield this.cadenceService.bridgeChildFtFromEvm(i,o,l.toString())}),function(n,i){return t.apply(this,arguments)})}]);var t})(),J=e.FlowToFlowTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"flow"===n&&b(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.receiver,c=t.amount,u=T(c);return yield this.cadenceService.transferTokensV3(i,o,u)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),R=e.FlowToEvmTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver;return"token"===t.type&&"flow"===n&&f(i)&&V(o)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.receiver,o=t.amount,c=T(o);return yield this.cadenceService.transferFlowToEvmAddress(i,c,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),K=e.FlowTokenBridgeToEvmStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"flow"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,u=T(o);return yield this.cadenceService.bridgeTokensToEvmAddressV2(i,u,c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),Q=e.EvmToFlowCoaWithdrawalStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver,c=t.type,u=t.sender,l=t.coaAddr;return"token"===c&&"evm"===n&&f(i)&&b(o)&&u===l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.amount,o=t.receiver,c=T(i);return yield this.cadenceService.withdrawCoa(c,o)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),X=e.EoaToFlowCoaWithdrawalStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.flowIdentifier,o=t.receiver,c=t.type,u=t.sender,l=t.coaAddr;return"token"===c&&"evm"===n&&f(i)&&b(o)&&u!==l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.amount,o=t.receiver,c=t.sender,l=t.coaAddr,f=t.decimal,s=(0,r(d[6]).parseUnits)(T(i),f),v=T(i),y=yield N({from:c,to:l,data:"0x",gasLimit:u.EVM_DEFAULT,value:s},n),h=p(y);return yield this.cadenceService.eoaToCoaToFlow(h,c,v,o)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),Y=e.EvmToFlowTokenBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.flowIdentifier,u=t.sender,l=t.coaAddr;return"token"===o&&"evm"===n&&b(i)&&s(c)&&!f(c)&&u===l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,u=t.decimal,l=(0,r(d[6]).parseUnits)(T(o),u);return yield this.cadenceService.bridgeTokensFromEvmToFlowV3(i,l.toString(),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),ee=e.EvmToFlowTokenWithEoaBridgeStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver,o=t.type,c=t.flowIdentifier,u=t.sender,l=t.coaAddr;return"token"===o&&"evm"===n&&b(i)&&s(c)&&!f(c)&&u!==l}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.flowIdentifier,o=t.amount,c=t.receiver,l=t.decimal,f=t.sender,s=t.coaAddr,v=t.tokenContractAddr,y=(0,r(d[6]).parseUnits)(T(o),l),h=w(Object.assign({},t,{receiver:s}),!0),S=yield N({from:f,to:v,data:h,gasLimit:u.EVM_DEFAULT},n),E=p(S);return yield this.cadenceService.bridgeTokensFromEoaToFlowV3(E,f,i,y.toString(),c)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),te=e.EvmToEvmTokenStrategy=(function(){return(0,i.default)(function t(i){(0,n.default)(this,t),this.cadenceService=i},[{key:"canHandle",value:function(t){var n=t.assetType,i=t.receiver;return"token"===t.type&&"evm"===n&&V(i)}},{key:"execute",value:(t=(0,c.default)(function*(t,n){var i=t.tokenContractAddr,o=t.amount,c=t.flowIdentifier,l=t.receiver,s=t.coaAddr,v=t.sender;if(f(c)){var y=T(o);if(v!==s){var h=(0,r(d[6]).parseUnits)(y,18),S=yield N({from:v,to:l,data:"0x",gasLimit:u.EVM_DEFAULT,value:h},n),E=p(S);return yield this.cadenceService.eoaCallContract(E,v)}return yield this.cadenceService.callContract(l,y,[],u.EVM_DEFAULT)}if(V(l)&&v!==s){var k=w(Object.assign({},t,{receiver:l}),!0),F=yield N({from:v,to:i,data:k,gasLimit:u.EVM_DEFAULT},n),A=p(F);return yield this.cadenceService.eoaCallContract(A,v)}var C=w(t);return yield this.cadenceService.callContract(i,"0.0",C,u.EVM_DEFAULT)}),function(n,i){return t.apply(this,arguments)})}]);var t})(),re=e.TransferContext=(function(){return(0,i.default)(function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,n.default)(this,t),this.strategies=[],this.helpers=i},[{key:"addStrategy",value:function(t){this.strategies.push(t)}},{key:"execute",value:(t=(0,c.default)(function*(t){for(var n of this.strategies)if(n.canHandle(t))return yield n.execute(t,this.helpers);return null}),function(n){return t.apply(this,arguments)})}]);var t})(),ne=e.createTransferContext=function(t){var n=new re(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});return n.addStrategy(new Z(t)),n.addStrategy(new q(t)),n.addStrategy(new G(t)),n.addStrategy(new J(t)),n.addStrategy(new R(t)),n.addStrategy(new K(t)),n.addStrategy(new Q(t)),n.addStrategy(new Y(t)),n.addStrategy(new ee(t)),n.addStrategy(new te(t)),n.addStrategy(new X(t)),n.addStrategy(new H(t)),n.addStrategy(new _(t)),n.addStrategy(new M(t)),n.addStrategy(new D(t)),n.addStrategy(new P(t)),n.addStrategy(new B(t)),n.addStrategy(new W(t)),n.addStrategy(new O(t)),n.addStrategy(new $(t)),n.addStrategy(new j(t)),n.addStrategy(new z(t)),n};e.SendTransaction=(function(){var t=(0,c.default)(function*(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};r(d[5]).logger.info("SendTransaction cadenceService",t);var o=ne(n,i);return yield o.execute(t)});return function(n,i){return t.apply(this,arguments)}})()},1894,[1,3,4,19,367,2,1895,1907,1952,1983,1904,1916]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseEther=e.formatEther=e.parseUnits=e.formatUnits=e.commify=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version),n=["wei","kwei","mwei","gwei","szabo","finney","ether"];function s(t,s){if("string"==typeof s){var u=n.indexOf(s);-1!==u&&(s=3*u)}return(0,r(d[2]).formatFixed)(t,null!=s?s:18)}function u(s,u){if("string"!=typeof s&&t.throwArgumentError("value must be a string","value",s),"string"==typeof u){var o=n.indexOf(u);-1!==o&&(u=3*o)}return(0,r(d[2]).parseFixed)(s,null!=u?u:18)}e.commify=function(n){var s=String(n).split(".");(s.length>2||!s[0].match(/^-?[0-9]*$/)||s[1]&&!s[1].match(/^[0-9]*$/)||"."===n||"-."===n)&&t.throwArgumentError("invalid value","value",n);var u=s[0],o="";for("-"===u.substring(0,1)&&(o="-",u=u.substring(1));"0"===u.substring(0,1);)u=u.substring(1);""===u&&(u="0");var f="";for(2===s.length&&(f="."+(s[1]||"0"));f.length>2&&"0"===f[f.length-1];)f=f.substring(0,f.length-1);for(var l=[];u.length;){if(u.length<=3){l.unshift(u);break}var h=u.length-3;l.unshift(u.substring(h)),u=u.substring(0,h)}return o+l.join(",")+f},e.formatUnits=s,e.parseUnits=u,e.formatEther=function(t){return s(t,18)},e.parseEther=function(t){return u(t,18)}},1895,[1896,1898,1899]); +__d(function(g,r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Logger=e.ErrorCode=e.LogLevel=void 0;var o=!1,t=!1,n={debug:1,default:2,info:2,warning:3,error:4,off:5},E=n.default,i=null;var s,N,l=(function(){try{var o=[];if(["NFD","NFC","NFKD","NFKC"].forEach(function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){o.push(t)}}),o.length)throw new Error("missing "+o.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(o){return o.message}return null})();!(function(o){o.DEBUG="DEBUG",o.INFO="INFO",o.WARNING="WARNING",o.ERROR="ERROR",o.OFF="OFF"})(s=e.LogLevel||(e.LogLevel={})),(function(o){o.UNKNOWN_ERROR="UNKNOWN_ERROR",o.NOT_IMPLEMENTED="NOT_IMPLEMENTED",o.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",o.NETWORK_ERROR="NETWORK_ERROR",o.SERVER_ERROR="SERVER_ERROR",o.TIMEOUT="TIMEOUT",o.BUFFER_OVERRUN="BUFFER_OVERRUN",o.NUMERIC_FAULT="NUMERIC_FAULT",o.MISSING_NEW="MISSING_NEW",o.INVALID_ARGUMENT="INVALID_ARGUMENT",o.MISSING_ARGUMENT="MISSING_ARGUMENT",o.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",o.CALL_EXCEPTION="CALL_EXCEPTION",o.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",o.NONCE_EXPIRED="NONCE_EXPIRED",o.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",o.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",o.TRANSACTION_REPLACED="TRANSACTION_REPLACED",o.ACTION_REJECTED="ACTION_REJECTED"})(N=e.ErrorCode||(e.ErrorCode={}));var c="0123456789abcdef",R=(function(){function R(o){Object.defineProperty(this,"version",{enumerable:!0,value:o,writable:!1})}return R.prototype._log=function(o,t){var i=o.toLowerCase();null==n[i]&&this.throwArgumentError("invalid log level name","logLevel",o),E>n[i]||console.log.apply(console,t)},R.prototype.debug=function(){for(var o=[],t=0;t>4],n+=c[15&t[s]];i.push(o+"=Uint8Array(0x"+n+")")}else i.push(o+"="+JSON.stringify(t))}catch(t){i.push(o+"="+JSON.stringify(E[o].toString()))}}),i.push("code="+n),i.push("version="+this.version);var s=o,l="";switch(n){case N.NUMERIC_FAULT:l="NUMERIC_FAULT";var u=o;switch(u){case"overflow":case"underflow":case"division-by-zero":l+="-"+u;break;case"negative-power":case"negative-width":l+="-unsupported";break;case"unbound-bitwise-result":l+="-unbound-result"}break;case N.CALL_EXCEPTION:case N.INSUFFICIENT_FUNDS:case N.MISSING_NEW:case N.NONCE_EXPIRED:case N.REPLACEMENT_UNDERPRICED:case N.TRANSACTION_REPLACED:case N.UNPREDICTABLE_GAS_LIMIT:l=n}l&&(o+=" [ See: https://links.ethers.org/v5-errors-"+l+" ]"),i.length&&(o+=" ("+i.join(", ")+")");var h=new Error(o);return h.reason=s,h.code=n,Object.keys(E).forEach(function(o){h[o]=E[o]}),h},R.prototype.throwError=function(o,t,n){throw this.makeError(o,t,n)},R.prototype.throwArgumentError=function(o,t,n){return this.throwError(o,R.errors.INVALID_ARGUMENT,{argument:t,value:n})},R.prototype.assert=function(o,t,n,E){o||this.throwError(t,n,E)},R.prototype.assertArgument=function(o,t,n,E){o||this.throwArgumentError(t,n,E)},R.prototype.checkNormalize=function(o){null==o&&(o="platform missing String.prototype.normalize"),l&&this.throwError("platform missing String.prototype.normalize",R.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:l})},R.prototype.checkSafeUint53=function(o,t){"number"==typeof o&&(null==t&&(t="value not safe"),(o<0||o>=9007199254740991)&&this.throwError(t,R.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:o}),o%1&&this.throwError(t,R.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:o}))},R.prototype.checkArgumentCount=function(o,t,n){n=n?": "+n:"",ot&&this.throwError("too many arguments"+n,R.errors.UNEXPECTED_ARGUMENT,{count:o,expectedCount:t})},R.prototype.checkNew=function(o,t){o!==Object&&null!=o||this.throwError("missing new",R.errors.MISSING_NEW,{name:t.name})},R.prototype.checkAbstract=function(o,t){o===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",R.errors.UNSUPPORTED_OPERATION,{name:o.name,operation:"new"}):o!==Object&&null!=o||this.throwError("missing new",R.errors.MISSING_NEW,{name:t.name})},R.globalLogger=function(){return i||(i=new R(r(d[0]).version)),i},R.setCensorship=function(n,E){if(!n&&E&&this.globalLogger().throwError("cannot permanently disable censorship",R.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!n)return;this.globalLogger().throwError("error censorship permanent",R.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}t=!!n,o=!!E},R.setLogLevel=function(o){var t=n[o.toLowerCase()];null!=t?E=t:R.globalLogger().warn("invalid log level - "+o)},R.from=function(o){return new R(o)},R.errors=N,R.levels=s,R})();e.Logger=R},1896,[1897]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="logger/5.8.0"},1897,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="units/5.8.0"},1898,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._base36To16=e._base16To36=e.parseFixed=e.FixedNumber=e.FixedFormat=e.formatFixed=e.BigNumber=void 0,Object.defineProperty(e,"BigNumber",{enumerable:!0,get:function(){return r(d[0]).BigNumber}}),Object.defineProperty(e,"formatFixed",{enumerable:!0,get:function(){return r(d[1]).formatFixed}}),Object.defineProperty(e,"FixedFormat",{enumerable:!0,get:function(){return r(d[1]).FixedFormat}}),Object.defineProperty(e,"FixedNumber",{enumerable:!0,get:function(){return r(d[1]).FixedNumber}}),Object.defineProperty(e,"parseFixed",{enumerable:!0,get:function(){return r(d[1]).parseFixed}}),Object.defineProperty(e,"_base16To36",{enumerable:!0,get:function(){return r(d[0])._base16To36}}),Object.defineProperty(e,"_base36To16",{enumerable:!0,get:function(){return r(d[0])._base36To16}})},1899,[1900,1906]); +__d(function(g,r,i,a,m,_e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_e,"__esModule",{value:!0}),_e._base16To36=_e._base36To16=_e.BigNumber=_e.isBigNumberish=void 0;var e=t(r(d[0])).default.BN,n=new(r(d[1]).Logger)(r(d[2]).version),o={};_e.isBigNumberish=function(t){return null!=t&&(s.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||(0,r(d[3]).isHexString)(t)||"bigint"==typeof t||(0,r(d[3]).isBytes)(t))};var u=!1,s=(function(){function t(t,e){t!==o&&n.throwError("cannot call constructor directly; use BigNumber.from",r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}return t.prototype.fromTwos=function(t){return p(h(this).fromTwos(t))},t.prototype.toTwos=function(t){return p(h(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this},t.prototype.add=function(t){return p(h(this).add(h(t)))},t.prototype.sub=function(t){return p(h(this).sub(h(t)))},t.prototype.div=function(e){return t.from(e).isZero()&&c("division-by-zero","div"),p(h(this).div(h(e)))},t.prototype.mul=function(t){return p(h(this).mul(h(t)))},t.prototype.mod=function(t){var e=h(t);return e.isNeg()&&c("division-by-zero","mod"),p(h(this).umod(e))},t.prototype.pow=function(t){var e=h(t);return e.isNeg()&&c("negative-power","pow"),p(h(this).pow(e))},t.prototype.and=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","and"),p(h(this).and(e))},t.prototype.or=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","or"),p(h(this).or(e))},t.prototype.xor=function(t){var e=h(t);return(this.isNegative()||e.isNeg())&&c("unbound-bitwise-result","xor"),p(h(this).xor(e))},t.prototype.mask=function(t){return(this.isNegative()||t<0)&&c("negative-width","mask"),p(h(this).maskn(t))},t.prototype.shl=function(t){return(this.isNegative()||t<0)&&c("negative-width","shl"),p(h(this).shln(t))},t.prototype.shr=function(t){return(this.isNegative()||t<0)&&c("negative-width","shr"),p(h(this).shrn(t))},t.prototype.eq=function(t){return h(this).eq(h(t))},t.prototype.lt=function(t){return h(this).lt(h(t))},t.prototype.lte=function(t){return h(this).lte(h(t))},t.prototype.gt=function(t){return h(this).gt(h(t))},t.prototype.gte=function(t){return h(this).gte(h(t))},t.prototype.isNegative=function(){return"-"===this._hex[0]},t.prototype.isZero=function(){return h(this).isZero()},t.prototype.toNumber=function(){try{return h(this).toNumber()}catch(t){c("overflow","toNumber",this.toString())}return null},t.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(t){}return n.throwError("this platform does not support BigInt",r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},t.prototype.toString=function(){return arguments.length>0&&(10===arguments[0]?u||(u=!0,n.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?n.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",r(d[1]).Logger.errors.UNEXPECTED_ARGUMENT,{}):n.throwError("BigNumber.toString does not accept parameters",r(d[1]).Logger.errors.UNEXPECTED_ARGUMENT,{})),h(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.prototype.toJSON=function(t){return{type:"BigNumber",hex:this.toHexString()}},t.from=function(u){if(u instanceof t)return u;if("string"==typeof u)return u.match(/^-?0x[0-9a-f]+$/i)?new t(o,f(u)):u.match(/^-?[0-9]+$/)?new t(o,f(new e(u))):n.throwArgumentError("invalid BigNumber string","value",u);if("number"==typeof u)return u%1&&c("underflow","BigNumber.from",u),(u>=9007199254740991||u<=-9007199254740991)&&c("overflow","BigNumber.from",u),t.from(String(u));var s,p=u;if("bigint"==typeof p)return t.from(p.toString());if((0,r(d[3]).isBytes)(p))return t.from((0,r(d[3]).hexlify)(p));if(p)if(p.toHexString){if("string"==typeof(s=p.toHexString()))return t.from(s)}else if(null==(s=p._hex)&&"BigNumber"===p.type&&(s=p.hex),"string"==typeof s&&((0,r(d[3]).isHexString)(s)||"-"===s[0]&&(0,r(d[3]).isHexString)(s.substring(1))))return t.from(s);return n.throwArgumentError("invalid BigNumber value","value",u)},t.isBigNumber=function(t){return!(!t||!t._isBigNumber)},t})();function f(t){if("string"!=typeof t)return f(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&n.throwArgumentError("invalid hex","value",t),"0x00"===(t=f(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function p(t){return s.from(f(t))}function h(t){var n=s.from(t).toHexString();return"-"===n[0]?new e("-"+n.substring(3),16):new e(n.substring(2),16)}function c(t,e,o){var u={fault:t,operation:e};return null!=o&&(u.value=o),n.throwError(t,r(d[1]).Logger.errors.NUMERIC_FAULT,u)}_e.BigNumber=s,_e._base36To16=function(t){return new e(t,36).toString(16)},_e._base16To36=function(t){return new e(t,16).toString(36)}},1900,[1901,1896,1903,1904]); +__d(function(_g,_r,_i,_a,_m,_e,d){!(function(t,i){'use strict';function r(t,i){if(!t)throw new Error(i||'Assertion failed')}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&('le'!==i&&'be'!==i||(r=i,i=10),this._init(t||0,i||10,r||'be'))}var e;'object'==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e='undefined'!=typeof window&&void 0!==window.Buffer?window.Buffer:_r(d[0]).Buffer}catch(t){}function o(t,i){var n=t.charCodeAt(i);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,'Invalid character in '+t)}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,n,h){for(var e=0,o=0,s=Math.min(t.length,n),u=i;u=49?a-49+10:a>=17?a-17+10:a,r(a>=0&&o0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if('number'==typeof t)return this._initNumber(t,i,n);if('object'==typeof t)return this._initArray(t,i,n);'hex'===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;'-'===(t=t.toString().replace(/\s+/g,''))[0]&&(h++,this.negative=1),h=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if('le'===n)for(h=0,e=0;h>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this._strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n=i;n-=2)h=s(t,i,n)<=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this._strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},'undefined'!=typeof Symbol&&'function'==typeof Symbol.for)try{h.prototype[Symbol.for('nodejs.util.inspect.custom')]=l}catch(t){h.prototype.inspect=l}else h.prototype.inspect=l;function l(){return(this.red?''}var m=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];h.prototype.toString=function(t,i){var n;if(i=0|i||1,16===(t=t||10)||'hex'===t){n='';for(var h=0,e=0,o=0;o>>24-h&16777215,(h+=2)>=26&&(h-=26,o--),n=0!==e||o!==this.length-1?m[6-u.length]+u+n:u+n}for(0!==e&&(n=e.toString(16)+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}if(t===(0|t)&&t>=2&&t<=36){var a=f[t],l=p[t];n='';var M=this.clone();for(M.negative=0;!M.isZero();){var v=M.modrn(l).toString(t);n=(M=M.idivn(l)).isZero()?v+n:m[a-v.length]+v+n}for(this.isZero()&&(n='0'+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}r(!1,'Base should be between 2 and 36')},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,'Number can only safely store up to 53 bits'),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16,2)},e&&(h.prototype.toBuffer=function(t,i){return this.toArrayLike(e,t,i)}),h.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)};var M=function(t,i){return t.allocUnsafe?t.allocUnsafe(i):new t(i)};function v(t){for(var i=new Array(t.bitLength()),r=0;r>>h&1}return i}function g(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a>>26,m=67108863&u,f=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=f;p++){var M=a-p|0;l+=(o=(h=0|t.words[M])*(e=0|i.words[p])+m)/67108864|0,m=67108863&o}r.words[a]=0|m,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r._strip()}h.prototype.toArrayLike=function(t,i,n){this._strip();var h=this.byteLength(),e=n||Math.max(1,h);r(h<=e,'byte array longer than desired length'),r(e>0,'Requested array length <= 0');var o=M(t,e);return this['_toArrayLike'+('le'===i?'LE':'BE')](o,h),o},h.prototype._toArrayLikeLE=function(t,i){for(var r=0,n=0,h=0,e=0;h>8&255),r>16&255),6===e?(r>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r=0&&(t[r--]=o>>8&255),r>=0&&(t[r--]=o>>16&255),6===e?(r>=0&&(t[r--]=o>>24&255),n=0,e=0):(n=o>>>24,e+=2)}if(r>=0)for(t[r--]=n;r>=0;)t[r--]=0},Math.clz32?h.prototype._countBits=function(t){return 32-Math.clz32(t)}:h.prototype._countBits=function(t){var i=t,r=0;return i>=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},h.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 8191&i||(r+=13,i>>>=13),127&i||(r+=7,i>>>=7),15&i||(r+=4,i>>>=4),3&i||(r+=2,i>>>=2),1&i||r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;it.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r('number'==typeof t&&t>=0);var i=0|Math.ceil(t/26),n=t%26;this._expand(i),n>0&&i--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-n),this._strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,i){r('number'==typeof t&&t>=0);var n=t/26|0,h=t%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var h=0,e=0;e>>26;for(;0!==h&&e>>26;if(this.length=r.length,0!==h)this.words[this.length]=h,this.length++;else if(r!==this)for(;et.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(r=this,n=t):(r=t,n=this);for(var e=0,o=0;o>26,this.words[o]=67108863&i;for(;0!==e&&o>26,this.words[o]=67108863&i;if(0===e&&o>>13,p=0|o[1],M=8191&p,v=p>>>13,g=0|o[2],c=8191&g,w=g>>>13,y=0|o[3],b=8191&y,_=y>>>13,k=0|o[4],A=8191&k,S=k>>>13,x=0|o[5],B=8191&x,R=x>>>13,q=0|o[6],Z=8191&q,L=q>>>13,N=0|o[7],I=8191&N,E=N>>>13,z=0|o[8],T=8191&z,O=z>>>13,j=0|o[9],K=8191&j,P=j>>>13,F=0|s[0],U=8191&F,C=F>>>13,D=0|s[1],H=8191&D,J=D>>>13,G=0|s[2],Q=8191&G,V=G>>>13,W=0|s[3],X=8191&W,Y=W>>>13,$=0|s[4],tt=8191&$,it=$>>>13,rt=0|s[5],nt=8191&rt,ht=rt>>>13,et=0|s[6],ot=8191&et,st=et>>>13,ut=0|s[7],at=8191&ut,lt=ut>>>13,mt=0|s[8],ft=8191&mt,dt=mt>>>13,pt=0|s[9],Mt=8191&pt,vt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(a+(n=Math.imul(m,U))|0)+((8191&(h=(h=Math.imul(m,C))+Math.imul(f,U)|0))<<13)|0;a=((e=Math.imul(f,C))+(h>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,U),h=(h=Math.imul(M,C))+Math.imul(v,U)|0,e=Math.imul(v,C);var ct=(a+(n=n+Math.imul(m,H)|0)|0)+((8191&(h=(h=h+Math.imul(m,J)|0)+Math.imul(f,H)|0))<<13)|0;a=((e=e+Math.imul(f,J)|0)+(h>>>13)|0)+(ct>>>26)|0,ct&=67108863,n=Math.imul(c,U),h=(h=Math.imul(c,C))+Math.imul(w,U)|0,e=Math.imul(w,C),n=n+Math.imul(M,H)|0,h=(h=h+Math.imul(M,J)|0)+Math.imul(v,H)|0,e=e+Math.imul(v,J)|0;var wt=(a+(n=n+Math.imul(m,Q)|0)|0)+((8191&(h=(h=h+Math.imul(m,V)|0)+Math.imul(f,Q)|0))<<13)|0;a=((e=e+Math.imul(f,V)|0)+(h>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(b,U),h=(h=Math.imul(b,C))+Math.imul(_,U)|0,e=Math.imul(_,C),n=n+Math.imul(c,H)|0,h=(h=h+Math.imul(c,J)|0)+Math.imul(w,H)|0,e=e+Math.imul(w,J)|0,n=n+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,V)|0)+Math.imul(v,Q)|0,e=e+Math.imul(v,V)|0;var yt=(a+(n=n+Math.imul(m,X)|0)|0)+((8191&(h=(h=h+Math.imul(m,Y)|0)+Math.imul(f,X)|0))<<13)|0;a=((e=e+Math.imul(f,Y)|0)+(h>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,U),h=(h=Math.imul(A,C))+Math.imul(S,U)|0,e=Math.imul(S,C),n=n+Math.imul(b,H)|0,h=(h=h+Math.imul(b,J)|0)+Math.imul(_,H)|0,e=e+Math.imul(_,J)|0,n=n+Math.imul(c,Q)|0,h=(h=h+Math.imul(c,V)|0)+Math.imul(w,Q)|0,e=e+Math.imul(w,V)|0,n=n+Math.imul(M,X)|0,h=(h=h+Math.imul(M,Y)|0)+Math.imul(v,X)|0,e=e+Math.imul(v,Y)|0;var bt=(a+(n=n+Math.imul(m,tt)|0)|0)+((8191&(h=(h=h+Math.imul(m,it)|0)+Math.imul(f,tt)|0))<<13)|0;a=((e=e+Math.imul(f,it)|0)+(h>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(B,U),h=(h=Math.imul(B,C))+Math.imul(R,U)|0,e=Math.imul(R,C),n=n+Math.imul(A,H)|0,h=(h=h+Math.imul(A,J)|0)+Math.imul(S,H)|0,e=e+Math.imul(S,J)|0,n=n+Math.imul(b,Q)|0,h=(h=h+Math.imul(b,V)|0)+Math.imul(_,Q)|0,e=e+Math.imul(_,V)|0,n=n+Math.imul(c,X)|0,h=(h=h+Math.imul(c,Y)|0)+Math.imul(w,X)|0,e=e+Math.imul(w,Y)|0,n=n+Math.imul(M,tt)|0,h=(h=h+Math.imul(M,it)|0)+Math.imul(v,tt)|0,e=e+Math.imul(v,it)|0;var _t=(a+(n=n+Math.imul(m,nt)|0)|0)+((8191&(h=(h=h+Math.imul(m,ht)|0)+Math.imul(f,nt)|0))<<13)|0;a=((e=e+Math.imul(f,ht)|0)+(h>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(Z,U),h=(h=Math.imul(Z,C))+Math.imul(L,U)|0,e=Math.imul(L,C),n=n+Math.imul(B,H)|0,h=(h=h+Math.imul(B,J)|0)+Math.imul(R,H)|0,e=e+Math.imul(R,J)|0,n=n+Math.imul(A,Q)|0,h=(h=h+Math.imul(A,V)|0)+Math.imul(S,Q)|0,e=e+Math.imul(S,V)|0,n=n+Math.imul(b,X)|0,h=(h=h+Math.imul(b,Y)|0)+Math.imul(_,X)|0,e=e+Math.imul(_,Y)|0,n=n+Math.imul(c,tt)|0,h=(h=h+Math.imul(c,it)|0)+Math.imul(w,tt)|0,e=e+Math.imul(w,it)|0,n=n+Math.imul(M,nt)|0,h=(h=h+Math.imul(M,ht)|0)+Math.imul(v,nt)|0,e=e+Math.imul(v,ht)|0;var kt=(a+(n=n+Math.imul(m,ot)|0)|0)+((8191&(h=(h=h+Math.imul(m,st)|0)+Math.imul(f,ot)|0))<<13)|0;a=((e=e+Math.imul(f,st)|0)+(h>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(I,U),h=(h=Math.imul(I,C))+Math.imul(E,U)|0,e=Math.imul(E,C),n=n+Math.imul(Z,H)|0,h=(h=h+Math.imul(Z,J)|0)+Math.imul(L,H)|0,e=e+Math.imul(L,J)|0,n=n+Math.imul(B,Q)|0,h=(h=h+Math.imul(B,V)|0)+Math.imul(R,Q)|0,e=e+Math.imul(R,V)|0,n=n+Math.imul(A,X)|0,h=(h=h+Math.imul(A,Y)|0)+Math.imul(S,X)|0,e=e+Math.imul(S,Y)|0,n=n+Math.imul(b,tt)|0,h=(h=h+Math.imul(b,it)|0)+Math.imul(_,tt)|0,e=e+Math.imul(_,it)|0,n=n+Math.imul(c,nt)|0,h=(h=h+Math.imul(c,ht)|0)+Math.imul(w,nt)|0,e=e+Math.imul(w,ht)|0,n=n+Math.imul(M,ot)|0,h=(h=h+Math.imul(M,st)|0)+Math.imul(v,ot)|0,e=e+Math.imul(v,st)|0;var At=(a+(n=n+Math.imul(m,at)|0)|0)+((8191&(h=(h=h+Math.imul(m,lt)|0)+Math.imul(f,at)|0))<<13)|0;a=((e=e+Math.imul(f,lt)|0)+(h>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(T,U),h=(h=Math.imul(T,C))+Math.imul(O,U)|0,e=Math.imul(O,C),n=n+Math.imul(I,H)|0,h=(h=h+Math.imul(I,J)|0)+Math.imul(E,H)|0,e=e+Math.imul(E,J)|0,n=n+Math.imul(Z,Q)|0,h=(h=h+Math.imul(Z,V)|0)+Math.imul(L,Q)|0,e=e+Math.imul(L,V)|0,n=n+Math.imul(B,X)|0,h=(h=h+Math.imul(B,Y)|0)+Math.imul(R,X)|0,e=e+Math.imul(R,Y)|0,n=n+Math.imul(A,tt)|0,h=(h=h+Math.imul(A,it)|0)+Math.imul(S,tt)|0,e=e+Math.imul(S,it)|0,n=n+Math.imul(b,nt)|0,h=(h=h+Math.imul(b,ht)|0)+Math.imul(_,nt)|0,e=e+Math.imul(_,ht)|0,n=n+Math.imul(c,ot)|0,h=(h=h+Math.imul(c,st)|0)+Math.imul(w,ot)|0,e=e+Math.imul(w,st)|0,n=n+Math.imul(M,at)|0,h=(h=h+Math.imul(M,lt)|0)+Math.imul(v,at)|0,e=e+Math.imul(v,lt)|0;var St=(a+(n=n+Math.imul(m,ft)|0)|0)+((8191&(h=(h=h+Math.imul(m,dt)|0)+Math.imul(f,ft)|0))<<13)|0;a=((e=e+Math.imul(f,dt)|0)+(h>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(K,U),h=(h=Math.imul(K,C))+Math.imul(P,U)|0,e=Math.imul(P,C),n=n+Math.imul(T,H)|0,h=(h=h+Math.imul(T,J)|0)+Math.imul(O,H)|0,e=e+Math.imul(O,J)|0,n=n+Math.imul(I,Q)|0,h=(h=h+Math.imul(I,V)|0)+Math.imul(E,Q)|0,e=e+Math.imul(E,V)|0,n=n+Math.imul(Z,X)|0,h=(h=h+Math.imul(Z,Y)|0)+Math.imul(L,X)|0,e=e+Math.imul(L,Y)|0,n=n+Math.imul(B,tt)|0,h=(h=h+Math.imul(B,it)|0)+Math.imul(R,tt)|0,e=e+Math.imul(R,it)|0,n=n+Math.imul(A,nt)|0,h=(h=h+Math.imul(A,ht)|0)+Math.imul(S,nt)|0,e=e+Math.imul(S,ht)|0,n=n+Math.imul(b,ot)|0,h=(h=h+Math.imul(b,st)|0)+Math.imul(_,ot)|0,e=e+Math.imul(_,st)|0,n=n+Math.imul(c,at)|0,h=(h=h+Math.imul(c,lt)|0)+Math.imul(w,at)|0,e=e+Math.imul(w,lt)|0,n=n+Math.imul(M,ft)|0,h=(h=h+Math.imul(M,dt)|0)+Math.imul(v,ft)|0,e=e+Math.imul(v,dt)|0;var xt=(a+(n=n+Math.imul(m,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(m,vt)|0)+Math.imul(f,Mt)|0))<<13)|0;a=((e=e+Math.imul(f,vt)|0)+(h>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(K,H),h=(h=Math.imul(K,J))+Math.imul(P,H)|0,e=Math.imul(P,J),n=n+Math.imul(T,Q)|0,h=(h=h+Math.imul(T,V)|0)+Math.imul(O,Q)|0,e=e+Math.imul(O,V)|0,n=n+Math.imul(I,X)|0,h=(h=h+Math.imul(I,Y)|0)+Math.imul(E,X)|0,e=e+Math.imul(E,Y)|0,n=n+Math.imul(Z,tt)|0,h=(h=h+Math.imul(Z,it)|0)+Math.imul(L,tt)|0,e=e+Math.imul(L,it)|0,n=n+Math.imul(B,nt)|0,h=(h=h+Math.imul(B,ht)|0)+Math.imul(R,nt)|0,e=e+Math.imul(R,ht)|0,n=n+Math.imul(A,ot)|0,h=(h=h+Math.imul(A,st)|0)+Math.imul(S,ot)|0,e=e+Math.imul(S,st)|0,n=n+Math.imul(b,at)|0,h=(h=h+Math.imul(b,lt)|0)+Math.imul(_,at)|0,e=e+Math.imul(_,lt)|0,n=n+Math.imul(c,ft)|0,h=(h=h+Math.imul(c,dt)|0)+Math.imul(w,ft)|0,e=e+Math.imul(w,dt)|0;var Bt=(a+(n=n+Math.imul(M,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(M,vt)|0)+Math.imul(v,Mt)|0))<<13)|0;a=((e=e+Math.imul(v,vt)|0)+(h>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(K,Q),h=(h=Math.imul(K,V))+Math.imul(P,Q)|0,e=Math.imul(P,V),n=n+Math.imul(T,X)|0,h=(h=h+Math.imul(T,Y)|0)+Math.imul(O,X)|0,e=e+Math.imul(O,Y)|0,n=n+Math.imul(I,tt)|0,h=(h=h+Math.imul(I,it)|0)+Math.imul(E,tt)|0,e=e+Math.imul(E,it)|0,n=n+Math.imul(Z,nt)|0,h=(h=h+Math.imul(Z,ht)|0)+Math.imul(L,nt)|0,e=e+Math.imul(L,ht)|0,n=n+Math.imul(B,ot)|0,h=(h=h+Math.imul(B,st)|0)+Math.imul(R,ot)|0,e=e+Math.imul(R,st)|0,n=n+Math.imul(A,at)|0,h=(h=h+Math.imul(A,lt)|0)+Math.imul(S,at)|0,e=e+Math.imul(S,lt)|0,n=n+Math.imul(b,ft)|0,h=(h=h+Math.imul(b,dt)|0)+Math.imul(_,ft)|0,e=e+Math.imul(_,dt)|0;var Rt=(a+(n=n+Math.imul(c,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(c,vt)|0)+Math.imul(w,Mt)|0))<<13)|0;a=((e=e+Math.imul(w,vt)|0)+(h>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(K,X),h=(h=Math.imul(K,Y))+Math.imul(P,X)|0,e=Math.imul(P,Y),n=n+Math.imul(T,tt)|0,h=(h=h+Math.imul(T,it)|0)+Math.imul(O,tt)|0,e=e+Math.imul(O,it)|0,n=n+Math.imul(I,nt)|0,h=(h=h+Math.imul(I,ht)|0)+Math.imul(E,nt)|0,e=e+Math.imul(E,ht)|0,n=n+Math.imul(Z,ot)|0,h=(h=h+Math.imul(Z,st)|0)+Math.imul(L,ot)|0,e=e+Math.imul(L,st)|0,n=n+Math.imul(B,at)|0,h=(h=h+Math.imul(B,lt)|0)+Math.imul(R,at)|0,e=e+Math.imul(R,lt)|0,n=n+Math.imul(A,ft)|0,h=(h=h+Math.imul(A,dt)|0)+Math.imul(S,ft)|0,e=e+Math.imul(S,dt)|0;var qt=(a+(n=n+Math.imul(b,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(b,vt)|0)+Math.imul(_,Mt)|0))<<13)|0;a=((e=e+Math.imul(_,vt)|0)+(h>>>13)|0)+(qt>>>26)|0,qt&=67108863,n=Math.imul(K,tt),h=(h=Math.imul(K,it))+Math.imul(P,tt)|0,e=Math.imul(P,it),n=n+Math.imul(T,nt)|0,h=(h=h+Math.imul(T,ht)|0)+Math.imul(O,nt)|0,e=e+Math.imul(O,ht)|0,n=n+Math.imul(I,ot)|0,h=(h=h+Math.imul(I,st)|0)+Math.imul(E,ot)|0,e=e+Math.imul(E,st)|0,n=n+Math.imul(Z,at)|0,h=(h=h+Math.imul(Z,lt)|0)+Math.imul(L,at)|0,e=e+Math.imul(L,lt)|0,n=n+Math.imul(B,ft)|0,h=(h=h+Math.imul(B,dt)|0)+Math.imul(R,ft)|0,e=e+Math.imul(R,dt)|0;var Zt=(a+(n=n+Math.imul(A,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(A,vt)|0)+Math.imul(S,Mt)|0))<<13)|0;a=((e=e+Math.imul(S,vt)|0)+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(K,nt),h=(h=Math.imul(K,ht))+Math.imul(P,nt)|0,e=Math.imul(P,ht),n=n+Math.imul(T,ot)|0,h=(h=h+Math.imul(T,st)|0)+Math.imul(O,ot)|0,e=e+Math.imul(O,st)|0,n=n+Math.imul(I,at)|0,h=(h=h+Math.imul(I,lt)|0)+Math.imul(E,at)|0,e=e+Math.imul(E,lt)|0,n=n+Math.imul(Z,ft)|0,h=(h=h+Math.imul(Z,dt)|0)+Math.imul(L,ft)|0,e=e+Math.imul(L,dt)|0;var Lt=(a+(n=n+Math.imul(B,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(B,vt)|0)+Math.imul(R,Mt)|0))<<13)|0;a=((e=e+Math.imul(R,vt)|0)+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(K,ot),h=(h=Math.imul(K,st))+Math.imul(P,ot)|0,e=Math.imul(P,st),n=n+Math.imul(T,at)|0,h=(h=h+Math.imul(T,lt)|0)+Math.imul(O,at)|0,e=e+Math.imul(O,lt)|0,n=n+Math.imul(I,ft)|0,h=(h=h+Math.imul(I,dt)|0)+Math.imul(E,ft)|0,e=e+Math.imul(E,dt)|0;var Nt=(a+(n=n+Math.imul(Z,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(Z,vt)|0)+Math.imul(L,Mt)|0))<<13)|0;a=((e=e+Math.imul(L,vt)|0)+(h>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(K,at),h=(h=Math.imul(K,lt))+Math.imul(P,at)|0,e=Math.imul(P,lt),n=n+Math.imul(T,ft)|0,h=(h=h+Math.imul(T,dt)|0)+Math.imul(O,ft)|0,e=e+Math.imul(O,dt)|0;var It=(a+(n=n+Math.imul(I,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(I,vt)|0)+Math.imul(E,Mt)|0))<<13)|0;a=((e=e+Math.imul(E,vt)|0)+(h>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(K,ft),h=(h=Math.imul(K,dt))+Math.imul(P,ft)|0,e=Math.imul(P,dt);var Et=(a+(n=n+Math.imul(T,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(T,vt)|0)+Math.imul(O,Mt)|0))<<13)|0;a=((e=e+Math.imul(O,vt)|0)+(h>>>13)|0)+(Et>>>26)|0,Et&=67108863;var zt=(a+(n=Math.imul(K,Mt))|0)+((8191&(h=(h=Math.imul(K,vt))+Math.imul(P,Mt)|0))<<13)|0;return a=((e=Math.imul(P,vt))+(h>>>13)|0)+(zt>>>26)|0,zt&=67108863,u[0]=gt,u[1]=ct,u[2]=wt,u[3]=yt,u[4]=bt,u[5]=_t,u[6]=kt,u[7]=At,u[8]=St,u[9]=xt,u[10]=Bt,u[11]=Rt,u[12]=qt,u[13]=Zt,u[14]=Lt,u[15]=Nt,u[16]=It,u[17]=Et,u[18]=zt,0!==a&&(u[19]=a,r.length++),r};function w(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var n=0,h=0,e=0;e>>26)|0)>>>26,o&=67108863}r.words[e]=s,n=o,o=h}return 0!==n?r.words[e]=n:r.length--,r._strip()}function y(t,i,r){return w(t,i,r)}function b(t,i){this.x=t,this.y=i}Math.imul||(c=g),h.prototype.mulTo=function(t,i){var r=this.length+t.length;return 10===this.length&&10===t.length?c(this,t,i):r<63?g(this,t,i):r<1024?w(this,t,i):y(this,t,i)},b.prototype.makeRBT=function(t){for(var i=new Array(t),r=h.prototype._countBits(t)-1,n=0;n>=1;return n},b.prototype.permute=function(t,i,r,n,h,e){for(var o=0;o>>=1)h++;return 1<>>=13,n[2*o+1]=8191&e,e>>>=13;for(o=2*i;o>=26,n+=e/67108864|0,n+=o>>>26,this.words[h]=67108863&o}return 0!==n&&(this.words[h]=n,this.length++),this.length=0===t?1:this.length,i?this.ineg():this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var i=v(t);if(0===i.length)return new h(1);for(var r=this,n=0;n=0);var i,n=t%26,h=(t-n)/26,e=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(i=0;i>>26-n}o&&(this.words[i]=o,this.length++)}if(0!==h){for(i=this.length-1;i>=0;i--)this.words[i+h]=this.words[i];for(i=0;i=0),h=i?(i-i%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<o)for(this.length-=o,a=0;a=0&&(0!==l||a>=h);a--){var m=0|this.words[a];this.words[a]=l<<26-e|m>>>e,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},h.prototype.ishrn=function(t,i,n){return r(0===this.negative),this.iushrn(t,i,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r('number'==typeof t&&t>=0);var i=t%26,n=(t-i)/26,h=1<=0);var i=t%26,n=(t-i)/26;if(r(0===this.negative,'imaskn works only with positive numbers'),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var h=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r('number'==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[h+n]=67108863&e}for(;h>26,this.words[h+n]=67108863&e;if(0===s)return this._strip();for(r(-1===s),s=0,h=0;h>26,this.words[h]=67108863&e;return this.negative=1,this._strip()},h.prototype._wordDiv=function(t,i){var r=(this.length,t.length),n=this.clone(),e=t,o=0|e.words[e.length-1];0!==(r=26-this._countBits(o))&&(e=e.ushln(r),n.iushln(r),o=0|e.words[e.length-1]);var s,u=n.length-e.length;if('mod'!==i){(s=new h(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a=0;m--){var f=67108864*(0|n.words[e.length+m])+(0|n.words[e.length+m-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(e,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(e,1,m),n.isZero()||(n.negative^=1);s&&(s.words[m]=f)}return s&&s._strip(),n._strip(),'div'!==i&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},h.prototype.divmod=function(t,i,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,i),'mod'!==i&&(e=s.div.neg()),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:e,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),i),'mod'!==i&&(e=s.div.neg()),{div:e,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),i),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?'div'===i?{div:this.divn(t.words[0]),mod:null}:'mod'===i?{div:null,mod:new h(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modrn(t.words[0]))}:this._wordDiv(t,i);var e,o,s},h.prototype.div=function(t){return this.divmod(t,'div',!1).div},h.prototype.mod=function(t){return this.divmod(t,'mod',!1).mod},h.prototype.umod=function(t){return this.divmod(t,'mod',!0).mod},h.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,n=t.ushrn(1),h=t.andln(1),e=r.cmp(n);return e<0||1===h&&0===e?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},h.prototype.modrn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=67108864%t,h=0,e=this.length-1;e>=0;e--)h=(n*h+(0|this.words[e]))%t;return i?-h:h},h.prototype.modn=function(t){return this.modrn(t)},h.prototype.idivn=function(t){var i=t<0;i&&(t=-t),r(t<=67108863);for(var n=0,h=this.length-1;h>=0;h--){var e=(0|this.words[h])+67108864*n;this.words[h]=e/t|0,n=e%t}return this._strip(),i?this.ineg():this},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e=new h(1),o=new h(0),s=new h(0),u=new h(1),a=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++a;for(var l=n.clone(),m=i.clone();!i.isZero();){for(var f=0,p=1;0===(i.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(l),o.isub(m)),e.iushrn(1),o.iushrn(1);for(var M=0,v=1;0===(n.words[0]&v)&&M<26;++M,v<<=1);if(M>0)for(n.iushrn(M);M-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);i.cmp(n)>=0?(i.isub(n),e.isub(s),o.isub(u)):(n.isub(i),s.isub(e),u.isub(o))}return{a:s,b:u,gcd:n.iushln(a)}},h.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e,o=new h(1),s=new h(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;0===(i.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return(e=0===i.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var n=0;i.isEven()&&r.isEven();n++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var h=i.cmp(r);if(h<0){var e=i;i=r,r=e}else if(0===h||0===r.cmpn(1))break;i.isub(r)}return r.iushln(n)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return!(1&this.words[0])},h.prototype.isOdd=function(){return!(1&~this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r('number'==typeof t);var i=t%26,n=(t-i)/26,h=1<>>26,s&=67108863,this.words[o]=s}return 0!==e&&(this.words[o]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var i,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)i=1;else{n&&(t=-t),r(t<=67108863,'Number is too big');var h=0|this.words[0];i=h===t?0:ht.length)return 1;if(this.length=0;r--){var n=0|this.words[r],h=0|t.words[r];if(n!==h){nh&&(i=1);break}}return i},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new R(t)},h.prototype.toRed=function(t){return r(!this.red,'Already a number in reduction context'),r(0===this.negative,'red works only with positives'),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,'fromRed works only with numbers in reduction context'),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,'Already a number in reduction context'),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,'redAdd works only with red numbers'),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,'redIAdd works only with red numbers'),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,'redSub works only with red numbers'),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,'redISub works only with red numbers'),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,'redShl works only with red numbers'),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,'redSqr works only with red numbers'),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,'redISqr works only with red numbers'),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,'redSqrt works only with red numbers'),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,'redInvm works only with red numbers'),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,'redNeg works only with red numbers'),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,'redPow(normalNum)'),this.red._verify1(this),this.red.pow(this,t)};var _={k256:null,p224:null,p192:null,p25519:null};function k(t,i){this.name=t,this.p=new h(i,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){k.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}function S(){k.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}function x(){k.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}function B(){k.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}function R(t){if('string'==typeof t){var i=h._prime(t);this.m=i.p,this.prime=i}else r(t.gtn(1),'modulus must be greater than 1'),this.m=t,this.prime=null}function q(t){R.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}k.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},k.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var n=i0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},k.prototype.split=function(t,i){t.iushrn(this.n,0,i)},k.prototype.imulK=function(t){return t.imul(this.k)},n(A,k),A.prototype.split=function(t,i){for(var r=4194303,n=Math.min(t.length,9),h=0;h>>22,e=o}e>>>=22,t.words[h-10]=e,0===e&&t.length>10?t.length-=10:t.length-=9},A.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r>>=26,t.words[r]=h,i=n}return 0!==i&&(t.words[t.length++]=i),t},h._prime=function(t){if(_[t])return _[t];var i;if('k256'===t)i=new A;else if('p224'===t)i=new S;else if('p192'===t)i=new x;else{if('p25519'!==t)throw new Error('Unknown prime '+t);i=new B}return _[t]=i,i},R.prototype._verify1=function(t){r(0===t.negative,'red works only with positives'),r(t.red,'red works only with red numbers')},R.prototype._verify2=function(t,i){r(0===(t.negative|i.negative),'red works only with positives'),r(t.red&&t.red===i.red,'red works only with red numbers')},R.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(a(t,t.umod(this.m)._forceRed(this)),t)},R.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},R.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},R.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},R.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},R.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},R.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},R.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},R.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},R.prototype.isqr=function(t){return this.imul(t,t.clone())},R.prototype.sqr=function(t){return this.mul(t,t)},R.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(r(i%2==1),3===i){var n=this.m.add(new h(1)).iushrn(2);return this.pow(t,n)}for(var e=this.m.subn(1),o=0;!e.isZero()&&0===e.andln(1);)o++,e.iushrn(1);r(!e.isZero());var s=new h(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,e),f=this.pow(t,e.addn(1).iushrn(1)),p=this.pow(t,e),M=o;0!==p.cmp(s);){for(var v=p,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;n--){for(var a=i.words[n],l=u-1;l>=0;l--){var m=a>>l&1;e!==r[0]&&(e=this.sqr(e)),0!==m||0!==o?(o<<=1,o|=m,(4===++s||0===n&&0===l)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}u=26}return e},R.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},R.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},h.mont=function(t){return new q(t)},n(q,R),q.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},q.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},q.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=r.isub(n).iushrn(this.shift),e=h;return h.cmp(this.m)>=0?e=h.isub(this.m):h.cmpn(0)<0&&(e=h.iadd(this.m)),e._forceRed(this)},q.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new h(0)._forceRed(this);var r=t.mul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(n).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},q.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(void 0===_m||_m,this)},1901,[1902]); +__d(function(g,r,i,a,m,e,d){},1902,[]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="bignumber/5.8.0"},1903,[]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.joinSignature=e.splitSignature=e.hexZeroPad=e.hexStripZeros=e.hexValue=e.hexConcat=e.hexDataSlice=e.hexDataLength=e.hexlify=e.isHexString=e.zeroPad=e.stripZeros=e.concat=e.arrayify=e.isBytes=e.isBytesLike=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version);function n(t){return!!t.toHexString}function i(t){return t.slice||(t.slice=function(){var n=Array.prototype.slice.call(arguments);return i(new Uint8Array(Array.prototype.slice.apply(t,n)))}),t}function u(t){return f(t)&&!(t.length%2)||o(t)}function s(t){return"number"==typeof t&&t==t&&t%1==0}function o(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!s(t.length)||t.length<0)return!1;for(var n=0;n=256)return!1}return!0}function v(u,s){if(s||(s={}),"number"==typeof u){t.checkSafeUint53(u,"invalid arrayify value");for(var v=[];u;)v.unshift(255&u),u=parseInt(String(u/256));return 0===v.length&&v.push(0),i(new Uint8Array(v))}if(s.allowMissingPrefix&&"string"==typeof u&&"0x"!==u.substring(0,2)&&(u="0x"+u),n(u)&&(u=u.toHexString()),f(u)){var l=u.substring(2);l.length%2&&("left"===s.hexPad?l="0"+l:"right"===s.hexPad?l+="0":t.throwArgumentError("hex data is odd-length","value",u));v=[];for(var h=0;hu&&t.throwArgumentError("value out of range","value",arguments[0]);var s=new Uint8Array(u);return s.set(n,u-n.length),i(s)}function f(t,n){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!n||t.length===2+2*n)}e.isBytesLike=u,e.isBytes=o,e.arrayify=v,e.concat=l,e.stripZeros=function(t){var n=v(t);if(0===n.length)return n;for(var i=0;i>4]+c[15&h]}return v}return t.throwArgumentError("invalid hexlify value","value",i)}function x(n){"string"!=typeof n&&(n=y(n)),f(n)||t.throwArgumentError("invalid hex string","value",n),n=n.substring(2);for(var i=0;i2*i+2&&t.throwArgumentError("value out of range","value",arguments[1]);n.length<2*i+2;)n="0x0"+n.substring(2);return n}function P(n){var i={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(u(n)){var s=v(n);64===s.length?(i.v=27+(s[32]>>7),s[32]&=127,i.r=y(s.slice(0,32)),i.s=y(s.slice(32,64))):65===s.length?(i.r=y(s.slice(0,32)),i.s=y(s.slice(32,64)),i.v=s[64]):t.throwArgumentError("invalid signature string","signature",n),i.v<27&&(0===i.v||1===i.v?i.v+=27:t.throwArgumentError("signature invalid v byte","signature",n)),i.recoveryParam=1-i.v%2,i.recoveryParam&&(s[32]|=128),i._vs=y(s.slice(32,64))}else{if(i.r=n.r,i.s=n.s,i.v=n.v,i.recoveryParam=n.recoveryParam,i._vs=n._vs,null!=i._vs){var o=h(v(i._vs),32);i._vs=y(o);var l=o[0]>=128?1:0;null==i.recoveryParam?i.recoveryParam=l:i.recoveryParam!==l&&t.throwArgumentError("signature recoveryParam mismatch _vs","signature",n),o[0]&=127;var c=y(o);null==i.s?i.s=c:i.s!==c&&t.throwArgumentError("signature v mismatch _vs","signature",n)}if(null==i.recoveryParam)null==i.v?t.throwArgumentError("signature missing v and recoveryParam","signature",n):0===i.v||1===i.v?i.recoveryParam=i.v:i.recoveryParam=1-i.v%2;else if(null==i.v)i.v=27+i.recoveryParam;else{var x=0===i.v||1===i.v?i.v:1-i.v%2;i.recoveryParam!==x&&t.throwArgumentError("signature recoveryParam mismatch v","signature",n)}null!=i.r&&f(i.r)?i.r=A(i.r,32):t.throwArgumentError("signature missing or invalid r","signature",n),null!=i.s&&f(i.s)?i.s=A(i.s,32):t.throwArgumentError("signature missing or invalid s","signature",n);var P=v(i.s);P[0]>=128&&t.throwArgumentError("signature s out of range","signature",n),i.recoveryParam&&(P[0]|=128);var p=y(P);i._vs&&(f(i._vs)||t.throwArgumentError("signature invalid _vs","signature",n),i._vs=A(i._vs,32)),null==i._vs?i._vs=p:i._vs!==p&&t.throwArgumentError("signature _vs mismatch v and s","signature",n)}return i.yParityAndS=i._vs,i.compact=i.r+i.yParityAndS.substring(2),i}e.hexlify=y,e.hexDataLength=function(t){if("string"!=typeof t)t=y(t);else if(!f(t)||t.length%2)return null;return(t.length-2)/2},e.hexDataSlice=function(n,i,u){return"string"!=typeof n?n=y(n):(!f(n)||n.length%2)&&t.throwArgumentError("invalid hexData","value",n),i=2+2*i,null!=u?"0x"+n.substring(i,2+2*u):"0x"+n.substring(i)},e.hexConcat=function(t){var n="0x";return t.forEach(function(t){n+=y(t).substring(2)}),n},e.hexValue=function(t){var n=x(y(t,{hexPad:"left"}));return"0x"===n?"0x0":n},e.hexStripZeros=x,e.hexZeroPad=A,e.splitSignature=P,e.joinSignature=function(t){return y(l([(t=P(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}},1904,[1896,1905]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="bytes/5.8.0"},1905,[]); +__d(function(g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,"__esModule",{value:!0}),_e.FixedNumber=_e.FixedFormat=_e.parseFixed=_e.formatFixed=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version),e={},o=r(d[2]).BigNumber.from(0),n=r(d[2]).BigNumber.from(-1);function a(e,o,n,a){var u={fault:o,operation:n};return void 0!==a&&(u.value=a),t.throwError(e,r(d[0]).Logger.errors.NUMERIC_FAULT,u)}for(var u="0";u.length<256;)u+=u;function s(e){if("number"!=typeof e)try{e=r(d[2]).BigNumber.from(e).toNumber()}catch(t){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+u.substring(0,e):t.throwArgumentError("invalid decimal size","decimals",e)}function f(t,e){null==e&&(e=0);var a=s(e),u=(t=r(d[2]).BigNumber.from(t)).lt(o);u&&(t=t.mul(n));for(var f=t.mod(a).toString();f.length2&&t.throwArgumentError("too many decimal points","value",e);var h=l[0],c=l[1];for(h||(h="0"),c||(c="0");"0"===c[c.length-1];)c=c.substring(0,c.length-1);for(c.length>u.length-1&&a("fractional component exceeds decimals","underflow","parseFixed"),""===c&&(c="0");c.length80&&t.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",s),new o(e,a,u,s)},o})();_e.FixedFormat=h;var c=(function(){function n(o,n,a,u){o!==e&&t.throwError("cannot use FixedNumber constructor; use FixedNumber.from",r(d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=u,this._hex=n,this._value=a,this._isFixedNumber=!0,Object.freeze(this)}return n.prototype._checkFormat=function(e){this.format.name!==e.format.name&&t.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},n.prototype.addUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.add(o),this.format.decimals,this.format)},n.prototype.subUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.sub(o),this.format.decimals,this.format)},n.prototype.mulUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.mul(o).div(this.format._multiplier),this.format.decimals,this.format)},n.prototype.divUnsafe=function(t){this._checkFormat(t);var e=l(this._value,this.format.decimals),o=l(t._value,t.format.decimals);return n.fromValue(e.mul(this.format._multiplier).div(o),this.format.decimals,this.format)},n.prototype.floor=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var e=n.from(t[0],this.format),o=!t[1].match(/^(0*)$/);return this.isNegative()&&o&&(e=e.subUnsafe(v.toFormat(e.format))),e},n.prototype.ceiling=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var e=n.from(t[0],this.format),o=!t[1].match(/^(0*)$/);return!this.isNegative()&&o&&(e=e.addUnsafe(v.toFormat(e.format))),e},n.prototype.round=function(e){null==e&&(e=0);var o=this.toString().split(".");if(1===o.length&&o.push("0"),(e<0||e>80||e%1)&&t.throwArgumentError("invalid decimal count","decimals",e),o[1].length<=e)return this;var a=n.from("1"+u.substring(0,e),this.format),s=p.toFormat(this.format);return this.mulUnsafe(a).addUnsafe(s).floor().divUnsafe(a)},n.prototype.isZero=function(){return"0.0"===this._value||"0"===this._value},n.prototype.isNegative=function(){return"-"===this._value[0]},n.prototype.toString=function(){return this._value},n.prototype.toHexString=function(e){if(null==e)return this._hex;e%8&&t.throwArgumentError("invalid byte width","width",e);var o=r(d[2]).BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,r(d[3]).hexZeroPad)(o,e/8)},n.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},n.prototype.toFormat=function(t){return n.fromString(this._value,t)},n.fromValue=function(t,e,o){return null!=o||null==e||(0,r(d[2]).isBigNumberish)(e)||(o=e,e=null),null==e&&(e=0),null==o&&(o="fixed"),n.fromString(f(t,e),h.from(o))},n.fromString=function(t,u){null==u&&(u="fixed");var s=h.from(u),c=l(t,s.decimals);!s.signed&&c.lt(o)&&a("unsigned value cannot be negative","overflow","value",t);var v=null;s.signed?v=c.toTwos(s.width).toHexString():(v=c.toHexString(),v=(0,r(d[3]).hexZeroPad)(v,s.width/8));var p=f(c,s.decimals);return new n(e,v,p,s)},n.fromBytes=function(t,o){null==o&&(o="fixed");var a=h.from(o);if((0,r(d[3]).arrayify)(t).length>a.width/8)throw new Error("overflow");var u=r(d[2]).BigNumber.from(t);a.signed&&(u=u.fromTwos(a.width));var s=u.toTwos((a.signed?0:1)+a.width).toHexString(),l=f(u,a.decimals);return new n(e,s,l,a)},n.from=function(e,o){if("string"==typeof e)return n.fromString(e,o);if((0,r(d[3]).isBytes)(e))return n.fromBytes(e,o);try{return n.fromValue(e,0,o)}catch(t){if(t.code!==r(d[0]).Logger.errors.INVALID_ARGUMENT)throw t}return t.throwArgumentError("invalid FixedNumber value","value",e)},n.isFixedNumber=function(t){return!(!t||!t._isFixedNumber)},n})();_e.FixedNumber=c;var v=c.from(1),p=c.from("0.5")},1906,[1896,1903,1900,1904]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TransactionDescription=e.LogDescription=e.checkResultErrors=e.Indexed=e.Interface=e.defaultAbiCoder=e.AbiCoder=e.FormatTypes=e.ParamType=e.FunctionFragment=e.Fragment=e.EventFragment=e.ErrorFragment=e.ConstructorFragment=void 0,Object.defineProperty(e,"ConstructorFragment",{enumerable:!0,get:function(){return r(d[0]).ConstructorFragment}}),Object.defineProperty(e,"ErrorFragment",{enumerable:!0,get:function(){return r(d[0]).ErrorFragment}}),Object.defineProperty(e,"EventFragment",{enumerable:!0,get:function(){return r(d[0]).EventFragment}}),Object.defineProperty(e,"FormatTypes",{enumerable:!0,get:function(){return r(d[0]).FormatTypes}}),Object.defineProperty(e,"Fragment",{enumerable:!0,get:function(){return r(d[0]).Fragment}}),Object.defineProperty(e,"FunctionFragment",{enumerable:!0,get:function(){return r(d[0]).FunctionFragment}}),Object.defineProperty(e,"ParamType",{enumerable:!0,get:function(){return r(d[0]).ParamType}}),Object.defineProperty(e,"AbiCoder",{enumerable:!0,get:function(){return r(d[1]).AbiCoder}}),Object.defineProperty(e,"defaultAbiCoder",{enumerable:!0,get:function(){return r(d[1]).defaultAbiCoder}}),Object.defineProperty(e,"checkResultErrors",{enumerable:!0,get:function(){return r(d[2]).checkResultErrors}}),Object.defineProperty(e,"Indexed",{enumerable:!0,get:function(){return r(d[2]).Indexed}}),Object.defineProperty(e,"Interface",{enumerable:!0,get:function(){return r(d[2]).Interface}}),Object.defineProperty(e,"LogDescription",{enumerable:!0,get:function(){return r(d[2]).LogDescription}}),Object.defineProperty(e,"TransactionDescription",{enumerable:!0,get:function(){return r(d[2]).TransactionDescription}})},1907,[1908,1912,1940]); +__d(function(g,r,_i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function i(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(i.prototype=o.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.ErrorFragment=e.FunctionFragment=e.ConstructorFragment=e.EventFragment=e.Fragment=e.ParamType=e.FormatTypes=void 0;var o=new(r(_d[0]).Logger)(r(_d[1]).version),i={},s={calldata:!0,memory:!0,storage:!0},u={calldata:!0,memory:!0};function p(t,n){if("bytes"===t||"string"===t){if(s[n])return!0}else if("address"===t){if("payable"===n)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&u[n])return!0;return(s[n]||"payable"===n)&&o.throwArgumentError("invalid modifier","name",n),!1}function l(t,n){var i=t;function s(n){o.throwArgumentError("unexpected character at position "+n,"param",t)}function u(t){var o={type:"",name:"",parent:t,state:{allowType:!0}};return n&&(o.indexed=!1),o}t=t.replace(/\s/g," ");for(var l={type:"",name:"",state:{allowType:!0}},c=l,y=0;y2&&o.throwArgumentError("invalid human-readable ABI signature","value",t),i[1].match(/^[0-9]+$/)||o.throwArgumentError("invalid human-readable ABI signature gas","value",t),n.gas=r(_d[3]).BigNumber.from(i[1]),i[0]):t}function w(t,n){n.constant=!1,n.payable=!1,n.stateMutability="nonpayable",t.split(" ").forEach(function(t){switch(t.trim()){case"constant":n.constant=!0;break;case"payable":n.payable=!0,n.stateMutability="payable";break;case"nonpayable":n.payable=!1,n.stateMutability="nonpayable";break;case"pure":n.constant=!0,n.stateMutability="pure";break;case"view":n.constant=!0,n.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}})}function F(t){var n={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(n.stateMutability=t.stateMutability,n.constant="view"===n.stateMutability||"pure"===n.stateMutability,null!=t.constant&&!!t.constant!==n.constant&&o.throwArgumentError("cannot have constant function with mutability "+n.stateMutability,"value",t),n.payable="payable"===n.stateMutability,null!=t.payable&&!!t.payable!==n.payable&&o.throwArgumentError("cannot have payable function with mutability "+n.stateMutability,"value",t)):null!=t.payable?(n.payable=!!t.payable,null!=t.constant||n.payable||"constructor"===t.type||o.throwArgumentError("unable to determine stateMutability","value",t),n.constant=!!t.constant,n.constant?n.stateMutability="view":n.stateMutability=n.payable?"payable":"nonpayable",n.payable&&n.constant&&o.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(n.constant=!!t.constant,n.payable=!n.constant,n.stateMutability=n.constant?"view":"payable"):"constructor"!==t.type&&o.throwArgumentError("unable to determine stateMutability","value",t),n}e.EventFragment=v;var O=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))})});t===e.FormatTypes.sighash&&o.throwError("cannot format a constructor for sighash",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var n="constructor("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "),n.trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isConstructorFragment(t))return t;"constructor"!==t.type&&o.throwArgumentError("invalid constructor object","value",t);var n=F(t);n.constant&&o.throwArgumentError("constructor cannot be constant","value",t);var u={name:null,type:t.type,inputs:t.inputs?t.inputs.map(f.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?r(_d[3]).BigNumber.from(t.gas):null};return new s(i,u)},s.fromString=function(t){var n={type:"constructor"},i=(t=d(t,n)).match(x);return i&&"constructor"===i[1].trim()||o.throwArgumentError("invalid constructor string","value",t),n.inputs=h(i[2].trim(),!1),w(i[3].trim(),n),s.fromObject(n)},s.isConstructorFragment=function(t){return t&&t._isFragment&&"constructor"===t.type},s})(b);e.ConstructorFragment=O;var T=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))}),outputs:this.outputs.map(function(n){return JSON.parse(n.format(t))})});var n="";return t!==e.FormatTypes.sighash&&(n+="function "),n+=this.name+"("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ",t!==e.FormatTypes.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(n+=this.stateMutability+" "):this.constant&&(n+="view "),this.outputs&&this.outputs.length&&(n+="returns ("+this.outputs.map(function(n){return n.format(t)}).join(", ")+") "),null!=this.gas&&(n+="@"+this.gas.toString()+" ")),n.trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isFunctionFragment(t))return t;"function"!==t.type&&o.throwArgumentError("invalid function object","value",t);var n=F(t),u={type:t.type,name:S(t.name),constant:n.constant,inputs:t.inputs?t.inputs.map(f.fromObject):[],outputs:t.outputs?t.outputs.map(f.fromObject):[],payable:n.payable,stateMutability:n.stateMutability,gas:t.gas?r(_d[3]).BigNumber.from(t.gas):null};return new s(i,u)},s.fromString=function(t){var n={type:"function"},i=(t=d(t,n)).split(" returns ");i.length>2&&o.throwArgumentError("invalid function string","value",t);var u=i[0].match(x);if(u||o.throwArgumentError("invalid function signature","value",t),n.name=u[1].trim(),n.name&&S(n.name),n.inputs=h(u[2],!1),w(u[3].trim(),n),i.length>1){var p=i[1].match(x);""==p[1].trim()&&""==p[3].trim()||o.throwArgumentError("unexpected tokens","value",t),n.outputs=h(p[2],!1)}else n.outputs=[];return s.fromObject(n)},s.isFunctionFragment=function(t){return t&&t._isFragment&&"function"===t.type},s})(O);function E(t){var n=t.format();return"Error(string)"!==n&&"Panic(uint256)"!==n||o.throwArgumentError("cannot specify user defined "+n+" error","fragment",t),t}e.FunctionFragment=T;var j=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return n(s,t),s.prototype.format=function(t){if(t||(t=e.FormatTypes.sighash),e.FormatTypes[t]||o.throwArgumentError("invalid format type","format",t),t===e.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map(function(n){return JSON.parse(n.format(t))})});var n="";return t!==e.FormatTypes.sighash&&(n+="error "),(n+=this.name+"("+this.inputs.map(function(n){return n.format(t)}).join(t===e.FormatTypes.full?", ":",")+") ").trim()},s.from=function(t){return"string"==typeof t?s.fromString(t):s.fromObject(t)},s.fromObject=function(t){if(s.isErrorFragment(t))return t;"error"!==t.type&&o.throwArgumentError("invalid error object","value",t);var n={type:t.type,name:S(t.name),inputs:t.inputs?t.inputs.map(f.fromObject):[]};return E(new s(i,n))},s.fromString=function(t){var n={type:"error"},i=t.match(x);return i||o.throwArgumentError("invalid error signature","value",t),n.name=i[1].trim(),n.name&&S(n.name),n.inputs=h(i[2],!1),E(s.fromObject(n))},s.isErrorFragment=function(t){return t&&t._isFragment&&"error"===t.type},s})(b);function A(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}e.ErrorFragment=j;var M=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function S(t){return t&&t.match(M)||o.throwArgumentError("invalid identifier \""+t+"\"","value",t),t}var x=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");function N(t){t=t.trim();for(var n=[],i="",s=0,u=0;u0&&i[i.length-1])||6!==u[0]&&2!==u[0])){c=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]256||p%8!=0)&&t.throwArgumentError("invalid "+c[1]+" bit length","param",u),new(r(d[10]).NumberCoder)(p/8,"int"===c[1],u.name)):(c=u.type.match(n))?((0===(p=parseInt(c[1]))||p>32)&&t.throwArgumentError("invalid bytes length","param",u),new(r(d[11]).FixedBytesCoder)(p,u.name)):t.throwArgumentError("invalid type","type",u.type)},u.prototype._getWordSize=function(){return 32},u.prototype._getReader=function(t,n){return new(r(d[12]).Reader)(t,this._getWordSize(),this.coerceFunc,n)},u.prototype._getWriter=function(){return new(r(d[12]).Writer)(this._getWordSize())},u.prototype.getDefaultValue=function(t){var n=this,o=t.map(function(t){return n._getCoder(r(d[13]).ParamType.from(t))});return new(r(d[8]).TupleCoder)(o,"_").defaultValue()},u.prototype.encode=function(n,o){var u=this;n.length!==o.length&&t.throwError("types/values length mismatch",r(d[0]).Logger.errors.INVALID_ARGUMENT,{count:{types:n.length,values:o.length},value:{types:n,values:o}});var s=n.map(function(t){return u._getCoder(r(d[13]).ParamType.from(t))}),p=new(r(d[8]).TupleCoder)(s,"_"),c=this._getWriter();return p.encode(c,o),c.data},u.prototype.decode=function(t,n,o){var u=this,s=t.map(function(t){return u._getCoder(r(d[13]).ParamType.from(t))});return new(r(d[8]).TupleCoder)(s,"_").decode(this._getReader((0,r(d[14]).arrayify)(n),o))},u})();e.AbiCoder=u,e.defaultAbiCoder=new u},1912,[1896,1909,1910,1913,1921,1922,1933,1934,1936,1937,1938,1939,1920,1908,1904]); +__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.AddressCoder=void 0;var n=(function(t){function n(o){return t.call(this,"address","address",o,!1)||this}return o(n,t),n.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},n.prototype.encode=function(t,o){try{o=(0,r(_d[0]).getAddress)(o)}catch(t){this._throwError(t.message,o)}return t.writeValue(o)},n.prototype.decode=function(t){return(0,r(_d[0]).getAddress)((0,r(_d[1]).hexZeroPad)(t.readValue().toHexString(),20))},n})(r(_d[2]).Coder);e.AddressCoder=n},1913,[1914,1904,1920]); +__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCreate2Address=e.getContractAddress=e.getIcapAddress=e.isAddress=e.getAddress=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version);function s(s){(0,r(d[2]).isHexString)(s,20)||t.throwArgumentError("invalid address","address",s);for(var n=(s=s.toLowerCase()).substring(2).split(""),o=new Uint8Array(40),i=0;i<40;i++)o[i]=n[i].charCodeAt(0);var u=(0,r(d[2]).arrayify)((0,r(d[3]).keccak256)(o));for(i=0;i<40;i+=2)u[i>>1]>>4>=8&&(n[i]=n[i].toUpperCase()),(15&u[i>>1])>=8&&(n[i+1]=n[i+1].toUpperCase());return"0x"+n.join("")}for(var n={},o=0;o<10;o++)n[String(o)]=String(o);for(o=0;o<26;o++)n[String.fromCharCode(65+o)]=String(10+o);var i,u=Math.floor((i=9007199254740991,Math.log10?Math.log10(i):Math.log(i)/Math.LN10));function c(t){for(var s=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map(function(t){return n[t]}).join("");s.length>=u;){var o=s.substring(0,u);s=parseInt(o,10)%97+s.substring(o.length)}for(var i=String(98-parseInt(s,10)%97);i.length<2;)i="0"+i;return i}function h(n){var o=null;if("string"!=typeof n&&t.throwArgumentError("invalid address","address",n),n.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==n.substring(0,2)&&(n="0x"+n),o=s(n),n.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&o!==n&&t.throwArgumentError("bad address checksum","address",n);else if(n.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(n.substring(2,4)!==c(n)&&t.throwArgumentError("bad icap checksum","address",n),o=(0,r(d[4])._base36To16)(n.substring(4));o.length<40;)o="0"+o;o=s("0x"+o)}else t.throwArgumentError("invalid address","address",n);return o}e.getAddress=h,e.isAddress=function(t){try{return h(t),!0}catch(t){}return!1},e.getIcapAddress=function(t){for(var s=(0,r(d[4])._base16To36)(h(t).substring(2)).toUpperCase();s.length<30;)s="0"+s;return"XE"+c("XE00"+s)+s},e.getContractAddress=function(s){var n=null;try{n=h(s.from)}catch(n){t.throwArgumentError("missing from address","transaction",s)}var o=(0,r(d[2]).stripZeros)((0,r(d[2]).arrayify)(r(d[4]).BigNumber.from(s.nonce).toHexString()));return h((0,r(d[2]).hexDataSlice)((0,r(d[3]).keccak256)((0,r(d[5]).encode)([n,o])),12))},e.getCreate2Address=function(s,n,o){return 32!==(0,r(d[2]).hexDataLength)(n)&&t.throwArgumentError("salt must be 32 bytes","salt",n),32!==(0,r(d[2]).hexDataLength)(o)&&t.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",o),h((0,r(d[2]).hexDataSlice)((0,r(d[3]).keccak256)((0,r(d[2]).concat)(["0xff",h(s),n,o])),12))}},1914,[1896,1915,1904,1916,1899,1918]); +__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="address/5.8.0"},1915,[]); +__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.keccak256=void 0;var u=t(r(d[0]));e.keccak256=function(t){return'0x'+u.default.keccak_256((0,r(d[1]).arrayify)(t))}},1916,[1917,1904]); __d(function(g,r,_i,a,m,e,d){ /** * [js-sha3]{@link https://github.com/emn178/js-sha3} @@ -1602,1502 +2189,484 @@ __d(function(g,r,_i,a,m,e,d){ * @copyright Chen, Yi-Cyuan 2015-2018 * @license MIT */ -!(function(){'use strict';var t='input is invalid type',n='object'==typeof window,i=n?window:{};i.JS_SHA3_NO_WINDOW&&(n=!1);var o=!n&&'object'==typeof self;!i.JS_SHA3_NO_NODE_JS&&'object'==typeof process&&process.versions&&process.versions.node?i=g:o&&(i=self);var s=!i.JS_SHA3_NO_COMMON_JS&&'object'==typeof m&&m.exports,f='function'==typeof define&&define.amd,u=!i.JS_SHA3_NO_ARRAY_BUFFER&&'undefined'!=typeof ArrayBuffer,c='0123456789abcdef'.split(''),h=[4,1024,262144,67108864],p=[0,8,16,24],y=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],l=[224,256,384,512],b=[128,256],A=['hex','buffer','arrayBuffer','array','digest'],w={128:168,256:136};!i.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return'[object Array]'===Object.prototype.toString.call(t)}),!u||!i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return'object'==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var v=function(t,n,i){return function(o){return new I(t,n,t).update(o)[i]()}},B=function(t,n,i){return function(o,s){return new I(t,n,s).update(o)[i]()}},_=function(t,n,i){return function(n,o,s,f){return E['cshake'+t].update(n,o,s,f)[i]()}},k=function(t,n,i){return function(n,o,s,f){return E['kmac'+t].update(n,o,s,f)[i]()}},S=function(t,n,i,o){for(var s=0;s>5,this.byteCount=this.blockCount<<2,this.outputBlocks=i>>5,this.extraBytes=(31&i)>>3;for(var o=0;o<50;++o)this.s[o]=0}function R(t,n,i){I.call(this,t,n,i)}I.prototype.update=function(n){if(this.finalized)throw new Error("finalize already called");var i,o=typeof n;if('string'!==o){if('object'!==o)throw new Error(t);if(null===n)throw new Error(t);if(u&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!(Array.isArray(n)||u&&ArrayBuffer.isView(n)))throw new Error(t);i=!0}for(var s,f,c=this.blocks,h=this.byteCount,y=n.length,l=this.blockCount,b=0,A=this.s;b>2]|=n[b]<>2]|=f<>2]|=(192|f>>6)<>2]|=(128|63&f)<=57344?(c[s>>2]|=(224|f>>12)<>2]|=(128|f>>6&63)<>2]|=(128|63&f)<>2]|=(240|f>>18)<>2]|=(128|f>>12&63)<>2]|=(128|f>>6&63)<>2]|=(128|63&f)<=h){for(this.start=s-h,this.block=c[l],s=0;s>=8);i>0;)s.unshift(i),i=255&(t>>=8),++o;return n?s.push(o):s.unshift(o),this.update(s),s.length},I.prototype.encodeString=function(n){var i,o=typeof n;if('string'!==o){if('object'!==o)throw new Error(t);if(null===n)throw new Error(t);if(u&&n.constructor===ArrayBuffer)n=new Uint8Array(n);else if(!(Array.isArray(n)||u&&ArrayBuffer.isView(n)))throw new Error(t);i=!0}var s=0,f=n.length;if(i)s=f;else for(var c=0;c=57344?s+=3:(h=65536+((1023&h)<<10|1023&n.charCodeAt(++c)),s+=4)}return s+=this.encode(8*s),this.update(n),s},I.prototype.bytepad=function(t,n){for(var i=this.encode(n),o=0;o>2]|=this.padding[3&n],this.lastByteIndex===this.byteCount)for(t[0]=t[i],n=1;n>4&15]+c[15&t]+c[t>>12&15]+c[t>>8&15]+c[t>>20&15]+c[t>>16&15]+c[t>>28&15]+c[t>>24&15];u%n===0&&(U(i),f=0)}return s&&(t=i[f],h+=c[t>>4&15]+c[15&t],s>1&&(h+=c[t>>12&15]+c[t>>8&15]),s>2&&(h+=c[t>>20&15]+c[t>>16&15])),h},I.prototype.arrayBuffer=function(){this.finalize();var t,n=this.blockCount,i=this.s,o=this.outputBlocks,s=this.extraBytes,f=0,u=0,c=this.outputBits>>3;t=s?new ArrayBuffer(o+1<<2):new ArrayBuffer(c);for(var h=new Uint32Array(t);u>8&255,h[t+2]=n>>16&255,h[t+3]=n>>24&255;c%i===0&&U(o)}return f&&(t=c<<2,n=o[u],h[t]=255&n,f>1&&(h[t+1]=n>>8&255),f>2&&(h[t+2]=n>>16&255)),h},R.prototype=new I,R.prototype.finalize=function(){return this.encode(this.outputBits,!0),I.prototype.finalize.call(this)};var U=function(t){var n,i,o,s,f,u,c,h,p,l,b,A,w,v,B,_,k,S,C,x,E,O,z,N,j,J,M,H,I,R,U,V,F,D,W,Y,K,q,G,L,P,Q,T,X,Z,$,tt,rt,et,nt,it,ot,at,st,ft,ut,ct,ht,pt,dt,yt,lt,bt;for(o=0;o<48;o+=2)s=t[0]^t[10]^t[20]^t[30]^t[40],f=t[1]^t[11]^t[21]^t[31]^t[41],u=t[2]^t[12]^t[22]^t[32]^t[42],c=t[3]^t[13]^t[23]^t[33]^t[43],h=t[4]^t[14]^t[24]^t[34]^t[44],p=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],b=t[7]^t[17]^t[27]^t[37]^t[47],n=(A=t[8]^t[18]^t[28]^t[38]^t[48])^(u<<1|c>>>31),i=(w=t[9]^t[19]^t[29]^t[39]^t[49])^(c<<1|u>>>31),t[0]^=n,t[1]^=i,t[10]^=n,t[11]^=i,t[20]^=n,t[21]^=i,t[30]^=n,t[31]^=i,t[40]^=n,t[41]^=i,n=s^(h<<1|p>>>31),i=f^(p<<1|h>>>31),t[2]^=n,t[3]^=i,t[12]^=n,t[13]^=i,t[22]^=n,t[23]^=i,t[32]^=n,t[33]^=i,t[42]^=n,t[43]^=i,n=u^(l<<1|b>>>31),i=c^(b<<1|l>>>31),t[4]^=n,t[5]^=i,t[14]^=n,t[15]^=i,t[24]^=n,t[25]^=i,t[34]^=n,t[35]^=i,t[44]^=n,t[45]^=i,n=h^(A<<1|w>>>31),i=p^(w<<1|A>>>31),t[6]^=n,t[7]^=i,t[16]^=n,t[17]^=i,t[26]^=n,t[27]^=i,t[36]^=n,t[37]^=i,t[46]^=n,t[47]^=i,n=l^(s<<1|f>>>31),i=b^(f<<1|s>>>31),t[8]^=n,t[9]^=i,t[18]^=n,t[19]^=i,t[28]^=n,t[29]^=i,t[38]^=n,t[39]^=i,t[48]^=n,t[49]^=i,v=t[0],B=t[1],$=t[11]<<4|t[10]>>>28,tt=t[10]<<4|t[11]>>>28,H=t[20]<<3|t[21]>>>29,I=t[21]<<3|t[20]>>>29,dt=t[31]<<9|t[30]>>>23,yt=t[30]<<9|t[31]>>>23,Q=t[40]<<18|t[41]>>>14,T=t[41]<<18|t[40]>>>14,D=t[2]<<1|t[3]>>>31,W=t[3]<<1|t[2]>>>31,_=t[13]<<12|t[12]>>>20,k=t[12]<<12|t[13]>>>20,rt=t[22]<<10|t[23]>>>22,et=t[23]<<10|t[22]>>>22,R=t[33]<<13|t[32]>>>19,U=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,bt=t[43]<<2|t[42]>>>30,st=t[5]<<30|t[4]>>>2,ft=t[4]<<30|t[5]>>>2,Y=t[14]<<6|t[15]>>>26,K=t[15]<<6|t[14]>>>26,S=t[25]<<11|t[24]>>>21,C=t[24]<<11|t[25]>>>21,nt=t[34]<<15|t[35]>>>17,it=t[35]<<15|t[34]>>>17,V=t[45]<<29|t[44]>>>3,F=t[44]<<29|t[45]>>>3,N=t[6]<<28|t[7]>>>4,j=t[7]<<28|t[6]>>>4,ut=t[17]<<23|t[16]>>>9,ct=t[16]<<23|t[17]>>>9,q=t[26]<<25|t[27]>>>7,G=t[27]<<25|t[26]>>>7,x=t[36]<<21|t[37]>>>11,E=t[37]<<21|t[36]>>>11,ot=t[47]<<24|t[46]>>>8,at=t[46]<<24|t[47]>>>8,X=t[8]<<27|t[9]>>>5,Z=t[9]<<27|t[8]>>>5,J=t[18]<<20|t[19]>>>12,M=t[19]<<20|t[18]>>>12,ht=t[29]<<7|t[28]>>>25,pt=t[28]<<7|t[29]>>>25,L=t[38]<<8|t[39]>>>24,P=t[39]<<8|t[38]>>>24,O=t[48]<<14|t[49]>>>18,z=t[49]<<14|t[48]>>>18,t[0]=v^~_&S,t[1]=B^~k&C,t[10]=N^~J&H,t[11]=j^~M&I,t[20]=D^~Y&q,t[21]=W^~K&G,t[30]=X^~$&rt,t[31]=Z^~tt&et,t[40]=st^~ut&ht,t[41]=ft^~ct&pt,t[2]=_^~S&x,t[3]=k^~C&E,t[12]=J^~H&R,t[13]=M^~I&U,t[22]=Y^~q&L,t[23]=K^~G&P,t[32]=$^~rt&nt,t[33]=tt^~et&it,t[42]=ut^~ht&dt,t[43]=ct^~pt&yt,t[4]=S^~x&O,t[5]=C^~E&z,t[14]=H^~R&V,t[15]=I^~U&F,t[24]=q^~L&Q,t[25]=G^~P&T,t[34]=rt^~nt&ot,t[35]=et^~it&at,t[44]=ht^~dt<,t[45]=pt^~yt&bt,t[6]=x^~O&v,t[7]=E^~z&B,t[16]=R^~V&N,t[17]=U^~F&j,t[26]=L^~Q&D,t[27]=P^~T&W,t[36]=nt^~ot&X,t[37]=it^~at&Z,t[46]=dt^~lt&st,t[47]=yt^~bt&ft,t[8]=O^~v&_,t[9]=z^~B&k,t[18]=V^~N&J,t[19]=F^~j&M,t[28]=Q^~D&Y,t[29]=T^~W&K,t[38]=ot^~X&$,t[39]=at^~Z&tt,t[48]=lt^~st&ut,t[49]=bt^~ft&ct,t[0]^=y[o],t[1]^=y[o+1]};if(s)m.exports=E;else{for(z=0;z>=8;return o}function n(t,o,n){for(var s=0,h=0;hn+1+h&&t.throwError("child data too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+h,result:i}}function u(o,s){if(0===o.length&&t.throwError("data too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{}),o[s]>=248){s+1+(l=o[s]-247)>o.length&&t.throwError("data short segment too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{});var u=n(o,s+1,l);return s+1+l+u>o.length&&t.throwError("data long segment too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{}),h(o,s,s+1+l,l+u)}if(o[s]>=192){var i=o[s]-192;return s+1+i>o.length&&t.throwError("data array too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{}),h(o,s,s+1,i)}if(o[s]>=184){var l;s+1+(l=o[s]-183)>o.length&&t.throwError("data array too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{});var c=n(o,s+1,l);return s+1+l+c>o.length&&t.throwError("data array too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+l+c,result:(0,r(d[2]).hexlify)(o.slice(s+1+l,s+1+l+c))}}if(o[s]>=128){var f=o[s]-128;return s+1+f>o.length&&t.throwError("data too short",r(d[0]).Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+f,result:(0,r(d[2]).hexlify)(o.slice(s+1,s+1+f))}}return{consumed:1,result:(0,r(d[2]).hexlify)(o[s])}}e.encode=function(t){return(0,r(d[2]).hexlify)(s(t))},e.decode=function(o){var n=(0,r(d[2]).arrayify)(o),s=u(n,0);return s.consumed!==n.length&&t.throwArgumentError("invalid rlp data","data",o),s.result}},1343,[1321,1344,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="rlp/5.8.0"},1344,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Reader=e.Writer=e.Coder=e.checkResultErrors=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version);e.checkResultErrors=function(t){var o=[],n=function(t,s){if(Array.isArray(s))for(var h in s){var u=t.slice();u.push(h);try{n(u,s[h])}catch(t){o.push({path:u,error:t})}}};return n([],t),o};var o=(function(){function o(t,o,n,s){this.name=t,this.type=o,this.localName=n,this.dynamic=s}return o.prototype._throwError=function(o,n){t.throwArgumentError(o,this.localName,n)},o})();e.Coder=o;var n=(function(){function o(t){(0,r(d[2]).defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object.defineProperty(o.prototype,"data",{get:function(){return(0,r(d[3]).hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),o.prototype._writeData=function(t){return this._data.push(t),this._dataLength+=t.length,t.length},o.prototype.appendWriter=function(t){return this._writeData((0,r(d[3]).concat)(t._data))},o.prototype.writeBytes=function(t){var o=(0,r(d[3]).arrayify)(t),n=o.length%this.wordSize;return n&&(o=(0,r(d[3]).concat)([o,this._padding.slice(n)])),this._writeData(o)},o.prototype._getValue=function(o){var n=(0,r(d[3]).arrayify)(r(d[4]).BigNumber.from(o));return n.length>this.wordSize&&t.throwError("value out-of-bounds",r(d[0]).Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:n.length}),n.length%this.wordSize&&(n=(0,r(d[3]).concat)([this._padding.slice(n.length%this.wordSize),n])),n},o.prototype.writeValue=function(t){return this._writeData(this._getValue(t))},o.prototype.writeUpdatableValue=function(){var t=this,o=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){t._data[o]=t._getValue(n)}},o})();e.Writer=n;var s=(function(){function o(t,o,n,s){(0,r(d[2]).defineReadOnly)(this,"_data",(0,r(d[3]).arrayify)(t)),(0,r(d[2]).defineReadOnly)(this,"wordSize",o||32),(0,r(d[2]).defineReadOnly)(this,"_coerceFunc",n),(0,r(d[2]).defineReadOnly)(this,"allowLoose",s),this._offset=0}return Object.defineProperty(o.prototype,"data",{get:function(){return(0,r(d[3]).hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),o.coerce=function(t,o){var n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(o=o.toNumber()),o},o.prototype.coerce=function(t,n){return this._coerceFunc?this._coerceFunc(t,n):o.coerce(t,n)},o.prototype._peekBytes=function(o,n,s){var h=Math.ceil(n/this.wordSize)*this.wordSize;return this._offset+h>this._data.length&&(this.allowLoose&&s&&this._offset+n<=this._data.length?h=n:t.throwError("data out-of-bounds",r(d[0]).Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+h})),this._data.slice(this._offset,this._offset+h)},o.prototype.subReader=function(t){return new o(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)},o.prototype.readBytes=function(t,o){var n=this._peekBytes(0,t,!!o);return this._offset+=n.length,n.slice(0,t)},o.prototype.readValue=function(){return r(d[4]).BigNumber.from(this.readBytes(this.wordSize))},o})();e.Reader=s},1345,[1321,1334,1335,1329,1324]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function u(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(u.prototype=n.prototype,new u)});Object.defineProperty(e,"__esModule",{value:!0}),e.BooleanCoder=void 0;var n=(function(t){function n(o){return t.call(this,"bool","bool",o,!1)||this}return o(n,t),n.prototype.defaultValue=function(){return!1},n.prototype.encode=function(t,o){return t.writeValue(o?1:0)},n.prototype.decode=function(t){return t.coerce(this.type,!t.readValue().isZero())},n})(r(_d[0]).Coder);e.BooleanCoder=n},1346,[1345]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function c(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(c.prototype=n.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.StringCoder=void 0;var n=(function(t){function n(o){return t.call(this,"string",o)||this}return o(n,t),n.prototype.defaultValue=function(){return""},n.prototype.encode=function(o,n){return t.prototype.encode.call(this,o,(0,r(_d[0]).toUtf8Bytes)(n))},n.prototype.decode=function(o){return(0,r(_d[0]).toUtf8String)(t.prototype.decode.call(this,o))},n})(r(_d[1]).DynamicBytesCoder);e.StringCoder=n},1347,[1348,1358]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.nameprep=e.parseBytes32String=e.formatBytes32String=e.UnicodeNormalizationForm=e.Utf8ErrorReason=e.Utf8ErrorFuncs=e.toUtf8String=e.toUtf8CodePoints=e.toUtf8Bytes=e._toEscapedUtf8String=void 0,Object.defineProperty(e,"formatBytes32String",{enumerable:!0,get:function(){return r(d[0]).formatBytes32String}}),Object.defineProperty(e,"parseBytes32String",{enumerable:!0,get:function(){return r(d[0]).parseBytes32String}}),Object.defineProperty(e,"nameprep",{enumerable:!0,get:function(){return r(d[1]).nameprep}}),Object.defineProperty(e,"_toEscapedUtf8String",{enumerable:!0,get:function(){return r(d[2])._toEscapedUtf8String}}),Object.defineProperty(e,"toUtf8Bytes",{enumerable:!0,get:function(){return r(d[2]).toUtf8Bytes}}),Object.defineProperty(e,"toUtf8CodePoints",{enumerable:!0,get:function(){return r(d[2]).toUtf8CodePoints}}),Object.defineProperty(e,"toUtf8String",{enumerable:!0,get:function(){return r(d[2]).toUtf8String}}),Object.defineProperty(e,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return r(d[2]).UnicodeNormalizationForm}}),Object.defineProperty(e,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return r(d[2]).Utf8ErrorFuncs}}),Object.defineProperty(e,"Utf8ErrorReason",{enumerable:!0,get:function(){return r(d[2]).Utf8ErrorReason}})},1348,[1349,1357,1350]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseBytes32String=e.formatBytes32String=void 0,e.formatBytes32String=function(t){var n=(0,r(d[0]).toUtf8Bytes)(t);if(n.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,r(d[1]).hexlify)((0,r(d[1]).concat)([n,r(d[2]).HashZero]).slice(0,32))},e.parseBytes32String=function(t){var n=(0,r(d[1]).arrayify)(t);if(32!==n.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==n[31])throw new Error("invalid bytes32 string - no null terminator");for(var o=31;0===n[o-1];)o--;return(0,r(d[0]).toUtf8String)(n.slice(0,o))}},1349,[1350,1329,1352]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toUtf8CodePoints=e.toUtf8String=e._toUtf8String=e._toEscapedUtf8String=e.toUtf8Bytes=e.Utf8ErrorFuncs=e.Utf8ErrorReason=e.UnicodeNormalizationForm=void 0;var t,n,o=new(r(d[0]).Logger)(r(d[1]).version);function i(t,o,i,u,f){if(t===n.BAD_PREFIX||t===n.UNEXPECTED_CONTINUE){for(var s=0,c=o+1;c>6==2;c++)s++;return s}return t===n.OVERRUN?i.length-o-1:0}function u(t,o){null==o&&(o=e.Utf8ErrorFuncs.error),t=(0,r(d[2]).arrayify)(t);for(var i=[],u=0;u>7){var s=null,c=null;if(192==(224&f))s=1,c=127;else if(224==(240&f))s=2,c=2047;else{if(240!=(248&f)){u+=o(128==(192&f)?n.UNEXPECTED_CONTINUE:n.BAD_PREFIX,u-1,t,i);continue}s=3,c=65535}if(u-1+s>=t.length)u+=o(n.OVERRUN,u-1,t,i);else{for(var U=f&(1<<8-s-1)-1,E=0;E1114111?u+=o(n.OUT_OF_RANGE,u-1-s,t,i,U):U>=55296&&U<=57343?u+=o(n.UTF16_SURROGATE,u-1-s,t,i,U):U<=c?u+=o(n.OVERLONG,u-1-s,t,i,U):i.push(U))}}else i.push(f)}return i}function f(n,i){void 0===i&&(i=t.current),i!=t.current&&(o.checkNormalize(),n=n.normalize(i));for(var u=[],f=0;f>6|192),u.push(63&s|128);else if(55296==(64512&s)){f++;var c=n.charCodeAt(f);if(f>=n.length||56320!=(64512&c))throw new Error("invalid utf-8 string");var U=65536+((1023&s)<<10)+(1023&c);u.push(U>>18|240),u.push(U>>12&63|128),u.push(U>>6&63|128),u.push(63&U|128)}else u.push(s>>12|224),u.push(s>>6&63|128),u.push(63&s|128)}return(0,r(d[2]).arrayify)(u)}function s(t){var n="0000"+t.toString(16);return"\\u"+n.substring(n.length-4)}function c(t){return t.map(function(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t)))}).join("")}!(function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"})(t=e.UnicodeNormalizationForm||(e.UnicodeNormalizationForm={})),(function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"})(n=e.Utf8ErrorReason||(e.Utf8ErrorReason={})),e.Utf8ErrorFuncs=Object.freeze({error:function(t,n,i,u,f){return o.throwArgumentError("invalid codepoint at offset "+n+"; "+t,"bytes",i)},ignore:i,replace:function(t,o,u,f,s){return t===n.OVERLONG?(f.push(s),0):(f.push(65533),i(t,o,u))}}),e.toUtf8Bytes=f,e._toEscapedUtf8String=function(t,n){return'"'+u(t,n).map(function(t){if(t<256){switch(t){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return"\\\"";case 92:return"\\\\"}if(t>=32&&t<127)return String.fromCharCode(t)}return t<=65535?s(t):s(55296+((t-=65536)>>10&1023))+s(56320+(1023&t))}).join("")+'"'},e._toUtf8String=c,e.toUtf8String=function(t,n){return c(u(t,n))},e.toUtf8CodePoints=function(n,o){return void 0===o&&(o=t.current),u(f(n,o))}},1350,[1321,1351,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="strings/5.8.0"},1351,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EtherSymbol=e.HashZero=e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.Two=e.One=e.Zero=e.NegativeOne=e.AddressZero=void 0,Object.defineProperty(e,"AddressZero",{enumerable:!0,get:function(){return r(d[0]).AddressZero}}),Object.defineProperty(e,"NegativeOne",{enumerable:!0,get:function(){return r(d[1]).NegativeOne}}),Object.defineProperty(e,"Zero",{enumerable:!0,get:function(){return r(d[1]).Zero}}),Object.defineProperty(e,"One",{enumerable:!0,get:function(){return r(d[1]).One}}),Object.defineProperty(e,"Two",{enumerable:!0,get:function(){return r(d[1]).Two}}),Object.defineProperty(e,"WeiPerEther",{enumerable:!0,get:function(){return r(d[1]).WeiPerEther}}),Object.defineProperty(e,"MaxUint256",{enumerable:!0,get:function(){return r(d[1]).MaxUint256}}),Object.defineProperty(e,"MinInt256",{enumerable:!0,get:function(){return r(d[1]).MinInt256}}),Object.defineProperty(e,"MaxInt256",{enumerable:!0,get:function(){return r(d[1]).MaxInt256}}),Object.defineProperty(e,"HashZero",{enumerable:!0,get:function(){return r(d[2]).HashZero}}),Object.defineProperty(e,"EtherSymbol",{enumerable:!0,get:function(){return r(d[3]).EtherSymbol}})},1352,[1353,1354,1355,1356]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AddressZero=void 0,e.AddressZero="0x0000000000000000000000000000000000000000"},1353,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MaxInt256=e.MinInt256=e.MaxUint256=e.WeiPerEther=e.Two=e.One=e.Zero=e.NegativeOne=void 0;var f=r(d[0]).BigNumber.from(-1);e.NegativeOne=f;var o=r(d[0]).BigNumber.from(0);e.Zero=o;var n=r(d[0]).BigNumber.from(1);e.One=n;var t=r(d[0]).BigNumber.from(2);e.Two=t;var u=r(d[0]).BigNumber.from("1000000000000000000");e.WeiPerEther=u;var v=r(d[0]).BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxUint256=v;var N=r(d[0]).BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");e.MinInt256=N;var b=r(d[0]).BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxInt256=b},1354,[1324]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HashZero=void 0,e.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"},1355,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EtherSymbol=void 0,e.EtherSymbol="\u039e"},1356,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";function f(f,B){B||(B=function(f){return[parseInt(f,16)]});var n=0,b={};return f.split(",").forEach(function(f){var t=f.split(":");n+=parseInt(t[0],16),b[n]=B(t[1])}),b}function B(f){var B=0;return f.split(",").map(function(f){var n=f.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:B+parseInt(n[0],16),h:B=parseInt(n[1],16)}})}function n(f,B){for(var n=0,b=0;b=(n+=t.l)&&f<=n+t.h&&(f-n)%(t.d||1)===0){if(t.e&&-1!==t.e.indexOf(f-n))continue;return t}}return null}Object.defineProperty(e,"__esModule",{value:!0}),e.nameprep=e._nameprepTableC=e._nameprepTableB2=e._nameprepTableA1=void 0;var b=B("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),t="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map(function(f){return parseInt(f,16)}),s=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],l=f("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),c=f("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),h=f("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",function(f){if(f.length%4!=0)throw new Error("bad data");for(var B=[],n=0;n=0)return[];if(f>=65024&&f<=65039)return[];var B=u(f);return B||[f]}),n=B.reduce(function(f,B){return B.forEach(function(B){f.push(B)}),f},[]),(n=(0,r(d[0]).toUtf8CodePoints)((0,r(d[0])._toUtf8String)(n),r(d[0]).UnicodeNormalizationForm.NFKC)).forEach(function(f){if(o(f))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")}),n.forEach(function(f){if(i(f))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")});var b=(0,r(d[0])._toUtf8String)(n);if("-"===b.substring(0,1)||"--"===b.substring(2,4)||"-"===b.substring(b.length-1))throw new Error("invalid hyphen");return b}},1357,[1350]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function c(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(c.prototype=n.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.BytesCoder=e.DynamicBytesCoder=void 0;var n=(function(t){function n(o,n){return t.call(this,o,o,n,!0)||this}return o(n,t),n.prototype.defaultValue=function(){return"0x"},n.prototype.encode=function(t,o){o=(0,r(_d[0]).arrayify)(o);var n=t.writeValue(o.length);return n+=t.writeBytes(o)},n.prototype.decode=function(t){return t.readBytes(t.readValue().toNumber(),!0)},n})(r(_d[1]).Coder);e.DynamicBytesCoder=n;var c=(function(t){function n(o){return t.call(this,"bytes",o)||this}return o(n,t),n.prototype.decode=function(o){return o.coerce(this.name,(0,r(_d[0]).hexlify)(t.prototype.decode.call(this,o)))},n})(n);e.BytesCoder=c},1358,[1329,1345]); -__d(function(g,r,_i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayCoder=e.unpack=e.pack=void 0;var o=new(r(_d[0]).Logger)(r(_d[1]).version);function c(t,n,c){var u=null;if(Array.isArray(c))u=c;else if(c&&"object"==typeof c){var i={};u=n.map(function(t){var n=t.localName;return n||o.throwError("cannot encode object for signature with missing names",r(_d[0]).Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:c}),i[n]&&o.throwError("cannot encode object for signature with duplicate names",r(_d[0]).Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:t,value:c}),i[n]=!0,c[n]})}else o.throwArgumentError("invalid tuple value","tuple",c);n.length!==u.length&&o.throwArgumentError("types/value length mismatch","tuple",c);var l=new(r(_d[2]).Writer)(t.wordSize),s=new(r(_d[2]).Writer)(t.wordSize),h=[];n.forEach(function(t,n){var o=u[n];if(t.dynamic){var c=s.length;t.encode(s,o);var i=l.writeUpdatableValue();h.push(function(t){i(t+c)})}else t.encode(l,o)}),h.forEach(function(t){t(l.length)});var f=t.appendWriter(l);return f+=t.appendWriter(s)}function u(t,n){var o=[],c=t.subReader(0);n.forEach(function(n){var u=null;if(n.dynamic){var i=t.readValue(),l=c.subReader(i.toNumber());try{u=n.decode(l)}catch(t){if(t.code===r(_d[0]).Logger.errors.BUFFER_OVERRUN)throw t;(u=t).baseType=n.name,u.name=n.localName,u.type=n.type}}else try{u=n.decode(t)}catch(t){if(t.code===r(_d[0]).Logger.errors.BUFFER_OVERRUN)throw t;(u=t).baseType=n.name,u.name=n.localName,u.type=n.type}null!=u&&o.push(u)});var u=n.reduce(function(t,n){var o=n.localName;return o&&(t[o]||(t[o]=0),t[o]++),t},{});n.forEach(function(t,n){var c=t.localName;if(c&&1===u[c]&&("length"===c&&(c="_length"),null==o[c])){var i=o[n];i instanceof Error?Object.defineProperty(o,c,{enumerable:!0,get:function(){throw i}}):o[c]=i}});for(var i=function(t){var n=o[t];n instanceof Error&&Object.defineProperty(o,t,{enumerable:!0,get:function(){throw n}})},l=0;l=0?o:"")+"]",l=-1===o||n.dynamic;return(u=t.call(this,"array",i,c,l)||this).coder=n,u.length=o,u}return n(i,t),i.prototype.defaultValue=function(){for(var t=this.coder.defaultValue(),n=[],o=0;ot._data.length&&o.throwError("insufficient data length",r(_d[0]).Logger.errors.BUFFER_OVERRUN,{length:t._data.length,count:n});for(var c=[],i=0;i1&&o.throwArgumentError("multiple matching functions","name",i),this.functions[s[0]]}var u=this.functions[r(_d[4]).FunctionFragment.fromString(t).format()];return u||o.throwArgumentError("no matching function","signature",t),u},t.prototype.getEvent=function(t){if((0,r(_d[7]).isHexString)(t)){var n=t.toLowerCase();for(var i in this.events)if(n===this.getEventTopic(i))return this.events[i];o.throwArgumentError("no matching event","topichash",n)}if(-1===t.indexOf("(")){var s=t.trim(),u=Object.keys(this.events).filter(function(t){return t.split("(")[0]===s});return 0===u.length?o.throwArgumentError("no matching event","name",s):u.length>1&&o.throwArgumentError("multiple matching events","name",s),this.events[u[0]]}var c=this.events[r(_d[4]).EventFragment.fromString(t).format()];return c||o.throwArgumentError("no matching event","signature",t),c},t.prototype.getError=function(t){if((0,r(_d[7]).isHexString)(t)){var n=(0,r(_d[3]).getStatic)(this.constructor,"getSighash");for(var i in this.errors){if(t===n(this.errors[i]))return this.errors[i]}o.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){var s=t.trim(),u=Object.keys(this.errors).filter(function(t){return t.split("(")[0]===s});return 0===u.length?o.throwArgumentError("no matching error","name",s):u.length>1&&o.throwArgumentError("multiple matching errors","name",s),this.errors[u[0]]}var c=this.errors[r(_d[4]).FunctionFragment.fromString(t).format()];return c||o.throwArgumentError("no matching error","signature",t),c},t.prototype.getSighash=function(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(n){try{t=this.getError(t)}catch(t){throw n}}return(0,r(_d[3]).getStatic)(this.constructor,"getSighash")(t)},t.prototype.getEventTopic=function(t){return"string"==typeof t&&(t=this.getEvent(t)),(0,r(_d[3]).getStatic)(this.constructor,"getEventTopic")(t)},t.prototype._decodeParams=function(t,n){return this._abiCoder.decode(t,n)},t.prototype._encodeParams=function(t,n){return this._abiCoder.encode(t,n)},t.prototype.encodeDeploy=function(t){return this._encodeParams(this.deploy.inputs,t||[])},t.prototype.decodeErrorResult=function(t,n){"string"==typeof t&&(t=this.getError(t));var i=(0,r(_d[7]).arrayify)(n);return(0,r(_d[7]).hexlify)(i.slice(0,4))!==this.getSighash(t)&&o.throwArgumentError("data signature does not match error "+t.name+".","data",(0,r(_d[7]).hexlify)(i)),this._decodeParams(t.inputs,i.slice(4))},t.prototype.encodeErrorResult=function(t,n){return"string"==typeof t&&(t=this.getError(t)),(0,r(_d[7]).hexlify)((0,r(_d[7]).concat)([this.getSighash(t),this._encodeParams(t.inputs,n||[])]))},t.prototype.decodeFunctionData=function(t,n){"string"==typeof t&&(t=this.getFunction(t));var i=(0,r(_d[7]).arrayify)(n);return(0,r(_d[7]).hexlify)(i.slice(0,4))!==this.getSighash(t)&&o.throwArgumentError("data signature does not match function "+t.name+".","data",(0,r(_d[7]).hexlify)(i)),this._decodeParams(t.inputs,i.slice(4))},t.prototype.encodeFunctionData=function(t,n){return"string"==typeof t&&(t=this.getFunction(t)),(0,r(_d[7]).hexlify)((0,r(_d[7]).concat)([this.getSighash(t),this._encodeParams(t.inputs,n||[])]))},t.prototype.decodeFunctionResult=function(t,n){"string"==typeof t&&(t=this.getFunction(t));var i=(0,r(_d[7]).arrayify)(n),s=null,u="",c=null,p=null,f=null;switch(i.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,i)}catch(y){}break;case 4:var l=(0,r(_d[7]).hexlify)(i.slice(0,4)),d=h[l];if(d)c=this._abiCoder.decode(d.inputs,i.slice(4)),p=d.name,f=d.signature,d.reason&&(s=c[0]),"Error"===p?u="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(c[0]):"Panic"===p&&(u="; VM Exception while processing transaction: reverted with panic code "+c[0]);else try{var y=this.getError(l);c=this._abiCoder.decode(y.inputs,i.slice(4)),p=y.name,f=y.format()}catch(y){}}return o.throwError("call revert exception"+u,r(_d[1]).Logger.errors.CALL_EXCEPTION,{method:t.format(),data:(0,r(_d[7]).hexlify)(n),errorArgs:c,errorName:p,errorSignature:f,reason:s})},t.prototype.encodeFunctionResult=function(t,n){return"string"==typeof t&&(t=this.getFunction(t)),(0,r(_d[7]).hexlify)(this._abiCoder.encode(t.outputs,n||[]))},t.prototype.encodeFilterTopics=function(t,n){var i=this;"string"==typeof t&&(t=this.getEvent(t)),n.length>t.inputs.length&&o.throwError("too many arguments for "+t.format(),r(_d[1]).Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:n});var s=[];t.anonymous||s.push(this.getEventTopic(t));var u=function(t,n){return"string"===t.type?(0,r(_d[8]).id)(n):"bytes"===t.type?(0,r(_d[9]).keccak256)((0,r(_d[7]).hexlify)(n)):("bool"===t.type&&"boolean"==typeof n&&(n=n?"0x01":"0x00"),t.type.match(/^u?int/)&&(n=r(_d[10]).BigNumber.from(n).toHexString()),"address"===t.type&&i._abiCoder.encode(["address"],[n]),(0,r(_d[7]).hexZeroPad)((0,r(_d[7]).hexlify)(n),32))};for(n.forEach(function(n,i){var c=t.inputs[i];c.indexed?null==n?s.push(null):"array"===c.baseType||"tuple"===c.baseType?o.throwArgumentError("filtering with tuples or arrays not supported","contract."+c.name,n):Array.isArray(n)?s.push(n.map(function(t){return u(c,t)})):s.push(u(c,n)):null!=n&&o.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+c.name,n)});s.length&&null===s[s.length-1];)s.pop();return s},t.prototype.encodeEventLog=function(t,n){var i=this;"string"==typeof t&&(t=this.getEvent(t));var s=[],u=[],c=[];return t.anonymous||s.push(this.getEventTopic(t)),n.length!==t.inputs.length&&o.throwArgumentError("event arguments/values mismatch","values",n),t.inputs.forEach(function(t,o){var h=n[o];if(t.indexed)if("string"===t.type)s.push((0,r(_d[8]).id)(h));else if("bytes"===t.type)s.push((0,r(_d[9]).keccak256)(h));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");s.push(i._abiCoder.encode([t.type],[h]))}else u.push(t),c.push(h)}),{data:this._abiCoder.encode(u,c),topics:s}},t.prototype.decodeEventLog=function(t,n,i){if("string"==typeof t&&(t=this.getEvent(t)),null!=i&&!t.anonymous){var s=this.getEventTopic(t);(0,r(_d[7]).isHexString)(i[0],32)&&i[0].toLowerCase()===s||o.throwError("fragment/topic mismatch",r(_d[1]).Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:s,value:i[0]}),i=i.slice(1)}var u=[],h=[],f=[];t.inputs.forEach(function(t,n){t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(u.push(r(_d[4]).ParamType.fromObject({type:"bytes32",name:t.name})),f.push(!0)):(u.push(t),f.push(!1)):(h.push(t),f.push(!1))});var l=null!=i?this._abiCoder.decode(u,(0,r(_d[7]).concat)(i)):null,d=this._abiCoder.decode(h,n,!0),y=[],v=0,E=0;t.inputs.forEach(function(t,n){if(t.indexed)if(null==l)y[n]=new c({_isIndexed:!0,hash:null});else if(f[n])y[n]=new c({_isIndexed:!0,hash:l[E++]});else try{y[n]=l[E++]}catch(t){y[n]=t}else try{y[n]=d[v++]}catch(t){y[n]=t}if(t.name&&null==y[t.name]){var o=y[n];o instanceof Error?Object.defineProperty(y,t.name,{enumerable:!0,get:function(){throw p("property "+JSON.stringify(t.name),o)}}):y[t.name]=o}});for(var b=function(t){var n=y[t];n instanceof Error&&Object.defineProperty(y,t,{enumerable:!0,get:function(){throw p("index "+t,n)}})},w=0;w=t.length)throw new Error("invalid ENS name; empty component");return o.push(i(t.slice(c))),o}t.fill(0),e.ensNormalize=function(n){return o(n).map(function(n){return(0,r(_d[2]).toUtf8String)(n)}).join(".")},e.isValidName=function(n){try{return 0!==o(n).length}catch(n){}return!1},e.namehash=function(i){"string"!=typeof i&&n.throwArgumentError("invalid ENS name; not a string","name",i);for(var c=t,l=o(i);l.length;)c=(0,r(_d[4]).keccak256)((0,r(_d[5]).concat)([c,(0,r(_d[4]).keccak256)(l.pop())]));return(0,r(_d[5]).hexlify)(c)},e.dnsEncode=function(n){return(0,r(_d[5]).hexlify)((0,r(_d[5]).concat)(o(n).map(function(n){if(n.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(n.length+1);return t.set(n,1),t[0]=t.length-1,t})))+"00"}},1368,[1321,1369,1348,1370,1341,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="hash/5.8.0"},1369,[]); -__d(function(g,_r,_i2,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ens_normalize=e.ens_normalize_post_check=void 0;var r=(0,_r(d[0]).getData)(),n=new Set((0,_r(d[1]).read_member_array)(r)),t=new Set((0,_r(d[1]).read_member_array)(r)),o=(0,_r(d[1]).read_mapped_map)(r),i=(0,_r(d[1]).read_emoji_trie)(r);function l(r){return(0,_r(d[2]).toUtf8CodePoints)(r)}function s(r){return r.filter(function(r){return 65039!=r})}function f(r){for(var n=0,t=r.split('.');n=0;s--)if(95!==i[s])throw new Error("underscore only allowed at start");if(i.length>=4&&i.every(function(r){return r<128})&&45===i[2]&&45===i[3])throw new Error("invalid label extension")}catch(r){throw new Error("Invalid label \""+o+"\": "+r.message)}}return r}function u(r,i){for(var s=l(r).reverse(),u=[];s.length;){var p=c(s);if(p)u.push.apply(u,i(p));else{var h=s.pop();if(n.has(h))u.push(h);else if(!t.has(h)){var v=o[h];if(!v)throw new Error("Disallowed codepoint: 0x"+h.toString(16).toUpperCase());u.push.apply(u,v)}}}return f(String.fromCodePoint.apply(String,u).normalize('NFC'))}function c(r,n){var t,o,l,s=i,f=[],u=r.length;n&&(n.length=0);for(var c=function(){var i=r[--u];if(!(s=null===(t=s.branches.find(function(r){return r.set.has(i)}))||void 0===t?void 0:t.node))return"break";if(s.save)l=i;else if(s.check&&i===l)return"break";f.push(i),s.fe0f&&(f.push(65039),u>0&&65039==r[u-1]&&u--),s.valid&&(o=f.slice(),2==s.valid&&o.splice(1,1),n&&n.push.apply(n,r.slice(u).reverse()),r.length=u)};u;){if("break"===c())break}return o}e.ens_normalize_post_check=f,e.ens_normalize=function(r){return f(u(r,s))}},1370,[1371,1372,1348]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getData=void 0,e.getData=function(){return(0,r(d[0]).read_compressed_payload)((0,r(d[1]).decode)('AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=='))}},1371,[1372,1373]); -__d(function(g,r,_i,_a,_m,e,d){"use strict";function n(n,a){null==a&&(a=1);var t=[],u=t.forEach,o=function(n,a){u.call(n,function(n){a>0&&Array.isArray(n)?o(n,a-1):t.push(n)})};return o(n,a),t}function a(n){for(var a={},t=0;t>--s&1}var l=Math.pow(2,31),h=1073741824,m=2147483647,y=0;for(i=0;i<31;i++)y=y<<1|_();for(var b=[],A=0,k=l;;){for(var M=Math.floor(((y-A+1)*o-1)/k),z=0,j=u;j-z>1;){var w=z+j>>>1;M>1:n>>1}function f(n,a){for(var t=Array(n),u=0;u>=1),check:2==f}})()}},1372,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encode=e.decode=void 0,Object.defineProperty(e,"decode",{enumerable:!0,get:function(){return r(d[0]).decode}}),Object.defineProperty(e,"encode",{enumerable:!0,get:function(){return r(d[0]).encode}})},1373,[1374]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encode=e.decode=void 0,e.decode=function(o){o=atob(o);for(var t=[],n=0;n0&&a[a.length-1])||6!==u[0]&&2!==u[0])){f=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]256||n[2]&&n[2]!==String(p))&&e.throwArgumentError("invalid numeric width","type",t);var l=c.mask(o?p-1:p),g=o?l.add(f).mul(a):u;return function(n){var o=r(d[2]).BigNumber.from(n);return(o.lt(g)||o.gt(l))&&e.throwArgumentError("value out-of-bounds for "+t,"value",n),(0,r(d[3]).hexZeroPad)(o.toTwos(256).toHexString(),32)}}if(n=t.match(/^bytes(\d+)$/)){var v=parseInt(n[1]);return(0===v||v>32||n[1]!==String(v))&&e.throwArgumentError("invalid bytes width","type",t),function(n){return(0,r(d[3]).arrayify)(n).length!==v&&e.throwArgumentError("invalid length for "+t,"value",n),s(n)}}switch(t){case"address":return function(t){return(0,r(d[3]).hexZeroPad)((0,r(d[4]).getAddress)(t),32)};case"bool":return function(t){return t?h:y};case"bytes":return function(t){return(0,r(d[5]).keccak256)(t)};case"string":return function(t){return(0,r(d[6]).id)(t)}}return null}function b(t,n){return t+"("+n.map(function(t){var n=t.name;return t.type+" "+n}).join(",")+")"}var E=(function(){function o(t){(0,r(d[7]).defineReadOnly)(this,"types",Object.freeze((0,r(d[7]).deepCopy)(t))),(0,r(d[7]).defineReadOnly)(this,"_encoderCache",{}),(0,r(d[7]).defineReadOnly)(this,"_types",{});var n={},o={},a={};Object.keys(t).forEach(function(t){n[t]={},o[t]=[],a[t]={}});var u=function(a){var u={};t[a].forEach(function(f){u[f.name]&&e.throwArgumentError("duplicate variable name "+JSON.stringify(f.name)+" in "+JSON.stringify(a),"types",t),u[f.name]=!0;var c=f.type.match(/^([^\x5b]*)(\x5b|$)/)[1];c===a&&e.throwArgumentError("circular type reference to "+JSON.stringify(c),"types",t),w(c)||(o[c]||e.throwArgumentError("unknown type "+JSON.stringify(c),"types",t),o[c].push(a),n[a][c]=!0)})};for(var f in t)u(f);var c=Object.keys(o).filter(function(t){return 0===o[t].length});for(var s in 0===c.length?e.throwArgumentError("missing primary type","types",t):c.length>1&&e.throwArgumentError("ambiguous primary types or unused types: "+c.map(function(t){return JSON.stringify(t)}).join(", "),"types",t),(0,r(d[7]).defineReadOnly)(this,"primaryType",c[0]),(function u(f,c){c[f]&&e.throwArgumentError("circular type reference to "+JSON.stringify(f),"types",t),c[f]=!0,Object.keys(n[f]).forEach(function(t){o[t]&&(u(t,c),Object.keys(c).forEach(function(n){a[n][t]=!0}))}),delete c[f]})(this.primaryType,{}),a){var h=Object.keys(a[s]);h.sort(),this._types[s]=b(s,t[s])+h.map(function(n){return b(n,t[n])}).join("")}}return o.prototype.getEncoder=function(t){var n=this._encoderCache[t];return n||(n=this._encoderCache[t]=this._getEncoder(t)),n},o.prototype._getEncoder=function(t){var n=this,o=w(t);if(o)return o;var a=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(a){var u=a[1],f=this.getEncoder(u),c=parseInt(a[3]);return function(t){c>=0&&t.length!==c&&e.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t);var o=t.map(f);return n._types[u]&&(o=o.map(r(d[5]).keccak256)),(0,r(d[5]).keccak256)((0,r(d[3]).hexConcat)(o))}}var s=this.types[t];if(s){var h=(0,r(d[6]).id)(this._types[t]);return function(t){var e=s.map(function(e){var o=e.name,a=e.type,u=n.getEncoder(a)(t[o]);return n._types[a]?(0,r(d[5]).keccak256)(u):u});return e.unshift(h),(0,r(d[3]).hexConcat)(e)}}return e.throwArgumentError("unknown type: "+t,"type",t)},o.prototype.encodeType=function(t){var n=this._types[t];return n||e.throwArgumentError("unknown type: "+JSON.stringify(t),"name",t),n},o.prototype.encodeData=function(t,n){return this.getEncoder(t)(n)},o.prototype.hashStruct=function(t,n){return(0,r(d[5]).keccak256)(this.encodeData(t,n))},o.prototype.encode=function(t){return this.encodeData(this.primaryType,t)},o.prototype.hash=function(t){return this.hashStruct(this.primaryType,t)},o.prototype._visit=function(t,n,o){var a=this;if(w(t))return o(t,n);var u=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(u){var f=u[1],c=parseInt(u[3]);return c>=0&&n.length!==c&&e.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",n),n.map(function(t){return a._visit(f,t,o)})}var s=this.types[t];return s?s.reduce(function(t,e){var u=e.name,f=e.type;return t[u]=a._visit(f,n[u],o),t},{}):e.throwArgumentError("unknown type: "+t,"type",t)},o.prototype.visit=function(t,n){return this._visit(this.primaryType,t,n)},o.from=function(t){return new o(t)},o.getPrimaryType=function(t){return o.from(t).primaryType},o.hashStruct=function(t,n,e){return o.from(n).hashStruct(t,e)},o.hashDomain=function(t){var n=[];for(var a in t){var u=p[a];u||e.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(a),"domain",t),n.push({name:a,type:u})}return n.sort(function(t,n){return l.indexOf(t.name)-l.indexOf(n.name)}),o.hashStruct("EIP712Domain",{EIP712Domain:n},t)},o.encode=function(t,n,e){return(0,r(d[3]).hexConcat)(["0x1901",o.hashDomain(t),o.from(n).hash(e)])},o.hash=function(t,n,e){return(0,r(d[5]).keccak256)(o.encode(t,n,e))},o.resolveNames=function(e,a,u,f){return t(this,void 0,void 0,function(){var t,c,s,h,y,p,l,g;return n(this,function(n){switch(n.label){case 0:for(h in e=(0,r(d[7]).shallowCopy)(e),t={},e.verifyingContract&&!(0,r(d[3]).isHexString)(e.verifyingContract,20)&&(t[e.verifyingContract]="0x"),(c=o.from(a)).visit(u,function(n,e){return"address"!==n||(0,r(d[3]).isHexString)(e,20)||(t[e]="0x"),e}),s=[],t)s.push(h);y=0,n.label=1;case 1:return y0&&s[s.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]0&&s[s.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]0&&null==t[t.length-1];)t.pop();return t.map(function(t){if(Array.isArray(t)){var e={};t.forEach(function(t){e[u(t)]=!0});var n=Object.keys(e);return n.sort(),n.join("|")}return u(t)}).join("&")}function l(t){if("string"==typeof t){if(t=t.toLowerCase(),32===(0,r(_d2[3]).hexDataLength)(t))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+c(t);if(r(_d2[4]).ForkEvent.isForkEvent(t))throw a.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+c(t.topics||[])}throw new Error("invalid event - "+t)}function h(){return(new Date).getTime()}function f(t){return new Promise(function(e){setTimeout(e,t)})}var p=["block","network","pending","poll"],d=(function(){function t(t,e,n){(0,r(_d2[5]).defineReadOnly)(this,"tag",t),(0,r(_d2[5]).defineReadOnly)(this,"listener",e),(0,r(_d2[5]).defineReadOnly)(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(t.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){var t=this.tag.split(":");return"tx"!==t[0]?null:t[1]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"filter",{get:function(){var t=this.tag.split(":");if("filter"!==t[0])return null;var e,n=t[1],o=""===(e=t[2])?[]:e.split(/&/g).map(function(t){if(""===t)return[];var e=t.split("|").map(function(t){return"null"===t?null:t});return 1===e.length?e[0]:e}),s={};return o.length>0&&(s.topics=o),n&&"*"!==n&&(s.address=n),s},enumerable:!1,configurable:!0}),t.prototype.pollable=function(){return this.tag.indexOf(":")>=0||p.indexOf(this.tag)>=0},t})();_e2.Event=d;var g={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function m(t){return(0,r(_d2[3]).hexZeroPad)(r(_d2[6]).BigNumber.from(t).toHexString(),32)}function b(t){return r(_d2[7]).Base58.encode((0,r(_d2[3]).concat)([t,(0,r(_d2[3]).hexDataSlice)((0,r(_d2[8]).sha256)((0,r(_d2[8]).sha256)(t)),0,4)]))}var v=new RegExp("^(ipfs)://(.*)$","i"),k=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),v,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function _(t,e){try{return(0,r(_d2[9]).toUtf8String)(y(t,e))}catch(t){}return null}function y(t,e){if("0x"===t)return null;var n=r(_d2[6]).BigNumber.from((0,r(_d2[3]).hexDataSlice)(t,e,e+32)).toNumber(),o=r(_d2[6]).BigNumber.from((0,r(_d2[3]).hexDataSlice)(t,n,n+32)).toNumber();return(0,r(_d2[3]).hexDataSlice)(t,n+32,n+32+o)}function w(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):a.throwArgumentError("unsupported IPFS format","link",t),"https://gateway.ipfs.io/ipfs/"+t}function N(t){var e=(0,r(_d2[3]).arrayify)(t);if(e.length>32)throw new Error("internal; should not happen");var n=new Uint8Array(32);return n.set(e,32-e.length),n}function E(t){if(t.length%32==0)return t;var e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}function R(t){for(var e=[],n=0,o=0;o=1&&u<=75)return b((0,r(_d2[3]).concat)([[n.p2pkh],"0x"+s[2]]))}}if(null!=n.p2sh){var c=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(c){var l=parseInt(c[1],16);if(c[2].length===2*l&&l>=1&&l<=75)return b((0,r(_d2[3]).concat)([[n.p2sh],"0x"+c[2]]))}}if(null!=n.prefix){var h=o[1],f=o[0];if(0===f?20!==h&&32!==h&&(f=-1):f=-1,f>=0&&o.length===2+h&&h>=1&&h<=75){var p=i.default.toWords(o.slice(2));return p.unshift(f),i.default.encode(n.prefix,p)}}return null},t.prototype.getAddress=function(t){return n(this,void 0,void 0,function(){var e,n,s,i;return o(this,function(o){switch(o.label){case 0:if(null==t&&(t=60),60!==t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return"0x"===(e=o.sent())||e===r(_d2[11]).HashZero?[2,null]:[2,this.provider.formatter.callAddress(e)];case 3:if((n=o.sent()).code===r(_d2[1]).Logger.errors.CALL_EXCEPTION)return[2,null];throw n;case 4:return[4,this._fetchBytes("0xf1cb7e06",m(t))];case 5:return null==(s=o.sent())||"0x"===s?[2,null]:(null==(i=this._getAddress(t,s))&&a.throwError("invalid or unsupported coin data",r(_d2[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+t+")",coinType:t,data:s}),[2,i])}})})},t.prototype.getAvatar=function(){return n(this,void 0,void 0,function(){var t,e,n,s,i,a,u,c,l,h,f,p,d,g,m,b,y,N,E,R,B,x;return o(this,function(o){switch(o.label){case 0:t=[{type:"name",content:this.name}],o.label=1;case 1:return o.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(null==(e=o.sent()))return[2,null];n=0,o.label=3;case 3:if(!(n=0?null:JSON.stringify({data:i,sender:n}),[4,(0,r(_d2[12]).fetchJson)({url:h,errorPassThrough:!0},f,function(t,e){return t.status=e.statusCode,t})]):[3,4];case 2:if((p=o.sent()).data)return[2,p.data];if(d=p.message||"unknown error",p.status>=400&&p.status<500)return[2,a.throwError("response not found during CCIP fetch: "+d,r(_d2[1]).Logger.errors.SERVER_ERROR,{url:l,errorMessage:d})];u.push(d),o.label=3;case 3:return c++,[3,1];case 4:return[2,a.throwError("error encountered during CCIP fetch: "+u.map(function(t){return JSON.stringify(t)}).join(", "),r(_d2[1]).Logger.errors.SERVER_ERROR,{urls:s,errorMessages:u})]}})})},s.prototype._getInternalBlockNumber=function(t){return n(this,void 0,void 0,function(){var e,n,s,i,a=this;return o(this,function(o){switch(o.label){case 0:return[4,this._ready()];case 1:if(o.sent(),!(t>0))return[3,7];o.label=2;case 2:if(!this._internalBlockNumber)return[3,7];e=this._internalBlockNumber,o.label=3;case 3:return o.trys.push([3,5,,6]),[4,e];case 4:return n=o.sent(),h()-n.respTime<=t?[2,n.blockNumber]:[3,7];case 5:return o.sent(),this._internalBlockNumber===e?[3,7]:[3,6];case 6:return[3,2];case 7:return s=h(),i=(0,r(_d2[5]).resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then(function(t){return null},function(t){return t})}).then(function(t){var e=t.blockNumber,n=t.networkError;if(n)throw a._internalBlockNumber===i&&(a._internalBlockNumber=null),n;var o=h();return(e=r(_d2[6]).BigNumber.from(e).toNumber())1e3)a.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+n+")"),this.emit("error",a.makeError("network block skew detected",r(_d2[1]).Logger.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(i=this._emitted.block+1;i<=n;i++)this.emit("block",i);return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach(function(t){if("block"!==t){var e=u._emitted[t];"pending"!==e&&n-e>12&&delete u._emitted[t]}})),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach(function(t){switch(t.type){case"tx":var o=t.hash,s=u.getTransactionReceipt(o).then(function(t){return t&&null!=t.blockNumber?(u._emitted["t:"+o]=t.blockNumber,u.emit(o,t),null):null}).catch(function(t){u.emit("error",t)});e.push(s);break;case"filter":if(!t._inflight){t._inflight=!0,-2===t._lastBlockNumber&&(t._lastBlockNumber=n-1);var i=t.filter;i.fromBlock=t._lastBlockNumber+1,i.toBlock=n;var a=i.toBlock-u._maxFilterBlockRange;a>i.fromBlock&&(i.fromBlock=a),i.fromBlock<0&&(i.fromBlock=0);s=u.getLogs(i).then(function(e){t._inflight=!1,0!==e.length&&e.forEach(function(e){e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),u._emitted["b:"+e.blockHash]=e.blockNumber,u._emitted["t:"+e.transactionHash]=e.blockNumber,u.emit(i,e)})}).catch(function(e){u.emit("error",e),t._inflight=!1});e.push(s)}}}),this._lastBlockNumber=n,Promise.all(e).then(function(){u.emit("didPoll",t)}).catch(function(t){u.emit("error",t)}),[2]}})})},s.prototype.resetEventsBlock=function(t){this._lastBlockNumber=t-1,this.polling&&this.poll()},Object.defineProperty(s.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),s.prototype.detectNetwork=function(){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,a.throwError("provider does not support network detection",r(_d2[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]})})},s.prototype.getNetwork=function(){return n(this,void 0,void 0,function(){var t,e,n;return o(this,function(o){switch(o.label){case 0:return[4,this._ready()];case 1:return t=o.sent(),[4,this.detectNetwork()];case 2:return e=o.sent(),t.chainId===e.chainId?[3,5]:this.anyNetwork?(this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),[4,f(0)]):[3,4];case 3:return o.sent(),[2,this._network];case 4:throw n=a.makeError("underlying network changed",r(_d2[1]).Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e}),this.emit("error",n),n;case 5:return[2,t]}})})},Object.defineProperty(s.prototype,"blockNumber",{get:function(){var t=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then(function(e){t._setFastBlockNumber(e)},function(t){}),null!=this._fastBlockNumber?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"polling",{get:function(){return null!=this._poller},set:function(t){var e=this;t&&!this._poller?(this._poller=setInterval(function(){e.poll()},this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout(function(){e.poll(),e._bootstrapPoll=setTimeout(function(){e._poller||e.poll(),e._bootstrapPoll=null},e.pollingInterval)},0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(t){var e=this;if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval(function(){e.poll()},this._pollingInterval))},enumerable:!1,configurable:!0}),s.prototype._getFastBlockNumber=function(){var t=this,e=h();return e-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=e,this._fastBlockNumberPromise=this.getBlockNumber().then(function(e){return(null==t._fastBlockNumber||e>t._fastBlockNumber)&&(t._fastBlockNumber=e),t._fastBlockNumber})),this._fastBlockNumberPromise},s.prototype._setFastBlockNumber=function(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))},s.prototype.waitForTransaction=function(t,e,s){return n(this,void 0,void 0,function(){return o(this,function(n){return[2,this._waitForTransaction(t,null==e?1:e,s||0,null)]})})},s.prototype._waitForTransaction=function(t,e,s,i){return n(this,void 0,void 0,function(){var u,c=this;return o(this,function(l){switch(l.label){case 0:return[4,this.getTransactionReceipt(t)];case 1:return((u=l.sent())?u.confirmations:0)>=e?[2,u]:[2,new Promise(function(u,l){var h=[],p=!1,d=function(){return!!p||(p=!0,h.forEach(function(t){t()}),!1)},g=function(t){t.confirmations0){var k=setTimeout(function(){d()||l(a.makeError("timeout exceeded",r(_d2[1]).Logger.errors.TIMEOUT,{timeout:s}))},s);k.unref&&k.unref(),h.push(function(){clearTimeout(k)})}})]}})})},s.prototype.getBlockNumber=function(){return n(this,void 0,void 0,function(){return o(this,function(t){return[2,this._getInternalBlockNumber(0)]})})},s.prototype.getGasPrice=function(){return n(this,void 0,void 0,function(){var t;return o(this,function(e){switch(e.label){case 0:return[4,this.getNetwork()];case 1:return e.sent(),[4,this.perform("getGasPrice",{})];case 2:t=e.sent();try{return[2,r(_d2[6]).BigNumber.from(t)]}catch(e){return[2,a.throwError("bad result from backend",r(_d2[1]).Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})]}return[2]}})})},s.prototype.getBalance=function(t,e){return n(this,void 0,void 0,function(){var n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,r(_d2[5]).resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return n=o.sent(),[4,this.perform("getBalance",n)];case 3:s=o.sent();try{return[2,r(_d2[6]).BigNumber.from(s)]}catch(t){return[2,a.throwError("bad result from backend",r(_d2[1]).Logger.errors.SERVER_ERROR,{method:"getBalance",params:n,result:s,error:t})]}return[2]}})})},s.prototype.getTransactionCount=function(t,e){return n(this,void 0,void 0,function(){var n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,r(_d2[5]).resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return n=o.sent(),[4,this.perform("getTransactionCount",n)];case 3:s=o.sent();try{return[2,r(_d2[6]).BigNumber.from(s).toNumber()]}catch(t){return[2,a.throwError("bad result from backend",r(_d2[1]).Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:s,error:t})]}return[2]}})})},s.prototype.getCode=function(t,e){return n(this,void 0,void 0,function(){var n,s;return o(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,r(_d2[5]).resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(e)})];case 2:return n=o.sent(),[4,this.perform("getCode",n)];case 3:s=o.sent();try{return[2,(0,r(_d2[3]).hexlify)(s)]}catch(t){return[2,a.throwError("bad result from backend",r(_d2[1]).Logger.errors.SERVER_ERROR,{method:"getCode",params:n,result:s,error:t})]}return[2]}})})},s.prototype.getStorageAt=function(t,e,s){return n(this,void 0,void 0,function(){var n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,r(_d2[5]).resolveProperties)({address:this._getAddress(t),blockTag:this._getBlockTag(s),position:Promise.resolve(e).then(function(t){return(0,r(_d2[3]).hexValue)(t)})})];case 2:return n=o.sent(),[4,this.perform("getStorageAt",n)];case 3:i=o.sent();try{return[2,(0,r(_d2[3]).hexlify)(i)]}catch(t){return[2,a.throwError("bad result from backend",r(_d2[1]).Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:i,error:t})]}return[2]}})})},s.prototype._wrapTransaction=function(t,e,s){var i=this;if(null!=e&&32!==(0,r(_d2[3]).hexDataLength)(e))throw new Error("invalid response - sendTransaction");var u=t;return null!=e&&t.hash!==e&&a.throwError("Transaction hash mismatch from Provider.sendTransaction.",r(_d2[1]).Logger.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),u.wait=function(e,u){return n(i,void 0,void 0,function(){var n,i;return o(this,function(o){switch(o.label){case 0:return null==e&&(e=1),null==u&&(u=0),n=void 0,0!==e&&null!=s&&(n={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:s}),[4,this._waitForTransaction(t.hash,e,u,n)];case 1:return null==(i=o.sent())&&0===e?[2,null]:(this._emitted["t:"+t.hash]=i.blockNumber,0===i.status&&a.throwError("transaction failed",r(_d2[1]).Logger.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:i}),[2,i])}})})},u},s.prototype.sendTransaction=function(t){return n(this,void 0,void 0,function(){var e,n,s,i,a;return o(this,function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,Promise.resolve(t).then(function(t){return(0,r(_d2[3]).hexlify)(t)})];case 2:return e=o.sent(),null==(n=this.formatter.transaction(t)).confirmations&&(n.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:s=o.sent(),o.label=4;case 4:return o.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:e})];case 5:return i=o.sent(),[2,this._wrapTransaction(n,i,s)];case 6:throw(a=o.sent()).transaction=n,a.transactionHash=n.hash,a;case 7:return[2]}})})},s.prototype._getTransactionRequest=function(t){return n(this,void 0,void 0,function(){var e,n,s,i,a=this;return o(this,function(o){switch(o.label){case 0:return[4,t];case 1:return e=o.sent(),n={},["from","to"].forEach(function(t){null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(function(t){return t?a._getAddress(t):null}))}),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach(function(t){null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(function(t){return t?r(_d2[6]).BigNumber.from(t):null}))}),["type"].forEach(function(t){null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(function(t){return null!=t?t:null}))}),e.accessList&&(n.accessList=this.formatter.accessList(e.accessList)),["data"].forEach(function(t){null!=e[t]&&(n[t]=Promise.resolve(e[t]).then(function(t){return t?(0,r(_d2[3]).hexlify)(t):null}))}),i=(s=this.formatter).transactionRequest,[4,(0,r(_d2[5]).resolveProperties)(n)];case 2:return[2,i.apply(s,[o.sent()])]}})})},s.prototype._getFilter=function(t){return n(this,void 0,void 0,function(){var e,n,s,i=this;return o(this,function(o){switch(o.label){case 0:return[4,t];case 1:return t=o.sent(),e={},null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach(function(n){null!=t[n]&&(e[n]=t[n])}),["fromBlock","toBlock"].forEach(function(n){null!=t[n]&&(e[n]=i._getBlockTag(t[n]))}),s=(n=this.formatter).filter,[4,(0,r(_d2[5]).resolveProperties)(e)];case 2:return[2,s.apply(n,[o.sent()])]}})})},s.prototype._call=function(t,e,s){return n(this,void 0,void 0,function(){var n,i,u,c,l,h,f,p,d,g,m,b,v,k,w,N;return o(this,function(o){switch(o.label){case 0:return s>=10&&a.throwError("CCIP read exceeded maximum redirections",r(_d2[1]).Logger.errors.SERVER_ERROR,{redirects:s,transaction:t}),n=t.to,[4,this.perform("call",{transaction:t,blockTag:e})];case 1:if(i=o.sent(),!(s>=0&&"latest"===e&&null!=n&&"0x556f1830"===i.substring(0,10)&&(0,r(_d2[3]).hexDataLength)(i)%32==4))return[3,5];o.label=2;case 2:for(o.trys.push([2,4,,5]),u=(0,r(_d2[3]).hexDataSlice)(i,4),c=(0,r(_d2[3]).hexDataSlice)(u,0,32),r(_d2[6]).BigNumber.from(c).eq(n)||a.throwError("CCIP Read sender did not match",r(_d2[1]).Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i}),l=[],h=r(_d2[6]).BigNumber.from((0,r(_d2[3]).hexDataSlice)(u,32,64)).toNumber(),f=r(_d2[6]).BigNumber.from((0,r(_d2[3]).hexDataSlice)(u,h,h+32)).toNumber(),p=(0,r(_d2[3]).hexDataSlice)(u,h+32),d=0;dthis._emitted.block?[2,null]:[2,void 0];if(!e)return[3,8];n=null,a=0,o.label=2;case 2:return a0},s.prototype._stopEvent=function(t){this.polling=this._events.filter(function(t){return t.pollable()}).length>0},s.prototype._addEventListener=function(t,e,n){var o=new d(l(t),e,n);return this._events.push(o),this._startEvent(o),this},s.prototype.on=function(t,e){return this._addEventListener(t,e,!1)},s.prototype.once=function(t,e){return this._addEventListener(t,e,!0)},s.prototype.emit=function(t){for(var e=this,n=[],o=1;o>25;return(33554431&t)<<5^996825010&-(1&n)^642813549&-(n>>1&1)^513874426&-(n>>2&1)^1027748829&-(n>>3&1)^705979059&-(n>>4&1)}function u(t){for(var n=1,o=0;o126)return'Invalid prefix ('+t+')';n=f(n)^i>>5}for(n=f(n),o=0;oo)return'Exceeds length limit';var i=t.toLowerCase(),s=t.toUpperCase();if(t!==i&&t!==s)return'Mixed-case string '+t;var c=(t=i).lastIndexOf('1');if(-1===c)return'No separator character for '+t;if(0===c)return'Missing prefix for '+t;var h=t.slice(0,c),l=t.slice(c+1);if(l.length<6)return'Data too short';var v=u(h);if('string'==typeof v)return v;for(var p=[],w=0;w=l.length||p.push(A)}return 1!==v?'Invalid checksum for '+t:{prefix:h,words:p}}function c(t,n,o,i){for(var f=0,u=0,s=(1<=o;)u-=o,c.push(f>>u&s);if(i)u>0&&c.push(f<=n)return'Excess padding';if(f<i)throw new TypeError('Exceeds length limit');var s=u(n=n.toLowerCase());if('string'==typeof s)throw new Error(s);for(var c=n+'1',h=0;h>5)throw new Error('Non 5-bit word');s=f(s)^l,c+=t.charAt(l)}for(h=0;h<6;++h)s=f(s);for(s^=1,h=0;h<6;++h){c+=t.charAt(s>>5*(5-h)&31)}return c},toWordsUnsafe:function(t){var n=c(t,8,5,!0);if(Array.isArray(n))return n},toWords:function(t){var n=c(t,8,5,!0);if(Array.isArray(n))return n;throw new Error(n)},fromWordsUnsafe:function(t){var n=c(t,5,8,!1);if(Array.isArray(n))return n},fromWords:function(t){var n=c(t,5,8,!1);if(Array.isArray(n))return n;throw new Error(n)}}},1383,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="providers/5.8.0"},1384,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Base58=e.Base32=e.BaseX=void 0;var t=(function(){function t(t){(0,r(d[0]).defineReadOnly)(this,"alphabet",t),(0,r(d[0]).defineReadOnly)(this,"base",t.length),(0,r(d[0]).defineReadOnly)(this,"_alphabetMap",{}),(0,r(d[0]).defineReadOnly)(this,"_leader",t.charAt(0));for(var n=0;n0;)h.push(s%this.base),s=s/this.base|0}for(var f="",l=0;0===n[l]&&l=0;--p)f+=this.alphabet[h[p]];return f},t.prototype.decode=function(t){if("string"!=typeof t)throw new TypeError("Expected String");var n=[];if(0===t.length)return new Uint8Array(n);n.push(0);for(var h=0;h>=8;for(;s>0;)n.push(255&s),s>>=8}for(var f=0;t[f]===this._leader&&f=n.length)&&56320==(64512&n.charCodeAt(r+1)))}function r(n){return(n>>>24|n>>>8&65280|n<<8&16711680|(255&n)<<24)>>>0}function t(n){return 1===n.length?'0'+n:n}function e(n){return 7===n.length?'0'+n:6===n.length?'00'+n:5===n.length?'000'+n:4===n.length?'0000'+n:3===n.length?'00000'+n:2===n.length?'000000'+n:1===n.length?'0000000'+n:n}_e.inherits=_r(_d[0]),_e.toArray=function(r,t){if(Array.isArray(r))return r.slice();if(!r)return[];var e=[];if('string'==typeof r)if(t){if('hex'===t)for((r=r.replace(/[^a-z0-9]+/gi,'')).length%2!=0&&(r='0'+r),o=0;o>6|192,e[u++]=63&i|128):n(r,o)?(i=65536+((1023&i)<<10)+(1023&r.charCodeAt(++o)),e[u++]=i>>18|240,e[u++]=i>>12&63|128,e[u++]=i>>6&63|128,e[u++]=63&i|128):(e[u++]=i>>12|224,e[u++]=i>>6&63|128,e[u++]=63&i|128)}else for(o=0;o>>0}return o},_e.split32=function(n,r){for(var t=new Array(4*n.length),e=0,u=0;e>>24,t[u+1]=o>>>16&255,t[u+2]=o>>>8&255,t[u+3]=255&o):(t[u+3]=o>>>24,t[u+2]=o>>>16&255,t[u+1]=o>>>8&255,t[u]=255&o)}return t},_e.rotr32=function(n,r){return n>>>r|n<<32-r},_e.rotl32=function(n,r){return n<>>32-r},_e.sum32=function(n,r){return n+r>>>0},_e.sum32_3=function(n,r,t){return n+r+t>>>0},_e.sum32_4=function(n,r,t,e){return n+r+t+e>>>0},_e.sum32_5=function(n,r,t,e,u){return n+r+t+e+u>>>0},_e.sum64=function(n,r,t,e){var u=n[r],o=e+n[r+1]>>>0,i=(o>>0,n[r+1]=o},_e.sum64_hi=function(n,r,t,e){return(r+e>>>0>>0},_e.sum64_lo=function(n,r,t,e){return r+e>>>0},_e.sum64_4_hi=function(n,r,t,e,u,o,i,f){var c=0,h=r;return c+=(h=h+e>>>0)>>0)>>0)>>0},_e.sum64_4_lo=function(n,r,t,e,u,o,i,f){return r+e+o+f>>>0},_e.sum64_5_hi=function(n,r,t,e,u,o,i,f,c,h){var l=0,a=r;return l+=(a=a+e>>>0)>>0)>>0)>>0)>>0},_e.sum64_5_lo=function(n,r,t,e,u,o,i,f,c,h){return r+e+o+f+h>>>0},_e.rotr64_hi=function(n,r,t){return(r<<32-t|n>>>t)>>>0},_e.rotr64_lo=function(n,r,t){return(n<<32-t|r>>>t)>>>0},_e.shr64_hi=function(n,r,t){return n>>>t},_e.shr64_lo=function(n,r,t){return(n<<32-t|r>>>t)>>>0}},1389,[1390,1391]); -__d(function(g,r,i,a,m,e,d){'function'==typeof Object.create?m.exports=function(t,o){o&&(t.super_=o,t.prototype=Object.create(o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:m.exports=function(t,o){if(o){t.super_=o;var p=function(){};p.prototype=o.prototype,t.prototype=new p,t.prototype.constructor=t}}},1390,[]); -__d(function(g,_r,i,a,m,e,d){function r(r,n){if(!r)throw new Error(n||'Assertion failed')}m.exports=r,r.equal=function(r,n,o){if(r!=n)throw new Error(o||'Assertion failed: '+r+' != '+n)}},1391,[]); -__d(function(g,_r,_i,a,m,e,d){'use strict';function t(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian='big',this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=t,t.prototype.update=function(t,i){if(t=_r(d[0]).toArray(t,i),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=_r(d[0]).join32(t,0,t.length-n,this.endian);for(var h=0;h>>24&255,h[s++]=t>>>16&255,h[s++]=t>>>8&255,h[s++]=255&t}else for(h[s++]=255&t,h[s++]=t>>>8&255,h[s++]=t>>>16&255,h[s++]=t>>>24&255,h[s++]=0,h[s++]=0,h[s++]=0,h[s++]=0,o=8;o>>3},e.g1_256=function(t){return r(d[0]).rotr32(t,17)^r(d[0]).rotr32(t,19)^t>>>10}},1395,[1389]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){if(!(this instanceof t))return new t;r(d[0]).call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r(d[1]).inherits(t,r(d[0])),m.exports=t,t.blockSize=512,t.outSize=224,t.hmacStrength=192,t.padLength=64,t.prototype._digest=function(t){return'hex'===t?r(d[1]).toHex32(this.h.slice(0,7),'big'):r(d[1]).split32(this.h.slice(0,7),'big')}},1396,[1397,1389]); -__d(function(_g,r,_i,_a,m,_e,_d){'use strict';var h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function t(){if(!(this instanceof t))return new t;r(_d[0]).BlockHash.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=h,this.W=new Array(64)}r(_d[1]).inherits(t,r(_d[0]).BlockHash),m.exports=t,t.blockSize=512,t.outSize=256,t.hmacStrength=192,t.padLength=64,t.prototype._update=function(h,t){for(var s=this.W,i=0;i<16;i++)s[i]=h[t+i];for(;ithis.blockSize&&(t=(new this.Hash).update(t).digest()),r(d[1])(t.length<=this.blockSize);for(var i=t.length;i0&&l[l.length-1])||6!==s[0]&&2!==s[0])){u=0;continue}if(3===s[0]&&(!l||s[1]>l[0]&&s[1]0&&h%1==0,"invalid connection throttle limit","connection.throttleLimit",h);var f="object"==typeof s?s.throttleCallback:null,p="object"==typeof s&&"number"==typeof s.throttleSlotInterval?s.throttleSlotInterval:100;n.assertArgument(p>0&&p%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",p);var y="object"==typeof s&&!!s.errorPassThrough,g={},v=null,b={method:"GET"},w=!1,E=12e4;if("string"==typeof s)v=s;else if("object"==typeof s){if(null!=s&&null!=s.url||n.throwArgumentError("missing URL","connection.url",s),v=s.url,"number"==typeof s.timeout&&s.timeout>0&&(E=s.timeout),s.headers)for(var R in s.headers)g[R.toLowerCase()]={key:R,value:String(s.headers[R])},["if-none-match","if-modified-since"].indexOf(R.toLowerCase())>=0&&(w=!0);if(b.allowGzip=!!s.allowGzip,null!=s.user&&null!=s.password){"https:"!==v.substring(0,6)&&!0!==s.allowInsecureAuthentication&&n.throwError("basic authentication requires a secure https url",r(d[0]).Logger.errors.INVALID_ARGUMENT,{argument:"url",url:v,user:s.user,password:"[REDACTED]"});var S=s.user+":"+s.password;g.authorization={key:"Authorization",value:"Basic "+(0,r(d[4]).encode)((0,r(d[3]).toUtf8Bytes)(S))}}null!=s.skipFetchSetup&&(b.skipFetchSetup=!!s.skipFetchSetup),null!=s.fetchOptions&&(b.fetchOptions=(0,r(d[5]).shallowCopy)(s.fetchOptions))}var C,k=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),L=v?v.match(k):null;if(L)try{var O={statusCode:200,statusMessage:"OK",headers:{"content-type":L[1]||"text/plain"},body:L[2]?(0,r(d[4]).decode)(L[3]):(C=L[3],(0,r(d[3]).toUtf8Bytes)(C.replace(/%([0-9a-f][0-9a-f])/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})))},T=O.body;return c&&(T=c(O.body,O)),Promise.resolve(T)}catch(e){n.throwError("processing response error",r(d[0]).Logger.errors.SERVER_ERROR,{body:l(L[1],L[2]),error:e,requestBody:null,requestMethod:"GET",url:v})}u&&(b.method="POST",b.body=u,null==g["content-type"]&&(g["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==g["content-length"]&&(g["content-length"]={key:"Content-Length",value:String(u.length)}));var _={};Object.keys(g).forEach(function(e){var t=g[e];_[t.key]=t.value}),b.headers=_;var M,q=(M=null,{promise:new Promise(function(e,t){E&&(M=setTimeout(function(){null!=M&&(M=null,t(n.makeError("timeout",r(d[0]).Logger.errors.TIMEOUT,{requestBody:l(b.body,_["content-type"]),requestMethod:b.method,timeout:E,url:v})))},E))}),cancel:function(){null!=M&&(clearTimeout(M),M=null)}}),B=(function(){return e(this,void 0,void 0,function(){var e,s,u,g,E,R,S,C,k;return t(this,function(t){switch(t.label){case 0:e=0,t.label=1;case 1:if(!(e=300)&&(q.cancel(),n.throwError("bad response",r(d[0]).Logger.errors.SERVER_ERROR,{status:s.statusCode,headers:s.headers,body:l(R,s.headers?s.headers["content-type"]:null),requestBody:l(b.body,_["content-type"]),requestMethod:b.method,url:v})),!c)return[3,18];t.label=11;case 11:return t.trys.push([11,13,,18]),[4,c(R,s)];case 12:return S=t.sent(),q.cancel(),[2,S];case 13:return(C=t.sent()).throttleRetry&&ec)return void(u()&&o(new Error("retry limit reached")));var f=t.interval*parseInt(String(Math.random()*Math.pow(2,h)));ft.ceiling&&(f=t.ceiling),setTimeout(l,f)}return null},function(e){u()&&o(e)})})()})}},1404,[1321,1405,1329,1348,1373,1335,1406]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="web/5.8.0"},1405,[]); -__d(function(_g,r,i,a,m,_e,d){"use strict";var e=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(c,s){function u(e){try{f(o.next(e))}catch(e){s(e)}}function l(e){try{f(o.throw(e))}catch(e){s(e)}}function f(e){var t;e.done?c(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(u,l)}f((o=o.apply(e,t||[])).next())})},t=this&&this.__generator||function(e,t){var n,o,c,s,u={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return s={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(t){return f([e,t])}}function f(s){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(c=2&s[0]?o.return:s[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,s[1])).done)return c;switch(o=0,c&&(s=[2&s[0],c.value]),s[0]){case 0:case 1:c=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,o=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!(c=u.trys,(c=c.length>0&&c[c.length-1])||6!==s[0]&&2!==s[0])){u=0;continue}if(3===s[0]&&(!c||s[1]>c[0]&&s[1]32&&o.throwArgumentError("invalid length for "+a,"transaction:"+a,t),n}function v(t,a){return{address:(0,r(d[3]).getAddress)(t),storageKeys:(a||[]).map(function(a,n){return 32!==(0,r(d[7]).hexDataLength)(a)&&o.throwArgumentError("invalid access list storageKey","accessList["+t+":"+n+"]",a),a.toLowerCase()})}}function y(t){if(Array.isArray(t))return t.map(function(t,a){return Array.isArray(t)?(t.length>2&&o.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+a+"]",t),v(t[0],t[1])):v(t.address,t.storageKeys)});var a=Object.keys(t).map(function(a){var n=t[a].reduce(function(t,a){return t[a]=!0,t},{});return v(a,Object.keys(n).sort())});return a.sort(function(t,a){return t.address.localeCompare(a.address)}),a}function x(t){return y(t).map(function(t){return[t.address,t.storageKeys]})}function P(t,a){if(null!=t.gasPrice){var n=r(d[5]).BigNumber.from(t.gasPrice),c=r(d[5]).BigNumber.from(t.maxFeePerGas||0);n.eq(c)||o.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:c})}var u=[f(t.chainId||0,"chainId"),f(t.nonce||0,"nonce"),f(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),f(t.maxFeePerGas||0,"maxFeePerGas"),f(t.gasLimit||0,"gasLimit"),null!=t.to?(0,r(d[3]).getAddress)(t.to):"0x",f(t.value||0,"value"),t.data||"0x",x(t.accessList||[])];if(a){var h=(0,r(d[7]).splitSignature)(a);u.push(f(h.recoveryParam,"recoveryParam")),u.push((0,r(d[7]).stripZeros)(h.r)),u.push((0,r(d[7]).stripZeros)(h.s))}return(0,r(d[7]).hexConcat)(["0x02",s.encode(u)])}function L(t,a){var n=[f(t.chainId||0,"chainId"),f(t.nonce||0,"nonce"),f(t.gasPrice||0,"gasPrice"),f(t.gasLimit||0,"gasLimit"),null!=t.to?(0,r(d[3]).getAddress)(t.to):"0x",f(t.value||0,"value"),t.data||"0x",x(t.accessList||[])];if(a){var o=(0,r(d[7]).splitSignature)(a);n.push(f(o.recoveryParam,"recoveryParam")),n.push((0,r(d[7]).stripZeros)(o.r)),n.push((0,r(d[7]).stripZeros)(o.s))}return(0,r(d[7]).hexConcat)(["0x01",s.encode(n)])}function b(t,a){(0,r(d[9]).checkProperties)(t,l);var n=[];h.forEach(function(a){var s=t[a.name]||[],c={};a.numeric&&(c.hexPad="left"),s=(0,r(d[7]).arrayify)((0,r(d[7]).hexlify)(s,c)),a.length&&s.length!==a.length&&s.length>0&&o.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,s),a.maxLength&&(s=(0,r(d[7]).stripZeros)(s)).length>a.maxLength&&o.throwArgumentError("invalid length for "+a.name,"transaction:"+a.name,s),n.push((0,r(d[7]).hexlify)(s))});var c=0;if(null!=t.chainId?"number"!=typeof(c=t.chainId)&&o.throwArgumentError("invalid transaction.chainId","transaction",t):a&&!(0,r(d[7]).isBytesLike)(a)&&a.v>28&&(c=Math.floor((a.v-35)/2)),0!==c&&(n.push((0,r(d[7]).hexlify)(c)),n.push("0x"),n.push("0x")),!a)return s.encode(n);var u=(0,r(d[7]).splitSignature)(a),m=27+u.recoveryParam;return 0!==c?(n.pop(),n.pop(),n.pop(),m+=2*c+8,u.v>28&&u.v!==m&&o.throwArgumentError("transaction.chainId/signature.v mismatch","signature",a)):u.v!==m&&o.throwArgumentError("transaction.chainId/signature.v mismatch","signature",a),n.push((0,r(d[7]).hexlify)(m)),n.push((0,r(d[7]).stripZeros)((0,r(d[7]).arrayify)(u.r))),n.push((0,r(d[7]).stripZeros)((0,r(d[7]).arrayify)(u.s))),s.encode(n)}function A(t,a,n){try{var s=u(a[0]).toNumber();if(0!==s&&1!==s)throw new Error("bad recid");t.v=s}catch(t){o.throwArgumentError("invalid v for transaction type: 1","v",a[0])}t.r=(0,r(d[7]).hexZeroPad)(a[1],32),t.s=(0,r(d[7]).hexZeroPad)(a[2],32);try{var c=(0,r(d[8]).keccak256)(n(t));t.from=p(c,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function w(t){var a=s.decode(t.slice(1));9!==a.length&&12!==a.length&&o.throwArgumentError("invalid component count for transaction type: 2","payload",(0,r(d[7]).hexlify)(t));var n=u(a[2]),h=u(a[3]),l={type:2,chainId:u(a[0]).toNumber(),nonce:u(a[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:h,gasPrice:null,gasLimit:u(a[4]),to:c(a[5]),value:u(a[6]),data:a[7],accessList:y(a[8])};return 9===a.length||(l.hash=(0,r(d[8]).keccak256)(t),A(l,a.slice(9),P)),l}function E(t){var a=s.decode(t.slice(1));8!==a.length&&11!==a.length&&o.throwArgumentError("invalid component count for transaction type: 1","payload",(0,r(d[7]).hexlify)(t));var n={type:1,chainId:u(a[0]).toNumber(),nonce:u(a[1]).toNumber(),gasPrice:u(a[2]),gasLimit:u(a[3]),to:c(a[4]),value:u(a[5]),data:a[6],accessList:y(a[7])};return 8===a.length||(n.hash=(0,r(d[8]).keccak256)(t),A(n,a.slice(8),L)),n}function I(t){var a=s.decode(t);9!==a.length&&6!==a.length&&o.throwArgumentError("invalid raw transaction","rawTransaction",t);var n={nonce:u(a[0]).toNumber(),gasPrice:u(a[1]),gasLimit:u(a[2]),to:c(a[3]),value:u(a[4]),data:a[5],chainId:0};if(6===a.length)return n;try{n.v=r(d[5]).BigNumber.from(a[6]).toNumber()}catch(t){return n}if(n.r=(0,r(d[7]).hexZeroPad)(a[7],32),n.s=(0,r(d[7]).hexZeroPad)(a[8],32),r(d[5]).BigNumber.from(n.r).isZero()&&r(d[5]).BigNumber.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var h=n.v-27,l=a.slice(0,6);0!==n.chainId&&(l.push((0,r(d[7]).hexlify)(n.chainId)),l.push("0x"),l.push("0x"),h-=2*n.chainId+8);var m=(0,r(d[8]).keccak256)(s.encode(l));try{n.from=p(m,{r:(0,r(d[7]).hexlify)(n.r),s:(0,r(d[7]).hexlify)(n.s),recoveryParam:h})}catch(t){}n.hash=(0,r(d[8]).keccak256)(t)}return n.type=null,n}e.computeAddress=m,e.recoverAddress=p,e.accessListify=y,e.serialize=function(t,a){if(null==t.type||0===t.type)return null!=t.accessList&&o.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",t),b(t,a);switch(t.type){case 1:return L(t,a);case 2:return P(t,a)}return o.throwError("unsupported transaction type: "+t.type,r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:t.type})},e.parse=function(t){var a=(0,r(d[7]).arrayify)(t);if(a[0]>127)return I(a);switch(a[0]){case 1:return E(a);case 2:return w(a)}return o.throwError("unsupported transaction type: "+a[0],r(d[1]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:a[0]})}},1408,[1343,1321,1409,1339,1352,1324,1410,1329,1341,1335]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="transactions/5.8.0"},1409,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.computePublicKey=e.recoverPublicKey=e.SigningKey=void 0;var t=new(r(d[0]).Logger)(r(d[1]).version),n=null;function y(){return n||(n=new(r(d[2]).EC)("secp256k1")),n}var o=(function(){function n(n){(0,r(d[3]).defineReadOnly)(this,"curve","secp256k1"),(0,r(d[3]).defineReadOnly)(this,"privateKey",(0,r(d[4]).hexlify)(n)),32!==(0,r(d[4]).hexDataLength)(this.privateKey)&&t.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var o=y().keyFromPrivate((0,r(d[4]).arrayify)(this.privateKey));(0,r(d[3]).defineReadOnly)(this,"publicKey","0x"+o.getPublic(!1,"hex")),(0,r(d[3]).defineReadOnly)(this,"compressedPublicKey","0x"+o.getPublic(!0,"hex")),(0,r(d[3]).defineReadOnly)(this,"_isSigningKey",!0)}return n.prototype._addPoint=function(t){var n=y().keyFromPublic((0,r(d[4]).arrayify)(this.publicKey)),o=y().keyFromPublic((0,r(d[4]).arrayify)(t));return"0x"+n.pub.add(o.pub).encodeCompressed("hex")},n.prototype.signDigest=function(n){var o=y().keyFromPrivate((0,r(d[4]).arrayify)(this.privateKey)),u=(0,r(d[4]).arrayify)(n);32!==u.length&&t.throwArgumentError("bad digest length","digest",n);var c=o.sign(u,{canonical:!0});return(0,r(d[4]).splitSignature)({recoveryParam:c.recoveryParam,r:(0,r(d[4]).hexZeroPad)("0x"+c.r.toString(16),32),s:(0,r(d[4]).hexZeroPad)("0x"+c.s.toString(16),32)})},n.prototype.computeSharedSecret=function(t){var n=y().keyFromPrivate((0,r(d[4]).arrayify)(this.privateKey)),o=y().keyFromPublic((0,r(d[4]).arrayify)(u(t)));return(0,r(d[4]).hexZeroPad)("0x"+n.derive(o.getPublic()).toString(16),32)},n.isSigningKey=function(t){return!(!t||!t._isSigningKey)},n})();function u(n,u){var c=(0,r(d[4]).arrayify)(n);if(32===c.length){var l=new o(c);return u?"0x"+y().keyFromPrivate(c).getPublic(!0,"hex"):l.publicKey}return 33===c.length?u?(0,r(d[4]).hexlify)(c):"0x"+y().keyFromPublic(c).getPublic(!1,"hex"):65===c.length?u?"0x"+y().keyFromPublic(c).getPublic(!0,"hex"):(0,r(d[4]).hexlify)(c):t.throwArgumentError("invalid public or private key","key","[REDACTED]")}e.SigningKey=o,e.recoverPublicKey=function(t,n){var o=(0,r(d[4]).splitSignature)(n),u={r:(0,r(d[4]).arrayify)(o.r),s:(0,r(d[4]).arrayify)(o.s)};return"0x"+y().recoverPubKey((0,r(d[4]).arrayify)(t),u,o.recoveryParam).encode("hex",!1)},e.computePublicKey=u},1410,[1321,1411,1412,1335,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="signing-key/5.8.0"},1411,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.EC=void 0;var u=t(r(d[0])).default.ec;e.EC=u},1412,[1413]); -__d(function(g,r,i,a,m,e,d){'use strict';var s=e;s.version=r(d[0]).version,s.utils=r(d[1]),s.rand=r(d[2]),s.curve=r(d[3]),s.curves=r(d[4]),s.ec=r(d[5]),s.eddsa=r(d[6])},1413,[1414,1415,1418,1419,1424,1426,1430]); -__d(function(i,t,n,e,r,s,l){r.exports={name:"elliptic",version:"6.6.1",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny ",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}},1414,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=e;n.assert=r(d[0]),n.toArray=r(d[1]).toArray,n.zero2=r(d[1]).zero2,n.toHex=r(d[1]).toHex,n.encode=r(d[1]).encode,n.getNAF=function(n,t,o){var i,u=new Array(Math.max(n.bitLength(),o)+1);for(i=0;i(c>>1)-1?(c>>1)-l:l,s.isubn(h)):h=0,u[i]=h,s.iushrn(1)}return u},n.getJSF=function(n,t){var o=[[],[]];n=n.clone(),t=t.clone();for(var i,u=0,c=0;n.cmpn(-u)>0||t.cmpn(-c)>0;){var s,h,l=n.andln(3)+u&3,f=t.andln(3)+c&3;3===l&&(l=-1),3===f&&(f=-1),s=1&l?3!==(i=n.andln(7)+u&7)&&5!==i||2!==f?l:-l:0,o[0].push(s),h=1&f?3!==(i=t.andln(7)+c&7)&&5!==i||2!==l?f:-f:0,o[1].push(h),2*u===s+1&&(u=1-u),2*c===h+1&&(c=1-c),n.iushrn(1),t.iushrn(1)}return o},n.cachedProperty=function(n,t,o){var i='_'+t;n.prototype[t]=function(){return void 0!==this[i]?this[i]:this[i]=o.call(this)}},n.parseBytes=function(t){return'string'==typeof t?n.toArray(t,'hex'):t},n.intFromLE=function(n){return new(r(d[2]))(n,'hex','le')}},1415,[1391,1416,1417]); -__d(function(g,r,_i,a,m,e,d){'use strict';var t=e;function n(t){return 1===t.length?'0'+t:t}function o(t){for(var o='',u=0;u>8,h=255&i;f?o.push(f,h):o.push(h)}return o},t.zero2=n,t.toHex=o,t.encode=function(t,n){return'hex'===n?o(t):t}},1416,[]); -__d(function(_g,_r,_i,_a,_m,_e,d){!(function(t,i){'use strict';function r(t,i){if(!t)throw new Error(i||'Assertion failed')}function n(t,i){t.super_=i;var r=function(){};r.prototype=i.prototype,t.prototype=new r,t.prototype.constructor=t}function h(t,i,r){if(h.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&('le'!==i&&'be'!==i||(r=i,i=10),this._init(t||0,i||10,r||'be'))}var e;'object'==typeof t?t.exports=h:i.BN=h,h.BN=h,h.wordSize=26;try{e='undefined'!=typeof window&&void 0!==window.Buffer?window.Buffer:_r(d[0]).Buffer}catch(t){}function o(t,i){var r=t.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(t,i,r){var n=o(t,r);return r-1>=i&&(n|=o(t,r-1)<<4),n}function u(t,i,r,n){for(var h=0,e=Math.min(t.length,r),o=i;o=49?s-49+10:s>=17?s-17+10:s}return h}h.isBN=function(t){return t instanceof h||null!==t&&'object'==typeof t&&t.constructor.wordSize===h.wordSize&&Array.isArray(t.words)},h.max=function(t,i){return t.cmp(i)>0?t:i},h.min=function(t,i){return t.cmp(i)<0?t:i},h.prototype._init=function(t,i,n){if('number'==typeof t)return this._initNumber(t,i,n);if('object'==typeof t)return this._initArray(t,i,n);'hex'===i&&(i=16),r(i===(0|i)&&i>=2&&i<=36);var h=0;'-'===(t=t.toString().replace(/\s+/g,''))[0]&&(h++,this.negative=1),h=0;h-=3)o=t[h]|t[h-1]<<8|t[h-2]<<16,this.words[e]|=o<>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);else if('le'===n)for(h=0,e=0;h>>26-s&67108863,(s+=24)>=26&&(s-=26,e++);return this.strip()},h.prototype._parseHex=function(t,i,r){this.length=Math.ceil((t.length-i)/6),this.words=new Array(this.length);for(var n=0;n=i;n-=2)h=s(t,i,n)<=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;else for(n=(t.length-i)%2==0?i+1:i;n=18?(e-=18,o+=1,this.words[o]|=h>>>26):e+=8;this.strip()},h.prototype._parseBase=function(t,i,r){this.words=[0],this.length=1;for(var n=0,h=1;h<=67108863;h*=i)n++;n--,h=h/i|0;for(var e=t.length-r,o=e%n,s=Math.min(e,e-o)+r,a=0,l=r;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},h.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},h.prototype.inspect=function(){return(this.red?''};var a=['','0','00','000','0000','00000','000000','0000000','00000000','000000000','0000000000','00000000000','000000000000','0000000000000','00000000000000','000000000000000','0000000000000000','00000000000000000','000000000000000000','0000000000000000000','00000000000000000000','000000000000000000000','0000000000000000000000','00000000000000000000000','000000000000000000000000','0000000000000000000000000'],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],m=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var i=new Array(t.bitLength()),r=0;r>>h}return i}function p(t,i,r){r.negative=i.negative^t.negative;var n=t.length+i.length|0;r.length=n,n=n-1|0;var h=0|t.words[0],e=0|i.words[0],o=h*e,s=67108863&o,u=o/67108864|0;r.words[0]=s;for(var a=1;a>>26,m=67108863&u,f=Math.min(a,i.length-1),p=Math.max(0,a-t.length+1);p<=f;p++){var M=a-p|0;l+=(o=(h=0|t.words[M])*(e=0|i.words[p])+m)/67108864|0,m=67108863&o}r.words[a]=0|m,u=0|l}return 0!==u?r.words[a]=0|u:r.length--,r.strip()}h.prototype.toString=function(t,i){var n;if(i=0|i||1,16===(t=t||10)||'hex'===t){n='';for(var h=0,e=0,o=0;o>>24-h&16777215,(h+=2)>=26&&(h-=26,o--),n=0!==e||o!==this.length-1?a[6-u.length]+u+n:u+n}for(0!==e&&(n=e.toString(16)+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}if(t===(0|t)&&t>=2&&t<=36){var f=l[t],p=m[t];n='';var M=this.clone();for(M.negative=0;!M.isZero();){var v=M.modn(p).toString(t);n=(M=M.idivn(p)).isZero()?v+n:a[f-v.length]+v+n}for(this.isZero()&&(n='0'+n);n.length%i!==0;)n='0'+n;return 0!==this.negative&&(n='-'+n),n}r(!1,'Base should be between 2 and 36')},h.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,'Number can only safely store up to 53 bits'),0!==this.negative?-t:t},h.prototype.toJSON=function(){return this.toString(16)},h.prototype.toBuffer=function(t,i){return r(void 0!==e),this.toArrayLike(e,t,i)},h.prototype.toArray=function(t,i){return this.toArrayLike(Array,t,i)},h.prototype.toArrayLike=function(t,i,n){var h=this.byteLength(),e=n||Math.max(1,h);r(h<=e,'byte array longer than desired length'),r(e>0,'Requested array length <= 0'),this.strip();var o,s,u='le'===i,a=new t(e),l=this.clone();if(u){for(s=0;!l.isZero();s++)o=l.andln(255),l.iushrn(8),a[s]=o;for(;s=4096&&(r+=13,i>>>=13),i>=64&&(r+=7,i>>>=7),i>=8&&(r+=4,i>>>=4),i>=2&&(r+=2,i>>>=2),r+i},h.prototype._zeroBits=function(t){if(0===t)return 26;var i=t,r=0;return 8191&i||(r+=13,i>>>=13),127&i||(r+=7,i>>>=7),15&i||(r+=4,i>>>=4),3&i||(r+=2,i>>>=2),1&i||r++,r},h.prototype.bitLength=function(){var t=this.words[this.length-1],i=this._countBits(t);return 26*(this.length-1)+i},h.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,i=0;it.length?this.clone().ior(t):t.clone().ior(this)},h.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},h.prototype.iuand=function(t){var i;i=this.length>t.length?t:this;for(var r=0;rt.length?this.clone().iand(t):t.clone().iand(this)},h.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},h.prototype.iuxor=function(t){var i,r;this.length>t.length?(i=this,r=t):(i=t,r=this);for(var n=0;nt.length?this.clone().ixor(t):t.clone().ixor(this)},h.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},h.prototype.inotn=function(t){r('number'==typeof t&&t>=0);var i=0|Math.ceil(t/26),n=t%26;this._expand(i),n>0&&i--;for(var h=0;h0&&(this.words[h]=~this.words[h]&67108863>>26-n),this.strip()},h.prototype.notn=function(t){return this.clone().inotn(t)},h.prototype.setn=function(t,i){r('number'==typeof t&&t>=0);var n=t/26|0,h=t%26;return this._expand(n+1),this.words[n]=i?this.words[n]|1<t.length?(r=this,n=t):(r=t,n=this);for(var h=0,e=0;e>>26;for(;0!==h&&e>>26;if(this.length=r.length,0!==h)this.words[this.length]=h,this.length++;else if(r!==this)for(;et.length?this.clone().iadd(t):t.clone().iadd(this)},h.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var i=this.iadd(t);return t.negative=1,i._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var r,n,h=this.cmp(t);if(0===h)return this.negative=0,this.length=1,this.words[0]=0,this;h>0?(r=this,n=t):(r=t,n=this);for(var e=0,o=0;o>26,this.words[o]=67108863&i;for(;0!==e&&o>26,this.words[o]=67108863&i;if(0===e&&o>>13,p=0|o[1],M=8191&p,v=p>>>13,g=0|o[2],c=8191&g,w=g>>>13,y=0|o[3],b=8191&y,_=y>>>13,k=0|o[4],A=8191&k,x=k>>>13,S=0|o[5],Z=8191&S,B=S>>>13,R=0|o[6],q=8191&R,N=R>>>13,L=0|o[7],I=8191&L,z=L>>>13,T=0|o[8],E=8191&T,O=T>>>13,j=0|o[9],K=8191&j,P=j>>>13,F=0|s[0],C=8191&F,D=F>>>13,H=0|s[1],J=8191&H,U=H>>>13,G=0|s[2],Q=8191&G,V=G>>>13,W=0|s[3],X=8191&W,Y=W>>>13,$=0|s[4],tt=8191&$,it=$>>>13,rt=0|s[5],nt=8191&rt,ht=rt>>>13,et=0|s[6],ot=8191&et,st=et>>>13,ut=0|s[7],at=8191&ut,lt=ut>>>13,mt=0|s[8],ft=8191&mt,dt=mt>>>13,pt=0|s[9],Mt=8191&pt,vt=pt>>>13;r.negative=t.negative^i.negative,r.length=19;var gt=(a+(n=Math.imul(m,C))|0)+((8191&(h=(h=Math.imul(m,D))+Math.imul(f,C)|0))<<13)|0;a=((e=Math.imul(f,D))+(h>>>13)|0)+(gt>>>26)|0,gt&=67108863,n=Math.imul(M,C),h=(h=Math.imul(M,D))+Math.imul(v,C)|0,e=Math.imul(v,D);var ct=(a+(n=n+Math.imul(m,J)|0)|0)+((8191&(h=(h=h+Math.imul(m,U)|0)+Math.imul(f,J)|0))<<13)|0;a=((e=e+Math.imul(f,U)|0)+(h>>>13)|0)+(ct>>>26)|0,ct&=67108863,n=Math.imul(c,C),h=(h=Math.imul(c,D))+Math.imul(w,C)|0,e=Math.imul(w,D),n=n+Math.imul(M,J)|0,h=(h=h+Math.imul(M,U)|0)+Math.imul(v,J)|0,e=e+Math.imul(v,U)|0;var wt=(a+(n=n+Math.imul(m,Q)|0)|0)+((8191&(h=(h=h+Math.imul(m,V)|0)+Math.imul(f,Q)|0))<<13)|0;a=((e=e+Math.imul(f,V)|0)+(h>>>13)|0)+(wt>>>26)|0,wt&=67108863,n=Math.imul(b,C),h=(h=Math.imul(b,D))+Math.imul(_,C)|0,e=Math.imul(_,D),n=n+Math.imul(c,J)|0,h=(h=h+Math.imul(c,U)|0)+Math.imul(w,J)|0,e=e+Math.imul(w,U)|0,n=n+Math.imul(M,Q)|0,h=(h=h+Math.imul(M,V)|0)+Math.imul(v,Q)|0,e=e+Math.imul(v,V)|0;var yt=(a+(n=n+Math.imul(m,X)|0)|0)+((8191&(h=(h=h+Math.imul(m,Y)|0)+Math.imul(f,X)|0))<<13)|0;a=((e=e+Math.imul(f,Y)|0)+(h>>>13)|0)+(yt>>>26)|0,yt&=67108863,n=Math.imul(A,C),h=(h=Math.imul(A,D))+Math.imul(x,C)|0,e=Math.imul(x,D),n=n+Math.imul(b,J)|0,h=(h=h+Math.imul(b,U)|0)+Math.imul(_,J)|0,e=e+Math.imul(_,U)|0,n=n+Math.imul(c,Q)|0,h=(h=h+Math.imul(c,V)|0)+Math.imul(w,Q)|0,e=e+Math.imul(w,V)|0,n=n+Math.imul(M,X)|0,h=(h=h+Math.imul(M,Y)|0)+Math.imul(v,X)|0,e=e+Math.imul(v,Y)|0;var bt=(a+(n=n+Math.imul(m,tt)|0)|0)+((8191&(h=(h=h+Math.imul(m,it)|0)+Math.imul(f,tt)|0))<<13)|0;a=((e=e+Math.imul(f,it)|0)+(h>>>13)|0)+(bt>>>26)|0,bt&=67108863,n=Math.imul(Z,C),h=(h=Math.imul(Z,D))+Math.imul(B,C)|0,e=Math.imul(B,D),n=n+Math.imul(A,J)|0,h=(h=h+Math.imul(A,U)|0)+Math.imul(x,J)|0,e=e+Math.imul(x,U)|0,n=n+Math.imul(b,Q)|0,h=(h=h+Math.imul(b,V)|0)+Math.imul(_,Q)|0,e=e+Math.imul(_,V)|0,n=n+Math.imul(c,X)|0,h=(h=h+Math.imul(c,Y)|0)+Math.imul(w,X)|0,e=e+Math.imul(w,Y)|0,n=n+Math.imul(M,tt)|0,h=(h=h+Math.imul(M,it)|0)+Math.imul(v,tt)|0,e=e+Math.imul(v,it)|0;var _t=(a+(n=n+Math.imul(m,nt)|0)|0)+((8191&(h=(h=h+Math.imul(m,ht)|0)+Math.imul(f,nt)|0))<<13)|0;a=((e=e+Math.imul(f,ht)|0)+(h>>>13)|0)+(_t>>>26)|0,_t&=67108863,n=Math.imul(q,C),h=(h=Math.imul(q,D))+Math.imul(N,C)|0,e=Math.imul(N,D),n=n+Math.imul(Z,J)|0,h=(h=h+Math.imul(Z,U)|0)+Math.imul(B,J)|0,e=e+Math.imul(B,U)|0,n=n+Math.imul(A,Q)|0,h=(h=h+Math.imul(A,V)|0)+Math.imul(x,Q)|0,e=e+Math.imul(x,V)|0,n=n+Math.imul(b,X)|0,h=(h=h+Math.imul(b,Y)|0)+Math.imul(_,X)|0,e=e+Math.imul(_,Y)|0,n=n+Math.imul(c,tt)|0,h=(h=h+Math.imul(c,it)|0)+Math.imul(w,tt)|0,e=e+Math.imul(w,it)|0,n=n+Math.imul(M,nt)|0,h=(h=h+Math.imul(M,ht)|0)+Math.imul(v,nt)|0,e=e+Math.imul(v,ht)|0;var kt=(a+(n=n+Math.imul(m,ot)|0)|0)+((8191&(h=(h=h+Math.imul(m,st)|0)+Math.imul(f,ot)|0))<<13)|0;a=((e=e+Math.imul(f,st)|0)+(h>>>13)|0)+(kt>>>26)|0,kt&=67108863,n=Math.imul(I,C),h=(h=Math.imul(I,D))+Math.imul(z,C)|0,e=Math.imul(z,D),n=n+Math.imul(q,J)|0,h=(h=h+Math.imul(q,U)|0)+Math.imul(N,J)|0,e=e+Math.imul(N,U)|0,n=n+Math.imul(Z,Q)|0,h=(h=h+Math.imul(Z,V)|0)+Math.imul(B,Q)|0,e=e+Math.imul(B,V)|0,n=n+Math.imul(A,X)|0,h=(h=h+Math.imul(A,Y)|0)+Math.imul(x,X)|0,e=e+Math.imul(x,Y)|0,n=n+Math.imul(b,tt)|0,h=(h=h+Math.imul(b,it)|0)+Math.imul(_,tt)|0,e=e+Math.imul(_,it)|0,n=n+Math.imul(c,nt)|0,h=(h=h+Math.imul(c,ht)|0)+Math.imul(w,nt)|0,e=e+Math.imul(w,ht)|0,n=n+Math.imul(M,ot)|0,h=(h=h+Math.imul(M,st)|0)+Math.imul(v,ot)|0,e=e+Math.imul(v,st)|0;var At=(a+(n=n+Math.imul(m,at)|0)|0)+((8191&(h=(h=h+Math.imul(m,lt)|0)+Math.imul(f,at)|0))<<13)|0;a=((e=e+Math.imul(f,lt)|0)+(h>>>13)|0)+(At>>>26)|0,At&=67108863,n=Math.imul(E,C),h=(h=Math.imul(E,D))+Math.imul(O,C)|0,e=Math.imul(O,D),n=n+Math.imul(I,J)|0,h=(h=h+Math.imul(I,U)|0)+Math.imul(z,J)|0,e=e+Math.imul(z,U)|0,n=n+Math.imul(q,Q)|0,h=(h=h+Math.imul(q,V)|0)+Math.imul(N,Q)|0,e=e+Math.imul(N,V)|0,n=n+Math.imul(Z,X)|0,h=(h=h+Math.imul(Z,Y)|0)+Math.imul(B,X)|0,e=e+Math.imul(B,Y)|0,n=n+Math.imul(A,tt)|0,h=(h=h+Math.imul(A,it)|0)+Math.imul(x,tt)|0,e=e+Math.imul(x,it)|0,n=n+Math.imul(b,nt)|0,h=(h=h+Math.imul(b,ht)|0)+Math.imul(_,nt)|0,e=e+Math.imul(_,ht)|0,n=n+Math.imul(c,ot)|0,h=(h=h+Math.imul(c,st)|0)+Math.imul(w,ot)|0,e=e+Math.imul(w,st)|0,n=n+Math.imul(M,at)|0,h=(h=h+Math.imul(M,lt)|0)+Math.imul(v,at)|0,e=e+Math.imul(v,lt)|0;var xt=(a+(n=n+Math.imul(m,ft)|0)|0)+((8191&(h=(h=h+Math.imul(m,dt)|0)+Math.imul(f,ft)|0))<<13)|0;a=((e=e+Math.imul(f,dt)|0)+(h>>>13)|0)+(xt>>>26)|0,xt&=67108863,n=Math.imul(K,C),h=(h=Math.imul(K,D))+Math.imul(P,C)|0,e=Math.imul(P,D),n=n+Math.imul(E,J)|0,h=(h=h+Math.imul(E,U)|0)+Math.imul(O,J)|0,e=e+Math.imul(O,U)|0,n=n+Math.imul(I,Q)|0,h=(h=h+Math.imul(I,V)|0)+Math.imul(z,Q)|0,e=e+Math.imul(z,V)|0,n=n+Math.imul(q,X)|0,h=(h=h+Math.imul(q,Y)|0)+Math.imul(N,X)|0,e=e+Math.imul(N,Y)|0,n=n+Math.imul(Z,tt)|0,h=(h=h+Math.imul(Z,it)|0)+Math.imul(B,tt)|0,e=e+Math.imul(B,it)|0,n=n+Math.imul(A,nt)|0,h=(h=h+Math.imul(A,ht)|0)+Math.imul(x,nt)|0,e=e+Math.imul(x,ht)|0,n=n+Math.imul(b,ot)|0,h=(h=h+Math.imul(b,st)|0)+Math.imul(_,ot)|0,e=e+Math.imul(_,st)|0,n=n+Math.imul(c,at)|0,h=(h=h+Math.imul(c,lt)|0)+Math.imul(w,at)|0,e=e+Math.imul(w,lt)|0,n=n+Math.imul(M,ft)|0,h=(h=h+Math.imul(M,dt)|0)+Math.imul(v,ft)|0,e=e+Math.imul(v,dt)|0;var St=(a+(n=n+Math.imul(m,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(m,vt)|0)+Math.imul(f,Mt)|0))<<13)|0;a=((e=e+Math.imul(f,vt)|0)+(h>>>13)|0)+(St>>>26)|0,St&=67108863,n=Math.imul(K,J),h=(h=Math.imul(K,U))+Math.imul(P,J)|0,e=Math.imul(P,U),n=n+Math.imul(E,Q)|0,h=(h=h+Math.imul(E,V)|0)+Math.imul(O,Q)|0,e=e+Math.imul(O,V)|0,n=n+Math.imul(I,X)|0,h=(h=h+Math.imul(I,Y)|0)+Math.imul(z,X)|0,e=e+Math.imul(z,Y)|0,n=n+Math.imul(q,tt)|0,h=(h=h+Math.imul(q,it)|0)+Math.imul(N,tt)|0,e=e+Math.imul(N,it)|0,n=n+Math.imul(Z,nt)|0,h=(h=h+Math.imul(Z,ht)|0)+Math.imul(B,nt)|0,e=e+Math.imul(B,ht)|0,n=n+Math.imul(A,ot)|0,h=(h=h+Math.imul(A,st)|0)+Math.imul(x,ot)|0,e=e+Math.imul(x,st)|0,n=n+Math.imul(b,at)|0,h=(h=h+Math.imul(b,lt)|0)+Math.imul(_,at)|0,e=e+Math.imul(_,lt)|0,n=n+Math.imul(c,ft)|0,h=(h=h+Math.imul(c,dt)|0)+Math.imul(w,ft)|0,e=e+Math.imul(w,dt)|0;var Zt=(a+(n=n+Math.imul(M,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(M,vt)|0)+Math.imul(v,Mt)|0))<<13)|0;a=((e=e+Math.imul(v,vt)|0)+(h>>>13)|0)+(Zt>>>26)|0,Zt&=67108863,n=Math.imul(K,Q),h=(h=Math.imul(K,V))+Math.imul(P,Q)|0,e=Math.imul(P,V),n=n+Math.imul(E,X)|0,h=(h=h+Math.imul(E,Y)|0)+Math.imul(O,X)|0,e=e+Math.imul(O,Y)|0,n=n+Math.imul(I,tt)|0,h=(h=h+Math.imul(I,it)|0)+Math.imul(z,tt)|0,e=e+Math.imul(z,it)|0,n=n+Math.imul(q,nt)|0,h=(h=h+Math.imul(q,ht)|0)+Math.imul(N,nt)|0,e=e+Math.imul(N,ht)|0,n=n+Math.imul(Z,ot)|0,h=(h=h+Math.imul(Z,st)|0)+Math.imul(B,ot)|0,e=e+Math.imul(B,st)|0,n=n+Math.imul(A,at)|0,h=(h=h+Math.imul(A,lt)|0)+Math.imul(x,at)|0,e=e+Math.imul(x,lt)|0,n=n+Math.imul(b,ft)|0,h=(h=h+Math.imul(b,dt)|0)+Math.imul(_,ft)|0,e=e+Math.imul(_,dt)|0;var Bt=(a+(n=n+Math.imul(c,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(c,vt)|0)+Math.imul(w,Mt)|0))<<13)|0;a=((e=e+Math.imul(w,vt)|0)+(h>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,n=Math.imul(K,X),h=(h=Math.imul(K,Y))+Math.imul(P,X)|0,e=Math.imul(P,Y),n=n+Math.imul(E,tt)|0,h=(h=h+Math.imul(E,it)|0)+Math.imul(O,tt)|0,e=e+Math.imul(O,it)|0,n=n+Math.imul(I,nt)|0,h=(h=h+Math.imul(I,ht)|0)+Math.imul(z,nt)|0,e=e+Math.imul(z,ht)|0,n=n+Math.imul(q,ot)|0,h=(h=h+Math.imul(q,st)|0)+Math.imul(N,ot)|0,e=e+Math.imul(N,st)|0,n=n+Math.imul(Z,at)|0,h=(h=h+Math.imul(Z,lt)|0)+Math.imul(B,at)|0,e=e+Math.imul(B,lt)|0,n=n+Math.imul(A,ft)|0,h=(h=h+Math.imul(A,dt)|0)+Math.imul(x,ft)|0,e=e+Math.imul(x,dt)|0;var Rt=(a+(n=n+Math.imul(b,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(b,vt)|0)+Math.imul(_,Mt)|0))<<13)|0;a=((e=e+Math.imul(_,vt)|0)+(h>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,n=Math.imul(K,tt),h=(h=Math.imul(K,it))+Math.imul(P,tt)|0,e=Math.imul(P,it),n=n+Math.imul(E,nt)|0,h=(h=h+Math.imul(E,ht)|0)+Math.imul(O,nt)|0,e=e+Math.imul(O,ht)|0,n=n+Math.imul(I,ot)|0,h=(h=h+Math.imul(I,st)|0)+Math.imul(z,ot)|0,e=e+Math.imul(z,st)|0,n=n+Math.imul(q,at)|0,h=(h=h+Math.imul(q,lt)|0)+Math.imul(N,at)|0,e=e+Math.imul(N,lt)|0,n=n+Math.imul(Z,ft)|0,h=(h=h+Math.imul(Z,dt)|0)+Math.imul(B,ft)|0,e=e+Math.imul(B,dt)|0;var qt=(a+(n=n+Math.imul(A,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(A,vt)|0)+Math.imul(x,Mt)|0))<<13)|0;a=((e=e+Math.imul(x,vt)|0)+(h>>>13)|0)+(qt>>>26)|0,qt&=67108863,n=Math.imul(K,nt),h=(h=Math.imul(K,ht))+Math.imul(P,nt)|0,e=Math.imul(P,ht),n=n+Math.imul(E,ot)|0,h=(h=h+Math.imul(E,st)|0)+Math.imul(O,ot)|0,e=e+Math.imul(O,st)|0,n=n+Math.imul(I,at)|0,h=(h=h+Math.imul(I,lt)|0)+Math.imul(z,at)|0,e=e+Math.imul(z,lt)|0,n=n+Math.imul(q,ft)|0,h=(h=h+Math.imul(q,dt)|0)+Math.imul(N,ft)|0,e=e+Math.imul(N,dt)|0;var Nt=(a+(n=n+Math.imul(Z,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(Z,vt)|0)+Math.imul(B,Mt)|0))<<13)|0;a=((e=e+Math.imul(B,vt)|0)+(h>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,n=Math.imul(K,ot),h=(h=Math.imul(K,st))+Math.imul(P,ot)|0,e=Math.imul(P,st),n=n+Math.imul(E,at)|0,h=(h=h+Math.imul(E,lt)|0)+Math.imul(O,at)|0,e=e+Math.imul(O,lt)|0,n=n+Math.imul(I,ft)|0,h=(h=h+Math.imul(I,dt)|0)+Math.imul(z,ft)|0,e=e+Math.imul(z,dt)|0;var Lt=(a+(n=n+Math.imul(q,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(q,vt)|0)+Math.imul(N,Mt)|0))<<13)|0;a=((e=e+Math.imul(N,vt)|0)+(h>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,n=Math.imul(K,at),h=(h=Math.imul(K,lt))+Math.imul(P,at)|0,e=Math.imul(P,lt),n=n+Math.imul(E,ft)|0,h=(h=h+Math.imul(E,dt)|0)+Math.imul(O,ft)|0,e=e+Math.imul(O,dt)|0;var It=(a+(n=n+Math.imul(I,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(I,vt)|0)+Math.imul(z,Mt)|0))<<13)|0;a=((e=e+Math.imul(z,vt)|0)+(h>>>13)|0)+(It>>>26)|0,It&=67108863,n=Math.imul(K,ft),h=(h=Math.imul(K,dt))+Math.imul(P,ft)|0,e=Math.imul(P,dt);var zt=(a+(n=n+Math.imul(E,Mt)|0)|0)+((8191&(h=(h=h+Math.imul(E,vt)|0)+Math.imul(O,Mt)|0))<<13)|0;a=((e=e+Math.imul(O,vt)|0)+(h>>>13)|0)+(zt>>>26)|0,zt&=67108863;var Tt=(a+(n=Math.imul(K,Mt))|0)+((8191&(h=(h=Math.imul(K,vt))+Math.imul(P,Mt)|0))<<13)|0;return a=((e=Math.imul(P,vt))+(h>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,u[0]=gt,u[1]=ct,u[2]=wt,u[3]=yt,u[4]=bt,u[5]=_t,u[6]=kt,u[7]=At,u[8]=xt,u[9]=St,u[10]=Zt,u[11]=Bt,u[12]=Rt,u[13]=qt,u[14]=Nt,u[15]=Lt,u[16]=It,u[17]=zt,u[18]=Tt,0!==a&&(u[19]=a,r.length++),r};function v(t,i,r){r.negative=i.negative^t.negative,r.length=t.length+i.length;for(var n=0,h=0,e=0;e>>26)|0)>>>26,o&=67108863}r.words[e]=s,n=o,o=h}return 0!==n?r.words[e]=n:r.length--,r.strip()}function g(t,i,r){return(new c).mulp(t,i,r)}function c(t,i){this.x=t,this.y=i}Math.imul||(M=p),h.prototype.mulTo=function(t,i){var r=this.length+t.length;return 10===this.length&&10===t.length?M(this,t,i):r<63?p(this,t,i):r<1024?v(this,t,i):g(this,t,i)},c.prototype.makeRBT=function(t){for(var i=new Array(t),r=h.prototype._countBits(t)-1,n=0;n>=1;return n},c.prototype.permute=function(t,i,r,n,h,e){for(var o=0;o>>=1)h++;return 1<>>=13,n[2*o+1]=8191&e,e>>>=13;for(o=2*i;o>=26,i+=h/67108864|0,i+=e>>>26,this.words[n]=67108863&e}return 0!==i&&(this.words[n]=i,this.length++),this.length=0===t?1:this.length,this},h.prototype.muln=function(t){return this.clone().imuln(t)},h.prototype.sqr=function(){return this.mul(this)},h.prototype.isqr=function(){return this.imul(this.clone())},h.prototype.pow=function(t){var i=f(t);if(0===i.length)return new h(1);for(var r=this,n=0;n=0);var i,n=t%26,h=(t-n)/26,e=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(i=0;i>>26-n}o&&(this.words[i]=o,this.length++)}if(0!==h){for(i=this.length-1;i>=0;i--)this.words[i+h]=this.words[i];for(i=0;i=0),h=i?(i-i%26)/26:0;var e=t%26,o=Math.min((t-e)/26,this.length),s=67108863^67108863>>>e<o)for(this.length-=o,a=0;a=0&&(0!==l||a>=h);a--){var m=0|this.words[a];this.words[a]=l<<26-e|m>>>e,l=m&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},h.prototype.ishrn=function(t,i,n){return r(0===this.negative),this.iushrn(t,i,n)},h.prototype.shln=function(t){return this.clone().ishln(t)},h.prototype.ushln=function(t){return this.clone().iushln(t)},h.prototype.shrn=function(t){return this.clone().ishrn(t)},h.prototype.ushrn=function(t){return this.clone().iushrn(t)},h.prototype.testn=function(t){r('number'==typeof t&&t>=0);var i=t%26,n=(t-i)/26,h=1<=0);var i=t%26,n=(t-i)/26;if(r(0===this.negative,'imaskn works only with positive numbers'),this.length<=n)return this;if(0!==i&&n++,this.length=Math.min(n,this.length),0!==i){var h=67108863^67108863>>>i<=67108864;i++)this.words[i]-=67108864,i===this.length-1?this.words[i+1]=1:this.words[i+1]++;return this.length=Math.max(this.length,i+1),this},h.prototype.isubn=function(t){if(r('number'==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var i=0;i>26)-(u/67108864|0),this.words[h+n]=67108863&e}for(;h>26,this.words[h+n]=67108863&e;if(0===s)return this.strip();for(r(-1===s),s=0,h=0;h>26,this.words[h]=67108863&e;return this.negative=1,this.strip()},h.prototype._wordDiv=function(t,i){var r=(this.length,t.length),n=this.clone(),e=t,o=0|e.words[e.length-1];0!==(r=26-this._countBits(o))&&(e=e.ushln(r),n.iushln(r),o=0|e.words[e.length-1]);var s,u=n.length-e.length;if('mod'!==i){(s=new h(null)).length=u+1,s.words=new Array(s.length);for(var a=0;a=0;m--){var f=67108864*(0|n.words[e.length+m])+(0|n.words[e.length+m-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(e,f,m);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(e,1,m),n.isZero()||(n.negative^=1);s&&(s.words[m]=f)}return s&&s.strip(),n.strip(),'div'!==i&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},h.prototype.divmod=function(t,i,n){return r(!t.isZero()),this.isZero()?{div:new h(0),mod:new h(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,i),'mod'!==i&&(e=s.div.neg()),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:e,mod:o}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),i),'mod'!==i&&(e=s.div.neg()),{div:e,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),i),'div'!==i&&(o=s.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:s.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new h(0),mod:this}:1===t.length?'div'===i?{div:this.divn(t.words[0]),mod:null}:'mod'===i?{div:null,mod:new h(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new h(this.modn(t.words[0]))}:this._wordDiv(t,i);var e,o,s},h.prototype.div=function(t){return this.divmod(t,'div',!1).div},h.prototype.mod=function(t){return this.divmod(t,'mod',!1).mod},h.prototype.umod=function(t){return this.divmod(t,'mod',!0).mod},h.prototype.divRound=function(t){var i=this.divmod(t);if(i.mod.isZero())return i.div;var r=0!==i.div.negative?i.mod.isub(t):i.mod,n=t.ushrn(1),h=t.andln(1),e=r.cmp(n);return e<0||1===h&&0===e?i.div:0!==i.div.negative?i.div.isubn(1):i.div.iaddn(1)},h.prototype.modn=function(t){r(t<=67108863);for(var i=67108864%t,n=0,h=this.length-1;h>=0;h--)n=(i*n+(0|this.words[h]))%t;return n},h.prototype.idivn=function(t){r(t<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var h=(0|this.words[n])+67108864*i;this.words[n]=h/t|0,i=h%t}return this.strip()},h.prototype.divn=function(t){return this.clone().idivn(t)},h.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e=new h(1),o=new h(0),s=new h(0),u=new h(1),a=0;i.isEven()&&n.isEven();)i.iushrn(1),n.iushrn(1),++a;for(var l=n.clone(),m=i.clone();!i.isZero();){for(var f=0,p=1;0===(i.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(e.isOdd()||o.isOdd())&&(e.iadd(l),o.isub(m)),e.iushrn(1),o.iushrn(1);for(var M=0,v=1;0===(n.words[0]&v)&&M<26;++M,v<<=1);if(M>0)for(n.iushrn(M);M-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(m)),s.iushrn(1),u.iushrn(1);i.cmp(n)>=0?(i.isub(n),e.isub(s),o.isub(u)):(n.isub(i),s.isub(e),u.isub(o))}return{a:s,b:u,gcd:n.iushln(a)}},h.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var i=this,n=t.clone();i=0!==i.negative?i.umod(t):i.clone();for(var e,o=new h(1),s=new h(0),u=n.clone();i.cmpn(1)>0&&n.cmpn(1)>0;){for(var a=0,l=1;0===(i.words[0]&l)&&a<26;++a,l<<=1);if(a>0)for(i.iushrn(a);a-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);for(var m=0,f=1;0===(n.words[0]&f)&&m<26;++m,f<<=1);if(m>0)for(n.iushrn(m);m-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);i.cmp(n)>=0?(i.isub(n),o.isub(s)):(n.isub(i),s.isub(o))}return(e=0===i.cmpn(1)?o:s).cmpn(0)<0&&e.iadd(t),e},h.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var i=this.clone(),r=t.clone();i.negative=0,r.negative=0;for(var n=0;i.isEven()&&r.isEven();n++)i.iushrn(1),r.iushrn(1);for(;;){for(;i.isEven();)i.iushrn(1);for(;r.isEven();)r.iushrn(1);var h=i.cmp(r);if(h<0){var e=i;i=r,r=e}else if(0===h||0===r.cmpn(1))break;i.isub(r)}return r.iushln(n)},h.prototype.invm=function(t){return this.egcd(t).a.umod(t)},h.prototype.isEven=function(){return!(1&this.words[0])},h.prototype.isOdd=function(){return!(1&~this.words[0])},h.prototype.andln=function(t){return this.words[0]&t},h.prototype.bincn=function(t){r('number'==typeof t);var i=t%26,n=(t-i)/26,h=1<>>26,s&=67108863,this.words[o]=s}return 0!==e&&(this.words[o]=e,this.length++),this},h.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},h.prototype.cmpn=function(t){var i,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)i=1;else{n&&(t=-t),r(t<=67108863,'Number is too big');var h=0|this.words[0];i=h===t?0:ht.length)return 1;if(this.length=0;r--){var n=0|this.words[r],h=0|t.words[r];if(n!==h){nh&&(i=1);break}}return i},h.prototype.gtn=function(t){return 1===this.cmpn(t)},h.prototype.gt=function(t){return 1===this.cmp(t)},h.prototype.gten=function(t){return this.cmpn(t)>=0},h.prototype.gte=function(t){return this.cmp(t)>=0},h.prototype.ltn=function(t){return-1===this.cmpn(t)},h.prototype.lt=function(t){return-1===this.cmp(t)},h.prototype.lten=function(t){return this.cmpn(t)<=0},h.prototype.lte=function(t){return this.cmp(t)<=0},h.prototype.eqn=function(t){return 0===this.cmpn(t)},h.prototype.eq=function(t){return 0===this.cmp(t)},h.red=function(t){return new x(t)},h.prototype.toRed=function(t){return r(!this.red,'Already a number in reduction context'),r(0===this.negative,'red works only with positives'),t.convertTo(this)._forceRed(t)},h.prototype.fromRed=function(){return r(this.red,'fromRed works only with numbers in reduction context'),this.red.convertFrom(this)},h.prototype._forceRed=function(t){return this.red=t,this},h.prototype.forceRed=function(t){return r(!this.red,'Already a number in reduction context'),this._forceRed(t)},h.prototype.redAdd=function(t){return r(this.red,'redAdd works only with red numbers'),this.red.add(this,t)},h.prototype.redIAdd=function(t){return r(this.red,'redIAdd works only with red numbers'),this.red.iadd(this,t)},h.prototype.redSub=function(t){return r(this.red,'redSub works only with red numbers'),this.red.sub(this,t)},h.prototype.redISub=function(t){return r(this.red,'redISub works only with red numbers'),this.red.isub(this,t)},h.prototype.redShl=function(t){return r(this.red,'redShl works only with red numbers'),this.red.shl(this,t)},h.prototype.redMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.mul(this,t)},h.prototype.redIMul=function(t){return r(this.red,'redMul works only with red numbers'),this.red._verify2(this,t),this.red.imul(this,t)},h.prototype.redSqr=function(){return r(this.red,'redSqr works only with red numbers'),this.red._verify1(this),this.red.sqr(this)},h.prototype.redISqr=function(){return r(this.red,'redISqr works only with red numbers'),this.red._verify1(this),this.red.isqr(this)},h.prototype.redSqrt=function(){return r(this.red,'redSqrt works only with red numbers'),this.red._verify1(this),this.red.sqrt(this)},h.prototype.redInvm=function(){return r(this.red,'redInvm works only with red numbers'),this.red._verify1(this),this.red.invm(this)},h.prototype.redNeg=function(){return r(this.red,'redNeg works only with red numbers'),this.red._verify1(this),this.red.neg(this)},h.prototype.redPow=function(t){return r(this.red&&!t.red,'redPow(normalNum)'),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function y(t,i){this.name=t,this.p=new h(i,16),this.n=this.p.bitLength(),this.k=new h(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){y.call(this,'k256','ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f')}function _(){y.call(this,'p224','ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001')}function k(){y.call(this,'p192','ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff')}function A(){y.call(this,'25519','7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed')}function x(t){if('string'==typeof t){var i=h._prime(t);this.m=i.p,this.prime=i}else r(t.gtn(1),'modulus must be greater than 1'),this.m=t,this.prime=null}function S(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new h(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}y.prototype._tmp=function(){var t=new h(null);return t.words=new Array(Math.ceil(this.n/13)),t},y.prototype.ireduce=function(t){var i,r=t;do{this.split(r,this.tmp),i=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(i>this.n);var n=i0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},y.prototype.split=function(t,i){t.iushrn(this.n,0,i)},y.prototype.imulK=function(t){return t.imul(this.k)},n(b,y),b.prototype.split=function(t,i){for(var r=4194303,n=Math.min(t.length,9),h=0;h>>22,e=o}e>>>=22,t.words[h-10]=e,0===e&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var i=0,r=0;r>>=26,t.words[r]=h,i=n}return 0!==i&&(t.words[t.length++]=i),t},h._prime=function(t){if(w[t])return w[t];var i;if('k256'===t)i=new b;else if('p224'===t)i=new _;else if('p192'===t)i=new k;else{if('p25519'!==t)throw new Error('Unknown prime '+t);i=new A}return w[t]=i,i},x.prototype._verify1=function(t){r(0===t.negative,'red works only with positives'),r(t.red,'red works only with red numbers')},x.prototype._verify2=function(t,i){r(0===(t.negative|i.negative),'red works only with positives'),r(t.red&&t.red===i.red,'red works only with red numbers')},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,i){this._verify2(t,i);var r=t.add(i);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(t,i){this._verify2(t,i);var r=t.iadd(i);return r.cmp(this.m)>=0&&r.isub(this.m),r},x.prototype.sub=function(t,i){this._verify2(t,i);var r=t.sub(i);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(t,i){this._verify2(t,i);var r=t.isub(i);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(t,i){return this._verify1(t),this.imod(t.ushln(i))},x.prototype.imul=function(t,i){return this._verify2(t,i),this.imod(t.imul(i))},x.prototype.mul=function(t,i){return this._verify2(t,i),this.imod(t.mul(i))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var i=this.m.andln(3);if(r(i%2==1),3===i){var n=this.m.add(new h(1)).iushrn(2);return this.pow(t,n)}for(var e=this.m.subn(1),o=0;!e.isZero()&&0===e.andln(1);)o++,e.iushrn(1);r(!e.isZero());var s=new h(1).toRed(this),u=s.redNeg(),a=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new h(2*l*l).toRed(this);0!==this.pow(l,a).cmp(u);)l.redIAdd(u);for(var m=this.pow(l,e),f=this.pow(t,e.addn(1).iushrn(1)),p=this.pow(t,e),M=o;0!==p.cmp(s);){for(var v=p,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;n--){for(var a=i.words[n],l=u-1;l>=0;l--){var m=a>>l&1;e!==r[0]&&(e=this.sqr(e)),0!==m||0!==o?(o<<=1,o|=m,(4===++s||0===n&&0===l)&&(e=this.mul(e,r[o]),s=0,o=0)):s=0}u=26}return e},x.prototype.convertTo=function(t){var i=t.umod(this.m);return i===t?i.clone():i},x.prototype.convertFrom=function(t){var i=t.clone();return i.red=null,i},h.mont=function(t){return new S(t)},n(S,x),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var i=this.imod(t.mul(this.rinv));return i.red=null,i},S.prototype.imul=function(t,i){if(t.isZero()||i.isZero())return t.words[0]=0,t.length=1,t;var r=t.imul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),h=r.isub(n).iushrn(this.shift),e=h;return h.cmp(this.m)>=0?e=h.isub(this.m):h.cmpn(0)<0&&(e=h.iadd(this.m)),e._forceRed(this)},S.prototype.mul=function(t,i){if(t.isZero()||i.isZero())return new h(0)._forceRed(this);var r=t.mul(i),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),e=r.isub(n).iushrn(this.shift),o=e;return e.cmp(this.m)>=0?o=e.isub(this.m):e.cmpn(0)<0&&(o=e.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}})(void 0===_m||_m,this)},1417,[1327]); -__d(function(g,_r,_i,a,m,_e,d){var t;function r(t){this.rand=t}if(m.exports=function(e){return t||(t=new r(null)),t.generate(e)},m.exports.Rand=r,r.prototype.generate=function(t){return this._rand(t)},r.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var r=new Uint8Array(t),e=0;e0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function n(t,n){this.curve=t,this.type=n,this.precomputed=null}m.exports=t,t.prototype.point=function(){throw new Error('Not implemented')},t.prototype.validate=function(){throw new Error('Not implemented')},t.prototype._fixedNafMul=function(t,n){_r(d[1]).assert(t.precomputed);var r=t._getDoubles(),i=_r(d[1]).getNAF(n,1,this._bitLength),o=(1<=s;u--)p=(p<<1)+i[u];h.push(p)}for(var a=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=o;f>0;f--){for(s=0;s=0;h--){for(var u=0;h>=0&&0===s[h];h--)u++;if(h>=0&&u++,p=p.dblp(u),h<0)break;var a=s[h];_r(d[1]).assert(0!==a),p='affine'===t.type?a>0?p.mixedAdd(o[a-1>>1]):p.mixedAdd(o[-a-1>>1].neg()):a>0?p.add(o[a-1>>1]):p.add(o[-a-1>>1].neg())}return'affine'===t.type?p.toP():p},t.prototype._wnafMulAdd=function(t,n,r,i,o){var s,p,h,u=this._wnafT1,a=this._wnafT2,l=this._wnafT3,f=0;for(s=0;s=1;s-=2){var y=s-1,v=s;if(1===u[y]&&1===u[v]){var w=[n[y],null,null,n[v]];0===n[y].y.cmp(n[v].y)?(w[1]=n[y].add(n[v]),w[2]=n[y].toJ().mixedAdd(n[v].neg())):0===n[y].y.cmp(n[v].y.redNeg())?(w[1]=n[y].toJ().mixedAdd(n[v]),w[2]=n[y].add(n[v].neg())):(w[1]=n[y].toJ().mixedAdd(n[v]),w[2]=n[y].toJ().mixedAdd(n[v].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],_=_r(d[1]).getJSF(r[y],r[v]);for(f=Math.max(_[0].length,f),l[y]=new Array(f),l[v]=new Array(f),p=0;p=0;s--){for(var L=0;s>=0;){var P=!0;for(p=0;p=0&&L++,x=x.dblp(L),s<0)break;for(p=0;p0?h=a[p][T-1>>1]:T<0&&(h=a[p][-T-1>>1].neg()),x='affine'===h.type?x.mixedAdd(h):x.add(h))}}for(s=0;s=Math.ceil((t.bitLength()+1)/n.step)},n.prototype._getDoubles=function(t,n){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],i=this,o=0;o=0&&(n=e,u=t),d.negative&&(d=d.neg(),i=i.neg()),n.negative&&(n=n.neg(),u=u.neg()),[{a:d,b:i},{a:n,b:u}]},r.prototype._endoSplit=function(r){var e=this.endo.basis,t=e[0],d=e[1],i=d.b.mul(r).divRound(this.n),n=t.b.neg().mul(r).divRound(this.n),u=i.mul(t.a),s=n.mul(d.a),o=i.mul(t.b),h=n.mul(d.b);return{k1:r.sub(u).sub(s),k2:o.add(h).neg()}},r.prototype.pointFromX=function(r,e){(r=new(_r(_d[1]))(r,16)).red||(r=r.toRed(this.red));var t=r.redSqr().redMul(r).redIAdd(r.redMul(this.a)).redIAdd(this.b),d=t.redSqrt();if(0!==d.redSqr().redSub(t).cmp(this.zero))throw new Error('invalid point');var i=d.fromRed().isOdd();return(e&&!i||!e&&i)&&(d=d.redNeg()),this.point(r,d)},r.prototype.validate=function(r){if(r.inf)return!0;var e=r.x,t=r.y,d=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(d).redIAdd(this.b);return 0===t.redSqr().redISub(i).cmpn(0)},r.prototype._endoWnafMulAdd=function(r,e,t){for(var d=this._endoWnafT1,i=this._endoWnafT2,n=0;n':''},e.prototype.isInfinity=function(){return this.inf},e.prototype.add=function(r){if(this.inf)return r;if(r.inf)return this;if(this.eq(r))return this.dbl();if(this.neg().eq(r))return this.curve.point(null,null);if(0===this.x.cmp(r.x))return this.curve.point(null,null);var e=this.y.redSub(r.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(r.x).redInvm()));var t=e.redSqr().redISub(this.x).redISub(r.x),d=e.redMul(this.x.redSub(t)).redISub(this.y);return this.curve.point(t,d)},e.prototype.dbl=function(){if(this.inf)return this;var r=this.y.redAdd(this.y);if(0===r.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,t=this.x.redSqr(),d=r.redInvm(),i=t.redAdd(t).redIAdd(t).redIAdd(e).redMul(d),n=i.redSqr().redISub(this.x.redAdd(this.x)),u=i.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,u)},e.prototype.getX=function(){return this.x.fromRed()},e.prototype.getY=function(){return this.y.fromRed()},e.prototype.mul=function(r){return r=new(_r(_d[1]))(r,16),this.isInfinity()?this:this._hasDoubles(r)?this.curve._fixedNafMul(this,r):this.curve.endo?this.curve._endoWnafMulAdd([this],[r]):this.curve._wnafMul(this,r)},e.prototype.mulAdd=function(r,e,t){var d=[this,e],i=[r,t];return this.curve.endo?this.curve._endoWnafMulAdd(d,i):this.curve._wnafMulAdd(1,d,i,2)},e.prototype.jmulAdd=function(r,e,t){var d=[this,e],i=[r,t];return this.curve.endo?this.curve._endoWnafMulAdd(d,i,!0):this.curve._wnafMulAdd(1,d,i,2,!0)},e.prototype.eq=function(r){return this===r||this.inf===r.inf&&(this.inf||0===this.x.cmp(r.x)&&0===this.y.cmp(r.y))},e.prototype.neg=function(r){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(r&&this.precomputed){var t=this.precomputed,d=function(r){return r.neg()};e.precomputed={naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(d)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(d)}}}return e},e.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},_r(_d[2])(t,_r(_d[0]).BasePoint),r.prototype.jpoint=function(r,e,d){return new t(this,r,e,d)},t.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var r=this.z.redInvm(),e=r.redSqr(),t=this.x.redMul(e),d=this.y.redMul(e).redMul(r);return this.curve.point(t,d)},t.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},t.prototype.add=function(r){if(this.isInfinity())return r;if(r.isInfinity())return this;var e=r.z.redSqr(),t=this.z.redSqr(),d=this.x.redMul(e),i=r.x.redMul(t),n=this.y.redMul(e.redMul(r.z)),u=r.y.redMul(t.redMul(this.z)),s=d.redSub(i),o=n.redSub(u);if(0===s.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var h=s.redSqr(),p=h.redMul(s),l=d.redMul(h),a=o.redSqr().redIAdd(p).redISub(l).redISub(l),f=o.redMul(l.redISub(a)).redISub(n.redMul(p)),c=this.z.redMul(r.z).redMul(s);return this.curve.jpoint(a,f,c)},t.prototype.mixedAdd=function(r){if(this.isInfinity())return r.toJ();if(r.isInfinity())return this;var e=this.z.redSqr(),t=this.x,d=r.x.redMul(e),i=this.y,n=r.y.redMul(e).redMul(this.z),u=t.redSub(d),s=i.redSub(n);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=u.redSqr(),h=o.redMul(u),p=t.redMul(o),l=s.redSqr().redIAdd(h).redISub(p).redISub(p),a=s.redMul(p.redISub(l)).redISub(i.redMul(h)),f=this.z.redMul(u);return this.curve.jpoint(l,a,f)},t.prototype.dblp=function(r){if(0===r)return this;if(this.isInfinity())return this;if(!r)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var t=this;for(e=0;e=0)return!1;if(t.redIAdd(i),0===this.x.cmp(t))return!0}},t.prototype.inspect=function(){return this.isInfinity()?'':''},t.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},1421,[1420,1417,1390,1415]); -__d(function(g,r,_i,_a,m,e,_d){'use strict';function t(t){r(_d[0]).call(this,'mont',t),this.a=new(r(_d[1]))(t.a,16).toRed(this.red),this.b=new(r(_d[1]))(t.b,16).toRed(this.red),this.i4=new(r(_d[1]))(4).toRed(this.red).redInvm(),this.two=new(r(_d[1]))(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function o(t,o,i){r(_d[0]).BasePoint.call(this,t,'projective'),null===o&&null===i?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new(r(_d[1]))(o,16),this.z=new(r(_d[1]))(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}r(_d[2])(t,r(_d[0])),m.exports=t,t.prototype.validate=function(t){var o=t.normalize().x,i=o.redSqr(),n=i.redMul(o).redAdd(i.redMul(this.a)).redAdd(o);return 0===n.redSqrt().redSqr().cmp(n)},r(_d[2])(o,r(_d[0]).BasePoint),t.prototype.decodePoint=function(t,o){return this.point(r(_d[3]).toArray(t,o),1)},t.prototype.point=function(t,i){return new o(this,t,i)},t.prototype.pointFromJSON=function(t){return o.fromJSON(this,t)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray('be',this.curve.p.byteLength())},o.fromJSON=function(t,i){return new o(t,i[0],i[1]||t.one)},o.prototype.inspect=function(){return this.isInfinity()?'':''},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},o.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),o=this.x.redSub(this.z).redSqr(),i=t.redSub(o),n=t.redMul(o),d=i.redMul(o.redAdd(this.curve.a24.redMul(i)));return this.curve.point(n,d)},o.prototype.add=function(){throw new Error('Not supported on Montgomery curve')},o.prototype.diffAdd=function(t,o){var i=this.x.redAdd(this.z),n=this.x.redSub(this.z),d=t.x.redAdd(t.z),u=t.x.redSub(t.z).redMul(i),s=d.redMul(n),h=o.z.redMul(u.redAdd(s).redSqr()),p=o.x.redMul(u.redISub(s).redSqr());return this.curve.point(h,p)},o.prototype.mul=function(t){for(var o=t.clone(),i=this,n=this.curve.point(null,null),d=[];0!==o.cmpn(0);o.iushrn(1))d.push(o.andln(1));for(var u=d.length-1;u>=0;u--)0===d[u]?(i=i.diffAdd(n,this),n=n.dbl()):(n=i.diffAdd(n,this),i=i.dbl());return n},o.prototype.mulAdd=function(){throw new Error('Not supported on Montgomery curve')},o.prototype.jumlAdd=function(){throw new Error('Not supported on Montgomery curve')},o.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1422,[1420,1417,1390,1415]); -__d(function(_g,r,i,_a,m,_e,_d){'use strict';function t(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,r(_d[0]).call(this,'edwards',t),this.a=new(r(_d[1]))(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new(r(_d[1]))(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new(r(_d[1]))(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),r(_d[2]).assert(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function e(t,e,d,s,u){r(_d[0]).BasePoint.call(this,t,'projective'),null===e&&null===d&&null===s?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new(r(_d[1]))(e,16),this.y=new(r(_d[1]))(d,16),this.z=s?new(r(_d[1]))(s,16):this.curve.one,this.t=u&&new(r(_d[1]))(u,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r(_d[3])(t,r(_d[0])),m.exports=t,t.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},t.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},t.prototype.jpoint=function(t,e,d,s){return this.point(t,e,d,s)},t.prototype.pointFromX=function(t,e){(t=new(r(_d[1]))(t,16)).red||(t=t.toRed(this.red));var d=t.redSqr(),s=this.c2.redSub(this.a.redMul(d)),u=this.one.redSub(this.c2.redMul(this.d).redMul(d)),h=s.redMul(u.redInvm()),n=h.redSqrt();if(0!==n.redSqr().redSub(h).cmp(this.zero))throw new Error('invalid point');var o=n.fromRed().isOdd();return(e&&!o||!e&&o)&&(n=n.redNeg()),this.point(t,n)},t.prototype.pointFromY=function(t,e){(t=new(r(_d[1]))(t,16)).red||(t=t.toRed(this.red));var d=t.redSqr(),s=d.redSub(this.c2),u=d.redMul(this.d).redMul(this.c2).redSub(this.a),h=s.redMul(u.redInvm());if(0===h.cmp(this.zero)){if(e)throw new Error('invalid point');return this.point(this.zero,t)}var n=h.redSqrt();if(0!==n.redSqr().redSub(h).cmp(this.zero))throw new Error('invalid point');return n.fromRed().isOdd()!==e&&(n=n.redNeg()),this.point(n,t)},t.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),d=t.y.redSqr(),s=e.redMul(this.a).redAdd(d),u=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(d)));return 0===s.cmp(u)},r(_d[3])(e,r(_d[0]).BasePoint),t.prototype.pointFromJSON=function(t){return e.fromJSON(this,t)},t.prototype.point=function(t,d,s,u){return new e(this,t,d,s,u)},e.fromJSON=function(t,d){return new e(t,d[0],d[1],d[2])},e.prototype.inspect=function(){return this.isInfinity()?'':''},e.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},e.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),d=this.z.redSqr();d=d.redIAdd(d);var s=this.curve._mulA(t),u=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),h=s.redAdd(e),n=h.redSub(d),o=s.redSub(e),c=u.redMul(n),l=h.redMul(o),p=u.redMul(o),v=n.redMul(h);return this.curve.point(c,l,v,p)},e.prototype._projDbl=function(){var t,e,d,s,u,h,n=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(s=this.curve._mulA(o)).redAdd(c);this.zOne?(t=n.redSub(o).redSub(c).redMul(l.redSub(this.curve.two)),e=l.redMul(s.redSub(c)),d=l.redSqr().redSub(l).redSub(l)):(u=this.z.redSqr(),h=l.redSub(u).redISub(u),t=n.redSub(o).redISub(c).redMul(h),e=l.redMul(s.redSub(c)),d=l.redMul(h))}else s=o.redAdd(c),u=this.curve._mulC(this.z).redSqr(),h=s.redSub(u).redSub(u),t=this.curve._mulC(n.redISub(s)).redMul(h),e=this.curve._mulC(s).redMul(o.redISub(c)),d=s.redMul(h);return this.curve.point(t,e,d)},e.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},e.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),d=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),s=this.t.redMul(this.curve.dd).redMul(t.t),u=this.z.redMul(t.z.redAdd(t.z)),h=d.redSub(e),n=u.redSub(s),o=u.redAdd(s),c=d.redAdd(e),l=h.redMul(n),p=o.redMul(c),v=h.redMul(c),y=n.redMul(o);return this.curve.point(l,p,y,v)},e.prototype._projAdd=function(t){var e,d,s=this.z.redMul(t.z),u=s.redSqr(),h=this.x.redMul(t.x),n=this.y.redMul(t.y),o=this.curve.d.redMul(h).redMul(n),c=u.redSub(o),l=u.redAdd(o),p=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(h).redISub(n),v=s.redMul(c).redMul(p);return this.curve.twisted?(e=s.redMul(l).redMul(n.redSub(this.curve._mulA(h))),d=c.redMul(l)):(e=s.redMul(l).redMul(n.redSub(h)),d=this.curve._mulC(c).redMul(l)),this.curve.point(v,e,d)},e.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},e.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},e.prototype.mulAdd=function(t,e,d){return this.curve._wnafMulAdd(1,[this,e],[t,d],2,!1)},e.prototype.jmulAdd=function(t,e,d){return this.curve._wnafMulAdd(1,[this,e],[t,d],2,!0)},e.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},e.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},e.prototype.getX=function(){return this.normalize(),this.x.fromRed()},e.prototype.getY=function(){return this.normalize(),this.y.fromRed()},e.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},e.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var d=t.clone(),s=this.curve.redN.redMul(this.z);;){if(d.iadd(this.curve.n),d.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(s),0===this.x.cmp(e))return!0}},e.prototype.toP=e.prototype.normalize,e.prototype.mixedAdd=e.prototype.add},1423,[1420,1417,1415,1390]); -__d(function(g,r,i,a,m,_e,d){'use strict';var f,e=_e;function b(f){'short'===f.type?this.curve=new(r(d[0]).short)(f):'edwards'===f.type?this.curve=new(r(d[0]).edwards)(f):this.curve=new(r(d[0]).mont)(f),this.g=this.curve.g,this.n=this.curve.n,this.hash=f.hash,r(d[1]).assert(this.g.validate(),'Invalid curve'),r(d[1]).assert(this.g.mul(this.n).isInfinity(),'Invalid curve, G*N != O')}function c(f,c){Object.defineProperty(e,f,{configurable:!0,enumerable:!0,get:function(){var s=new b(c);return Object.defineProperty(e,f,{configurable:!0,enumerable:!0,value:s}),s}})}e.PresetCurve=b,c('p192',{type:'short',prime:'p192',p:'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff',a:'ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc',b:'64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1',n:'ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831',hash:r(d[2]).sha256,gRed:!1,g:['188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012','07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811']}),c('p224',{type:'short',prime:'p224',p:'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001',a:'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe',b:'b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4',n:'ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d',hash:r(d[2]).sha256,gRed:!1,g:['b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21','bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34']}),c('p256',{type:'short',prime:null,p:'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff',a:'ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc',b:'5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b',n:'ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551',hash:r(d[2]).sha256,gRed:!1,g:['6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296','4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5']}),c('p384',{type:'short',prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r(d[2]).sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c('p521',{type:'short',prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r(d[2]).sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c('curve25519',{type:'mont',prime:'p25519',p:'7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',a:'76d06',b:'1',n:'1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',hash:r(d[2]).sha256,gRed:!1,g:['9']}),c('ed25519',{type:'edwards',prime:'p25519',p:'7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed',a:'-1',c:'1',d:'52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3',n:'1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed',hash:r(d[2]).sha256,gRed:!1,g:['216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a','6666666666666666666666666666666666666666666666666666666666666658']});try{f=r(d[3])}catch(e){f=void 0}c('secp256k1',{type:'short',prime:'k256',p:'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f',a:'0',b:'7',n:'ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141',h:'1',hash:r(d[2]).sha256,beta:'7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee',lambda:'5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72',basis:[{a:'3086d221a7d46bcde86c90e49284eb15',b:'-e4437ed6010e88286f547fa90abfe4c3'},{a:'114ca50f7a8e2f3f657c1108d9d44cfd8',b:'3086d221a7d46bcde86c90e49284eb15'}],gRed:!1,g:['79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798','483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8',f]})},1424,[1419,1415,1388,1425]); -__d(function(g,r,i,a,m,e,d){m.exports={doubles:{step:4,points:[['e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a','f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821'],['8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508','11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf'],['175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739','d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695'],['363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640','4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9'],['8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c','4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36'],['723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda','96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f'],['eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa','5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999'],['100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0','cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09'],['e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d','9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d'],['feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d','e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088'],['da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1','9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d'],['53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0','5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8'],['8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047','10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a'],['385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862','283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453'],['6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7','7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160'],['3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd','56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0'],['85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83','7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6'],['948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a','53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589'],['6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8','bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17'],['e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d','4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda'],['e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725','7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd'],['213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754','4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2'],['4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c','17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6'],['fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6','6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f'],['76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39','c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01'],['c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891','893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3'],['d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b','febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f'],['b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03','2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7'],['e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d','eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78'],['a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070','7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1'],['90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4','e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150'],['8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da','662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82'],['e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11','1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc'],['8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e','efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b'],['e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41','2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51'],['b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef','67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45'],['d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8','db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120'],['324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d','648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84'],['4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96','35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d'],['9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd','ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d'],['6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5','9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8'],['a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266','40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8'],['7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71','34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac'],['928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac','c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f'],['85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751','1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962'],['ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e','493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907'],['827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241','c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec'],['eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3','be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d'],['e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f','4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414'],['1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19','aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd'],['146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be','b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0'],['fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9','6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811'],['da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2','8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1'],['a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13','7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c'],['174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c','ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73'],['959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba','2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd'],['d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151','e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405'],['64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073','d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589'],['8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458','38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e'],['13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b','69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27'],['bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366','d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1'],['8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa','40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482'],['8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0','620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945'],['dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787','7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573'],['f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e','ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82']]},naf:{wnd:7,points:[['f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9','388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672'],['2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4','d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6'],['5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc','6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da'],['acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe','cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37'],['774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb','d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b'],['f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8','ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81'],['d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e','581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58'],['defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34','4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77'],['2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c','85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a'],['352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5','321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c'],['2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f','2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67'],['9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714','73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402'],['daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729','a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55'],['c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db','2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482'],['6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4','e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82'],['1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5','b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396'],['605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479','2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49'],['62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d','80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf'],['80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f','1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a'],['7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb','d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7'],['d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9','eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933'],['49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963','758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a'],['77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74','958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6'],['f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530','e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37'],['463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b','5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e'],['f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247','cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6'],['caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1','cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476'],['2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120','4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40'],['7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435','91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61'],['754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18','673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683'],['e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8','59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5'],['186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb','3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b'],['df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f','55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417'],['5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143','efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868'],['290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba','e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a'],['af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45','f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6'],['766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a','744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996'],['59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e','c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e'],['f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8','e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d'],['7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c','30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2'],['948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519','e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e'],['7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab','100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437'],['3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca','ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311'],['d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf','8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4'],['1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610','68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575'],['733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4','f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d'],['15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c','d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d'],['a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940','edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629'],['e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980','a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06'],['311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3','66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374'],['34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf','9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee'],['f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63','4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1'],['d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448','fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b'],['32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf','5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661'],['7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5','8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6'],['ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6','8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e'],['16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5','5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d'],['eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99','f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc'],['78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51','f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4'],['494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5','42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c'],['a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5','204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b'],['c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997','4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913'],['841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881','73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154'],['5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5','39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865'],['36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66','d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc'],['336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726','ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224'],['8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede','6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e'],['1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94','60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6'],['85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31','3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511'],['29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51','b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b'],['a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252','ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2'],['4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5','cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c'],['d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b','6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3'],['ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4','322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d'],['af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f','6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700'],['e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889','2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4'],['591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246','b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196'],['11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984','998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4'],['3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a','b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257'],['cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030','bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13'],['c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197','6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096'],['c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593','c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38'],['a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef','21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f'],['347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38','60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448'],['da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a','49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a'],['c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111','5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4'],['4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502','7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437'],['3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea','be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7'],['cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26','8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d'],['b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986','39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a'],['d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e','62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54'],['48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4','25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77'],['dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda','ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517'],['6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859','cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10'],['e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f','f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125'],['eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c','6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e'],['13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942','fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1'],['ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a','1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2'],['b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80','5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423'],['ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d','438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8'],['8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1','cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758'],['52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63','c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375'],['e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352','6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d'],['7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193','ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec'],['5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00','9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0'],['32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58','ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c'],['e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7','d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4'],['8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8','c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f'],['4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e','67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649'],['3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d','cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826'],['674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b','299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5'],['d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f','f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87'],['30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6','462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b'],['be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297','62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc'],['93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a','7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c'],['b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c','ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f'],['d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52','4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a'],['d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb','bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46'],['463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065','bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f'],['7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917','603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03'],['74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9','cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08'],['30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3','553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8'],['9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57','712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373'],['176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66','ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3'],['75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8','9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8'],['809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721','9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1'],['1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180','4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9']]}}},1425,[]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';function t(e){if(!(this instanceof t))return new t(e);'string'==typeof e&&(_r(d[0]).assert(Object.prototype.hasOwnProperty.call(_r(d[1]),e),'Unknown curve '+e),e=_r(d[1])[e]),e instanceof _r(d[1]).PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}m.exports=t,t.prototype.keyPair=function(t){return new(_r(d[2]))(this,t)},t.prototype.keyFromPrivate=function(t,e){return _r(d[2]).fromPrivate(this,t,e)},t.prototype.keyFromPublic=function(t,e){return _r(d[2]).fromPublic(this,t,e)},t.prototype.genKeyPair=function(t){t||(t={});for(var e=new(_r(d[3]))({hash:this.hash,pers:t.pers,persEnc:t.persEnc||'utf8',entropy:t.entropy||_r(d[4])(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||'utf8',nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new(_r(d[5]))(2));;){var i=new(_r(d[5]))(e.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},t.prototype._truncateToN=function(t,e,r){var n;if(_r(d[5]).isBN(t)||'number'==typeof t)n=(t=new(_r(d[5]))(t,16)).byteLength();else if('object'==typeof t)n=t.length,t=new(_r(d[5]))(t,16);else{var i=t.toString();n=i.length+1>>>1,t=new(_r(d[5]))(i,16)}'number'!=typeof r&&(r=8*n);var s=r-this.n.bitLength();return s>0&&(t=t.ushrn(s)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},t.prototype.sign=function(t,e,r,n){if('object'==typeof r&&(n=r,r=null),n||(n={}),'string'!=typeof t&&'number'!=typeof t&&!_r(d[5]).isBN(t)){_r(d[0]).assert('object'==typeof t&&t&&'number'==typeof t.length,'Expected message to be an array-like, a hex string, or a BN instance'),_r(d[0]).assert(t.length>>>0===t.length);for(var i=0;i=0)){var y=this.g.mul(v);if(!y.isInfinity()){var f=y.getX(),l=f.umod(this.n);if(0!==l.cmpn(0)){var b=v.invm(this.n).mul(l.mul(e.getPrivate()).iadd(t));if(0!==(b=b.umod(this.n)).cmpn(0)){var w=(y.getY().isOdd()?1:0)|(0!==f.cmp(l)?2:0);return n.canonical&&b.cmp(this.nh)>0&&(b=this.n.sub(b),w^=1),new(_r(d[6]))({r:l,s:b,recoveryParam:w})}}}}}},t.prototype.verify=function(t,e,r,n,i){i||(i={}),t=this._truncateToN(t,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var s=(e=new(_r(d[6]))(e,'hex')).r,o=e.s;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var h,u=o.invm(this.n),c=u.mul(t).umod(this.n),p=u.mul(s).umod(this.n);return this.curve._maxwellTrick?!(h=this.g.jmulAdd(c,r.getPublic(),p)).isInfinity()&&h.eqXToP(s):!(h=this.g.mulAdd(c,r.getPublic(),p)).isInfinity()&&0===h.getX().umod(this.n).cmp(s)},t.prototype.recoverPubKey=function(t,e,r,n){_r(d[0]).assert((3&r)===r,'The recovery param is more than two bits'),e=new(_r(d[6]))(e,n);var i=this.n,s=new(_r(d[5]))(t),o=e.r,h=e.s,u=1&r,c=r>>1;if(o.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error('Unable to find sencond key candinate');o=c?this.curve.pointFromX(o.add(this.curve.n),u):this.curve.pointFromX(o,u);var p=e.r.invm(i),v=i.sub(s).mul(p).umod(i),y=h.mul(p).umod(i);return this.g.mulAdd(v,o,y)},t.prototype.getKeyRecoveryParam=function(t,e,r,n){if(null!==(e=new(_r(d[6]))(e,n)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var s;try{s=this.recoverPubKey(t,e,i)}catch(t){continue}if(s.eq(r))return i}throw new Error('Unable to find valid recovery factor')}},1426,[1415,1424,1427,1428,1418,1417,1429]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n){this.ec=t,this.priv=null,this.pub=null,n.priv&&this._importPrivate(n.priv,n.privEnc),n.pub&&this._importPublic(n.pub,n.pubEnc)}m.exports=t,t.fromPublic=function(n,u,o){return u instanceof t?u:new t(n,{pub:u,pubEnc:o})},t.fromPrivate=function(n,u,o){return u instanceof t?u:new t(n,{priv:u,privEnc:o})},t.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:'Invalid public key'}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:'Public key * N != O'}:{result:!1,reason:'Public key is not a point'}},t.prototype.getPublic=function(t,n){return'string'==typeof t&&(n=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),n?this.pub.encode(n,t):this.pub},t.prototype.getPrivate=function(t){return'hex'===t?this.priv.toString(16,2):this.priv},t.prototype._importPrivate=function(t,n){this.priv=new(r(d[0]))(t,n||16),this.priv=this.priv.umod(this.ec.curve.n)},t.prototype._importPublic=function(t,n){if(t.x||t.y)return'mont'===this.ec.curve.type?r(d[1]).assert(t.x,'Need x coordinate'):'short'!==this.ec.curve.type&&'edwards'!==this.ec.curve.type||r(d[1]).assert(t.x&&t.y,'Need both x and y coordinate'),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,n)},t.prototype.derive=function(t){return t.validate()||r(d[1]).assert(t.validate(),'public point not validated'),t.mul(this.priv).getX()},t.prototype.sign=function(t,n,u){return this.ec.sign(t,this,n,u)},t.prototype.verify=function(t,n,u){return this.ec.verify(t,n,this,void 0,u)},t.prototype.inspect=function(){return''}},1427,[1417,1415]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(i){if(!(this instanceof t))return new t(i);this.hash=i.hash,this.predResist=!!i.predResist,this.outLen=this.hash.outSize,this.minEntropy=i.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var s=r(d[0]).toArray(i.entropy,i.entropyEnc||'hex'),h=r(d[0]).toArray(i.nonce,i.nonceEnc||'hex'),n=r(d[0]).toArray(i.pers,i.persEnc||'hex');r(d[1])(s.length>=this.minEntropy/8,'Not enough entropy. Minimum is: '+this.minEntropy+' bits'),this._init(s,h,n)}m.exports=t,t.prototype._init=function(t,i,s){var h=t.concat(i).concat(s);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var n=0;n=this.minEntropy/8,'Not enough entropy. Minimum is: '+this.minEntropy+' bits'),this._update(t.concat(s||[])),this._reseed=1},t.prototype.generate=function(t,i,s,h){if(this._reseed>this.reseedInterval)throw new Error('Reseed is required');'string'!=typeof i&&(h=s,s=i,i=null),s&&(s=r(d[0]).toArray(s,h||'hex'),this._update(s));for(var n=[];n.length4)return!1;if(0===r[t.place])return!1;for(var c=0,o=0,u=t.place;o>>=0;return!(c<=127)&&(t.place=u,c)}function i(r){for(var t=0,n=r.length-1;!r[t]&&!(128&r[t+1])&&t>>3);for(r.push(128|n);--n;)r.push(t>>>(n<<3)&255);r.push(t)}}m.exports=r,r.prototype._importDER=function(r,i){r=_r(d[0]).toArray(r,i);var c=new t;if(48!==r[c.place++])return!1;var o=n(r,c);if(!1===o)return!1;if(o+c.place!==r.length)return!1;if(2!==r[c.place++])return!1;var u=n(r,c);if(!1===u)return!1;if(128&r[c.place])return!1;var l=r.slice(c.place,u+c.place);if(c.place+=u,2!==r[c.place++])return!1;var s=n(r,c);if(!1===s)return!1;if(r.length!==s+c.place)return!1;if(128&r[c.place])return!1;var f=r.slice(c.place,s+c.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===f[0]){if(!(128&f[1]))return!1;f=f.slice(1)}return this.r=new(_r(d[1]))(l),this.s=new(_r(d[1]))(f),this.recoveryParam=null,!0},r.prototype.toDER=function(r){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=i(t),n=i(n);!(n[0]||128&n[1]);)n=n.slice(1);var o=[2];c(o,t.length),(o=o.concat(t)).push(2),c(o,n.length);var u=o.concat(n),l=[48];return c(l,u.length),l=l.concat(u),_r(d[0]).encode(l,r)}},1429,[1415,1417]); -__d(function(g,_r,_i,a,m,e,d){'use strict';function t(n){if(_r(d[0]).assert('ed25519'===n,'only tested with ed25519 so far'),!(this instanceof t))return new t(n);n=_r(d[1])[n].curve,this.curve=n,this.g=n.g,this.g.precompute(n.n.bitLength()+1),this.pointClass=n.point().constructor,this.encodingLength=Math.ceil(n.n.bitLength()/8),this.hash=_r(d[2]).sha512}m.exports=t,t.prototype.sign=function(t,n){t=_r(d[0]).parseBytes(t);var r=this.keyFromSecret(n),i=this.hashInt(r.messagePrefix(),t),o=this.g.mul(i),s=this.encodePoint(o),h=this.hashInt(s,r.pubBytes(),t).mul(r.priv()),u=i.add(h).umod(this.curve.n);return this.makeSignature({R:o,S:u,Rencoded:s})},t.prototype.verify=function(t,n,r){if(t=_r(d[0]).parseBytes(t),(n=this.makeSignature(n)).S().gte(n.eddsa.curve.n)||n.S().isNeg())return!1;var i=this.keyFromPublic(r),o=this.hashInt(n.Rencoded(),i.pubBytes(),t),s=this.g.mul(n.S());return n.R().add(i.pub().mul(o)).eq(s)},t.prototype.hashInt=function(){for(var t=this.hash(),n=0;n0&&s[s.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]0&&s[s.length-1])||6!==a[0]&&2!==a[0])){c=0;continue}if(3===a[0]&&(!s||a[1]>s[0]&&a[1]=0&&l.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r(_d[0]).Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}function l(e){return new Promise(function(t){setTimeout(t,e)})}function d(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function h(e){return e?e.toLowerCase():e}var f={},g=(function(e){function a(t,n,o){var a=e.call(this)||this;if(t!==f)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,r(_d[3]).defineReadOnly)(a,"provider",n),null==o&&(o=0),"string"==typeof o?((0,r(_d[3]).defineReadOnly)(a,"_address",a.provider.formatter.address(o)),(0,r(_d[3]).defineReadOnly)(a,"_index",null)):"number"==typeof o?((0,r(_d[3]).defineReadOnly)(a,"_index",o),(0,r(_d[3]).defineReadOnly)(a,"_address",null)):s.throwArgumentError("invalid address or index","addressOrIndex",o),a}return t(a,e),a.prototype.connect=function(e){return s.throwError("cannot alter JSON-RPC Signer connection",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},a.prototype.connectUnchecked=function(){return new p(f,this.provider,this._address||this._index)},a.prototype.getAddress=function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then(function(t){return t.length<=e._index&&s.throwError("unknown account #"+e._index,r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])})},a.prototype.sendUncheckedTransaction=function(e){var t=this;e=(0,r(_d[3]).shallowCopy)(e);var a=this.getAddress().then(function(e){return e&&(e=e.toLowerCase()),e});if(null==e.gasLimit){var c=(0,r(_d[3]).shallowCopy)(e);c.from=a,e.gasLimit=this.provider.estimateGas(c)}return null!=e.to&&(e.to=Promise.resolve(e.to).then(function(e){return n(t,void 0,void 0,function(){var t;return o(this,function(n){switch(n.label){case 0:return null==e?[2,null]:[4,this.provider.resolveName(e)];case 1:return null==(t=n.sent())&&s.throwArgumentError("provided ENS name resolves to null","tx.to",e),[2,t]}})})})),(0,r(_d[3]).resolveProperties)({tx:(0,r(_d[3]).resolveProperties)(e),sender:a}).then(function(n){var o=n.tx,a=n.sender;null!=o.from?o.from.toLowerCase()!==a&&s.throwArgumentError("from address mismatch","transaction",e):o.from=a;var c=t.provider.constructor.hexlifyTransaction(o,{from:!0});return t.provider.send("eth_sendTransaction",[c]).then(function(e){return e},function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&s.throwError("user rejected transaction",r(_d[0]).Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:o}),u("sendTransaction",e,c)})})},a.prototype.signTransaction=function(e){return s.throwError("signing transactions is unsupported",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},a.prototype.sendTransaction=function(e){return n(this,void 0,void 0,function(){var t,s,a,c=this;return o(this,function(u){switch(u.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return t=u.sent(),[4,this.sendUncheckedTransaction(e)];case 2:s=u.sent(),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,(0,r(_d[4]).poll)(function(){return n(c,void 0,void 0,function(){var e;return o(this,function(n){switch(n.label){case 0:return[4,this.provider.getTransaction(s)];case 1:return null===(e=n.sent())?[2,void 0]:[2,this.provider._wrapTransaction(e,s,t)]}})})},{oncePoll:this.provider})];case 4:return[2,u.sent()];case 5:throw(a=u.sent()).transactionHash=s,a;case 6:return[2]}})})},a.prototype.signMessage=function(e){return n(this,void 0,void 0,function(){var t,n,a;return o(this,function(o){switch(o.label){case 0:return t="string"==typeof e?(0,r(_d[5]).toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:n=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,r(_d[2]).hexlify)(t),n.toLowerCase()])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(a=o.sent()).message&&a.message.match(/user denied/i)&&s.throwError("user rejected signing",r(_d[0]).Logger.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:e}),a;case 5:return[2]}})})},a.prototype._legacySignMessage=function(e){return n(this,void 0,void 0,function(){var t,n,a;return o(this,function(o){switch(o.label){case 0:return t="string"==typeof e?(0,r(_d[5]).toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:n=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[n.toLowerCase(),(0,r(_d[2]).hexlify)(t)])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(a=o.sent()).message&&a.message.match(/user denied/i)&&s.throwError("user rejected signing",r(_d[0]).Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:e}),a;case 5:return[2]}})})},a.prototype._signTypedData=function(e,t,a){return n(this,void 0,void 0,function(){var n,c,u,l=this;return o(this,function(o){switch(o.label){case 0:return[4,r(_d[6])._TypedDataEncoder.resolveNames(e,t,a,function(e){return l.provider.resolveName(e)})];case 1:return n=o.sent(),[4,this.getAddress()];case 2:c=o.sent(),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[c.toLowerCase(),JSON.stringify(r(_d[6])._TypedDataEncoder.getPayload(n.domain,t,n.value))])];case 4:return[2,o.sent()];case 5:throw"string"==typeof(u=o.sent()).message&&u.message.match(/user denied/i)&&s.throwError("user rejected signing",r(_d[0]).Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:c,messageData:{domain:n.domain,types:t,value:n.value}}),u;case 6:return[2]}})})},a.prototype.unlock=function(e){return n(this,void 0,void 0,function(){var t,n;return o(this,function(o){switch(o.label){case 0:return t=this.provider,[4,this.getAddress()];case 1:return n=o.sent(),[2,t.send("personal_unlockAccount",[n.toLowerCase(),e,null])]}})})},a})(r(_d[7]).Signer);_e.JsonRpcSigner=g;var p=(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return t(n,e),n.prototype.sendTransaction=function(e){var t=this;return this.sendUncheckedTransaction(e).then(function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}})},n})(g),v={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},y=(function(e){function a(t,n){var o=this,s=n;return null==s&&(s=new Promise(function(e,t){setTimeout(function(){o.detectNetwork().then(function(t){e(t)},function(e){t(e)})},0)})),o=e.call(this,s)||this,t||(t=(0,r(_d[3]).getStatic)(o.constructor,"defaultUrl")()),"string"==typeof t?(0,r(_d[3]).defineReadOnly)(o,"connection",Object.freeze({url:t})):(0,r(_d[3]).defineReadOnly)(o,"connection",Object.freeze((0,r(_d[3]).shallowCopy)(t))),o._nextId=42,o}return t(a,e),Object.defineProperty(a.prototype,"_cache",{get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),a.defaultUrl=function(){return"http://localhost:8545"},a.prototype.detectNetwork=function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout(function(){e._cache.detectNetwork=null},0)),this._cache.detectNetwork},a.prototype._uncachedDetectNetwork=function(){return n(this,void 0,void 0,function(){var e,t;return o(this,function(n){switch(n.label){case 0:return[4,l(0)];case 1:n.sent(),e=null,n.label=2;case 2:return n.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return e=n.sent(),[3,9];case 4:n.sent(),n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return e=n.sent(),[3,8];case 7:return n.sent(),[3,8];case 8:return[3,9];case 9:if(null!=e){t=(0,r(_d[3]).getStatic)(this.constructor,"getNetwork");try{return[2,t(r(_d[8]).BigNumber.from(e).toNumber())]}catch(t){return[2,s.throwError("could not detect network",r(_d[0]).Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})]}}return[2,s.throwError("could not detect network",r(_d[0]).Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}})})},a.prototype.getSigner=function(e){return new g(f,this,e)},a.prototype.getUncheckedSigner=function(e){return this.getSigner(e).connectUnchecked()},a.prototype.listAccounts=function(){var e=this;return this.send("eth_accounts",[]).then(function(t){return t.map(function(t){return e.formatter.address(t)})})},a.prototype.send=function(e,t){var n=this,o={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,r(_d[3]).deepCopy)(o),provider:this});var s=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(s&&this._cache[e])return this._cache[e];var a=(0,r(_d[4]).fetchJson)(this.connection,JSON.stringify(o),d).then(function(e){return n.emit("debug",{action:"response",request:o,response:e,provider:n}),e},function(e){throw n.emit("debug",{action:"response",error:e,request:o,provider:n}),e});return s&&(this._cache[e]=a,setTimeout(function(){n._cache[e]=null},0)),a},a.prototype.prepareRequest=function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[h(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[h(t.address),t.blockTag]];case"getCode":return["eth_getCode",[h(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[h(t.address),(0,r(_d[2]).hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,r(_d[3]).getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,r(_d[3]).getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=h(t.filter.address)),["eth_getLogs",[t.filter]]}return null},a.prototype.perform=function(e,t){return n(this,void 0,void 0,function(){var n,a,c,l;return o(this,function(o){switch(o.label){case 0:return"call"!==e&&"estimateGas"!==e?[3,2]:(n=t.transaction)&&null!=n.type&&r(_d[8]).BigNumber.from(n.type).isZero()?null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas?[3,2]:[4,this.getFeeData()]:[3,2];case 1:null==(a=o.sent()).maxFeePerGas&&null==a.maxPriorityFeePerGas&&((t=(0,r(_d[3]).shallowCopy)(t)).transaction=(0,r(_d[3]).shallowCopy)(n),delete t.transaction.type),o.label=2;case 2:null==(c=this.prepareRequest(e,t))&&s.throwError(e+" not implemented",r(_d[0]).Logger.errors.NOT_IMPLEMENTED,{operation:e}),o.label=3;case 3:return o.trys.push([3,5,,6]),[4,this.send(c[0],c[1])];case 4:return[2,o.sent()];case 5:return l=o.sent(),[2,u(e,l,t)];case 6:return[2]}})})},a.prototype._startEvent=function(t){"pending"===t.tag&&this._startPending(),e.prototype._startEvent.call(this,t)},a.prototype._startPending=function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then(function(n){return(function o(){e.send("eth_getFilterChanges",[n]).then(function(n){if(e._pendingFilter!=t)return null;var o=Promise.resolve();return n.forEach(function(t){e._emitted["t:"+t.toLowerCase()]="pending",o=o.then(function(){return e.getTransaction(t).then(function(t){return e.emit("pending",t),null})})}),o.then(function(){return l(1e3)})}).then(function(){if(e._pendingFilter==t)return setTimeout(function(){o()},0),null;e.send("eth_uninstallFilter",[n])}).catch(function(e){})})(),n}).catch(function(e){})}},a.prototype._stopEvent=function(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),e.prototype._stopEvent.call(this,t)},a.hexlifyTransaction=function(e,t){var n=(0,r(_d[3]).shallowCopy)(v);if(t)for(var o in t)t[o]&&(n[o]=!0);(0,r(_d[3]).checkProperties)(e,n);var s={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach(function(t){if(null!=e[t]){var n=(0,r(_d[2]).hexValue)(r(_d[8]).BigNumber.from(e[t]));"gasLimit"===t&&(t="gas"),s[t]=n}}),["from","to","data"].forEach(function(t){null!=e[t]&&(s[t]=(0,r(_d[2]).hexlify)(e[t]))}),e.accessList&&(s.accessList=(0,r(_d[9]).accessListify)(e.accessList)),s},a})(r(_d[10]).BaseProvider);_e.JsonRpcProvider=y},1436,[1321,1384,1329,1335,1404,1348,1366,1437,1324,1408,1382]); -__d(function(_g,r,i,a,m,_e,_d){"use strict";var e,t=this&&this.__extends||(e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)},function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}),n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(s,c){function u(e){try{h(o.next(e))}catch(e){c(e)}}function l(e){try{h(o.throw(e))}catch(e){c(e)}}function h(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(u,l)}h((o=o.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,o,s,c,u={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};return c={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(c[Symbol.iterator]=function(){return this}),c;function l(e){return function(t){return h([e,t])}}function h(c){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(s=2&c[0]?o.return:c[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,c[1])).done)return s;switch(o=0,s&&(c=[2&c[0],s.value]),c[0]){case 0:case 1:s=c;break;case 4:return u.label++,{value:c[1],done:!1};case 5:u.label++,o=c[1],c=[0];continue;case 7:c=u.ops.pop(),u.trys.pop();continue;default:if(!(s=u.trys,(s=s.length>0&&s[s.length-1])||6!==c[0]&&2!==c[0])){u=0;continue}if(3===c[0]&&(!s||c[1]>s[0]&&c[1]=0)throw e;return s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r(_d[0]).Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})})),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then(function(t){return 0!==t[1]&&t[0]!==t[1]&&s.throwArgumentError("chainId address mismatch","transaction",e),t[0]}),[4,(0,r(_d[2]).resolveProperties)(t)];case 6:return[2,p.sent()]}})})},e.prototype._checkProvider=function(e){this.provider||s.throwError("missing provider",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},e.isSigner=function(e){return!(!e||!e._isSigner)},e})();_e.Signer=l;var h=(function(e){function n(t,n){var o=e.call(this)||this;return(0,r(_d[2]).defineReadOnly)(o,"address",t),(0,r(_d[2]).defineReadOnly)(o,"provider",n||null),o}return t(n,e),n.prototype.getAddress=function(){return Promise.resolve(this.address)},n.prototype._fail=function(e,t){return Promise.resolve().then(function(){s.throwError(e,r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})},n.prototype.signMessage=function(e){return this._fail("VoidSigner cannot sign messages","signMessage")},n.prototype.signTransaction=function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")},n.prototype._signTypedData=function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")},n.prototype.connect=function(e){return new n(this.address,e)},n})(l);_e.VoidSigner=h},1437,[1321,1438,1335]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="abstract-signer/5.8.0"},1438,[]); -__d(function(_g,r,i,a,m,_e,_d){"use strict";var t,e=this&&this.__extends||(t=function(e,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},t(e,n)},function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function o(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}),n=this&&this.__awaiter||function(t,e,n,o){return new(n||(n=Promise))(function(c,u){function s(t){try{p(o.next(t))}catch(t){u(t)}}function l(t){try{p(o.throw(t))}catch(t){u(t)}}function p(t){var e;t.done?c(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(s,l)}p((o=o.apply(t,e||[])).next())})},o=this&&this.__generator||function(t,e){var n,o,c,u,s={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return u={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function l(t){return function(e){return p([t,e])}}function p(u){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,o&&(c=2&u[0]?o.return:u[0]?o.throw||((c=o.return)&&c.call(o),0):o.next)&&!(c=c.call(o,u[1])).done)return c;switch(o=0,c&&(u=[2&u[0],c.value]),u[0]){case 0:case 1:c=u;break;case 4:return s.label++,{value:u[1],done:!1};case 5:s.label++,o=u[1],u=[0];continue;case 7:u=s.ops.pop(),s.trys.pop();continue;default:if(!(c=s.trys,(c=c.length>0&&c[c.length-1])||6!==u[0]&&2!==u[0])){s=0;continue}if(3===u[0]&&(!c||u[1]>c[0]&&u[1]0&&u[u.length-1])||6!==l[0]&&2!==l[0])){c=0;continue}if(3===l[0]&&(!u||l[1]>u[0]&&l[1]0&&s[s.length-1])||6!==i[0]&&2!==i[0])){c=0;continue}if(3===i[0]&&(!s||i[1]>s[0]&&i[1]=0&&(t.throttleRetry=!0),t}return e.result}function u(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0)throw(t=new Error("throttled response")).result=JSON.stringify(e),t.throttleRetry=!0,t;if("2.0"!=e.jsonrpc)throw(t=new Error("invalid response")).result=JSON.stringify(e),t;if(e.error){var t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function l(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function h(e,t,o){if("call"===e&&t.code===r(_d[0]).Logger.errors.SERVER_ERROR){var n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var i=n.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),(0,r(_d[2]).isHexString)(i))return i;s.throwError("missing revert data in call exception",r(_d[0]).Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var c=t.message;throw t.code===r(_d[0]).Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?c=t.error.message:"string"==typeof t.body?c=t.body:"string"==typeof t.responseText&&(c=t.responseText)),(c=(c||"").toLowerCase()).match(/insufficient funds/)&&s.throwError("insufficient funds for intrinsic transaction cost",r(_d[0]).Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:o}),c.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&s.throwError("nonce has already been used",r(_d[0]).Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:o}),c.match(/another transaction with same nonce/)&&s.throwError("replacement fee too low",r(_d[0]).Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:o}),c.match(/execution failed due to an exception|execution reverted/)&&s.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",r(_d[0]).Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:o}),t}var p=(function(e){function p(t,o){var n=e.call(this,t)||this;return(0,r(_d[4]).defineReadOnly)(n,"baseUrl",n.getBaseUrl()),(0,r(_d[4]).defineReadOnly)(n,"apiKey",o||null),n}return t(p,e),p.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return s.throwArgumentError("unsupported network","network",this.network.name)},p.prototype.getUrl=function(e,t){var o=Object.keys(t).reduce(function(e,o){var n=t[o];return null!=n&&(e+="&"+o+"="+n),e},""),n=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+e+o+n},p.prototype.getPostUrl=function(){return this.baseUrl+"/api"},p.prototype.getPostData=function(e,t){return t.module=e,t.apikey=this.apiKey,t},p.prototype.fetch=function(e,t,s){return o(this,void 0,void 0,function(){var o,i,l,h,p,f,d=this;return n(this,function(n){switch(n.label){case 0:return o=s?this.getPostUrl():this.getUrl(e,t),i=s?this.getPostData(e,t):null,l="proxy"===e?u:c,this.emit("debug",{action:"request",request:o,provider:this}),h={url:o,throttleSlotInterval:1e3,throttleCallback:function(e,t){return d.isCommunityResource()&&(0,r(_d[5]).showThrottleMessage)(),Promise.resolve(!0)}},p=null,i&&(h.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},p=Object.keys(i).map(function(e){return e+"="+i[e]}).join("&")),[4,(0,r(_d[6]).fetchJson)(h,p,l||u)];case 1:return f=n.sent(),this.emit("debug",{action:"response",request:o,response:(0,r(_d[4]).deepCopy)(f),provider:this}),[2,f]}})})},p.prototype.detectNetwork=function(){return o(this,void 0,void 0,function(){return n(this,function(e){return[2,this.network]})})},p.prototype.perform=function(t,c){return o(this,void 0,void 0,function(){var o,u,p,f,d,g,y,b,w;return n(this,function(n){switch(n.label){case 0:switch(t){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:c.address,tag:c.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:c.address,tag:c.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:c.address,tag:c.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:c.address,position:c.position,tag:c.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:c.signedTransaction},!0).catch(function(e){return h("sendTransaction",e,c.signedTransaction)})];case 8:if(c.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:c.blockTag,boolean:c.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:c.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:c.transactionHash})];case 11:if("latest"!==c.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");(o=i(c.transaction)).module="proxy",o.action="eth_call",n.label=12;case 12:return n.trys.push([12,14,,15]),[4,this.fetch("proxy",o,!0)];case 13:return[2,n.sent()];case 14:return[2,h("call",n.sent(),c.transaction)];case 15:(o=i(c.transaction)).module="proxy",o.action="eth_estimateGas",n.label=16;case 16:return n.trys.push([16,18,,19]),[4,this.fetch("proxy",o,!0)];case 17:return[2,n.sent()];case 18:return[2,h("estimateGas",n.sent(),c.transaction)];case 19:return u={action:"getLogs"},c.filter.fromBlock&&(u.fromBlock=l(c.filter.fromBlock)),c.filter.toBlock&&(u.toBlock=l(c.filter.toBlock)),c.filter.address&&(u.address=c.filter.address),c.filter.topics&&c.filter.topics.length>0&&(c.filter.topics.length>1&&s.throwError("unsupported topic count",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{topics:c.filter.topics}),1===c.filter.topics.length&&("string"==typeof(p=c.filter.topics[0])&&66===p.length||s.throwError("unsupported topic format",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{topic0:p}),u.topic0=p)),[4,this.fetch("logs",u)];case 20:f=n.sent(),d={},g=0,n.label=21;case 21:return g0&&i[i.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]t?null:(o+i)/2}function c(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(r(_d[2]).BigNumber.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map(function(e){return c(e)}));if("object"==typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map(function(t){var n=e[t];return n="function"==typeof n?"[function]":c(n),JSON.stringify(t)+":"+n}).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var l=1;function f(e){var t=null,n=null,o=new Promise(function(o){t=function(){n&&(clearTimeout(n),n=null),o()},n=setTimeout(t,e)});return{cancel:t,getPromise:function(){return o},wait:function(e){return o=o.then(e)}}}var g=[r(_d[0]).Logger.errors.CALL_EXCEPTION,r(_d[0]).Logger.errors.INSUFFICIENT_FUNDS,r(_d[0]).Logger.errors.NONCE_EXPIRED,r(_d[0]).Logger.errors.REPLACEMENT_UNDERPRICED,r(_d[0]).Logger.errors.UNPREDICTABLE_GAS_LIMIT],h=["address","args","errorArgs","errorSignature","method","transaction"];function d(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function p(e,t){return function(n){var o={};n.forEach(function(t){var n=e(t.result);o[n]||(o[n]={count:0,result:t.result}),o[n].count++});for(var i=Object.keys(o),u=0;u=t)return a.result}}}function b(e,t,n){var o=c;switch(t){case"getBlockNumber":return function(t){var n=t.map(function(e){return e.result}),o=s(t.map(function(e){return e.result}),2);if(null!=o)return o=Math.ceil(o),n.indexOf(o+1)>=0&&o++,o>=e._highestBlockNumber&&(e._highestBlockNumber=o),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map(function(e){return e.result});return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return s(e.map(function(e){return e.result}))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":o=function(e){return null==e?null:((e=(0,r(_d[3]).shallowCopy)(e)).confirmations=-1,c(e))};break;case"getBlock":o=n.includeTransactions?function(e){return null==e?null:((e=(0,r(_d[3]).shallowCopy)(e)).transactions=e.transactions.map(function(e){return(e=(0,r(_d[3]).shallowCopy)(e)).confirmations=-1,e}),c(e))}:function(e){return null==e?null:c(e)};break;default:throw new Error("unknown method: "+t)}return p(o,e.quorum)}function v(e,t){return n(this,void 0,void 0,function(){var n;return o(this,function(o){return null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t?[2,n]:[2,(0,r(_d[4]).poll)(function(){return new Promise(function(o,i){setTimeout(function(){return n.blockNumber>=t?o(n):e.cancelled?o(null):o(void 0)},0)})},{oncePoll:n})]})})}function w(e,t,u,a){return n(this,void 0,void 0,function(){var n,s;return o(this,function(o){switch(o.label){case 0:switch(n=e.provider,u){case"getBlockNumber":case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":case"getTransactionCount":case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":case"estimateGas":return[3,12];case"getTransaction":case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,n[u]()];case 2:return n.getEtherPrice?[2,n.getEtherPrice()]:[3,19];case 3:return a.blockTag&&(0,r(_d[5]).isHexString)(a.blockTag)?[4,v(e,t)]:[3,5];case 4:n=o.sent(),o.label=5;case 5:return[2,n[u](a.address,a.blockTag||"latest")];case 6:return a.blockTag&&(0,r(_d[5]).isHexString)(a.blockTag)?[4,v(e,t)]:[3,8];case 7:n=o.sent(),o.label=8;case 8:return[2,n.getStorageAt(a.address,a.position,a.blockTag||"latest")];case 9:return a.blockTag&&(0,r(_d[5]).isHexString)(a.blockTag)?[4,v(e,t)]:[3,11];case 10:n=o.sent(),o.label=11;case 11:return[2,n[a.includeTransactions?"getBlockWithTransactions":"getBlock"](a.blockTag||a.blockHash)];case 12:return a.blockTag&&(0,r(_d[5]).isHexString)(a.blockTag)?[4,v(e,t)]:[3,14];case 13:n=o.sent(),o.label=14;case 14:return"call"===u&&a.blockTag?[2,n[u](a.transaction,a.blockTag)]:[2,n[u](a.transaction)];case 15:return[2,n[u](a.transactionHash)];case 16:return(s=a.filter).fromBlock&&(0,r(_d[5]).isHexString)(s.fromBlock)||s.toBlock&&(0,r(_d[5]).isHexString)(s.toBlock)?[4,v(e,t)]:[3,18];case 17:n=o.sent(),o.label=18;case 18:return[2,n.getLogs(s)];case 19:return[2,i.throwError("unknown method error",r(_d[0]).Logger.errors.UNKNOWN_ERROR,{method:u,params:a})]}})})}var y=(function(e){function s(t,n){var o=this;0===t.length&&i.throwArgumentError("missing providers","providers",t);var u=t.map(function(e,t){if(r(_d[6]).Provider.isProvider(e)){var n=(0,r(_d[7]).isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var o=(0,r(_d[3]).shallowCopy)(e);null==o.priority&&(o.priority=1),null==o.stallTimeout&&(o.stallTimeout=(0,r(_d[7]).isCommunityResource)(e)?2e3:750),null==o.weight&&(o.weight=1);var u=o.weight;return(u%1||u>512||u<1)&&i.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+t+"].weight",u),Object.freeze(o)}),s=u.reduce(function(e,t){return e+t.weight},0);null==n?n=s/2:n>s&&i.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var c=a(u.map(function(e){return e.provider.network}));return null==c&&(c=new Promise(function(e,t){setTimeout(function(){o.detectNetwork().then(e,t)},0)})),o=e.call(this,c)||this,(0,r(_d[3]).defineReadOnly)(o,"providerConfigs",Object.freeze(u)),(0,r(_d[3]).defineReadOnly)(o,"quorum",n),o._highestBlockNumber=-1,o}return t(s,e),s.prototype.detectNetwork=function(){return n(this,void 0,void 0,function(){return o(this,function(e){switch(e.label){case 0:return[4,Promise.all(this.providerConfigs.map(function(e){return e.provider.getNetwork()}))];case 1:return[2,a(e.sent())]}})})},s.prototype.perform=function(e,t){return n(this,void 0,void 0,function(){var n,a,s,c,p,v,y,k,T,E,N,_=this;return o(this,function(P){switch(P.label){case 0:return"sendTransaction"!==e?[3,2]:[4,Promise.all(this.providerConfigs.map(function(e){return e.provider.sendTransaction(t.signedTransaction).then(function(e){return e.hash},function(e){return e})}))];case 1:for(n=P.sent(),a=0;a=E.quorum?void 0!==(N=c(T))?(p.forEach(function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}),[2,{value:N}]):k?[3,4]:[4,f(100).getPromise()]:[3,5];case 3:o.sent(),o.label=4;case 4:k=!1,o.label=5;case 5:return P=p.reduce(function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return g.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e},{}),Object.keys(P).forEach(function(e){var t=P[e];if(!(t.weight<_.quorum)){p.forEach(function(e){e.staller&&e.staller.cancel(),e.cancelled=!0});var n=t.error,o={};h.forEach(function(e){null!=n[e]&&(o[e]=n[e])}),i.throwError(n.reason||n.message,e,o)}}),0===p.filter(function(e){return!e.done}).length?[2,"break"]:[2]}})},E=this,P.label=5;case 5:return[5,T()];case 6:return"object"==typeof(N=P.sent())?[2,N.value]:"break"===N?[3,7]:[3,5];case 7:return p.forEach(function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}),[2,i.throwError("failed to meet quorum",r(_d[0]).Logger.errors.SERVER_ERROR,{method:e,params:t,results:p.map(function(e){return d(e)}),provider:this})]}})})},s})(r(_d[9]).BaseProvider);_e.FallbackProvider=y},1443,[1321,1384,1324,1335,1404,1329,1378,1407,1444,1382]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shuffled=e.randomBytes=void 0,Object.defineProperty(e,"randomBytes",{enumerable:!0,get:function(){return r(d[0]).randomBytes}}),Object.defineProperty(e,"shuffled",{enumerable:!0,get:function(){return r(d[1]).shuffled}})},1444,[1445,1447]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomBytes=void 0;var n=new(r(d[0]).Logger)(r(d[1]).version);var o=(function(){if('undefined'!=typeof self)return self;if('undefined'!=typeof window)return window;if(void 0!==g)return g;throw new Error('unable to locate global object')})(),t=o.crypto||o.msCrypto;t&&t.getRandomValues||(n.warn("WARNING: Missing strong random number source"),t={getRandomValues:function(o){return n.throwError("no secure random source avaialble",r(d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}}),e.randomBytes=function(o){(o<=0||o>1024||o%1||o!=o)&&n.throwArgumentError("invalid length","length",o);var u=new Uint8Array(o);return t.getRandomValues(u),(0,r(d[2]).arrayify)(u)}},1445,[1321,1446,1329]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0,e.version="random/5.8.0"},1446,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shuffled=void 0,e.shuffled=function(t){for(var f=(t=t.slice()).length-1;f>0;f--){var o=Math.floor(Math.random()*(f+1)),n=t[f];t[f]=t[o],t[o]=n}return t}},1447,[]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IpcProvider=void 0;e.IpcProvider=null},1448,[]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function c(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(c.prototype=n.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.InfuraProvider=e.InfuraWebSocketProvider=void 0;var n=new(r(_d[0]).Logger)(r(_d[1]).version),c="84842078b09946638c03157f83405213",p=(function(t){function p(o,c){var p,s=new u(o,c),l=s.connection;l.password&&n.throwError("INFURA WebSocket project secrets unsupported",r(_d[0]).Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var d=l.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return p=t.call(this,d,o)||this,(0,r(_d[2]).defineReadOnly)(p,"apiKey",s.projectId),(0,r(_d[2]).defineReadOnly)(p,"projectId",s.projectId),(0,r(_d[2]).defineReadOnly)(p,"projectSecret",s.projectSecret),p}return o(p,t),p.prototype.isCommunityResource=function(){return this.projectId===c},p})(r(_d[3]).WebSocketProvider);e.InfuraWebSocketProvider=p;var u=(function(t){function u(){return null!==t&&t.apply(this,arguments)||this}return o(u,t),u.getWebSocketProvider=function(t,o){return new p(t,o)},u.getApiKey=function(t){var o={apiKey:c,projectId:c,projectSecret:null};return null==t||("string"==typeof t?o.projectId=t:null!=t.projectSecret?(n.assertArgument("string"==typeof t.projectId,"projectSecret requires a projectId","projectId",t.projectId),n.assertArgument("string"==typeof t.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),o.projectId=t.projectId,o.projectSecret=t.projectSecret):t.projectId&&(o.projectId=t.projectId),o.apiKey=o.projectId),o},u.getUrl=function(t,o){var p=null;switch(t?t.name:"unknown"){case"homestead":p="mainnet.infura.io";break;case"goerli":p="goerli.infura.io";break;case"sepolia":p="sepolia.infura.io";break;case"matic":p="polygon-mainnet.infura.io";break;case"maticmum":p="polygon-mumbai.infura.io";break;case"optimism":p="optimism-mainnet.infura.io";break;case"optimism-goerli":p="optimism-goerli.infura.io";break;case"optimism-sepolia":p="optimism-sepolia.infura.io";break;case"arbitrum":p="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":p="arbitrum-goerli.infura.io";break;case"arbitrum-sepolia":p="arbitrum-sepolia.infura.io";break;default:n.throwError("unsupported network",r(_d[0]).Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var u={allowGzip:!0,url:"https://"+p+"/v3/"+o.projectId,throttleCallback:function(t,n){return o.projectId===c&&(0,r(_d[4]).showThrottleMessage)(),Promise.resolve(!0)}};return null!=o.projectSecret&&(u.user="",u.password=o.projectSecret),u},u.prototype.isCommunityResource=function(){return this.projectId===c},u})(r(_d[5]).UrlJsonRpcProvider);e.InfuraProvider=u},1449,[1321,1384,1335,1434,1407,1439]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function c(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(c.prototype=o.prototype,new c)});Object.defineProperty(e,"__esModule",{value:!0}),e.JsonRpcBatchProvider=void 0;var o=(function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n(o,t),o.prototype.send=function(t,n){var o=this,c={method:t,params:n,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var s={request:c,resolve:null,reject:null},u=new Promise(function(t,n){s.resolve=t,s.reject=n});return this._pendingBatch.push(s),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout(function(){var t=o._pendingBatch;o._pendingBatch=null,o._pendingBatchAggregator=null;var n=t.map(function(t){return t.request});return o.emit("debug",{action:"requestBatch",request:(0,r(_d[0]).deepCopy)(n),provider:o}),(0,r(_d[1]).fetchJson)(o.connection,JSON.stringify(n)).then(function(c){o.emit("debug",{action:"response",request:n,response:c,provider:o}),t.forEach(function(t,n){var o=c[n];if(o.error){var s=new Error(o.error.message);s.code=o.error.code,s.data=o.error.data,t.reject(s)}else t.resolve(o.result)})},function(c){o.emit("debug",{action:"response",error:c,request:n,provider:o}),t.forEach(function(t){t.reject(c)})})},10)),u},o})(r(_d[2]).JsonRpcProvider);e.JsonRpcBatchProvider=o},1450,[1335,1404,1436]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function s(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(s.prototype=n.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.NodesmithProvider=void 0;var n=new(r(_d[0]).Logger)(r(_d[1]).version),s=(function(t){function s(){return null!==t&&t.apply(this,arguments)||this}return o(s,t),s.getApiKey=function(t){return t&&"string"!=typeof t&&n.throwArgumentError("invalid apiKey","apiKey",t),t||"ETHERS_JS_SHARED"},s.getUrl=function(t,o){n.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var s=null;switch(t.name){case"homestead":s="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":s="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":s="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":s="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":s="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:n.throwArgumentError("unsupported network","network",arguments[0])}return s+"?apiKey="+o},s})(r(_d[2]).UrlJsonRpcProvider);e.NodesmithProvider=s},1451,[1321,1384,1439]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,o=this&&this.__extends||(t=function(o,n){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,o){t.__proto__=o}||function(t,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])},t(o,n)},function(o,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function p(){this.constructor=o}t(o,n),o.prototype=null===n?Object.create(n):(p.prototype=n.prototype,new p)});Object.defineProperty(e,"__esModule",{value:!0}),e.PocketProvider=void 0;var n=new(r(_d[0]).Logger)(r(_d[1]).version),p="62e1ad51b37b8e00394bda3b",c=(function(t){function c(){return null!==t&&t.apply(this,arguments)||this}return o(c,t),c.getApiKey=function(t){var o={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==t?o.applicationId=p:"string"==typeof t?o.applicationId=t:null!=t.applicationSecretKey?(o.applicationId=t.applicationId,o.applicationSecretKey=t.applicationSecretKey):t.applicationId?o.applicationId=t.applicationId:n.throwArgumentError("unsupported PocketProvider apiKey","apiKey",t),o},c.getUrl=function(t,o){var p=null;switch(t?t.name:"unknown"){case"goerli":p="eth-goerli.gateway.pokt.network";break;case"homestead":p="eth-mainnet.gateway.pokt.network";break;case"kovan":p="poa-kovan.gateway.pokt.network";break;case"matic":p="poly-mainnet.gateway.pokt.network";break;case"maticmum":p="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":p="eth-rinkeby.gateway.pokt.network";break;case"ropsten":p="eth-ropsten.gateway.pokt.network";break;default:n.throwError("unsupported network",r(_d[0]).Logger.errors.INVALID_ARGUMENT,{argument:"network",value:t})}var c={headers:{},url:"https://"+p+"/v1/lb/"+o.applicationId};return null!=o.applicationSecretKey&&(c.user="",c.password=o.applicationSecretKey),c},c.prototype.isCommunityResource=function(){return this.applicationId===p},c})(r(_d[2]).UrlJsonRpcProvider);e.PocketProvider=c},1452,[1321,1384,1439]); -__d(function(g,r,i,a,m,e,_d){"use strict";var o,t=this&&this.__extends||(o=function(t,s){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,t){o.__proto__=t}||function(o,t){for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(o[s]=t[s])},o(t,s)},function(t,s){if("function"!=typeof s&&null!==s)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");function n(){this.constructor=t}o(t,s),t.prototype=null===s?Object.create(s):(n.prototype=s.prototype,new n)});Object.defineProperty(e,"__esModule",{value:!0}),e.QuickNodeProvider=void 0;var s=new(r(_d[0]).Logger)(r(_d[1]).version),n=(function(o){function n(){return null!==o&&o.apply(this,arguments)||this}return t(n,o),n.getApiKey=function(o){return o&&"string"!=typeof o&&s.throwArgumentError("invalid apiKey","apiKey",o),o||"919b412a057b5e9c9b6dce193c5a60242d6efadb"},n.getUrl=function(o,t){var n=null;switch(o.name){case"homestead":n="ethers.quiknode.pro";break;case"goerli":n="ethers.ethereum-goerli.quiknode.pro";break;case"sepolia":n="ethers.ethereum-sepolia.quiknode.pro";break;case"holesky":n="ethers.ethereum-holesky.quiknode.pro";break;case"arbitrum":n="ethers.arbitrum-mainnet.quiknode.pro";break;case"arbitrum-goerli":n="ethers.arbitrum-goerli.quiknode.pro";break;case"arbitrum-sepolia":n="ethers.arbitrum-sepolia.quiknode.pro";break;case"base":n="ethers.base-mainnet.quiknode.pro";break;case"base-goerli":n="ethers.base-goerli.quiknode.pro";break;case"base-spolia":n="ethers.base-sepolia.quiknode.pro";break;case"bnb":n="ethers.bsc.quiknode.pro";break;case"bnbt":n="ethers.bsc-testnet.quiknode.pro";break;case"matic":n="ethers.matic.quiknode.pro";break;case"maticmum":n="ethers.matic-testnet.quiknode.pro";break;case"optimism":n="ethers.optimism.quiknode.pro";break;case"optimism-goerli":n="ethers.optimism-goerli.quiknode.pro";break;case"optimism-sepolia":n="ethers.optimism-sepolia.quiknode.pro";break;case"xdai":n="ethers.xdai.quiknode.pro";break;default:s.throwArgumentError("unsupported network","network",arguments[0])}return"https://"+n+"/"+t},n})(r(_d[2]).UrlJsonRpcProvider);e.QuickNodeProvider=n},1453,[1321,1384,1439]); -__d(function(g,r,i,a,m,e,_d){"use strict";var t,n=this&&this.__extends||(t=function(n,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])},t(n,o)},function(n,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function s(){this.constructor=n}t(n,o),n.prototype=null===o?Object.create(o):(s.prototype=o.prototype,new s)});Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Provider=void 0;var o=new(r(_d[0]).Logger)(r(_d[1]).version),s=1;function u(t,n){var o="Web3LegacyFetcher";return function(t,u){var c=this,p={method:t,params:u,id:s++,jsonrpc:"2.0"};return new Promise(function(t,s){c.emit("debug",{action:"request",fetcher:o,request:(0,r(_d[2]).deepCopy)(p),provider:c}),n(p,function(n,u){if(n)return c.emit("debug",{action:"response",fetcher:o,error:n,request:p,provider:c}),s(n);if(c.emit("debug",{action:"response",fetcher:o,request:p,response:u,provider:c}),u.error){var d=new Error(u.error.message);return d.code=u.error.code,d.data=u.error.data,s(d)}t(u.result)})})}}function c(t){return function(n,o){var s=this;null==o&&(o=[]);var u={method:n,params:o};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,r(_d[2]).deepCopy)(u),provider:this}),t.request(u).then(function(t){return s.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:u,response:t,provider:s}),t},function(t){throw s.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:u,error:t,provider:s}),t})}}var p=(function(t){function s(n,s){var p;null==n&&o.throwArgumentError("missing provider","provider",n);var d=null,f=null,h=null;return"function"==typeof n?(d="unknown:",f=n):(!(d=n.host||n.path||"")&&n.isMetaMask&&(d="metamask"),h=n,n.request?(""===d&&(d="eip-1193:"),f=c(n)):n.sendAsync?f=u(0,n.sendAsync.bind(n)):n.send?f=u(0,n.send.bind(n)):o.throwArgumentError("unsupported provider","provider",n),d||(d="unknown:")),p=t.call(this,d,s)||this,(0,r(_d[2]).defineReadOnly)(p,"jsonRpcFetchFunc",f),(0,r(_d[2]).defineReadOnly)(p,"provider",h),p}return n(s,t),s.prototype.send=function(t,n){return this.jsonRpcFetchFunc(t,n)},s})(r(_d[3]).JsonRpcProvider);e.Web3Provider=p},1454,[1321,1384,1335,1436]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.reactNativeNavigation=void 0;var t=n(r(d[1])),o=n(r(d[2])),u=(function(){return(0,o.default)(function n(){(0,t.default)(this,n),this.navigationRef=null},[{key:"setNavigationRef",value:function(n){this.navigationRef=n}},{key:"navigate",value:function(n,t){var o;null!=(o=this.navigationRef)&&o.current?this.navigationRef.current.navigate(n,t):console.warn('[ReactNativeNavigation] Navigation attempted but no navigation ref available')}},{key:"goBack",value:function(){var n;null!=(n=this.navigationRef)&&n.current?this.navigationRef.current.canGoBack()?this.navigationRef.current.goBack():console.warn('[ReactNativeNavigation] Cannot go back, no previous screen'):console.warn('[ReactNativeNavigation] goBack attempted but no navigation ref available')}},{key:"canGoBack",value:function(){var n;return!(null==(n=this.navigationRef)||!n.current)&&this.navigationRef.current.canGoBack()}},{key:"reset",value:function(n){var t;null!=(t=this.navigationRef)&&t.current?this.navigationRef.current.reset({index:n.length-1,routes:n.map(function(n){return{name:n}})}):console.warn('[ReactNativeNavigation] reset attempted but no navigation ref available')}},{key:"replace",value:function(n,t){var o;null!=(o=this.navigationRef)&&o.current?this.navigationRef.current.replace(n,t):console.warn('[ReactNativeNavigation] replace attempted but no navigation ref available')}},{key:"push",value:function(n,t){var o;null!=(o=this.navigationRef)&&o.current?this.navigationRef.current.push(n,t):console.warn('[ReactNativeNavigation] push attempted but no navigation ref available')}},{key:"pop",value:function(){var n;null!=(n=this.navigationRef)&&n.current?this.navigationRef.current.pop():console.warn('[ReactNativeNavigation] pop attempted but no navigation ref available')}},{key:"getCurrentRoute",value:function(){var n;if(null!=(n=this.navigationRef)&&n.current){var t=this.navigationRef.current.getCurrentRoute();return t?{name:t.name,params:t.params}:null}return null}},{key:"getRouteParams",value:function(){return{}}}])})();e.reactNativeNavigation=new u},1455,[1,3,4]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"HomeScreen",{enumerable:!0,get:function(){return t.default}});var t=n(r(d[1]))},1456,[1,1457]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return n.default}});var n=t(r(d[1]))},1457,[1,1458]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0]),t=r(d[1]);e.default=function(){var o=(0,r(d[2]).useNavigation)(),s=(0,r(d[2]).useRoute)().params||{},c=s.address,u=s.network;return(0,n.useEffect)(function(){console.log('\ud83c\udfe0 HomeScreen mounted with params:',{address:c,network:u})},[c,u]),(0,t.jsxs)(r(d[3]).ScrollView,{children:[(0,t.jsx)(r(d[3]).Text,{style:{color:'red'},children:"HomeScreen"}),(0,t.jsx)(r(d[3]).Button,{onPress:function(){return o.navigate('SelectTokens')},children:(0,t.jsx)(r(d[3]).Text,{children:"Send"})})]})}},1458,[128,258,547,1459]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={H1:!0,H2:!0,H3:!0,H4:!0,H5:!0,H6:!0,Image:!0,Paragraph:!0,ScrollView:!0,Spinner:!0,Stack:!0,TamaguiProvider:!0,useTheme:!0,View:!0,XStack:!0,YStack:!0,PortalProvider:!0,FlatList:!0,tamaguiConfig:!0,extensionTamaguiConfig:!0};Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return t.FlatList}}),Object.defineProperty(_e,"H1",{enumerable:!0,get:function(){return _r(d[0]).H1}}),Object.defineProperty(_e,"H2",{enumerable:!0,get:function(){return _r(d[0]).H2}}),Object.defineProperty(_e,"H3",{enumerable:!0,get:function(){return _r(d[0]).H3}}),Object.defineProperty(_e,"H4",{enumerable:!0,get:function(){return _r(d[0]).H4}}),Object.defineProperty(_e,"H5",{enumerable:!0,get:function(){return _r(d[0]).H5}}),Object.defineProperty(_e,"H6",{enumerable:!0,get:function(){return _r(d[0]).H6}}),Object.defineProperty(_e,"Image",{enumerable:!0,get:function(){return _r(d[0]).Image}}),Object.defineProperty(_e,"Paragraph",{enumerable:!0,get:function(){return _r(d[0]).Paragraph}}),Object.defineProperty(_e,"PortalProvider",{enumerable:!0,get:function(){return _r(d[0]).PortalProvider}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return _r(d[0]).ScrollView}}),Object.defineProperty(_e,"Spinner",{enumerable:!0,get:function(){return _r(d[0]).Spinner}}),Object.defineProperty(_e,"Stack",{enumerable:!0,get:function(){return _r(d[0]).Stack}}),Object.defineProperty(_e,"TamaguiProvider",{enumerable:!0,get:function(){return _r(d[0]).TamaguiProvider}}),Object.defineProperty(_e,"View",{enumerable:!0,get:function(){return _r(d[0]).View}}),Object.defineProperty(_e,"XStack",{enumerable:!0,get:function(){return _r(d[0]).XStack}}),Object.defineProperty(_e,"YStack",{enumerable:!0,get:function(){return _r(d[0]).YStack}}),Object.defineProperty(_e,"extensionTamaguiConfig",{enumerable:!0,get:function(){return _r(d[1]).extensionTamaguiConfig}}),Object.defineProperty(_e,"tamaguiConfig",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"useTheme",{enumerable:!0,get:function(){return _r(d[0]).useTheme}}),Object.keys(_r(d[2])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[2])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[2])[t]}}))}),Object.keys(_r(d[3])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[3])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[3])[t]}}))}),Object.keys(_r(d[4])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[4])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[4])[t]}}))}),Object.keys(_r(d[5])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[5])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[5])[t]}}))}),Object.keys(_r(d[6])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[6])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[6])[t]}}))}),Object.keys(_r(d[7])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[7])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[7])[t]}}))}),Object.keys(_r(d[8])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[8])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[8])[t]}}))}),Object.keys(_r(d[9])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[9])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[9])[t]}}))}),Object.keys(_r(d[10])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[10])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[10])[t]}}))});var t=_r(d[11]);Object.keys(_r(d[12])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[12])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[12])[t]}}))}),Object.keys(_r(d[13])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[13])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[13])[t]}}))}),Object.keys(_r(d[14])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[14])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[14])[t]}}))}),Object.keys(_r(d[15])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[15])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[15])[t]}}))}),Object.keys(_r(d[16])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[16])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[16])[t]}}))}),Object.keys(_r(d[17])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[17])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[17])[t]}}))}),Object.keys(_r(d[18])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[18])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[18])[t]}}))}),Object.keys(_r(d[19])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[19])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[19])[t]}}))}),Object.keys(_r(d[20])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[20])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[20])[t]}}))}),Object.keys(_r(d[21])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[21])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[21])[t]}}))}),Object.keys(_r(d[22])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[22])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[22])[t]}}))}),Object.keys(_r(d[23])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[23])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[23])[t]}}))}),Object.keys(_r(d[24])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[24])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[24])[t]}}))}),Object.keys(_r(d[25])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[25])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[25])[t]}}))}),Object.keys(_r(d[26])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[26])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[26])[t]}}))}),Object.keys(_r(d[27])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[27])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[27])[t]}}))}),Object.keys(_r(d[28])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[28])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[28])[t]}}))}),Object.keys(_r(d[29])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[29])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[29])[t]}}))}),Object.keys(_r(d[30])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[30])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[30])[t]}}))}),Object.keys(_r(d[31])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[31])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[31])[t]}}))}),Object.keys(_r(d[32])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[32])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[32])[t]}}))}),Object.keys(_r(d[33])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[33])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[33])[t]}}))}),Object.keys(_r(d[34])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[34])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[34])[t]}}))}),Object.keys(_r(d[35])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[35])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[35])[t]}}))}),Object.keys(_r(d[36])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[36])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[36])[t]}}))}),Object.keys(_r(d[37])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[37])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[37])[t]}}))}),Object.keys(_r(d[38])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[38])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[38])[t]}}))}),Object.keys(_r(d[39])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[39])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[39])[t]}}))}),Object.keys(_r(d[40])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[40])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[40])[t]}}))}),Object.keys(_r(d[41])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[41])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[41])[t]}}))}),Object.keys(_r(d[42])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[42])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[42])[t]}}))}),Object.keys(_r(d[43])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[43])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[43])[t]}}))}),Object.keys(_r(d[44])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[44])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[44])[t]}}))}),Object.keys(_r(d[45])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[45])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[45])[t]}}))}),Object.keys(_r(d[46])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[46])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[46])[t]}}))}),Object.keys(_r(d[47])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[47])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[47])[t]}}))}),Object.keys(_r(d[48])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[48])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[48])[t]}}))}),Object.keys(_r(d[49])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[49])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[49])[t]}}))}),Object.keys(_r(d[50])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[50])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[50])[t]}}))}),Object.keys(_r(d[51])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[51])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[51])[t]}}))}),Object.keys(_r(d[52])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[52])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[52])[t]}}))}),Object.keys(_r(d[53])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[53])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[53])[t]}}))}),Object.keys(_r(d[54])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[54])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[54])[t]}}))}),Object.keys(_r(d[55])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[55])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[55])[t]}}))}),Object.keys(_r(d[56])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[56])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[56])[t]}}))}),Object.keys(_r(d[57])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[57])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[57])[t]}}))}),Object.keys(_r(d[58])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[58])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[58])[t]}}))}),Object.keys(_r(d[59])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[59])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[59])[t]}}))}),Object.keys(_r(d[60])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[60])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[60])[t]}}))}),Object.keys(_r(d[61])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[61])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[61])[t]}}))}),Object.keys(_r(d[62])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[62])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[62])[t]}}))}),Object.keys(_r(d[63])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[63])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[63])[t]}}))}),Object.keys(_r(d[64])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[64])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[64])[t]}}))}),Object.keys(_r(d[65])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[65])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[65])[t]}}))}),Object.keys(_r(d[66])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[66])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[66])[t]}}))});var r=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,c,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((c=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(c.get||c.set)?o(u,f,c):u[f]=e[f]);return u})(e,t)})(_r(d[67]));Object.keys(r).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===r[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return r[t]}}))}),Object.keys(_r(d[68])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[68])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[68])[t]}}))}),Object.keys(_r(d[69])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[69])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[69])[t]}}))}),Object.keys(_r(d[70])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[70])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[70])[t]}}))}),Object.keys(_r(d[71])).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===_r(d[71])[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return _r(d[71])[t]}}))})},1459,[1460,1783,1820,1821,1822,1823,1825,1826,1824,1827,2265,1828,2266,2267,2382,2384,2385,2387,2381,2388,2389,2390,2391,2400,2403,2406,2407,2383,2405,2408,2409,2410,2404,2413,2414,2416,2421,2418,2419,2420,2423,2424,2425,2426,2386,2427,2422,2428,2429,2430,2417,2432,2433,2434,2435,2436,2437,2439,2415,2440,2441,2442,2443,2444,2431,2445,2447,2464,1819,2465,2466,2454]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,f,p){if(c&&"object"==typeof c||"function"==typeof c){var x=function(u){!s.call(t,u)&&u!==f&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var l of u(c))x(l)}return t},f=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{ComponentContext:function(){return r(d[0]).ComponentContext},Configuration:function(){return r(d[0]).Configuration},FontLanguage:function(){return r(d[0]).FontLanguage},GroupContext:function(){return r(d[0]).GroupContext},Spacer:function(){return r(d[0]).Spacer},Stack:function(){return r(d[0]).Stack},Theme:function(){return r(d[0]).Theme},Unspaced:function(){return r(d[0]).Unspaced},View:function(){return r(d[0]).View},createComponent:function(){return r(d[0]).createComponent},createFont:function(){return r(d[0]).createFont},createShorthands:function(){return r(d[0]).createShorthands},createStyledContext:function(){return r(d[0]).createStyledContext},createTheme:function(){return r(d[0]).createTheme},createTokens:function(){return r(d[0]).createTokens},createVariable:function(){return r(d[0]).createVariable},getCSSStylesAtomic:function(){return r(d[0]).getCSSStylesAtomic},getConfig:function(){return r(d[0]).getConfig},getMedia:function(){return r(d[0]).getMedia},getThemes:function(){return r(d[0]).getThemes},getToken:function(){return r(d[0]).getToken},getTokenValue:function(){return r(d[0]).getTokenValue},getTokens:function(){return r(d[0]).getTokens},getVariable:function(){return r(d[0]).getVariable},getVariableName:function(){return r(d[0]).getVariableName},getVariableValue:function(){return r(d[0]).getVariableValue},insertFont:function(){return r(d[0]).insertFont},isChrome:function(){return r(d[0]).isChrome},isClient:function(){return r(d[0]).isClient},isServer:function(){return r(d[0]).isServer},isTamaguiComponent:function(){return r(d[0]).isTamaguiComponent},isTamaguiElement:function(){return r(d[0]).isTamaguiElement},isTouchable:function(){return r(d[0]).isTouchable},isVariable:function(){return r(d[0]).isVariable},isWeb:function(){return r(d[0]).isWeb},isWebTouchable:function(){return r(d[0]).isWebTouchable},matchMedia:function(){return r(d[0]).matchMedia},mediaObjectToString:function(){return r(d[0]).mediaObjectToString},mediaQueryConfig:function(){return r(d[0]).mediaQueryConfig},mediaState:function(){return r(d[0]).mediaState},setConfig:function(){return r(d[0]).setConfig},setOnLayoutStrategy:function(){return r(d[0]).setOnLayoutStrategy},setupDev:function(){return r(d[0]).setupDev},setupReactNative:function(){return r(d[0]).setupReactNative},spacedChildren:function(){return r(d[0]).spacedChildren},styled:function(){return r(d[0]).styled},themeable:function(){return r(d[0]).themeable},useConfiguration:function(){return r(d[0]).useConfiguration},useDidFinishSSR:function(){return r(d[0]).useDidFinishSSR},useEvent:function(){return r(d[0]).useEvent},useGet:function(){return r(d[0]).useGet},useIsTouchDevice:function(){return r(d[0]).useIsTouchDevice},useIsomorphicLayoutEffect:function(){return r(d[0]).useIsomorphicLayoutEffect},useMedia:function(){return r(d[0]).useMedia},useProps:function(){return r(d[0]).useProps},usePropsAndStyle:function(){return r(d[0]).usePropsAndStyle},useStyle:function(){return r(d[0]).useStyle},useTheme:function(){return r(d[0]).useTheme},useThemeName:function(){return r(d[0]).useThemeName},variableToString:function(){return r(d[0]).variableToString},withStaticProperties:function(){return r(d[0]).withStaticProperties}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t)),f(p,r(d[1]),m.exports),f(p,r(d[2]),m.exports),f(p,r(d[3]),m.exports),f(p,r(d[4]),m.exports),f(p,r(d[5]),m.exports),f(p,r(d[6]),m.exports),f(p,r(d[7]),m.exports),f(p,r(d[8]),m.exports),f(p,r(d[9]),m.exports),f(p,r(d[10]),m.exports),f(p,r(d[11]),m.exports),f(p,r(d[12]),m.exports),f(p,r(d[13]),m.exports),f(p,r(d[14]),m.exports),f(p,r(d[15]),m.exports),f(p,r(d[16]),m.exports),f(p,r(d[17]),m.exports),f(p,r(d[18]),m.exports),f(p,r(d[19]),m.exports),f(p,r(d[20]),m.exports),f(p,r(d[21]),m.exports),f(p,r(d[22]),m.exports),f(p,r(d[23]),m.exports),f(p,r(d[24]),m.exports),f(p,r(d[25]),m.exports),f(p,r(d[26]),m.exports),f(p,r(d[27]),m.exports),f(p,r(d[28]),m.exports),f(p,r(d[29]),m.exports),f(p,r(d[30]),m.exports),f(p,r(d[31]),m.exports),f(p,r(d[32]),m.exports),f(p,r(d[33]),m.exports),f(p,r(d[34]),m.exports),f(p,r(d[35]),m.exports),f(p,r(d[36]),m.exports),f(p,r(d[37]),m.exports),f(p,r(d[38]),m.exports),f(p,r(d[39]),m.exports),f(p,r(d[40]),m.exports),f(p,r(d[41]),m.exports),f(p,r(d[42]),m.exports),f(p,r(d[43]),m.exports),f(p,r(d[44]),m.exports),f(p,r(d[45]),m.exports),f(p,r(d[46]),m.exports),f(p,r(d[47]),m.exports),f(p,r(d[48]),m.exports),f(p,r(d[49]),m.exports),f(p,r(d[50]),m.exports),f(p,r(d[51]),m.exports),f(p,r(d[52]),m.exports),f(p,r(d[53]),m.exports)},1460,[1461,1579,1616,1629,1599,1661,1669,1677,1679,1525,1636,1631,1671,1694,1696,1571,1699,1673,1667,1685,1700,1702,1704,1618,1714,1716,1652,1726,1731,1663,1633,1741,1588,1746,1752,1609,1756,1761,1764,1583,1740,1602,1767,1770,1772,1773,1774,1775,1776,1777,1778,1780,1781,1782]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,l=function(t,n,c,l){if(n&&"object"==typeof n||"function"==typeof n){var p=function(s){!f.call(t,s)&&s!==c&&o(t,s,{get:function(){return n[s]},enumerable:!(l=u(n,s))||l.enumerable})};for(var v of s(n))p(v)}return t},p=function(t,n,o){return l(t,n,"default"),o&&l(o,n,"default")},v={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(v,{LayoutMeasurementController:function(){return r(d[0]).LayoutMeasurementController},Stack:function(){return r(d[1]).Stack},TamaguiProvider:function(){return y},Text:function(){return r(d[1]).Text},View:function(){return r(d[1]).View},createTamagui:function(){return b},setOnLayoutStrategy:function(){return r(d[0]).setOnLayoutStrategy}}),m.exports=(t=v,l(o({},"__esModule",{value:!0}),t));var O=r(d[2]),P=(function(t,u,s){return s=null!=t?n(c(t)):{},l(!u&&t&&t.__esModule?s:o(s,"default",{value:t,enumerable:!0}),t)})(r(d[3]));p(v,r(d[1]),m.exports),p(v,r(d[4]),m.exports),(0,r(d[5]).addNativeValidStyles)();var y=function(t){return(0,r(d[1]).useIsomorphicLayoutEffect)(function(){(0,r(d[0]).enable)()},[]),(0,O.jsx)(r(d[1]).TamaguiProvider,Object.assign({},t))},b=function(t){return t.media&&(t.media=(0,r(d[6]).createMedia)(t.media)),(0,r(d[1]).createTamagui)(t)},T=(0,r(d[7]).getBaseViews)();(0,r(d[1]).setupHooks)({getBaseViews:r(d[7]).getBaseViews,setElementProps:function(t){},usePropsTransform:function(t,n,o,u){},useEvents:function(t,n,o,u,s){if(n&&(n.onFocus&&(t.onFocus=n.onFocus),n.onBlur&&(t.onBlur=n.onBlur)),s.isInput){if(n){var c=n.onPressIn,f=n.onPressOut,l=n.onPress,p={onPressIn:c,onPressOut:f||l};f&&l&&(p.onPressOut=(0,r(d[1]).composeEventHandlers)(l,f)),Object.assign(t,p)}}else{n&&t.hitSlop&&(n.hitSlop=t.hitSlop);var v=(0,r(d[8]).usePressability)(n);if(n&&n.onPress)for(var O in v){var P=t[O],y=v[O];t[O]=P&&!j[O]?(0,r(d[1]).composeEventHandlers)(P,y):y}}},useChildren:function(t,n,o){return t===T.View?(0,r(d[9]).createOptimizedView)(n,o,T):process.env.TAMAGUI_OPTIMIZE_NATIVE_VIEWS&&t===T.Text?(o.children=n,P.default.createElement("RCTText",o)):void 0}});var j={onClick:!0}},1461,[1462,1466,258,128,1568,1569,1571,1576,1577,1578]); -__d(function(g,r,i,_a,m,e,d){"use strict";var n,t=r(d[0]),u=r(d[1]),o=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(n,t,u,l){if(t&&"object"==typeof t||"function"==typeof t){var s=function(c){!f.call(n,c)&&c!==u&&o(n,c,{get:function(){return t[c]},enumerable:!(l=a(t,c))||l.enumerable})};for(var v of c(t))s(v)}return n},s={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(s,{LayoutMeasurementController:function(){return I},createMeasure:function(){return D},createMeasureInWindow:function(){return F},createMeasureLayout:function(){return K},enable:function(){return W},getBoundingClientRectAsync:function(){return Y},getElementLayoutEvent:function(){return A},measure:function(){return q},measureInWindow:function(){return U},measureLayout:function(){return G},measureNode:function(){return X},setOnLayoutStrategy:function(){return P},useElementLayout:function(){return H}}),m.exports=(n=s,l(o({},"__esModule",{value:!0}),n));var v=r(d[2]),p=r(d[3]),y=new WeakMap,h=new WeakMap,w=new Set,b=new WeakMap,E={},M=(0,p.createContext)(""),L=r(d[4]).isClient&&typeof IntersectionObserver<"u",I=function(n){var t=n.disable,u=n.children,o=(0,p.useId)();return(0,r(d[4]).useIsomorphicLayoutEffect)(function(){E[o]=t},[t,o]),(0,v.jsx)(M.Provider,{value:o,children:u})},O=null,C="async";function P(n){C=n}var x=new WeakMap,T=new WeakMap,R=!0,S=new Map;function W(){R&&(R=!1,S&&(S.forEach(function(n){return n()}),S.clear()))}if(L){var _=new WeakMap;function z(n){return J.apply(this,arguments)}function J(){return(J=u(function*(n){var u=y.get(n);if("function"==typeof u){var o=n.parentElement;if(o){var a,c;if("async"===C){var f=yield Promise.all([_.get(n),_.get(o)]),l=t(f,2),s=l[0],v=l[1];if(!s||!v)return;a=s,c=v}else a=n.getBoundingClientRect(),c=o.getBoundingClientRect();if(a&&c){var p=x.get(n),h=x.get(o);if(!(p&&h&&(0,r(d[5]).isEqualShallow)(p,a)&&(0,r(d[5]).isEqualShallow)(h,c))){x.set(n,a),x.set(o,c);var w=A(a,c);R?S.set(n,function(){return u(w)}):u(w)}}}}})).apply(this,arguments)}var j=process.env.TAMAGUI_LAYOUT_FRAME_SKIP,k=j?+j:14;function Q(){return V.apply(this,arguments)}function V(){return(V=u(function*(){if("off"!==C){var n=[];(yield new Promise(function(t){var u=new IntersectionObserver(function(n){u.disconnect();var o=!0,a=!1,c=void 0;try{for(var f,l=n[Symbol.iterator]();!(o=(f=l.next()).done);o=!0){var s=f.value;_.set(s.target,s.boundingClientRect)}}catch(n){a=!0,c=n}finally{try{!o&&null!=l.return&&l.return()}finally{if(a)throw c}}t(!0)},{threshold:0}),o=!1,a=!0,c=!1,f=void 0;try{for(var l,s=w[Symbol.iterator]();!(a=(l=s.next()).done);a=!0){var v=l.value;if(v.parentElement instanceof HTMLElement){var p=h.get(v);p&&!0===E[p]||!1!==b.get(v)&&(o=!0,u.observe(v),u.observe(v.parentElement),n.push(v))}}}catch(n){c=!0,f=n}finally{try{!a&&null!=s.return&&s.return()}finally{if(c)throw f}}o||t(!1)}))&&n.forEach(function(n){z(n)})}setTimeout(Q,16.6667*k)})).apply(this,arguments)}Q()}var A=function(n,t){return{nativeEvent:{layout:B(n,t),target:n},timeStamp:Date.now()}},B=function(n,t){var u=n.height,o=n.left,a=n.top,c=n.width;return{x:o-t.left,y:a-t.top,width:c,height:u,pageX:n.left,pageY:n.top}};function H(n,t){var u,o=(0,p.useContext)(M),a=N(null===(u=n.current)||void 0===u?void 0:u.host);a&&t&&(y.set(a,t),h.set(a,o)),(0,r(d[4]).useIsomorphicLayoutEffect)(function(){var u;if(t){var o=null===(u=n.current)||void 0===u?void 0:u.host;if(o){w.add(o),!L||O||(O=new IntersectionObserver(function(n){n.forEach(function(n){var t=n.target;b.get(t)!==n.isIntersecting&&b.set(t,n.isIntersecting)})},{threshold:0})),O&&(O.observe(o),b.set(o,!0));var a=o.parentNode;return a&&t(A(o.getBoundingClientRect(),a.getBoundingClientRect())),function(){w.delete(o),y.delete(o),x.delete(o),T.delete(o),b.delete(o),O&&O.unobserve(o)}}}},[n,!!t])}function N(n){if(!(typeof HTMLElement>"u"))return n instanceof HTMLElement?n:void 0}var Y=function(n){return new Promise(function(t){if(!n||1!==n.nodeType)return t(!1);var u=new IntersectionObserver(function(n){return u.disconnect(),t(n[0].boundingClientRect)},{threshold:0});u.observe(n)})},X=(function(){var n=u(function*(n,u){var o=u||(null==n?void 0:n.parentElement);if(o instanceof HTMLElement){var a=yield Promise.all([Y(n),Y(o)]),c=t(a,2),f=c[0],l=c[1];if(l&&f)return B(f,l)}return null});return function(t,u){return n.apply(this,arguments)}})(),q=(function(){var n=u(function*(n,t){var u=yield X(n,n.parentNode instanceof HTMLElement?n.parentNode:null);return u&&(null==t||t(u.x,u.y,u.width,u.height,u.pageX,u.pageY)),u});return function(t,u){return n.apply(this,arguments)}})();function D(n){return function(t){return q(n,t)}}var U=(function(){var n=u(function*(n,t){var u=yield X(n,null);return u&&(null==t||t(u.pageX,u.pageY,u.width,u.height)),u});return function(t,u){return n.apply(this,arguments)}})(),F=function(n){return function(t){return U(n,t)}},G=(function(){var n=u(function*(n,t,u){var o=yield X(n,t);return o&&(null==u||u(o.x,o.y,o.width,o.height,o.pageX,o.pageY)),o});return function(t,u,o){return n.apply(this,arguments)}})();function K(n){return function(t,u){return G(n,t,u)}}},1462,[19,367,258,128,1463,1465]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1463,[1464]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))p(b)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{IS_REACT_19:function(){return O},currentPlatform:function(){return I},isAndroid:function(){return h},isChrome:function(){return E},isClient:function(){return _},isIos:function(){return j},isServer:function(){return P},isTouchable:function(){return A},isWeb:function(){return T},isWebTouchable:function(){return S},isWindowDefined:function(){return v},useIsomorphicLayoutEffect:function(){return y}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var l=r(d[0]),p=r(d[0]),b=r(d[1]),O=!!p.use,T=!1,v=!1,P=!1,_=!1,y=l.useLayoutEffect,E=!1,S=!1,A=!0,h="android"===b.Platform.OS||"android"===process.env.TEST_NATIVE_PLATFORM,j="ios"===b.Platform.OS||"ios"===process.env.TEST_NATIVE_PLATFORM,I={ios:"ios",android:"android"}[b.Platform.OS]||"native"},1464,[128,28]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{isEqualShallow:function(){return y},mergeIfNotShallowEqual:function(){return b},useCreateShallowSetState:function(){return p}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=r(d[0]);function p(t,n){return(0,s.useCallback)(function(n){t(function(t){return b(t,"function"==typeof n?n(t):n)})},[t,n])}function b(t,n){return t&&n&&!y(t,n)?Object.assign({},t,n):t||n}function y(t,n){for(var o in n)if(t[o]!==n[o])return!1;return!0}},1465,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,u=function(t,u,x,f){if(u&&"object"==typeof u||"function"==typeof u){var c=function(s){!p.call(t,s)&&s!==x&&o(t,s,{get:function(){return u[s]},enumerable:!(f=n(u,s))||f.enumerable})};for(var l of s(u))c(l)}return t},x=function(t,o,n){return u(t,o,"default"),n&&u(n,o,"default")},f={};!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(f,{_disableMediaTouch:function(){return r(d[0])._disableMediaTouch},configureMedia:function(){return r(d[0]).configureMedia},forceUpdateThemes:function(){return r(d[1]).forceUpdateThemes},getConfig:function(){return r(d[2]).getConfig},getMedia:function(){return r(d[0]).getMedia},getSetting:function(){return r(d[2]).getSetting},getThemes:function(){return r(d[2]).getThemes},getToken:function(){return r(d[2]).getToken},getTokenValue:function(){return r(d[2]).getTokenValue},getTokens:function(){return r(d[2]).getTokens},insertStyleRules:function(){return r(d[3]).insertStyleRules},mediaKeyMatch:function(){return r(d[0]).mediaKeyMatch},mediaObjectToString:function(){return r(d[0]).mediaObjectToString},mediaQueryConfig:function(){return r(d[0]).mediaQueryConfig},mediaState:function(){return r(d[0]).mediaState},setConfig:function(){return r(d[2]).setConfig},setNonce:function(){return r(d[3]).setNonce},setupDev:function(){return r(d[2]).setupDev},updateConfig:function(){return r(d[2]).updateConfig},useMedia:function(){return r(d[0]).useMedia}}),m.exports=(t=f,u(o({},"__esModule",{value:!0}),t)),x(f,r(d[4]),m.exports),x(f,r(d[5]),m.exports),x(f,r(d[6]),m.exports),x(f,r(d[7]),m.exports),x(f,r(d[8]),m.exports),x(f,r(d[9]),m.exports),x(f,r(d[10]),m.exports),x(f,r(d[11]),m.exports),x(f,r(d[12]),m.exports),x(f,r(d[13]),m.exports),x(f,r(d[14]),m.exports),x(f,r(d[15]),m.exports),x(f,r(d[16]),m.exports),x(f,r(d[17]),m.exports),x(f,r(d[18]),m.exports),x(f,r(d[19]),m.exports),x(f,r(d[20]),m.exports),x(f,r(d[21]),m.exports),x(f,r(d[22]),m.exports),x(f,r(d[23]),m.exports),x(f,r(d[24]),m.exports),x(f,r(d[25]),m.exports),x(f,r(d[26]),m.exports),x(f,r(d[27]),m.exports),x(f,r(d[28]),m.exports),x(f,r(d[5]),m.exports),x(f,r(d[29]),m.exports),x(f,r(d[30]),m.exports),x(f,r(d[31]),m.exports),x(f,r(d[32]),m.exports),x(f,r(d[33]),m.exports),x(f,r(d[34]),m.exports),x(f,r(d[35]),m.exports),x(f,r(d[36]),m.exports),x(f,r(d[37]),m.exports),x(f,r(d[38]),m.exports),x(f,r(d[39]),m.exports),x(f,r(d[40]),m.exports),x(f,r(d[41]),m.exports),x(f,r(d[42]),m.exports),x(f,r(d[43]),m.exports),x(f,r(d[44]),m.exports),x(f,r(d[45]),m.exports),x(f,r(d[46]),m.exports),x(f,r(d[47]),m.exports),x(f,r(d[48]),m.exports),x(f,r(d[49]),m.exports),x(f,r(d[50]),m.exports),x(f,r(d[48]),m.exports),x(f,r(d[51]),m.exports),x(f,r(d[52]),m.exports),x(f,r(d[53]),m.exports),x(f,r(d[54]),m.exports),x(f,r(d[55]),m.exports),x(f,r(d[56]),m.exports),x(f,r(d[57]),m.exports),x(f,r(d[58]),m.exports),x(f,r(d[59]),m.exports),x(f,r(d[60]),m.exports),x(f,r(d[61]),m.exports),x(f,r(d[62]),m.exports),x(f,r(d[63]),m.exports),x(f,r(d[64]),m.exports),x(f,r(d[65]),m.exports)},1466,[1467,1472,1469,1474,1484,1485,1532,1533,1534,1537,1542,1475,1535,1536,1543,1544,1546,1473,1489,1492,1547,1520,1548,1465,1490,1512,1549,1503,1518,1540,1509,1550,1551,1471,1488,1515,1510,1511,1506,1539,1552,1468,1531,1541,1524,1553,1499,1554,1555,1556,1557,1529,1558,1559,1560,1530,1561,1562,1563,1564,1494,1565,1525,1476,1463,1486]); -__d(function(g,r,i,a,_m,e,d){"use strict";var t,n=r(d[0]),u=r(d[1]),o=r(d[2]),c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,v=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var v=function(s){!l.call(t,s)&&s!==u&&c(t,s,{get:function(){return n[s]},enumerable:!(o=f(n,s))||o.enumerable})};for(var p of s(n))v(p)}return t},p={};!(function(t,n){for(var u in n)c(t,u,{get:n[u],enumerable:!0})})(p,{_disableMediaTouch:function(){return N},configureMedia:function(){return P},getMedia:function(){return O},getMediaImportanceIfMoreImportant:function(){return U},getMediaKey:function(){return $},getMediaKeyImportance:function(){return x},getMediaState:function(){return R},isMediaKey:function(){return j},mediaKeyMatch:function(){return G},mediaKeyToQuery:function(){return F},mediaKeys:function(){return M},mediaObjectToString:function(){return B},mediaQueryConfig:function(){return b},mediaState:function(){return S},setMediaShouldUpdate:function(){return T},setupMediaListeners:function(){return L},updateMediaListeners:function(){return _},useMedia:function(){return D}}),_m.exports=(t=p,v(c({},"__esModule",{value:!0}),t));var y,m,h=r(d[3]),S={},b={},O=function(){return S},M=new Set,w=/\$(platform|theme|group)-/,j=function(t){return"$"===t[0]&&!(!M.has(t)&&!w.test(t))},$=function(t){if("$"!==t[0])return!1;if(M.has(t))return!0;var n=t.match(w);return!!n&&n[1]},k=Object.keys(r(d[4]).pseudoDescriptors).length,x=function(t){return(0,r(d[5]).getConfig)().settings.mediaPropOrder?k:m.indexOf(t)+100},E=new Set,K=0,P=function(t){var n=t.media,u=(0,r(d[5]).getSetting)("mediaQueryDefaultActive");if(n){for(var o in K++,n)S[o]=(null==u?void 0:u[o])||!1,M.add(`$${o}`);Object.assign(b,n),y=Object.assign({},S),m=Object.keys(n),L()}};var I=-1;function L(){var t=function(t){var n=B(b[t],t),u=function(){return(0,r(d[6]).matchMedia)(n)},c=u();if(!c)throw new Error("\u26a0\ufe0f No match");function f(){var n=!!u().matches;n!==S[t]&&(S=Object.assign({},S,o({},t,n)),_())}c.addListener(f),E.add(function(){c.removeListener(f)}),f()};if(!(r(d[7]).isWeb&&r(d[7]).isServer||process.env.IS_STATIC||I===K))for(var n in I=K,E.forEach(function(t){return t()}),E.clear(),b)t(n)}var W=new Set;function _(){W.forEach(function(t){return t(S)})}var C=new WeakMap;function T(t,n,u){var o=C.get(t);(!o||o.enabled!==n||u)&&C.set(t,Object.assign({},o,{enabled:n,keys:u}))}function A(t){return W.add(t),function(){W.delete(t)}}function D(t,n){var u=t?C.get(t):null,o=(0,h.useRef)(null);o.current||(o.current={keys:new Set,lastState:S}),o.current.pendingState&&(o.current.lastState=o.current.pendingState,o.current.pendingState=void 0);var c=o.current.keys;c.size&&c.clear();var f=(0,h.useSyncExternalStore)(A,function(){var n=(null==u?void 0:u.keys)||c,f=o.current,s=f.lastState,l=f.pendingState;if(!n.size)return s;var v=!0,p=!1,y=void 0;try{for(var m,h=n[Symbol.iterator]();!(v=(m=h.next()).done);v=!0){var b=m.value;if(S[b]!==(l||s)[b])return null!=t&&t.mediaEmit?(t.mediaEmit(S),o.current.pendingState=S,s):(o.current.lastState=S,S)}}catch(t){p=!0,y=t}finally{try{!v&&null!=h.return&&h.return()}finally{if(p)throw y}}return s},Q);return new Proxy(f,{get:function(t,n){return!z&&"string"==typeof n&&c.add(n),Reflect.get(f,n)}})}var Q=function(){return y},z=!1;function N(t){z=t}function R(t,n){var o;z=!0;try{o=Object.fromEntries(u(t).map(function(t){return[t,G(t,n)]}))}finally{z=!1}return o}var U=function(t,n,u,o){var c=o&&!(0,r(d[5]).getSetting)("mediaPropOrder")?x(t):k,f=u.usedKeys;return!f[n]||c>f[n]?c:null};var Z=new WeakMap,q={};function B(t,u){if("string"==typeof t)return t;if(Z.has(t))return Z.get(t);var o=Object.entries(t).map(function(t){var u=n(t,2),o=u[0],c=u[1];return o=o.replace(/[A-Z]/g,function(t){return`-${t.toLowerCase()}`}).toLowerCase(),"string"==typeof c||"number"==typeof c&&/[height|width]$/.test(o)&&(c=`${c}px`),`(${o}: ${c})`}).join(" and ");return u&&(q[u]=o),Z.set(t,o),o}function F(t){return q[t]||B(b[t],t)}function G(t,n){var u=b[t];return Object.keys(u).every(function(t){var o=+u[t],c=t.startsWith("max"),f=t.endsWith("Width"),s=n[f?"width":"height"];return c?so})}},1467,[19,32,18,128,1468,1469,1471,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,y=function(t,y,c,p){if(y&&"object"==typeof y||"function"==typeof y){var l=function(n){!u.call(t,n)&&n!==c&&o(t,n,{get:function(){return y[n]},enumerable:!(p=s(y,n))||p.enumerable})};for(var f of n(y))l(f)}return t},c={};!(function(t,s){for(var n in s)o(t,n,{get:s[n],enumerable:!0})})(c,{pseudoDescriptors:function(){return f},pseudoDescriptorsBase:function(){return p},pseudoPriorities:function(){return l}}),m.exports=(t=c,y(o({},"__esModule",{value:!0}),t));var p={hoverStyle:{name:"hover",priority:2},pressStyle:{name:"active",stateKey:"press",priority:3},focusVisibleStyle:{name:"focus-visible",priority:4,stateKey:"focusVisible"},focusStyle:{name:"focus",priority:4},focusWithinStyle:{name:"focus-within",priority:4,stateKey:"focusWithin"},disabledStyle:{name:"disabled",priority:5,stateKey:"disabled"}},l={hover:p.hoverStyle.priority,press:p.pressStyle.priority,focus:p.focusStyle.priority,focusVisible:p.focusVisibleStyle.priority,focusWithin:p.focusWithinStyle.priority,disabled:p.disabledStyle.priority},f=Object.assign({},p,{enterStyle:{name:"enter",selector:".t_unmounted",priority:4},exitStyle:{name:"exit",priority:5}})},1468,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(n,t,s,l){if(t&&"object"==typeof t||"function"==typeof t){var v=function(f){!c.call(n,f)&&f!==s&&o(n,f,{get:function(){return t[f]},enumerable:!(l=u(t,f))||l.enumerable})};for(var b of f(t))v(b)}return n},l={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(l,{configListeners:function(){return x},devConfig:function(){},getConfig:function(){return y},getConfigMaybe:function(){return j},getFont:function(){return M},getSetting:function(){return p},getThemes:function(){return D},getToken:function(){return h},getTokenObject:function(){return T},getTokenValue:function(){return w},getTokens:function(){return C},onConfiguredOnce:function(){return E},setConfig:function(){return O},setConfigFont:function(){return k},setTokens:function(){return P},setupDev:function(){return S},updateConfig:function(){return F},useTokens:function(){return _}}),m.exports=(n=l,s(o({},"__esModule",{value:!0}),n));var v,b,p=function(n){var t;return null!==(t=v.settings[n])&&void 0!==t?t:v[n]},O=function(n){v=n},k=function(n,t,o){v.fonts[n]=t,v.fontsParsed[`$${n}`]=o},y=function(){var n=(0,r(d[1]).loadDuplicatedConfig)();if(n)return n;if(!v)throw new Error("Err0");return v},j=function(){return v};function P(n){b=n}var C=function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).prefixed,t=v,o=t.tokens,u=t.tokensParsed;return!1===n?o:!0===n?u:b},T=function(n,t){var o,u,f;return null!==(f=v.specificTokens[n])&&void 0!==f?f:t?null===(o=b[t])||void 0===o?void 0:o[n]:null===(u=b[Object.keys(b).find(function(t){return b[t][n]})||""])||void 0===u?void 0:u[n]},h=function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r(d[2]).isWeb,u=T(n,t);return o?null==u?void 0:u.variable:null==u?void 0:u.val},w=function(n,t){if("unset"!==n&&"auto"!==n)return h(n,t,!1)},_=C,D=function(){return v.themes},x=new Set,E=function(n){v?n(v):x.add(n)},F=function(n,t){Object.assign(v[n],t)},M=function(n){var o,u,f=y();return null!==(u=f.fontsParsed[n])&&void 0!==u?u:null===(o=Object.entries(f.fontsParsed).find(function(o){var u,c,s=t(o,1)[0];return(null===(c=f.fontsParsed[s])||void 0===c||null===(u=c.family)||void 0===u?void 0:u.val)===n}))||void 0===o?void 0:o[1]};function S(n){}},1469,[19,1470,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{loadDuplicatedConfig:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));function p(){return null}},1470,[]); -__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a=function(t,a,f,p){if(a&&"object"==typeof a||"function"==typeof a){var s=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return a[c]},enumerable:!(p=o(a,c))||p.enumerable})};for(var l of c(a))s(l)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{matchMedia:function(){return s},setupMatchMedia:function(){return l}}),m.exports=(t=f,a(n({},"__esModule",{value:!0}),t));var p=function(t){return process.env.IS_STATIC,{match:function(t,n){return!1},addListener:function(){},removeListener:function(){},matches:!1}},s=function(){for(var t=arguments.length,n=new Array(t),o=0;o1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2?arguments[2]:void 0,l=n.disable,u=(0,c.useContext)(v);if(!u&&!i)throw new Error(r(d[2]).MISSING_THEME_MESSAGE);if(l)return S.get(u)||{id:"",name:"light",theme:(0,r(d[3]).getConfig)().themes.light,inverses:0};var f=(0,c.useId)(),s=(0,c.useCallback)(function(n){var t,i;return(t=p)[i=u]||(t[i]=new Set),p[u].add(f),h.set(f,function(){y.set(f,!_||"force"),n()}),function(){h.delete(f),p[u].delete(f),E.delete(f),S.delete(f),y.delete(f)}},[f,u]),M=G(n),O=function(){var l,s,c=E.get(f),v=!n.passThrough&&(!(!i&&"light"!==n.name&&"dark"!==n.name&&null!==n.name)||(!w.get(o)||(!(null==o||null===(l=o.current)||void 0===l||!l.size)||(null===(s=n.needsUpdate)||void 0===s?void 0:s.call(n))))),h=T(c,n,M,i,f,u,v,y.get(f)),p=t(h,2),b=p[0],_=p[1];return y.delete(f),(!c||b)&&(c=Object.assign({},_),E.set(f,c)),Object.assign(c,_),c.id=f,S.set(f,_),c},k=(0,c.useSyncExternalStore)(s,O,O);return(0,r(d[4]).useIsomorphicLayoutEffect)(function(){if(w.get(o))return M?($(f),void b.set(o,!0)):(b.get(o)&&$(f),void b.set(o,!1));w.set(o,!0)},[o,M]),k},T=function(n,t,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0,u=arguments.length>5?arguments[5]:void 0,f=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,c=(t.debug,S.get(u));if(t.passThrough)return[!1,n||c||{name:""}];k||(k=(0,r(d[3]).getConfig)().themes);var v=i||n&&null!=n&&n.isNew?P(null==c?void 0:c.name,t,"force"===s||!!f):null,h=c&&(!v||v===c.name),p=!(!f||!s&&(null==n?void 0:n.name)===(null==c?void 0:c.name));if(h)return[p,Object.assign({},c,{isNew:!1})];if(!v){var w=null!=n?n:c;if(!w)throw new Error(r(d[2]).MISSING_THEME_MESSAGE);return p?[!0,Object.assign({},c||n)]:[!1,w]}var b,y=I(v),E=null!==(b=null==c?void 0:c.inverses)&&void 0!==b?b:0,_=c&&y!==c.scheme,M=E+(_?1:0),O={id:l,name:v,theme:k[v],scheme:y,parentId:u,parentName:null==c?void 0:c.name,inverses:M,isInverse:_,isNew:!0};return o&&(N=O),"force"!==s&&n&&n.name===v||"force"!==s&&n&&!f&&O.name===n.name?[!1,O]:[!0,O]};function $(n){for(var t=[n],i=new Set;t.length;){var o=t.shift(),l=p[o];if(l){var u=!0,f=!1,s=void 0;try{for(var c,v=l[Symbol.iterator]();!(u=(c=v.next()).done);u=!0){var w=c.value;i.has(w)||(i.add(w),t.push(w))}}catch(n){f=!0,s=n}finally{try{!u&&null!=v.return&&v.return()}finally{if(f)throw s}}}}i.forEach(function(n){var t=h.get(n);null==t||t()})}var x={light:"light",dark:"dark"};function I(n){return x[n.split("_")[0]]}function P(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,i=t.name,o=t.reset,l=t.componentName,u=t.inverse,f=(t.debug,arguments.length>2&&void 0!==arguments[2]&&arguments[2]);if(i&&o)throw new Error("\u274c004");var s=(0,r(d[3]).getConfig)().themes;if(o){if("light"===n||"dark"===n)return"light"===n?"dark":"light";var c=n.lastIndexOf("_"),v=c<=0?n:n.slice(c),h=n.slice(0,c);return s[v]?v:h}var p=n.split("_"),w=p[p.length-1];w&&w[0].toLowerCase()!==w[0]&&p.pop();for(var b=[i&&l?`${i}_${l}`:void 0,i,l].filter(Boolean),y=null,S=p.length,E=0;E<=S;E++){var _=(0===E?p:p.slice(0,-E)).join("_"),M=!0,O=!1,k=void 0;try{for(var N,j=b[Symbol.iterator]();!(M=(N=j.next()).done);M=!0){var C=N.value,T=_?`${_}_${C}`:C;if(T in s){y=T;break}}}catch(n){O=!0,k=n}finally{try{!M&&null!=j.return&&j.return()}finally{if(O)throw k}}if(y)break}if(u){y||(y=n);var $=y.split("_")[0];y=y.replace(new RegExp(`^${$}`),"light"===$?"dark":"light")}return f||y!==n||x[y]?y:null}var G=function(n){var t=n.name,i=n.reset;return`${t||""}${n.inverse||""}${i||""}${n.forceClassName||""}${n.componentName||""}`},U=function(n){return"inverse"in n||"name"in n||"reset"in n||"forceClassName"in n}},1472,[19,128,1473,1469,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var _=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))_(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{FONT_DATA_ATTRIBUTE_NAME:function(){return p},MISSING_THEME_MESSAGE:function(){return S},THEME_CLASSNAME_PREFIX:function(){return _},THEME_NAME_SEPARATOR:function(){return l},stackDefaultStyles:function(){return E},webViewFlexCompatStyles:function(){return A}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l="_",_="t_",p="data-tamagui-font",E={},A={display:"flex",alignItems:"stretch",flexDirection:"column",flexBasis:"auto",boxSizing:"border-box",position:"1"===process.env.TAMAGUI_POSITION_STATIC?"static":"relative",minHeight:0,minWidth:0,flexShrink:0},S="Missing theme."},1473,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),l=r(d[1]),i=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!c.call(t,u)&&u!==l&&i(t,u,{get:function(){return n[u]},enumerable:!(f=o(n,u))||f.enumerable})};for(var v of u(n))s(v)}return t},s={};!(function(t,n){for(var l in n)i(t,l,{get:n[l],enumerable:!0})})(s,{getAllRules:function(){return p},getAllSelectors:function(){return _},insertStyleRules:function(){return $},scanAllSheets:function(){return A},setNonce:function(){return k},shouldInsertStyleRules:function(){return B},stopAccumulatingRules:function(){return G},updateRules:function(){return L}}),m.exports=(t=s,f(i({},"__esModule",{value:!0}),t));var v=new WeakMap,y=new Map,h={},S={},_=function(){return h},p=function(){return Object.values(S)},R=null;function A(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0;if(r(d[2]).isClient){var l,i=document.styleSheets||[],o=R,u=new Set(i),c=!0,f=!1,s=void 0;try{for(var v,y=u[Symbol.iterator]();!(c=(v=y.next()).done);c=!0){var h=v.value;if(h){var S=T(h,!1,t,n);S&&(l=S)}}}catch(t){f=!0,s=t}finally{try{!c&&null!=y.return&&y.return()}finally{if(f)throw s}}if(R=u,o){var _=!0,p=!1,A=void 0;try{for(var I,b=o[Symbol.iterator]();!(_=(I=b.next()).done);_=!0){var x=I.value;x&&!u.has(x)&&T(x,!0)}}catch(t){p=!0,A=t}finally{try{!_&&null!=b.return&&b.return()}finally{if(p)throw A}}}return l}}function I(t){var n=(y.get(t)||0)+1;return y.set(t,n),n}var b=process.env.TAMAGUI_BAIL_AFTER_SCANNING_X_CSS_RULES,x=b?+b:400;function T(t){var n,i,o,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],f=arguments.length>3?arguments[3]:void 0;try{if(!(o=t.cssRules))return}catch(t){return}var s=null===(n=j(o[0],c))||void 0===n?void 0:n[0],y=null===(i=j(o[o.length-1],c))||void 0===i?void 0:i[0],h=`${o.length}${s}${y}`,S=v.get(t);if(u||S!==h){for(var _,p=o.length,R=0,A={},I=0;Ix)return;continue}R=0;var E=l(T,3),O=(E[0],E[1]);if(E[2]){var C=w(O,f);if(C){var M=!0,N=!1,P=void 0;try{for(var G,L=function(){var t=G.value;A[t]?(Object.apply(A[t],C.theme),C.names=C.names.filter(function(n){return n!==t})):A[t]=C.theme},U=C.names[Symbol.iterator]();!(M=(G=U.next()).done);M=!0)L()}catch(t){N=!0,P=t}finally{try{!M&&null!=U.return&&U.return()}finally{if(N)throw P}}_||(_=[]),_.push(C)}continue}}}return v.set(t,h),_}}var E,O=null;function w(t,i){var o=t.selectorText.split(",");if(o.length){if(null!=i&&i.color&&!E)for(var u in E={},i.color){var c=i.color[u];E[c.name]=c.val}var f=(t.cssText||"").slice(t.selectorText.length+2,-1).split(";"),s={},v=!0,y=!1,h=void 0;try{for(var S,_=f[Symbol.iterator]();!(v=(S=_.next()).done);v=!0){var p=S.value,R=p.indexOf(":");if(-1!==R){var A=p.indexOf("--"),I=p.slice(-1===A?0:A+2,R);process.env.TAMAGUI_CSS_VARIABLE_PREFIX&&(I=I.replace(process.env.TAMAGUI_CSS_VARIABLE_PREFIX,""));var b=p.slice(R+2),x=void 0;if("v"===b[0]&&b.startsWith("var(")){var T=b.slice(6,-1),w=E[T];w?x=w:(O||(O=getComputedStyle(document.body)),x=O.getPropertyValue("--"+T))}else x=b;s[I]=(0,r(d[3]).createVariable)({key:I,name:I,val:x},!0)}}}catch(t){y=!0,h=t}finally{try{!v&&null!=_.return&&_.return()}finally{if(y)throw h}}var C=new Set,j=!0,M=!1,N=void 0;try{for(var P,G=o[Symbol.iterator]();!(j=(P=G.next()).done);j=!0){var L=P.value;if(" .tm_xxt"!==L){var U=L.lastIndexOf(".t_"),k=L.slice(U).slice(3),$=l(L[U-5],1)[0],V="d"===$?"dark":"i"===$?"light":"",B=V&&V!==k?`${V}_${k}`:k;!B||"light_dark"===B||"dark_light"===B||C.add(B)}}}catch(t){M=!0,N=t}finally{try{!j&&null!=G.return&&G.return()}finally{if(M)throw N}}return{names:n(C),theme:s}}}var C=/\.tm_xxt/;function j(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t instanceof CSSStyleRule){var l=t.selectorText;if(":"===l[0]&&"r"===l[1]&&C.test(l)){var i=M(l.replace(C,""));return n?[i,t,!0]:[i,t]}}else if(t instanceof CSSMediaRule)return t.cssRules.length>1?void 0:j(t.cssRules[0])}var M=function(t){var n=t.indexOf(":");return n>-1?t.slice(7,n):t.slice(7)},N=null,P=!0;function G(){P=!1}function L(t,n){return P&&(S[t]=n.join(" ")),!0}var U="";function k(t){U=t}function $(t){if(r(d[2]).isClient){if(!N&&document.head){var n=document.createElement("style");n.id="_tamagui-styles",U&&(n.nonce=U),N=document.head.appendChild(n).sheet}if(N)for(var l in t){var i=t[l],o=i[r(d[4]).StyleObjectIdentifier];if(B(o)){var u=i[r(d[4]).StyleObjectRules];h[o]=u.join("\n"),I(o),L(o,u);try{var c=!0,f=!1,s=void 0;try{for(var v,y=u[Symbol.iterator]();!(c=(v=y.next()).done);c=!0){var S=v.value;N.insertRule(S,N.cssRules.length),"_dsp-_groupframe-maxMd_none"===o&&console.warn("INSERT",S)}}catch(t){f=!0,s=t}finally{try{!c&&null!=y.return&&y.return()}finally{if(f)throw s}}}catch(t){console.error("Error inserting style rule",u)}}}}}var V=process.env.TAMAGUI_INSERT_SELECTOR_TRIES?+process.env.TAMAGUI_INSERT_SELECTOR_TRIES:1;function B(t){return"is_static"===process.env.IS_STATIC||(y.get(t)||0)1&&void 0!==arguments[1]&&arguments[1];if(!t&&V(n))return n;var u=n.key,o=n.name,l=n.val;return{isVar:!0,key:u,name:t?o:(0,r(d[0]).simpleHash)(o,40),val:l,variable:r(d[1]).isWeb?t?v(o):S(o):""}};function s(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return V(n)?!t&&r(d[1]).isWeb&&n.variable?n.variable:`${n.val}`:`${n||""}`}function V(n){return n&&"object"==typeof n&&"isVar"in n}function p(n){var t,u,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"size";return null!=n&&n.dynamic?n:(P(!0),V(n)?s(n):s(null!==(u=null===(t=(0,r(d[2]).getConfig)().tokensParsed[o])||void 0===t?void 0:t[n])&&void 0!==u?u:n))}var y=!1,P=function(n){return y=n},h=function(){return y};function O(n,t){if(V(n))return P(!0),n.val;if(t){var u,o=null===(u=(0,r(d[2]).getConfig)().tokensParsed[t])||void 0===u?void 0:u[n];if(o)return P(!0),o.val}return n}function _(n){return V(n)?n.name:n}function j(n){return V(n)?n.variable:n}var S=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],u=(0,r(d[0]).simpleHash)(n,60);return t?v(u):u};function k(n){return{val:n,needsPx:!0}}},1475,[1476,1463,1469]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(p){!u.call(t,p)&&p!==f&&o(t,p,{get:function(){return c[p]},enumerable:!(s=n(c,p))||s.enumerable})};for(var x of p(c))l(x)}return t},f=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},s={};m.exports=(t=s,c(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports),f(s,r(d[3]),m.exports),f(s,r(d[4]),m.exports),f(s,r(d[5]),m.exports),f(s,r(d[6]),m.exports)},1476,[1477,1478,1479,1480,1481,1482,1483]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(i){!u.call(t,i)&&i!==f&&n(t,i,{get:function(){return c[i]},enumerable:!(s=o(c,i))||s.enumerable})};for(var v of i(c))l(v)}return t},f={};!(function(t,o){for(var i in o)n(t,i,{get:o[i],enumerable:!0})})(f,{simpleHash:function(){return v}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var s=new Map,l=0,v=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(s.has(t))return s.get(t);var o=t;"v"===o[0]&&o.startsWith("var(")&&(o=o.slice(6,o.length-1));for(var i=0,u="",c=0,f=o.length,v=0;v1e4&&(s.clear(),l=0),s.set(t,y),l++,y},p=function(t,n){return Math.imul(31,t)+n.charCodeAt(0)|0};function h(t){return t>=65&&t<=90||t>=97&&t<=122||95===t||45===t||t>=48&&t<=57}},1477,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,b){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){!f.call(t,c)&&c!==p&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var s of c(n))l(s)}return t},b={};function l(t,o){var u=n(o,2),c=u[0],f=u[1];return Math.min(f,Math.max(c,t))}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{clamp:function(){return l}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t))},1478,[19]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,v){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(v=o(c,u))||v.enumerable})};for(var b of u(c))p(b)}return t},l={};function v(t,n){var o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).checkDefaultPrevented,u=void 0===o||o;return t&&n?function(o){if(null==t||t(o),!o||!u||"object"!=typeof o||!("defaultPrevented"in o)||"defaultPrevented"in o&&!o.defaultPrevented)return null==n?void 0:n(o)}:n||t||void 0}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{composeEventHandlers:function(){return v}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t))},1479,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var O of u(f))y(O)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{StyleObjectIdentifier:function(){return O},StyleObjectProperty:function(){return b},StyleObjectPseudo:function(){return p},StyleObjectRules:function(){return j},StyleObjectValue:function(){return y}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=0,y=1,O=2,p=3,j=4},1480,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,f=function(t,f,c,y){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!l.call(t,u)&&u!==c&&n(t,u,{get:function(){return f[u]},enumerable:!(y=o(f,u))||y.enumerable})};for(var v of u(f))s(v)}return t},c={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{shouldRenderNativePlatform:function(){return s}}),m.exports=(t=c,f(n({},"__esModule",{value:!0}),t));var y=["web","android","ios"];function s(t){if(!t)return null;var n=v(t),o=!0,u=!1,l=void 0;try{for(var f,c=y[Symbol.iterator]();!(o=(f=c.next()).done);o=!0){var s=f.value;if(s===r(d[0]).currentPlatform&&n.has(s))return s}}catch(t){u=!0,l=t}finally{try{!o&&null!=c.return&&c.return()}finally{if(u)throw l}}return null}function v(t){var n=!0===t?y:!1===t?[]:Array.isArray(t)?t:[t],o=new Set(n);return o.has("mobile")&&(o.add("android"),o.add("ios"),o.delete("mobile")),o}},1481,[1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,b,u){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!s.call(t,l)&&l!==b&&o(t,l,{get:function(){return c[l]},enumerable:!(u=n(c,l))||u.enumerable})};for(var p of l(c))f(p)}return t},b={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(b,{stylePropsAll:function(){return C},stylePropsText:function(){return x},stylePropsTextOnly:function(){return y},stylePropsTransform:function(){return S},stylePropsUnitless:function(){return p},stylePropsView:function(){return h},tokenCategories:function(){return f},validPseudoKeys:function(){return B},validStyles:function(){return I}}),m.exports=(t=b,c(o({},"__esModule",{value:!0}),t));var u={color:!0,textDecorationColor:!0,textShadowColor:!0},f={radius:{borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderStartStartRadius:!0,borderStartEndRadius:!0,borderEndStartRadius:!0,borderEndEndRadius:!0},size:{width:!0,height:!0,minWidth:!0,minHeight:!0,maxWidth:!0,maxHeight:!0,blockSize:!0,minBlockSize:!0,maxBlockSize:!0,inlineSize:!0,minInlineSize:!0,maxInlineSize:!0},zIndex:{zIndex:!0},color:Object.assign({backgroundColor:!0,borderColor:!0,borderBlockStartColor:!0,borderBlockEndColor:!0,borderBlockColor:!0,borderBottomColor:!0,borderInlineColor:!0,borderInlineStartColor:!0,borderInlineEndColor:!0,borderTopColor:!0,borderLeftColor:!0,borderRightColor:!0,borderEndColor:!0,borderStartColor:!0,shadowColor:!0},u)},p={WebkitLineClamp:!0,animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,columnCount:!0,flex:!0,flexGrow:!0,flexOrder:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,gridRow:!0,gridRowEnd:!0,gridRowGap:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnGap:!0,gridColumnStart:!0,gridTemplateColumns:!0,gridTemplateAreas:!0,lineClamp:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,scale:!0,scaleX:!0,scaleY:!0,scaleZ:!0,shadowOpacity:!0},S={x:!0,y:!0,scale:!0,perspective:!0,scaleX:!0,scaleY:!0,skewX:!0,skewY:!0,matrix:!0,rotate:!0,rotateY:!0,rotateX:!0,rotateZ:!0},h=Object.assign({backfaceVisibility:!0,borderBottomEndRadius:!0,borderBottomStartRadius:!0,borderBottomWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderBlockWidth:!0,borderBlockEndWidth:!0,borderBlockStartWidth:!0,borderInlineWidth:!0,borderInlineEndWidth:!0,borderInlineStartWidth:!0,borderStyle:!0,borderBlockStyle:!0,borderBlockEndStyle:!0,borderBlockStartStyle:!0,borderInlineStyle:!0,borderInlineEndStyle:!0,borderInlineStartStyle:!0,borderTopEndRadius:!0,borderTopStartRadius:!0,borderTopWidth:!0,borderWidth:!0,transform:!0,transformOrigin:!0,alignContent:!0,alignItems:!0,alignSelf:!0,borderEndWidth:!0,borderStartWidth:!0,bottom:!0,display:!0,end:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,gap:!0,columnGap:!0,rowGap:!0,justifyContent:!0,left:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginInline:!0,marginInlineStart:!0,marginInlineEnd:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingInline:!0,paddingBlock:!0,paddingBlockStart:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,direction:!0,shadowOffset:!0,shadowRadius:!0},f.color,f.radius,f.size,f.radius,S,p,{boxShadow:!0,filter:!0},r(d[0]).isAndroid?{elevationAndroid:!0}:{}),y=Object.assign({},{fontFamily:!0,fontSize:!0,fontStyle:!0,fontWeight:!0,fontVariant:!0,letterSpacing:!0,lineHeight:!0,textTransform:!0},{textAlign:!0,textDecorationLine:!0,textDecorationStyle:!0},u,{textShadowOffset:!0,textShadowRadius:!0,userSelect:!0,selectable:!0,verticalAlign:!0}),x=Object.assign({},h,y),C=x,B={enterStyle:!0,exitStyle:!0,hoverStyle:!0,pressStyle:!0,focusStyle:!0,disabledStyle:!0,focusWithinStyle:!0},I=h},1482,[1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var p of c(n))s(p)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{withStaticProperties:function(){return j}}),m.exports=(t=s,b(o({},"__esModule",{value:!0}),t));var p=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=Symbol(),j=function(t,n){var o=(function(){if(t[O]){var n=p.default.forwardRef(function(n,o){return p.default.createElement(t,Object.assign({},n,{ref:o}))});for(var o in t){var u=t[o];n[o]=u&&"object"==typeof u?Object.assign({},u):u}}return t})();return Object.assign(o,n),o[O]=!0,o}},1483,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{Tamagui:function(){return s},getValueFromIdentifier:function(){return v},setIdentifierValue:function(){return y}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));!(function(t,u,c){c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));var s=void 0,O=new Map,v=function(t){return O.get(t)},y=function(t,n){O.set(t,n)}},1484,[1476]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=r(d[2]),s=["group","hasDynGroupChildren","unmounted","animation"],u=["asChild","children","themeShallow","spaceDirection","onPress","onLongPress","onPressIn","onPressOut","onHoverIn","onHoverOut","onMouseUp","onMouseDown","onMouseEnter","onMouseLeave","onFocus","onBlur","separator","passThrough","forceStyle","onClick","theme"],l=Object.create,c=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,v=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,y=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!h.call(e,s)&&s!==n&&c(e,s,{get:function(){return t[s]},enumerable:!(o=p(t,s))||o.enumerable})};for(var u of f(t))s(u)}return e},S={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(S,{Spacer:function(){return L},Unspaced:function(){return T},componentSetStates:function(){return O},createComponent:function(){return j},spacedChildren:function(){return I}}),m.exports=(e=S,y(c({},"__esModule",{value:!0}),e));var b,C,x=r(d[3]),P=(function(e,t,n){return n=null!=e?l(v(e)):{},y(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[4])),O=new Set,w=new Set(["hover","press","pressIn","group","focus","focusWithin","media","group"]),E=!1,M={value:!1};function j(e){var l=e.componentName,c=null,p=e.defaultProps;(0,r(d[6]).onConfiguredOnce)(function(e){if(c=e,l){var t,n=null===(t=e.defaultProps)||void 0===t?void 0:t[l];n&&(p=Object.assign({},n,p))}});var f=e.Component,v=e.isText,h=e.isZStack,y=e.isHOC,S=P.default.forwardRef(function(l,S){var T,L,k;if(!E){var A;E=!0;var R=null===(A=r(d[7]).hooks.getBaseViews)||void 0===A?void 0:A.call(r(d[7]).hooks);R&&(b=R.Text,C=R.View)}var F=e.context,D=(e.isReactNative,l.debug),G=F?P.default.useContext(F):void 0,N=null;process.env.TAMAGUI_IS_CORE_NODE;var V=l;if(G||p){var W=(0,r(d[9]).mergeComponentProps)(p,G,l),H=o(W,2),U=H[0],$=H[1];U&&(V=U),N=$}var B=V.componentName||e.componentName,z=P.default.useContext(r(d[10]).ComponentContext),Z=P.default.useContext(r(d[11]).GroupContext),K=z.animationDriver,q=null==K?void 0:K.useAnimations,Y=(0,r(d[12]).useComponentState)(V,K,e,c),J=Y.disabled,Q=Y.groupName,X=Y.hasAnimationProp,ee=Y.hasEnterStyle,te=Y.isAnimated,ne=Y.isExiting,oe=Y.isHydrated,re=Y.presence,se=Y.presenceState,ie=Y.setState,ue=Y.noClass,ae=Y.state,le=Y.stateRef,ce=Y.supportsCSS,de=Y.willBeAnimated,pe=Y.willBeAnimatedClient,fe=Y.startedUnhydrated;X&&null!=K&&K.avoidReRenders&&(0,r(d[5]).useIsomorphicLayoutEffect)(function(){var e=le.current.nextState;e&&(le.current.nextState=void 0,Y.setStateShallow(e))});var ve=(0,P.useMemo)(function(){var e,t;if(!Q||V.passThrough)return Z;var o=new Set;return null===(t=le.current.group)||void 0===t||null===(e=t.listeners)||void 0===e||e.clear(),le.current.group={listeners:o,emit:function(e){o.forEach(function(t){return t(e)})},subscribe:function(e){return o.add(e),1===o.size&&he({hasDynGroupChildren:!0}),function(){o.delete(e),0===o.size&&he({hasDynGroupChildren:!1})}}},Object.assign({},Z,n({},Q,{state:{pseudo:r(d[13]).defaultComponentStateMounted},subscribe:function(e){var t,n=null===(t=le.current.group)||void 0===t?void 0:t.subscribe(e);return function(){null==n||n()}}}))},[le,Q,Z]),he=Y.setStateShallow,me=!!(r(d[5]).isWeb&&v&&z.inText),ye=!f||"string"==typeof f,Se=V.tag,ge=r(d[5]).isWeb&&ye&&Se||f,be=C||ge||(me?"span":"div"),Ce=v?b||ge||"span":be;K&&te&&!K.needsWebStyles&&(Ce=K[v?"Text":"View"]||Ce);var xe=y;V.themeShallow&&(le.current.themeShallow=!0);var Pe={componentName:B,disable:xe,shallow:le.current.themeShallow,debug:D};"themeInverse"in V&&(Pe.inverse=V.themeInverse),"theme"in V&&(Pe.name=V.theme),"boolean"==typeof le.current.isListeningToTheme&&(Pe.needsUpdate=function(){return!!le.current.isListeningToTheme}),Pe.deopt=de;var Oe=(0,r(d[15]).useThemeWithState)(Pe),we=o(Oe,2),Ee=we[0],Me=we[1],je=(Ce=f||Ce,(0,r(d[16]).useMedia)(z,D));(0,r(d[17]).setDidGetVariableValue)(!1);var Te={mediaState:je,noClass:ue,resolveValues:te&&!ce||y&&0==ae.unmounted&&X?"value":"auto",isExiting:ne,isAnimated:te,willBeAnimated:de,styledContext:G},Le=(null==Me?void 0:Me.name)||"",Ie=(0,r(d[18]).useSplitStyles)(V,e,Ee,Le,ae,Te,null,z,ve,Ce,fe,D),ke=!Ie,Ae=Q&&(null==ve?void 0:ve[Q])||null;if(!ke&&Ae&&"normal"!==V.containerType){var Re,Fe,De=null==Ae?void 0:Ae.state;if(De&&void 0===De.layout)(null!==(Re=Ie.style)&&void 0!==Re&&Re.width||null!==(Fe=Ie.style)&&void 0!==Fe&&Fe.height)&&(De.layout={width:_(Ie.style.width),height:_(Ie.style.height)})}if(!ke&&(X||Q)&&null!=K&&K.avoidReRenders){var Ge,Ne=function(){var e=le.current.nextState;if(Ae){e.group,e.hasDynGroupChildren,e.unmounted,e.animation;var n=t(e,s);j(Ae,le.current.group||null,n)}},Ve=he;le.current.updateStyleListener=function(){var t=le.current.nextState||ae,n=le.current.nextMedia,o=(0,r(d[18]).getSplitStyles)(V,e,Ee,Le,t,n?Object.assign({},Te,{mediaState:n}):Te,null,z,ve,Ce,fe,D),s=le.current.useStyleListener;null==s||s((null==o?void 0:o.style)||{})},(Ge=z).mediaEmit||(Ge.mediaEmit=function(e){var t,n;le.current.nextMedia=e,null===(t=(n=le.current).updateStyleListener)||void 0===t||t.call(n)}),le.current.setStateShallow=function(e){var t=le.current.nextState||ae,n="function"==typeof e?e(t):e;if(n!==t&&!(0,r(d[19]).isEqualShallow)(t,n)){var o,s,u=Object.keys(n).every(function(e){return w.has(e)}),l=Object.assign({},t,n);if(le.current.nextState=l,u)Ne(),null===(o=(s=le.current).updateStyleListener)||void 0===o||o.call(s);else Ve(n)}},he=function(e){var t,n;null===(t=(n=le.current).setStateShallow)||void 0===t||t.call(n,e)}}if(Ie){var We;if(V.group&&"hide"===V.untilMeasured&&!le.current.hasMeasured)(We=Ie).style||(We.style={}),Ie.style.opacity=0;null!=Ie.dynamicThemeAccess&&(le.current.isListeningToTheme=Ie.dynamicThemeAccess)}var He=(null==Ie?void 0:Ie.hasMedia)&&!0!==Ie.hasMedia,Ue=(0,r(d[17]).didGetVariableValue)()||He||ue&&!0===(null==Ie?void 0:Ie.hasMedia),$e=He?Ie.hasMedia:null;(0,r(d[16]).setMediaShouldUpdate)(z,Ue,$e);var Be,ze,Ze=Ie||{},Ke=Ze.viewProps,qe=Ze.pseudos,Ye=Ze.style,Je=(Ze.classNames,Ze.space),Qe=Ze.pseudoGroups,Xe=Ze.mediaGroups,et=V,tt=Ke||{},nt=tt.asChild,ot=tt.children,rt=(tt.themeShallow,tt.spaceDirection,tt.onPress),st=tt.onLongPress,it=tt.onPressIn,ut=tt.onPressOut,at=tt.onHoverIn,lt=tt.onHoverOut,ct=tt.onMouseUp,dt=tt.onMouseDown,pt=tt.onMouseEnter,ft=tt.onMouseLeave,vt=tt.onFocus,ht=tt.onBlur,mt=tt.separator,yt=tt.passThrough,St=(tt.forceStyle,tt.onClick),gt=tt.theme,bt=t(tt,u),Ct=bt;if(!ye&&V.forceStyle&&(Ct.forceStyle=V.forceStyle),y&&(typeof gt<"u"&&(Ct.theme=gt),typeof yt<"u"&&(Ct.passThrough=yt)),Se&&Ce.acceptTagProp&&(Ct.tag=Se),(ce?pe:de)&&q&&!y){var xt=q({props:et,style:Ye||{},styleState:Ie,useStyleEmitter:null!=K&&K.avoidReRenders?function(e){le.current.useStyleListener=e}:void 0,presence:re,componentState:ae,styleProps:Te,theme:Ee,pseudos:qe||null,staticConfig:e,stateRef:le});xt&&(xt.ref&&(ze=xt.ref),oe&&xt&&(Be=xt.style,Ct.style=Be,xt.className&&(Ct.className=`${"should-enter"===ae.unmounted?"t_unmounted ":""}${Ct.className||""} ${xt.className}`)))}!ke&&Ae&&"normal"!==V.containerType&&(bt.onLayout=(0,r(d[20]).composeEventHandlers)(bt.onLayout,function(e){var t,n=e.nativeEvent.layout;Ae.state.layout=n,null===(t=le.current.group)||void 0===t||t.emit({layout:n}),!le.current.hasMeasured&&"hide"===V.untilMeasured&&ie(function(e){return Object.assign({},e)}),le.current.hasMeasured=!0})),Ct=(null===(T=r(d[7]).hooks.usePropsTransform)||void 0===T?void 0:T.call(r(d[7]).hooks,Ce,bt,le,le.current.willHydrate))||bt,le.current.composedRef||(le.current.composedRef=(0,r(d[21]).composeRefs)(function(e){return le.current.host=e},S,r(d[22]).setElementProps,ze)),Ct.ref=le.current.composedRef;var Pt=function(){he({press:!1,pressIn:!1})};(0,r(d[5]).useIsomorphicLayoutEffect)(function(){var e;if(!0!==ae.unmounted||!ee)return ae.unmounted?null!=K&&K.supportsCSS||r(d[5]).isAndroid?(e=setTimeout(function(){he({unmounted:!1})}),function(){return clearTimeout(e)}):void he({unmounted:!1}):function(){O.delete(ie)};he({unmounted:"should-enter"})},[ae.unmounted,J]),(0,r(d[5]).useIsomorphicLayoutEffect)(function(){if(!J&&(Qe||Xe)&&ve)return(0,r(d[23]).subscribeToContextGroup)({groupContext:ve,setStateShallow:he,mediaGroups:Xe,pseudoGroups:Qe})},[ve,J,Qe?(0,r(d[24]).objectIdentityKey)(Qe):0,Xe?(0,r(d[24]).objectIdentityKey)(Xe):0]);var Ot=le.current.group;(0,r(d[5]).useIsomorphicLayoutEffect)(function(){!Ae||!Ot||j(Ae,Ot,ae)},[Ae,Ot,ae]);var wt,Et=!J&&ue&&(null==qe?void 0:qe.pressStyle),Mt=!J&&ue&&(null==qe?void 0:qe.focusStyle),jt=!J&&ue&&(null==qe?void 0:qe.focusVisibleStyle),Tt=!!(Et||Mt||jt||vt||ht||z.setParentFocusState),Lt=!(!Q||!ae.hasDynGroupChildren),It=!!(Lt||Et||rt||ut||it||dt||ct||st||St||null!=qe&&qe.focusVisibleStyle),kt=!J&&ue&&(null==qe?void 0:qe.hoverStyle),At=!(!Lt&&!kt),Rt=r(d[5]).isWeb&&!!(Lt||At||pt||ft),_t=!J&&!V.asChild&&!!(Tt||It||Rt||Et||kt||Mt),Ft=!(!Lt&&!Et),Dt=_t?Object.assign({onPressOut:It?function(e){Pt(),null==ut||ut(e),null==ct||ct(e)}:void 0},(Rt||It)&&{onMouseEnter:function(e){var t={};At&&(t.hover=!0),Ft&&ae.pressIn&&(t.press=!0),he(t),null==at||at(e),null==pt||pt(e)},onMouseLeave:function(e){var t={};At&&(t.hover=!1),Ft&&(t.press=!1,t.pressIn=!1),he(t),null==lt||lt(e),null==ft||ft(e)}},{onPressIn:It?function(e){Ft&&he({press:!0,pressIn:!0}),null==it||it(e),null==dt||dt(e),r(d[5]).isWeb&&O.add(ie)}:void 0,onPress:It?function(e){Pt(),r(d[5]).isWeb&&(null==St||St(e)),null==rt||rt(e)}:void 0},It&&st&&{onLongPress:function(e){Pt(),null==st||st(e)}},Tt&&{onFocus:function(e){var t={};z.setParentFocusState&&(t.focusWithin=!0),null!=qe&&qe.focusVisibleStyle&&M.value?t.focusVisible=!0:t.focus=!0,he(t),null==vt||vt(e)},onBlur:function(e){z.setParentFocusState&&z.setParentFocusState({focusWithin:!1}),he({focus:!1,focusVisible:!1,focusWithin:!1}),null==ht||ht(e)}}):null;Dt&&!nt&&Object.assign(Dt,{cancelable:!Ct.rejectResponderTermination,disabled:J,hitSlop:Ct.hitSlop,delayLongPress:Ct.delayLongPress,delayPressIn:Ct.delayPressIn,delayPressOut:Ct.delayPressOut,focusable:null===(wt=Ct.focusable)||void 0===wt||wt,minPressDuration:0});null===(L=r(d[7]).hooks.useEvents)||void 0===L||L.call(r(d[7]).hooks,Ct,Dt,Ie,he,e);var Gt,Nt=V.spaceDirection||"both",Vt=ot&&!nt&&Ie?I({separator:mt,children:ot,space:Je,direction:Nt,isZStack:h,debug:D}):ot;nt&&(Ce=r(d[25]).Slot,Object.assign(Ct,{onPress:rt,onLongPress:st}));ke&&(Vt=l.children,Ce=be,Ct={style:{display:"contents"}}),r(d[7]).hooks.useChildren&&(Gt=r(d[7]).hooks.useChildren(Ce,Vt,Ct)),Vt=Gt||P.default.createElement(Ce,Ct,Vt);var Wt=null==c||null===(k=c.animations)||void 0===k?void 0:k.ResetPresence,Ht=!(nt||!Ie||y||!Wt||!de||!ee&&!se),Ut=le.current.hasEverResetPresence;if(Ht&&!Ut&&(le.current.hasEverResetPresence=!0),(Ht||Ut)&&Wt&&(Vt=(0,x.jsx)(Wt,{disabled:!Ht,children:Vt})),"focusWithinStyle"in l&&(Vt=(0,x.jsx)(r(d[10]).ComponentContext.Provider,Object.assign({},z,{setParentFocusState:he,children:Vt}))),"group"in V&&(Vt=(0,x.jsx)(r(d[11]).GroupContext.Provider,{value:ve,children:Vt})),Vt=xe||!Ie?Vt:(0,r(d[26]).getThemedChildren)(Me,Vt,Pe,!1,le),N){var $t=e.context.Provider;for(var Bt in G)Bt in N||(N[Bt]=G[Bt]);D&&console.info("overriddenContextProps",N),Vt=(0,x.jsx)($t,Object.assign({__disableMergeDefaultValues:!0},N,{children:Vt}))}return Vt});function j(e,t,n){if(e&&t){var o=Object.assign({},e.state,{pseudo:n});t.emit(o),e.state=o}}e.componentName&&(S.displayName=e.componentName);var T=S;function L(t){return Object.assign({},e,t,{neverFlatten:!0,isHOC:!0,isStyledHOC:!1})}function k(e,t){var n,o=r(d[5]).IS_REACT_19&&"function"==typeof e&&1===e.length||2===(null===(n=e.render)||void 0===n?void 0:n.length)?e:P.default.forwardRef(e),s=L(null==t?void 0:t.staticConfig);return o=null!=t&&t.disableTheme?o:(0,r(d[27]).themeable)(o,s,!0),(s.memo||process.env.TAMAGUI_MEMOIZE_STYLEABLE)&&(o=P.default.memo(o)),o.staticConfig=s,o.styleable=k,o}return(process.env.TAMAGUI_FORCE_MEMO||e.memo)&&(T=P.default.memo(T)),T.staticConfig=e,T.extractable=function(e,t){return e.staticConfig=L(t),e.styleable=k,e},T.styleable=k,T}function T(e){return e.children}r(d[5]).isWeb&&typeof document<"u"&&(document.addEventListener("keydown",function(){M.value||(M.value=!0)}),document.addEventListener("mousedown",function(){M.value&&(M.value=!1)}),document.addEventListener("mousemove",function(){M.value&&(M.value=!1)})),T.isUnspaced=!0;var L=j({acceptsClassName:!0,memo:!0,componentName:"Spacer",validStyles:r(d[20]).validStyles,defaultProps:Object.assign({},r(d[28]).stackDefaultStyles,{tag:"span",size:!0,pointerEvents:"none"}),variants:{size:{"...":function(e,t){e=!1===e?0:!0===e?"$true":e;var n,o=null!==(n=t.tokens.space[e])&&void 0!==n?n:e;return{width:o,height:o,minWidth:o,minHeight:o}}},flex:{true:{flexGrow:1}},direction:{horizontal:{height:0,minHeight:0},vertical:{width:0,minWidth:0},both:{}}}});function I(e){var t,n,s=e.isZStack,u=e.children,l=e.space,c=e.direction,p=e.spaceFlex,f=e.separator,v=e.ensureKeys,h=!(!l&&!p),y=null!=f,S=Array.isArray(u);if(!v&&!(h||y||s))return u;var b=S?u:P.default.Children.toArray(u);if(b.length<=1&&!s&&(null===(n=b[0])||void 0===n||null===(t=n.type)||void 0===t||!t.shouldForwardSpace))return u;var C=[],O=!0,w=!1,E=void 0;try{for(var M,j=b.entries()[Symbol.iterator]();!(O=(M=j.next()).done);O=!0){var T,L=o(M.value,2),I=L[0],_=L[1],F=null==_||Array.isArray(_)&&0===_.length;if(!F&&P.default.isValidElement(_)&&!(null===(T=_.type)||void 0===T)&&T.shouldForwardSpace&&(_=P.default.cloneElement(_,{space:l,spaceFlex:p,separator:f,key:_.key})),F||!_||_.key&&!s?C.push(_):C.push((0,x.jsx)(P.default.Fragment,{children:s?(0,x.jsx)(R,{children:_}):_},`${I}0t`)),!(A(_)&&0===I||s)){var D=b[I+1];D&&!F&&!A(D)&&(f?(h&&C.push(k({key:`_${I}_00t`,direction:c,space:l,spaceFlex:p})),C.push((0,x.jsx)(P.default.Fragment,{children:f},`${I}03t`)),h&&C.push(k({key:`_${I}01t`,direction:c,space:l,spaceFlex:p}))):C.push(k({key:`_${I}02t`,direction:c,space:l,spaceFlex:p})))}}}catch(e){w=!0,E=e}finally{try{!O&&null!=j.return&&j.return()}finally{if(w)throw E}}return C}function k(e){var t=e.key,n=e.direction,o=e.space,s=e.spaceFlex;return(0,x.jsx)(L,Object.assign({size:o,direction:n},typeof s<"u"&&{flex:!0===s?1:!1===s?0:s}),t)}function A(e){var t=null==e?void 0:e.type;return(null==t?void 0:t.isVisuallyHidden)||(null==t?void 0:t.isUnspaced)}var R=j({defaultProps:Object.assign({},r(d[28]).stackDefaultStyles,{flexDirection:"column",position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"box-none"})}),_=function(e){return"number"==typeof e?e:"string"==typeof e?+e.replace("px",""):0}},1485,[207,18,19,258,128,1463,1469,1486,1487,1488,1489,1492,1493,1496,1498,1499,1467,1475,1503,1465,1476,1525,1527,1528,1491,1529,1530,1531,1473]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var O of u(f))b(O)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{hooks:function(){return p},setupHooks:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p={};function b(t){Object.assign(p,t)}},1486,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(n,t,f,l){if(t&&"object"==typeof t||"function"==typeof t){var p=function(c){!u.call(n,c)&&c!==f&&o(n,c,{get:function(){return t[c]},enumerable:!(l=i(t,c))||l.enumerable})};for(var s of c(t))p(s)}return n},l={};function p(){var n=0,o=new Set,i={};function c(){var c=n/o.size,u=0,f=[`Ran ${c} per-type, ${n} total`].concat(t(t(o).map(function(n){if(!n.endsWith("(ignore)")){var t=`avg ${(""+i[n]/c).slice(0,9).padEnd(9)}ms`,o=i[n];return u+=o,`${n.slice(0,30).padStart(31)} | ${t} | total ${o}ms`}})),[` total ${u}ms`]).join("\n");return console.info(f),f}return{start:function(t){var u,f=null===(u=null==t?void 0:t.quiet)||void 0===u||u;function l(t){for(var c=arguments.length,u=new Array(c>1?c-1:0),l=1;l1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"",c=O(t),l=c.Provider,f=c,s=new Map,v=O(u);function p(n){var o=s.get(n);return o||(o=O(t),s.set(n,o)),o}var b=function(t){return u?`${u}--${t}`:t};return f.Provider=function(u){var c=u.children,f=u.scope,s=u.__disableMergeDefaultValues,O=n(u,o),P=b(f),_=j.default.useMemo(function(){return s?O:(0,r(d[3]).mergeProps)(t,O)},[(0,r(d[4]).objectIdentityKey)(O)]),x=l;return P&&(x=p(P).Provider),(0,y.jsx)(v.Provider,{value:P,children:(0,y.jsx)(x,{value:_,children:c})})},f.props=t,f.context=c,f.useStyledContext=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=(0,j.useContext)(v),o=u?t?b(t):n:t,l=o?p(o):c;return j.default.useContext(l)},f}},1490,[207,258,128,1488,1491]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,u=function(t,u,p,s){if(u&&"object"==typeof u||"function"==typeof u){var b=function(f){!c.call(t,f)&&f!==p&&n(t,f,{get:function(){return u[f]},enumerable:!(s=o(u,f))||s.enumerable})};for(var v of f(u))b(v)}return t},p={};function s(t){var n="";for(var o in t){n+=o;var f=t[o],c=typeof f;if(!f||"object"!==c&&"function"!==c)n+=c+f;else if(b.has(f))n+=b.get(f);else{var u=Math.random();b.set(f,u),n+=u}}return n}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(p,{objectIdentityKey:function(){return s}}),m.exports=(t=p,u(n({},"__esModule",{value:!0}),t));var b=new WeakMap},1491,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{GroupContext:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).createContext)(null)},1492,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=r(d[1]),l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var v=function(u){!c.call(t,u)&&u!==s&&l(t,u,{get:function(){return n[u]},enumerable:!(f=o(n,u))||f.enumerable})};for(var b of u(n))v(b)}return t},v={};!(function(t,n){for(var s in n)l(t,s,{get:n[s],enumerable:!0})})(v,{useComponentState:function(){return S}}),m.exports=(t=v,f(l({},"__esModule",{value:!0}),t));var b=r(d[2]),S=function(t,l,o,u){var c,f,v=(0,r(d[3]).useDidFinishSSR)(),S=!(0,r(d[3]).useIsClientOnly)(),y=(0,b.useState)(S&&!v),O=s(y,1)[0],C=null==l?void 0:l.useAnimations,h=o.isHOC,j=(0,b.useRef)({}),A=!!(!h&&"animation"in t||t.style&&(f=t.style,Object.keys(f).some(function(t){var n=f[t];return n&&"object"==typeof n&&"_animation"in n}))),P=null==l?void 0:l.supportsCSS,w=j.current;!S&&A&&(w.hasAnimated=!0);var R=!((!A||h||!C)&&!w.hasAnimated),N=!r(d[4]).isServer&&R;N&&!w.hasAnimated&&(w.hasAnimated=!0);var _=t.disableClassName,x=!h&&N&&!1!==t.animatePresence&&(null==l||null===(c=l.usePresence)||void 0===c?void 0:c.call(l))||null,E=null==x?void 0:x[2],H=!1===(null==E?void 0:E.isPresent),D=!0===(null==E?void 0:E.isPresent)&&!1!==E.initial,M=!!t.enterStyle,V=A&&!v&&((null==l?void 0:l.isReactNative)||!P),W=!h&&(M||D||V||_)?M||D?r(d[5]).defaultComponentStateShouldEnter:r(d[5]).defaultComponentState:r(d[5]).defaultComponentStateMounted,B=p(t);null!=B&&(W.disabled=B);var k=(0,b.useState)(W),F=t.forceStyle?Object.assign({},k[0],n({},t.forceStyle,!0)):k[0],I=k[1],T=N;r(d[4]).isWeb&&V&&!o.isHOC&&!v&&(T=!1,w.willHydrate=!0),B!==F.disabled&&(B&&Object.assign(F,r(d[5]).defaultComponentStateMounted),F.disabled=B,I(function(t){return Object.assign({},F)}));var U=t.group,q=(0,r(d[6]).useCreateShallowSetState)(I,t.debug);if(E&&T&&v&&o.variants){var z=E.enterVariant,G=E.exitVariant,J=E.enterExitVariant,K=E.custom;(0,r(d[7]).isObj)(K)&&Object.assign(t,K);var L=null!=G?G:J,Q=null!=z?z:J;F.unmounted&&Q&&o.variants[Q]?t[Q]=!0:H&&L&&(t[L]=G!==J)}var X=!r(d[4]).isWeb||!!t.forceStyle;if(v){if(r(d[4]).isWeb&&v){var Y=T&&v,Z=!o.acceptsClassName&&(u.disableSSR||!F.unmounted),$=_&&!F.unmounted;(Y||$||Z)&&(X=!0)}}else X=!1;return{startedUnhydrated:O,curStateRef:w,disabled:B,groupName:U,hasAnimationProp:A,hasEnterStyle:M,isAnimated:T,isExiting:H,isHydrated:v,presence:x,presenceState:E,setState:I,setStateShallow:q,noClass:X,state:F,stateRef:j,supportsCSS:P,willBeAnimated:N,willBeAnimatedClient:R}};var p=function(t){var n;return t.disabled||t.passThrough||(null===(n=t.accessibilityState)||void 0===n?void 0:n.disabled)||t["aria-disabled"]||t.accessibilityDisabled||!1}},1493,[18,19,128,1494,1463,1496,1465,1497]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,O=function(t,n,c,O){if(n&&"object"==typeof n||"function"==typeof n){var y=function(l){!f.call(t,l)&&l!==c&&u(t,l,{get:function(){return n[l]},enumerable:!(O=o(n,l))||O.enumerable})};for(var s of l(n))y(s)}return t},y={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(y,{ClientOnly:function(){return r(d[0]).ClientOnly},ClientOnlyContext:function(){return r(d[0]).ClientOnlyContext},useClientValue:function(){return b},useDidFinishSSR:function(){return p},useIsClientOnly:function(){return C}}),m.exports=(t=y,O(u({},"__esModule",{value:!0}),t));var s=(function(t,o,l){return l=null!=t?n(c(t)):{},O(!o&&t&&t.__esModule?l:u(l,"default",{value:t,enumerable:!0}),t)})(r(d[1])),C=function(){return s.useContext(r(d[0]).ClientOnlyContext)};function p(){s.useContext(r(d[0]).ClientOnlyContext);return!0}function b(t){return p()?"function"==typeof t?t():t:void 0}},1494,[1495,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,f,p){if(l&&"object"==typeof l||"function"==typeof l){var b=function(u){!c.call(t,u)&&u!==f&&n(t,u,{get:function(){return l[u]},enumerable:!(p=o(l,u))||p.enumerable})};for(var s of u(l))b(s)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{ClientOnly:function(){return v},ClientOnlyContext:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var p=r(d[0]),b=r(d[1]),s=(0,b.createContext)(!1),v=function(t){var n=t.children,o=t.enabled,u=(0,b.useContext)(s);return(0,p.jsx)(s.Provider,{value:null!=o?o:u,children:n})}},1495,[258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))l(b)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{defaultComponentState:function(){return p},defaultComponentStateMounted:function(){return l},defaultComponentStateShouldEnter:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p={hover:!1,press:!1,pressIn:!1,focus:!1,focusVisible:!1,focusWithin:!1,unmounted:!0,disabled:!1},l=Object.assign({},p,{unmounted:!1}),b=Object.assign({},p,{unmounted:"should-enter"})},1496,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var y=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))y(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isObj:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return t&&!Array.isArray(t)&&"object"==typeof t}},1497,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var y of u(f))b(y)}return t},p={};function l(){for(var t=arguments.length,n=new Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{});return n(t,1)[0]},v=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=(0,p.useRef)(null),u=(0,r(d[2]).useThemeState)(t,n,o);return[t.passThrough?{}:(0,r(d[3]).getThemeProxied)(t,u,o),u]}},1499,[19,128,1472,1500]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var v=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var h of c(n))v(h)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{getThemeProxied:function(){return y}}),m.exports=(t=s,l(o({},"__esModule",{value:!0}),t));var v,h,b,p=new Map,O={};function y(t,o,u){if(null==o||!o.theme)return O;if(v=u,h=t,b=o,p.has(b.theme))return p.get(b.theme);var c=(0,r(d[1]).getConfig)();function f(t){v&&(v.current||(v.current=new Set),v.current.add(t))}var l=Object.fromEntries(Object.entries(o.theme).flatMap(function(t){var o=n(t,2),u=o[0],l=o[1],s=Object.assign({},l,{get val(){return globalThis.tamaguiAvoidTracking||f(u),l.val},get:function(t){if(b){var n=(0,r(d[2]).getVariable)(l),o=b,s=o.name,v=o.scheme,p=o.inverses;if(v&&"web"!==t&&r(d[3]).isIos&&!h.deopt&&(0,r(d[1]).getSetting)("fastSchemeChange")&&0===p&&(0,r(d[4]).doesRootSchemeMatchSystem)()){var O,y,j="dark"===v?"light":"dark",w=s.replace(v,j),P=(0,r(d[2]).getVariable)(null===(O=c.themes[s])||void 0===O?void 0:O[u]),S=(0,r(d[2]).getVariable)(null===(y=c.themes[w])||void 0===y?void 0:y[u]);return(0,r(d[5]).getDynamicVal)({scheme:v,val:P,oppositeVal:S})}return f(u),n}}});return[[u,s],[`$${u}`,s]]}));return p.set(o.theme,l),l}},1500,[19,1469,1475,1463,1501,1502]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(l=n(f,c))||l.enumerable})};for(var v of c(f))s(v)}return t},p={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{doesRootSchemeMatchSystem:function(){return s}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=r(d[0]);function s(){var t;return(null===(t=(0,r(d[1]).getRootThemeState)())||void 0===t?void 0:t.scheme)===l.Appearance.getColorScheme()}},1501,[28,1472]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,n,l,p){if(n&&"object"==typeof n||"function"==typeof n){var y=function(u){!f.call(t,u)&&u!==l&&o(t,u,{get:function(){return n[u]},enumerable:!(p=c(n,u))||p.enumerable})};for(var s of u(n))y(s)}return t},p={};function y(t){return"dark"===t?"light":"dark"}function s(t){var o=t.scheme,c=t.val,u=t.oppositeVal,f=y(o);return{dynamic:n(n({},o,c),f,u)}}function b(t,n){return null!=t&&t.dynamic?t.dynamic[n]:t}!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{extractValueFromDynamic:function(){return b},getDynamicVal:function(){return s},getOppositeScheme:function(){return y}}),m.exports=(t=p,l(o({},"__esModule",{value:!0}),t))},1502,[18]); -__d(function(_g,r,_i,_a,m,_e,_d){"use strict";var e,t=r(_d[0]),n=r(_d[1]),i=r(_d[2]),a=Object.create,s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,c=function(e,t,n,i){if(t&&"object"==typeof t||"function"==typeof t){var a=function(a){!u.call(e,a)&&a!==n&&s(e,a,{get:function(){return t[a]},enumerable:!(i=o(t,a))||i.enumerable})};for(var f of l(t))a(f)}return e},v={};!(function(e,t){for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(v,{PROP_SPLIT:function(){return d},getSplitStyles:function(){return g},getSubStyle:function(){return P},useSplitStyles:function(){return T}}),m.exports=(e=v,c(s({},"__esModule",{value:!0}),e));var y,p=(function(e,t,n){return n=null!=e?a(f(e)):{},c(!t&&e&&e.__esModule?n:s(n,"default",{value:e,enumerable:!0}),e)})(r(_d[3])),d="-";function S(e,t,n){return e in t||n&&e in n}var g=function(e,t,n,i,a,s,o,l,f,u,c,v){var p=function(t){var n=t,o=e[n];if("children"===n)return R[n]=o,"continue";if(ee){var l=ee[n];if(("style"===l||"textStyle"===l)&&o&&"object"==typeof o)return R[n]=P(Z,n,o,s.noClass),"continue"}if(re||n in C&&(n=C[n]),"className"===n)return"continue";if(n in r(_d[4]).skipProps&&!te&&!j)return"continue";var u=S(n,Q,ee);if(!u){if(!r(_d[5]).isAndroid&&"elevationAndroid"===n)return"continue";if("userSelect"===n)n="selectable",o="none"!==o;else if(n.startsWith("data-"))return"continue"}if("dataSet"===n){for(var c in o)R[`data-${I(c)}`]=o[c];return"continue"}var p=!u&&N&&n in N,g=u||p,h=n in r(_d[6]).validPseudoKeys,F=!g&&!h&&(0,r(_d[7]).getMediaKey)(n),W=!(!F&&!h);if(W&&"group"===F){var k=n.split("-"),q=k.length;if(2===q||3===q&&r(_d[8]).pseudoPriorities[k[k.length-1]]){var se=k[1];f&&(null==f||!f[se])&&(n=n.replace("$group-","$group-true-"))}}var oe=u||W||p&&!ne;if(oe&&("except-style"===J||"except-style-web"===J))return"continue";var le=!oe&&j||j&&ae&&n in ae||(null==E?void 0:E.has(n)),fe=null==ae?void 0:ae[n],ue=!(!j||!(u||W||fe||n in r(_d[4]).skipProps));if((le||ue)&&(w(R,n,o,W),!p))return"continue";if(!te&&n in r(_d[4]).skipProps)return"continue";(_||$)&&o&&("fontFamily"===n||n===C.fontFamily)&&o in y.fontsParsed&&(Z.fontFamily=o);var ce=W||!g;(0,r(_d[9]).propMapper)(n,o,Z,ce,function(t,l){var u,c=ie&&t in ie;if(j||!ce||c||W){if(null!=l){if("pointerEvents"===t)return void(R[t]=l);if(!j&&S(t,Q,ee)||r(_d[5]).isAndroid&&"elevation"===t)return void b(Z,t,l,1);var y;if(h=t in r(_d[6]).validPseudoKeys,F=!h&&(0,r(_d[7]).getMediaKey)(t),W=!(!F&&!h),p=N&&t in N,null!=E&&E.has(t)||"is_static"===process.env.IS_STATIC&&null!=z&&z.has(t))R[t]=null!==(y=e[t])&&void 0!==y?y:l;if(s.noExpand&&h||j&&(W||(null==D||null===(u=D.variants)||void 0===u?void 0:u[n])))return void w(R,t,l,W);if(h){if(!l)return;var g,I,_=P(Z,t,l,s.noClass&&"is_static"!==process.env.IS_STATIC);if(!L||"is_static"===process.env.IS_STATIC)if(H||(H={}),(g=H)[I=t]||(g[I]={}),"is_static"===process.env.IS_STATIC)return void Object.assign(H[t],_);var $=r(_d[8]).pseudoDescriptors[t],k="enterStyle"===t,q="exitStyle"===t;if(!$)return;if(L&&!q){var J=(0,r(_d[10]).getStyleAtomic)(_,$),te=!0,re=!1,ne=void 0;try{for(var ae,se=J[Symbol.iterator]();!(te=(ae=se.next()).done);te=!0){var oe=ae.value,le=`${oe[r(_d[6]).StyleObjectProperty]}${d}${$.name}`;A(G,oe),U[le]=oe[r(_d[6]).StyleObjectIdentifier]}}catch(e){re=!0,ne=e}finally{try{!te&&null!=se.return&&se.return()}finally{if(re)throw ne}}}if(!L||q||k){var fe=$.stateKey||$.name,ue=!1===a[fe];q&&(ue=!s.isExiting),k&&!1===a.unmounted&&(ue=!0);var ve=$.priority;for(var ye in _){var pe=_[ye];if(ue)K(ye,Z);else if(ve>=(Z.usedKeys[ye]||0)){var de,me;if("is_static"===process.env.IS_STATIC)H||(H={}),(de=H)[me=t]||(de[me]={}),H[t][ye]=pe;b(Z,ye,pe,ve)}}if(!ue)for(var Se in l){var ge=C[Se]||Se;Z.usedKeys[ge]=Math.max(ve,Z.usedKeys[ge]||0)}}return}if(F){if(!l)return;var he=l.space,be=t.slice("theme"==F?7:1);if(Y||(Y=!0),(he||!L||s.willBeAnimated)&&((!Y||"boolean"==typeof Y)&&(Y=new Set),Y.add(be)),"platform"===F&&!(0,r(_d[11]).isActivePlatform)(t))return;var Pe=B;if(B+=1,L){var Te=P(Z,t,l,!1);if(he&&(delete Te.space,V[be])){var Ae=(0,r(_d[7]).getMediaImportanceIfMoreImportant)(be,"space",Z,!0);Ae&&(X=l.space,Z.usedKeys.space=Ae)}var Oe=(0,r(_d[10]).getCSSStylesAtomic)(Te),xe=!0,Ce=!1,Ie=void 0;try{for(var je,we=Oe[Symbol.iterator]();!(xe=(je=we.next()).done);xe=!0){var Me=je.value,Fe=Me[r(_d[6]).StyleObjectProperty],Ke="$"===Fe[0];if(!Ke||(0,r(_d[11]).isActivePlatform)(Fe)){var $e=(0,r(_d[12]).createMediaStyle)(Me,be,r(_d[7]).mediaQueryConfig,F,!1,Pe),Ne=Ke?Me[2]:"",We=`${Me[r(_d[6]).StyleObjectProperty]}${Ne}${d}${be}${Me[r(_d[6]).StyleObjectPseudo]||""}`;A(G,$e),U[We]=$e[r(_d[6]).StyleObjectIdentifier]}}}catch(e){Ce=!0,Ie=e}finally{try{!xe&&null!=we.return&&we.return()}finally{if(Ce)throw Ie}}}else{var Ee=function(e,t){var n;(n=Z).style||(n.style={}),M(Z,be,e,t,V[be],Re,v)&&"fontFamily"===e&&(Z.fontFamily=ke.fontFamily)},ze="theme"===F,De="group"===F;if(!(ze||"platform"===F||De||V[be]))return;var ke=P(Z,t,l,!0),Re=0;if(ze){if(T=!0,r(_d[5]).isIos&&(0,r(_d[13]).getSetting)("fastSchemeChange")){var Ve;(Ve=Z).style||(Ve.style={});var Le=be,Ge=(0,r(_d[14]).getOppositeScheme)(be);for(var Ue in ke){var He=(0,r(_d[14]).extractValueFromDynamic)(ke[Ue],Le),Xe=(0,r(_d[14]).extractValueFromDynamic)(Z.style[Ue],Ge);ke[Ue]=(0,r(_d[14]).getDynamicVal)({scheme:Le,val:He,oppositeVal:Xe}),b(Z,Ue,ke[Ue],Pe)}}else if(i!==be&&!i.startsWith(be))return}else if(De){var Ye,Be,Qe=(0,r(_d[15]).getGroupPropParts)(be),Ze=Qe.name,qe=null==f||null===(Ye=f[Ze])||void 0===Ye?void 0:Ye.state,Je=Qe.pseudo,et=Qe.media;if(!qe)return void(O||(O=new Set));var tt=null===(Be=a.group)||void 0===Be?void 0:Be[Ze];if(et){x||(x=new Set),x.add(et);var rt=null==tt?void 0:tt.media,nt=null==rt?void 0:rt[et];if(!rt&&qe.layout&&(nt=(0,r(_d[7]).mediaKeyMatch)(et,qe.layout)),!nt){for(var it in ke)K(it,Z);return}Re=2}if(Je){var at;O||(O=new Set),O.add(Ze);var st=null===(at=tt||(null==f?void 0:f[Ze].state))||void 0===at?void 0:at.pseudo,ot=null==st?void 0:st[Je],lt=r(_d[8]).pseudoPriorities[Je];if(!ot){for(var ft in ke)K(ft,Z);return}Re=lt}}for(var ut in ke)if("space"!==ut)if("$"===ut[0]){if(!(0,r(_d[11]).isActivePlatform)(ut)||!(0,r(_d[16]).isActiveTheme)(ut,i))continue;for(var ct in ke[ut])Ee(ct,ke[ut][ct])}else Ee(ut,ke[ut]);else X=o.space}return}if(!p){if(c)return;R[t]=l}}}else R[t]=l})};y=y||(0,r(_d[13]).getConfig)();var g=(null==l?void 0:l.animationDriver)||y.animations;if(e.passThrough)return null;r(_d[5]).isWeb&&s.isAnimated&&g.isReactNative&&!s.noNormalize&&(s.noNormalize="values");var T,O,x,C=y.shorthands,j=t.isHOC,_=t.isText,$=t.isInput,N=t.variants,W=t.isReactNative,E=t.inlineProps,z=t.inlineWhenUnflattened,D=t.parentStaticConfig,k=t.acceptsClassName,R={},V=s.mediaState||r(_d[7]).mediaState,L=k&&r(_d[5]).isWeb&&!s.noClass,G=void 0,U={},H=null,X=e.space,Y=!1,B=(e.className,0),Q=t.validStyles||(t.isText||t.isInput?r(_d[6]).stylePropsText:r(_d[6]).validStyles),Z={classNames:U,conf:y,props:e,styleProps:s,componentState:a,staticConfig:t,style:null,theme:n,usedKeys:{},viewProps:R,context:l,debug:v};if("is_static"===process.env.IS_STATIC){var q=s.fallbackProps;q&&(Z.props=new Proxy(e,{get:function(t,n,i){return Reflect.has(e,n)?Reflect.get(e,n):Reflect.get(q,n)}}))}var J=e.asChild,ee=t.accept,te=s.noSkip,re=s.disableExpandShorthands,ne=s.noExpand,ie=s.styledContext,ae=(y.settings.webContainerType,null==D?void 0:D.variants);for(var se in e)p(se);if(!(!1===s.noNormalize)){var oe;if(Z.style&&((0,r(_d[18]).fixStyles)(Z.style),!s.noExpand&&!s.noMergeStyle&&r(_d[5]).isWeb&&(!W||!g.supportsCSS)&&(0,r(_d[10]).styleToCSS)(Z.style)),Z.flatTransforms)(oe=Z).style||(oe.style={}),h(Z.style,Z.flatTransforms);if(o&&!L)for(var le in o.style){var fe;le in U||Z.style&&le in Z.style||((fe=Z).style||(fe.style={}),Z.style[le]=o.style[le])}}var ue=e.style;if(!s.noMergeStyle&&ue)if(j)R.style=F(ue);else for(var ce=Array.isArray(ue),ve=ce?ue.length:1,ye=0;ye4&&void 0!==arguments[4]&&arguments[4],o=e.viewProps,l=e.styleProps,f=e.staticConfig,u=e.usedKeys;if(!((u[t]||0)>a))if(t in r(_d[6]).stylePropsTransform){var c;(c=e).flatTransforms||(c.flatTransforms={}),u[t]=a,e.flatTransforms[t]=i}else{var v,y=r(_d[5]).isWeb&&!s&&!l.noNormalize?(0,r(_d[20]).normalizeValueWithProperty)(i,t):i;if(f.accept&&t in f.accept)o[t]=y;else(v=e).style||(v.style={}),u[t]=a,e.style[t]="transform"===t&&Array.isArray(y)?n(y):y}}var P=function(e,t,i,a){var s=function(t){var n=i[t];if(t=l.shorthands[t]||t,!o.isHOC&&t in r(_d[4]).skipProps&&!f.noSkip)return c=t,"continue";(0,r(_d[9]).propMapper)(t,n,e,!1,function(n,i){n in r(_d[6]).validPseudoKeys&&(i=P(e,n,i,a)),!a&&n in r(_d[6]).stylePropsTransform?j(u,n,i):u[n]=f.noNormalize?i:(0,r(_d[20]).normalizeValueWithProperty)(i,t)}),c=t},o=e.staticConfig,l=e.conf,f=e.styleProps,u={};for(var c in i)s(c);if(!a){if(Array.isArray(u.transform)){var v,y=null===(v=e.style)||void 0===v?void 0:v.transform;y&&(u.transform=[].concat(n(y),n(u.transform)))}e.flatTransforms&&h(u,e.flatTransforms)}return f.noNormalize||(0,r(_d[18]).fixStyles)(u),u},T=(r(_d[5]).isWeb&&(p.default.useInsertionEffect||r(_d[5]).useIsomorphicLayoutEffect),function(e,t,n,i,a,s,o,l,f,u,c,v){return g(e,t,n,i,a,s,o,l,f,u,c,v)});function A(e,t){}var O=process.env.TAMAGUI_DEFAULT_COLOR||"rgba(0,0,0,0)",x=Object.assign({},Object.fromEntries(Object.entries(r(_d[6]).tokenCategories.color).map(function(e){var t=i(e,2),n=t[0];t[1];return[n,O]})),{opacity:1,scale:1,rotate:"0deg",rotateY:"0deg",rotateX:"0deg",x:0,y:0,borderRadius:0}),C=function(e){return`-${e.toLowerCase()}`},I=function(e){return e.replace(/[A-Z]/g,C)},j=function(e,n,i){var a,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"string"!=typeof e.transform&&((a=e).transform||(a.transform=[]),e.transform[s?"unshift":"push"](t({},_[n]||n,i)))},_={x:"translateX",y:"translateY"};function w(e,t,n){if(arguments.length>3&&void 0!==arguments[3]&&arguments[3]){var i=Object.assign({},e[t],n);delete e[t],e[t]=i}else e[t]=n}function M(e,t,n,i,a,s,o){e.usedKeys;var l=(0,r(_d[7]).getMediaImportanceIfMoreImportant)(t,n,e,a);if(s&&(l=(l||0)+s),null===l)return!1;if(n in r(_d[8]).pseudoDescriptors){var f=r(_d[8]).pseudoDescriptors[n],u=f.stateKey||f.name;if(!1===e.componentState[u])return!1;for(var c in i)b(e,c,i[c],l)}else b(e,n,i,l);return!0}function F(e){var t={};for(var n in e){var i=e[n];n in r(_d[6]).stylePropsTransform?j(t,n,i):t[n]=(0,r(_d[20]).normalizeValueWithProperty)(i,n)}return r(_d[5]).isWeb&&Array.isArray(t.transform)&&(t.transform=(0,r(_d[21]).transformsToString)(t.transform)),(0,r(_d[18]).fixStyles)(t),t}function K(e,t){var n=x[e];null!=n&&!(e in t.usedKeys)&&(!t.style||!(e in t.style))&&b(t,e,n,1)}},1503,[18,32,19,128,1504,1463,1476,1467,1468,1506,1518,1519,1520,1469,1502,1521,1522,1498,1512,1523,1511,1524]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,p,f){if(c&&"object"==typeof c||"function"==typeof c){var b=function(s){!u.call(t,s)&&s!==p&&n(t,s,{get:function(){return c[s]},enumerable:!(f=o(c,s))||f.enumerable})};for(var l of s(c))b(l)}return t},p={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(p,{skipProps:function(){return f}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t));var f={untilMeasured:1,animation:1,space:1,animateOnly:1,disableClassName:1,debug:1,componentName:1,disableOptimization:1,tag:1,style:1,group:1,themeInverse:1,animatePresence:1};Object.assign(f,r(d[0]).webPropsToSkip)},1504,[1505]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(o,u,l,k){if(u&&"object"==typeof u||"function"==typeof u){var p=function(c){!s.call(o,c)&&c!==l&&t(o,c,{get:function(){return u[c]},enumerable:!(k=n(u,c))||k.enumerable})};for(var b of c(u))p(b)}return o},l={};!(function(o,n){for(var c in n)t(o,c,{get:n[c],enumerable:!0})})(l,{webPropsToSkip:function(){return k}}),m.exports=(o=l,u(t({},"__esModule",{value:!0}),o));var k={whiteSpace:1,wordWrap:1,textOverflow:1,textDecorationDistance:1,cursor:1,contain:1,boxSizing:1,touchAction:1,outlineStyle:1,outlineOffset:1,outlineWidth:1,outlineColor:1,backdropFilter:1,backgroundImage:1,mixBlendMode:1,scrollbarWidth:1,backgroundOrigin:1,backgroundPosition:1,backgroundRepeat:1,backgroundSize:1,backgroundClip:1,backgroundBlendMode:1,backgroundAttachment:1,background:1,clipPath:1,caretColor:1,transformStyle:1,mask:1,maskImage:1,textEmphasis:1,borderImage:1,float:1,content:1,overflowBlock:1,overflowInline:1,maskBorder:1,maskBorderMode:1,maskBorderOutset:1,maskBorderRepeat:1,maskBorderSlice:1,maskBorderSource:1,maskBorderWidth:1,maskClip:1,maskComposite:1,maskMode:1,maskOrigin:1,maskPosition:1,maskRepeat:1,maskSize:1,maskType:1}},1505,[]); -__d(function(g,r,_i,a,m,e,d){"use strict";var n,i=r(d[0]),t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,u=function(n,i,u,s){if(i&&"object"==typeof i||"function"==typeof i){var v=function(l){!f.call(n,l)&&l!==u&&t(n,l,{get:function(){return i[l]},enumerable:!(s=o(i,l))||s.enumerable})};for(var c of l(i))v(c)}return n},s={};!(function(n,i){for(var o in i)t(n,o,{get:i[o],enumerable:!0})})(s,{getFontFamilyFromNameOrVariable:function(){return p},getTokenForKey:function(){return P},propMapper:function(){return v}}),m.exports=(n=s,u(t({},"__esModule",{value:!0}),n));var v=function(n,t,o,l,f){if(l)return f(n,t);if(O=null,r(d[1]).isAndroid||"elevationAndroid"!==n){var u=o.conf,s=o.styleProps,v=o.staticConfig;if("unset"===t){var p,y=null===(p=u.unset)||void 0===p?void 0:p[n];if(null==y)return;t=y}var b=v.variants;if(!s.noExpand&&b&&n in b){var h=c(n,t,s,o,"");if(h)return void h.forEach(function(n){var t=i(n,2),o=t[0],l=t[1];return f(o,l)})}if(s.disableExpandShorthands||n in u.shorthands&&(n=u.shorthands[n]),null!=t&&("$"===t[0]?t=P(n,t,s,o):(0,r(d[2]).isVariable)(t)&&(t=S(n,t,s.resolveValues))),null!=t){"fontFamily"===n&&O&&(o.fontFamily=O);var F=s.noExpand?null:(0,r(d[3]).expandStyle)(n,t);if(F)for(var k=F.length,V=0;V1&&void 0!==arguments[1]&&arguments[1],o={};for(var u in t){var c=t[u];if(null!=c){if(u in r(d[0]).pseudoDescriptors||"$"===u[0]&&(0,r(d[1]).isObj)(c)){o[u]=s(c,n);continue}var f=n?c:(0,r(d[2]).normalizeValueWithProperty)(c,u),l=(0,r(d[3]).expandStyle)(u,f);l?Object.assign(o,Object.fromEntries(l)):o[u]=f}}return(0,r(d[4]).fixStyles)(o),o}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{normalizeStyle:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},1510,[1468,1497,1511,1507,1512]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{normalizeValueWithProperty:function(){return p}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=Object.assign({},r(d[0]).stylePropsAll,{translateX:!0,translateY:!0});function p(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(!r(d[1]).isWeb||r(d[0]).stylePropsUnitless[n]||n&&!s[n]||"boolean"==typeof t)return t;var o=t;return t&&"object"==typeof t?t:("number"==typeof t?o=`${t}px`:n&&(o=`${o}`),o)}},1511,[1476,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,b,u,c){if(b&&"object"==typeof b||"function"==typeof b){var s=function(l){!f.call(t,l)&&l!==u&&o(t,l,{get:function(){return b[l]},enumerable:!(c=n(b,l))||c.enumerable})};for(var y of l(b))s(y)}return t},u={};function c(t){for(var o in"elevationAndroid"in t&&(t.elevation=t.elevationAndroid,delete t.elevationAndroid),(null!=t.shadowRadius||t.shadowColor||null!=t.shadowOpacity||t.shadowOffset)&&Object.assign(t,(0,r(d[0]).normalizeShadow)(t)),y)if(o in t){var n,l;(n=t)[l=y[o]]||(n[l]="solid")}}!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(u,{fixStyles:function(){return c}}),m.exports=(t=u,b(o({},"__esModule",{value:!0}),t));var s=r(d[1]).isWeb?null:"borderStyle",y={borderWidth:"borderStyle",borderBottomWidth:s||"borderBottomStyle",borderTopWidth:s||"borderTopStyle",borderLeftWidth:s||"borderLeftStyle",borderRightWidth:s||"borderRightStyle"}},1512,[1513,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,s,c,l){if(s&&"object"==typeof s||"function"==typeof s){var h=function(u){!f.call(t,u)&&u!==c&&o(t,u,{get:function(){return s[u]},enumerable:!(l=n(s,u))||l.enumerable})};for(var w of u(s))h(w)}return t},c={};function l(t){var o,n=t.shadowColor,u=t.shadowOffset,f=t.shadowOpacity,s=t.shadowRadius,c=u||r(d[0]).defaultOffset,l=c.height;return{shadowOffset:{width:c.width||0,height:l||0},shadowRadius:s||0,shadowColor:(0,r(d[1]).normalizeColor)(n,1),shadowOpacity:null!=f?f:n?null===(o=(0,r(d[1]).getRgba)(n))||void 0===o?void 0:o.a:1}}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(c,{normalizeShadow:function(){return l}}),m.exports=(t=c,s(o({},"__esModule",{value:!0}),t))},1513,[1514,1515]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,p,b){if(c&&"object"==typeof c||"function"==typeof c){var l=function(f){!u.call(t,f)&&f!==p&&n(t,f,{get:function(){return c[f]},enumerable:!(b=o(c,f))||b.enumerable})};for(var s of f(c))l(s)}return t},p={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(p,{defaultOffset:function(){return b}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t));var b={height:0,width:0}},1514,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(n,c,l,b){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!f.call(n,u)&&u!==l&&t(n,u,{get:function(){return c[u]},enumerable:!(b=o(c,u))||b.enumerable})};for(var s of u(c))p(s)}return n},l={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{getRgba:function(){return p},normalizeColor:function(){return b},rgba:function(){return r(d[0]).rgba}}),m.exports=(n=l,c(t({},"__esModule",{value:!0}),n));var b=function(n,t){if(n){if("$"===n[0])return n;if(n.startsWith("var(")){if("number"==typeof t&&t<1)return`color-mix(in srgb, ${n} ${100*t}%, transparent)`}else{var o=p(n);if(o){var u,f=`${o.r},${o.g},${o.b}`;return 1===t?`rgb(${f})`:`rgba(${f},${null!==(u=null!=t?t:o.a)&&void 0!==u?u:1})`}}return n}},p=function(n){var t=(0,r(d[0]).normalizeCSSColor)(n);if(null!=t)return(0,r(d[0]).rgba)(t)}},1515,[1516]); -__d(function(_g,_r,i,_a,m,e,d){"use strict";var t,r=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=function(t,r,a,f){if(r&&"object"==typeof r||"function"==typeof r){var l=function(u){!c.call(t,u)&&u!==a&&n(t,u,{get:function(){return r[u]},enumerable:!(f=o(r,u))||f.enumerable})};for(var b of u(r))l(b)}return t},l={};!(function(t,r){for(var o in r)n(t,o,{get:r[o],enumerable:!0})})(l,{default:function(){return v},normalizeCSSColor:function(){return O},rgba:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=(function(t,o,u){return u=null!=t?r(a(t)):{},f(!o&&t&&t.__esModule?u:n(u,"default",{value:t,enumerable:!0}),t)})(_r(d[0])),p=b.default||b,O=p;function s(t){return{r:Math.round((4278190080&t)>>>24),g:Math.round((16711680&t)>>>16),b:Math.round((65280&t)>>>8),a:((255&t)>>>0)/255}}var v=p},1516,[1517]); -__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,u){var s=u<.5?u*(1+t):u+t-u*t,c=2*u-s,l=r(c,s,n+.3333333333333333),o=r(c,s,n),g=r(c,s,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}function t(n,t,u){if(t+u>=1){var s=Math.round(255*t/(t+u));return s<<24|s<<16|s<<8}var c=r(0,1,n+.3333333333333333)*(1-t-u)+t,l=r(0,1,n)*(1-t-u)+t,o=r(0,1,n-.3333333333333333)*(1-t-u)+t;return Math.round(255*c)<<24|Math.round(255*l)<<16|Math.round(255*o)<<8}var u,s='[-+]?\\d*\\.?\\d+',c="[-+]?\\d*\\.?\\d+%";function l(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function f(r){return(parseFloat(r)%360+360)%360/360}function p(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function y(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function w(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':case'cyan':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':case'darkgrey':return 2846468607;case'darkgreen':return 6553855;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':case'magenta':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':case'grey':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':case'lightgrey':return 3553874943;case'lightgreen':return 2431553791;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;var u,s=h();if(u=s.hex6.exec(r))return parseInt(u[1]+'ff',16)>>>0;var c=w(r);return null!=c?c:(u=s.rgb.exec(r))?(b(u[1])<<24|b(u[2])<<16|b(u[3])<<8|255)>>>0:(u=s.rgba.exec(r))?void 0!==u[6]?(b(u[6])<<24|b(u[7])<<16|b(u[8])<<8|p(u[9]))>>>0:(b(u[2])<<24|b(u[3])<<16|b(u[4])<<8|p(u[5]))>>>0:(u=s.hex3.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+'ff',16)>>>0:(u=s.hex8.exec(r))?parseInt(u[1],16)>>>0:(u=s.hex4.exec(r))?parseInt(u[1]+u[1]+u[2]+u[2]+u[3]+u[3]+u[4]+u[4],16)>>>0:(u=s.hsl.exec(r))?(255|n(f(u[1]),y(u[2]),y(u[3])))>>>0:(u=s.hsla.exec(r))?void 0!==u[6]?(n(f(u[6]),y(u[7]),y(u[8]))|p(u[9]))>>>0:(n(f(u[2]),y(u[3]),y(u[4]))|p(u[5]))>>>0:(u=s.hwb.exec(r))?(255|t(f(u[1]),y(u[2]),y(u[3])))>>>0:null}},1517,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var y of c(f))s(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{getCSSStylesAtomic:function(){return s},getStyleAtomic:function(){return y},styleToCSS:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(){console.warn("no-op native")},s=p,y=p,b=p},1518,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return t},l={};function p(t){if(!t.startsWith("$platform"))return!0;var n=t.slice(10);return n===r(d[0]).currentPlatform||"native"===n}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{isActivePlatform:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},1519,[1463]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!u.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(f=i(n,c))||f.enumerable})};for(var p of c(n))s(p)}return t},f={};!(function(t,n){for(var i in n)o(t,i,{get:n[i],enumerable:!0})})(f,{MEDIA_SEP:function(){return s},createMediaStyle:function(){return y}}),m.exports=(t=f,l(o({},"__esModule",{value:!0}),t));var s="_",p=null,$=null,v={press:"active",focusVisible:"focus-visible",focusWithin:"focus-within"},O=new Array(5).fill(0).map(function(t,n){return new Array(n).fill(":root").join("")});function b(t,n,o,i){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"",l=n.lastIndexOf(":root")+5,f=n.lastIndexOf("{"),s=n.slice(l,f),p=(0,r(d[1]).getSetting)("themeClassNameOnRoot")&&c?"":" ",$=i.pseudo?v[i.pseudo]||i.pseudo:void 0;return[s,`${`:root${u}${p}`}${`.t_${o?"group_":""}${t}${$?`:${$}`:""}`} ${s.replaceAll(":root","")}`]}var y=function(t,o,i,c,u,l){var f,v,y=n(t,5),j=y[0],h=y[2],w=y[3],P=y[4],_=j,S=(0,r(d[1]).getSetting)("mediaPropOrder"),A="theme"===c,x="platform"===c,E="group"===c,I=A||x||E,M=u?"0":"",C=h.slice(0,h.indexOf("-")+1),D=`${C}${s}${o.replace("-","")}${M}${s}`,N="",T=h.replace(C,D),k=P.map(function(t){return t.replace(h,T)}).join(";"),z=!1;if(I){var G=(l||0)+(E||x?1:0);if(A||E){var R=(0,r(d[2]).getGroupPropParts)(A?"theme-"+o:o),V=R.name,W=R.media,q=R.pseudo;f=W,E&&(v=V),("press"===q||"active"===w)&&(G+=2),"hover"===q&&(z=!0);var B=b(V,k,E,R,A,O[G]),F=n(B,2),H=F[0],J=F[1];N=k.replace(H,J)}else N=`${O[G]}${k}`}if(!I||f){if(!$){var K=Object.keys(i);$=Object.fromEntries(K.map(function(t){return[t,(0,r(d[3]).mediaObjectToString)(i[t])]})),S||(p=Object.fromEntries(K.map(function(t,n){return[t,new Array(n+1).fill(":root").join("")]})))}var L=f||o,Q=`${u?"not all and ":""}${$[L]}`,U=f?"":S&&l?O[l]:p[L],X=f?`@container ${v}`:"@media";f&&(k=N),N=k.includes(X)?k.replace("{",` and ${Q} {`).replace("and screen and","and"):`${X} ${Q}{${U}${k}}`,f&&(N=`@supports (contain: ${(0,r(d[1]).getSetting)("webContainerType")||"inline-size"}) {${N}}`)}return z&&(N=`@media (hover:hover){${N}}`),[_,void 0,T,void 0,[N]]}},1520,[19,1469,1521,1467]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!f.call(t,c)&&c!==p&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var l of c(n))b(l)}return t},s={};function b(t){var o=(0,r(d[1]).getMedia)(),u=t.split("-"),c=n(u,4),f=(c[0],c[1]),p=c[2],s=c[3],b=p in o?p:void 0;return{name:f,pseudo:b?s:p,media:b}}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{getGroupPropParts:function(){return b}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t))},1521,[19,1467]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==s&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var l of c(f))b(l)}return t},s={};function p(t,n){if(t.startsWith("$theme-"))return t.slice(7).startsWith(n)}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(s,{isActiveTheme:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},1522,[]); -__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,a,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==a&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},a={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(a,{sortString:function(){return p}}),m.exports=(t=a,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){return tn?1:0}},1523,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};function s(t){return t.map(function(t){var n=Object.keys(t)[0],o=t[n];return"matrix"===n||"matrix3d"===n?`${n}(${o.join(",")})`:`${n}(${(0,r(d[0]).normalizeValueWithProperty)(o,n)})`}).join(" ")}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{transformsToString:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1524,[1511]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1525,[1526]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,c,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(f){!l.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(p=u(n,f))||p.enumerable})};for(var b of f(n))s(b)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{composeRefs:function(){return v},setRef:function(){return y},useComposedRefs:function(){return O}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t));var b=(function(t,u,f){return f=null!=t?n(c(t)):{},p(!u&&t&&t.__esModule?f:o(f,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function y(t,n){"function"==typeof t?t(n):t&&(t.current=n)}function v(){for(var t=arguments.length,n=new Array(t),o=0;o1?b.Children.only(null):null})),j=function(n){var t=n.children;return(0,v.jsx)(v.Fragment,{children:t})};j.displayName="Slottable";var h=r(d[4]).isWeb?{onPress:"onClick",onPressOut:"onMouseUp",onPressIn:"onMouseDown"}:{};function P(n,t){var o=n.props,s=Object.assign({},o),l="string"==typeof n.type;if(l)for(var c in h)c in t&&(t[h[c]]=t[c],delete t[c]);for(var f in o){var u=t[f],p=o[f];l&&f in h&&delete s[f=h[f]],w.test(f)?s[f]=(0,r(d[5]).composeEventHandlers)(p,u):"style"===f?s[f]=Object.assign({},u,p):"className"===f&&(s[f]=[u,p].filter(Boolean).join(" "))}return Object.assign({},t,s)}var w=/^on[A-Z]/},1529,[207,258,128,1525,1463,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,h=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty,f=function(t,n,s,h){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!u.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(h=l(n,c))||h.enumerable})};for(var v of c(n))f(v)}return t},v={};!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(v,{Theme:function(){return _},getThemedChildren:function(){return y}}),m.exports=(t=v,f(o({},"__esModule",{value:!0}),t));var p=r(d[1]),b=(function(t,n,l){return l=null!=t?s(h(t)):{},f(!n&&t&&t.__esModule?l:o(l,"default",{value:t,enumerable:!0}),t)})(r(d[2])),_=(0,b.forwardRef)(function(t,s){if(t.disable)return t.children;var o=t.passThrough,l=!!t._isRoot,c=(0,r(d[3]).useThemeWithState)(t,l),h=n(c,2),u=(h[0],h[1]),f=t["disable-child-theme"]?b.Children.map(t.children,function(t){return o?t:(0,b.cloneElement)(t,{"data-disable-theme":!0})}):t.children;if(s)try{b.default.Children.only(f),f=(0,b.cloneElement)(f,{ref:s})}catch(t){}return y(u,f,t,l,(0,b.useRef)({hasEverThemed:!1}),o)});function y(t,n,s){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4?arguments[4]:void 0,c=arguments.length>5&&void 0!==arguments[5]&&arguments[5],h=s.shallow,u=s.forceClassName,f=l.current;if(!(f.hasEverThemed||t.isNew||o||(0,r(d[4]).hasThemeUpdatingProps)(s)))return n;n=(0,p.jsx)(r(d[4]).ThemeStateContext.Provider,{value:t.id,children:n});var v=t.isInverse,y=t.name,N=v||u;if(f.hasEverThemed||(f.hasEverThemed=!0),(N||"dark"===t.name||"light"===t.name)&&(f.hasEverThemed="wrapped"),h&&t.parentId){var E=(0,r(d[4]).getThemeState)(t.isNew?t.id:t.parentId);if(!E)throw new Error("\u203c\ufe0f010");n=b.Children.toArray(n).map(function(t){return(0,b.isValidElement)(t)?c?t:(0,b.cloneElement)(t,void 0,(0,p.jsx)(_,{name:E.name,children:t.props.children})):t})}if(!1===u)return n;if(r(d[5]).isWeb){var O=s.contain?w:T,x=c?{}:j(t,s,o),C=x.className,P=void 0===C?"":C,k=x.color;if(n=(0,p.jsx)("span",{className:`${P} is_Theme`,style:c?O:Object.assign({color:k},O),children:n}),"wrapped"===f.hasEverThemed){var S=!c&&N?(v?y.startsWith("light")?"t_light is_inversed":y.startsWith("dark")?"t_dark is_inversed":"":"")+" ":"";n=(0,p.jsx)("span",{style:O,className:S,children:n})}return n}return n}_.avoidForwardRef=!0;var T={display:"contents"},w={display:"contents",contain:"strict"},N={className:"",color:void 0};function j(t,n){var s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!t.isNew&&!n.forceClassName)return N;var o=null!=t&&t.theme&&t.isNew?(0,r(d[6]).variableToString)(t.theme.color):"",l=(0,r(d[7]).getSetting)("maxDarkLightNesting")||3;return{color:o,className:`${s?"":"t_sub_theme"} t_${t.inverses>=l?t.name:t.name.replace(E,"")}`}}var E=/^(dark|light)_/},1530,[19,258,128,1499,1472,1463,1475,1469]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["themeInverse","theme","componentName","themeReset"],u=Object.create,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,h=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!v.call(t,c)&&c!==o&&l(t,c,{get:function(){return n[c]},enumerable:!(u=s(n,c))||u.enumerable})};for(var h of c(n))f(h)}return t},b={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(b,{themeable:function(){return O}}),m.exports=(t=b,h(l({},"__esModule",{value:!0}),t));var p=r(d[1]),j=(function(t,n,o){return o=null!=t?u(f(t)):{},h(!n&&t&&t.__esModule?o:l(o,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function O(t,u){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=j.default.forwardRef(function(s,c){s.themeInverse,s.theme;var f,v=s.componentName,h=s.themeReset,b=n(s,o),O=null==u?void 0:u.context;if(O)for(var y in O.props){var N=s[y];void 0!==N&&(f||(f={}),f[y]=N)}var x=(0,p.jsx)(t,Object.assign({ref:c},b,{"data-disable-theme":!0})),P=null,_=v||(null==u?void 0:u.componentName);if(_&&(P||(P={}),P.componentName=_),"debug"in s&&(P||(P={}),P.debug=s.debug),"theme"in s&&(P||(P={}),P.name=s.theme),"themeInverse"in s&&(P||(P={}),P.inverse=s.themeInverse),"themeReset"in s&&(P||(P={}),P.reset=h),l&&!P)return x;var w=(0,p.jsx)(r(d[3]).Theme,Object.assign({"disable-child-theme":!0},P,{children:x}));if(O){var I=O.Provider,R=j.default.useContext(O);w=(0,p.jsx)(I,Object.assign({},R,f,{children:w}))}return w});return s.displayName=`Themed(${(null==t?void 0:t.displayName)||(null==t?void 0:t.name)||"Anonymous"})`,s}},1531,[207,258,128,1530]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var O of c(f))s(O)}return t},p={};function b(t){return Object.freeze(t)}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createShorthands:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1532,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{createTheme:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return t}},1533,[]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),s=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,u=function(e,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var c=function(l){!f.call(e,l)&&l!==n&&s(e,l,{get:function(){return t[l]},enumerable:!(u=o(t,l))||u.enumerable})};for(var v of l(t))c(v)}return e},c={};function v(e){return new Set(["size","space","radius"]).has(e)}function h(e){var s,o=(0,r(d[2]).loadDuplicatedConfig)();if(o)return o;var l,f={},u=(0,r(d[3]).createVariables)(e.tokens||{});if(e.tokens){var c={};for(var h in u){f[h]={},c[h]={};var S=u[h];for(var y in S){var p=S[y],O=`$${y}`;f[h][O]=p,c[h][O]=p,c[h][y]=p}}(0,r(d[4]).setTokens)(c)}if(e.themes){var j=0===Object.keys(e.themes).length;j&&(l=(0,r(d[5]).scanAllSheets)(j,f))}var C,T=null;if(e.fonts){var w=Object.fromEntries(Object.entries(e.fonts).map(function(e){var t=n(e,2),s=t[0],o=t[1];return[s,(0,r(d[3]).createVariables)(o,"f",!0)]}));C=(function(){var e={};for(var t in w){var n=w[t],s=(0,r(d[6]).parseFont)(n);e[`$${t}`]=s,!T&&s.size&&(T=new Set(Object.keys(s.size)))}return e})()}var k,$,F={},R=(function(){var n=[];for(var s in u)for(var o in u[s]){var f=u[s][o];if(F[`$${s}.${o}`]=f,r(d[7]).isWeb){(0,r(d[8]).registerCSSVariable)(f);var c=!0===f.needsPx,h=v(s),S=!(c||h);n.push((0,r(d[8]).variableToCSS)(f,S))}}var y=e.themes,p=null!=l?l:b(y,u.color);return{themes:(0,r(d[9]).proxyThemesToParents)(p),cssRuleSets:[],getThemeRulesSets:function(){var n=[];if(r(d[7]).isWeb){var s=!0,o=!1,l=void 0;try{for(var f,u=p[Symbol.iterator]();!(s=(f=u.next()).done);s=!0){var c=f.value,v=c.names,h=c.theme,b=(0,r(d[10]).getThemeCSSRules)({config:e,themeName:v[0],names:v,theme:h});n=[].concat(t(n),t(b))}}catch(e){o=!0,l=e}finally{try{!s&&null!=u.return&&u.return()}finally{if(o)throw l}}}return n}}})(),P=e.shorthands||{},z=function(){return""},A=null!==(k=null===(s=e.settings)||void 0===s?void 0:s.defaultFont)&&void 0!==k?k:e.defaultFont,N=("$"===(null==($=A)?void 0:$[0])&&($=$.slice(1)),$),L=N?`$${N}`:"",x=Object.assign({},e.unset);!x.fontFamily&&N&&(x.fontFamily=L);var D=Object.assign({fonts:{},onlyAllowShorthands:!1,fontLanguages:[],animations:{},media:{}},e,{unset:x,settings:Object.assign({disableSSR:e.disableSSR,defaultFont:e.defaultFont,disableRootThemeClass:e.disableRootThemeClass,onlyAllowShorthands:e.onlyAllowShorthands,mediaQueryDefaultActive:e.mediaQueryDefaultActive,themeClassNameOnRoot:e.themeClassNameOnRoot,cssStyleSeparator:e.cssStyleSeparator,webContainerType:"inline-size"},e.settings),tokens:u,shorthands:P,inverseShorthands:P?Object.fromEntries(Object.entries(P).map(function(e){var t=n(e,2),s=t[0];return[t[1],s]})):{},themes:R.themes,fontsParsed:C||{},themeConfig:R,tokensParsed:f,parsed:!0,getNewCSS:function(e){return Object.assign({},e,{sinceLastCall:!0}),""},getCSS:z,defaultFont:N,fontSizeTokens:T||new Set,specificTokens:F,defaultFontToken:L});return(0,r(d[4]).setConfig)(D),(0,r(d[11]).configureMedia)(D),r(d[4]).configListeners.size&&(r(d[4]).configListeners.forEach(function(e){return e(D)}),r(d[4]).configListeners.clear()),D}function b(e,t){var n=[],s=new Map;for(var o in e){var l=o.startsWith("dark")?"dark":o.startsWith("light")?"light":"",f=e[o],u=l+JSON.stringify(f);if(s.has(u)){s.get(u).names.push(o)}else{var c=Object.assign({},f);for(var v in t&&Object.assign(c,t),c)(0,r(d[13]).ensureThemeVariable)(c,v);var h={names:[o],theme:c};n.push(h),s.set(u,h)}}return n}!(function(e,t){for(var n in t)s(e,n,{get:t[n],enumerable:!0})})(c,{createTamagui:function(){return h}}),m.exports=(e=c,u(s({},"__esModule",{value:!0}),e))},1534,[32,19,1470,1535,1469,1474,1536,1463,1538,1539,1540,1467,1484,1541]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var u=function(o){!c.call(t,o)&&o!==f&&n(t,o,{get:function(){return l[o]},enumerable:!(s=i(l,o))||s.enumerable})};for(var v of o(l))u(v)}return t},f={};!(function(t,i){for(var o in i)n(t,o,{get:i[o],enumerable:!0})})(f,{createVariables:function(){return u}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s=new WeakMap,u=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(s.has(t))return t;var i={};for(var o in t){0;var c=t[o],l="$"===o[0],f=l?o:`$${o}`,v=l?f.slice(1):o;if((0,r(d[0]).isVariable)(c))i[v]=c;else{var b=(0,r(d[1]).simpleHash)(v,1e3),p=n&&"t-color"!==n?`${n}-${b}`:`c-${b}`;if(c&&"object"==typeof c&&"needsPx"in c&&"val"in c){var y=(0,r(d[0]).createVariable)({val:c.val,name:p,key:f});r(d[2]).isWeb&&(y.needsPx=c.needsPx),i[v]=y}else if(c&&"object"==typeof c)i[v]=u(t[v],p,!1);else{var j=(0,r(d[0]).isVariable)(c)?c:(0,r(d[0]).createVariable)({val:c,name:p,key:f});i[v]=j}}}return s.set(i,!0),i}},1535,[1475,1476,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,v,l){if(c&&"object"==typeof c||"function"==typeof c){var s=function(f){!u.call(t,f)&&f!==v&&n(t,f,{get:function(){return c[f]},enumerable:!(l=o(c,f))||l.enumerable})};for(var p of f(c))s(p)}return t},v={};function l(t,n){var o=(0,r(d[0]).createFont)(n),f=(0,r(d[1]).createVariables)(o,t),u=p(f);return(0,r(d[2]).setConfigFont)(t,f,u),u}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(v,{insertFont:function(){return l},parseFont:function(){return p},registerFontVariables:function(){return b},updateFont:function(){return s}}),m.exports=(t=v,c(n({},"__esModule",{value:!0}),t));var s=l;function p(t){var n={};for(var o in t){var f=t[o];if("family"===o||"face"===o)n[o]=f;else for(var u in n[o]={},f){var c,v=f[u];"$"===(null===(c=v.val)||void 0===c?void 0:c[0])&&(v=v.val),n[o][`$${u}`]=v}}return n}function b(t){var n=[];for(var o in t)if("face"!==o)if("family"===o){var f=t[o];(0,r(d[3]).registerCSSVariable)(f),n.push((0,r(d[3]).variableToCSS)(f))}else for(var u in t[o]){if("string"!=typeof t[o][u]){var c=t[o][u];(0,r(d[3]).registerCSSVariable)(c),n.push((0,r(d[3]).variableToCSS)(c))}}return n}},1536,[1537,1535,1469,1538]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!b.call(t,f)&&f!==o&&c(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))l(p)}return t},l={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(l,{createFont:function(){return O}}),m.exports=(t=l,s(c({},"__esModule",{value:!0}),t));var p=["100","200","300","400","500","600","700","800","900"],v=function(t,n,c){if("string"==typeof t)return t;var u=Object.keys(t),f=t[u[0]];return Object.fromEntries(o(new Set([].concat(o(n),u))).map(function(n){var o,u,b=null!==(u=null!==(o=t[n])&&void 0!==o?o:c)&&void 0!==u?u:f;return f=b,c=b,[n,b]}))},O=function(t){var o=Object.keys(t.size||{}),c=Object.fromEntries(Object.entries(t).map(function(c){var u=n(c,2),f=u[0],b=u[1];return[f,v(b,"face"===f?p:o,"face"===f?{normal:t.family}:void 0)]}));return Object.freeze(c)}},1537,[19,32]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var v of u(f))p(v)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{registerCSSVariable:function(){return b},tokensValueToVariable:function(){return v},variableToCSS:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var b=function(t){v.set((0,r(d[0]).getVariableValue)(t),t)},p=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return`--${process.env.TAMAGUI_CSS_VARIABLE_PREFIX||""}${(0,r(d[0]).createCSSVariable)(t.name,!1)}:${n||"number"!=typeof t.val?t.val:`${t.val}px`}`},v=new Map},1538,[1475]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,y,c){if(f&&"object"==typeof f||"function"==typeof f){var v=function(l){!u.call(t,l)&&l!==y&&n(t,l,{get:function(){return f[l]},enumerable:!(c=o(f,l))||c.enumerable})};for(var s of l(f))v(s)}return t},y={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(y,{proxyThemeToParents:function(){return s},proxyThemesToParents:function(){return v}}),m.exports=(t=y,f(n({},"__esModule",{value:!0}),t));var c={};function v(t){var n=!0,o=!1,l=void 0;try{for(var u,f=t[Symbol.iterator]();!(n=(u=f.next()).done);n=!0){var y=u.value,v=y.names,h=y.theme,b=!0,p=!1,O=void 0;try{for(var j,w=v[Symbol.iterator]();!(b=(j=w.next()).done);b=!0){var x=j.value;c[x]=h}}catch(t){p=!0,O=t}finally{try{!b&&null!=w.return&&w.return()}finally{if(p)throw O}}}}catch(t){o=!0,l=t}finally{try{!n&&null!=f.return&&f.return()}finally{if(o)throw l}}var P={},_=!0,S=!1,T=void 0;try{for(var D,M=t[Symbol.iterator]();!(_=(D=M.next()).done);_=!0){var N=D.value,k=N.names,q=N.theme,z=!0,A=!1,B=void 0;try{for(var C,E=k[Symbol.iterator]();!(z=(C=E.next()).done);z=!0){var F=C.value,G=s(F,q);P[F]=G}}catch(t){A=!0,B=t}finally{try{!z&&null!=E.return&&E.return()}finally{if(A)throw B}}}}catch(t){S=!0,T=t}finally{try{!_&&null!=M.return&&M.return()}finally{if(S)throw T}}return P}function s(t,n){var o={},l=[],u=t.split("_").slice(0,-1).map(function(t){return l.push(t),l.join("_")}),f=!0,y=!1,v=void 0;try{for(var s,h=u[Symbol.iterator]();!(f=(s=h.next()).done);f=!0){var b=s.value;Object.assign(o,c[b])}}catch(t){y=!0,v=t}finally{try{!f&&null!=h.return&&h.return()}finally{if(y)throw v}}return Object.assign(o,n),o}},1539,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};function b(){return[]}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getThemeCSSRules:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1540,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))p(s)}return t},l={};function b(t,n){var o=t[n];(0,r(d[0]).isVariable)(o)?o.name!==n&&(t[n]=(0,r(d[0]).createVariable)({key:o.name,name:n,val:o.val})):t[n]=(0,r(d[0]).createVariable)({key:n,name:n,val:o})}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{ensureThemeVariable:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t))},1541,[1475]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))l(b)}return t},p={};function s(t){var n;return(0,r(d[0]).createVariables)(t,null!==(n=process.env.TAMAGUI_TOKEN_PREFIX)&&void 0!==n?n:"t")}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createTokens:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1542,[1535]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),s=["variants","name","defaultVariants","acceptsClassName","context"],o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,v=function(t,n,s,v){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!u.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(v=l(n,c))||v.enumerable})};for(var p of c(n))f(p)}return t},f={};function p(t,o,l){var c=t.staticConfig,u=!!c&&!(c.isReactNative||c.isHOC),v=(null==c?void 0:c.isHOC)&&!(null!=c&&c.isStyledHOC)||u?t:(null==c?void 0:c.Component)||t,f=c?void 0:(0,r(d[1]).getReactNativeConfig)(v),p=!!(f||null!=l&&l.isReactNative||null!=c&&c.isReactNative),C=(function(){var t,C,O=o||{},N=O.variants,y=O.name,b=O.defaultVariants,H=O.acceptsClassName,j=O.context,x=n(O,s);if(c&&!(c.isHOC&&!c.isStyledHOC)){var P=c.defaultProps;for(var V in P){var R=P[V];c.defaultVariants&&V in c.defaultVariants&&(!b||!(V in b))&&(t||(t={}),t[V]=R),!(V in x)&&(!b||!(V in b))&&(C||(C={}),C[V]=P[V])}c.variants&&(N=(0,r(d[2]).mergeVariants)(c.variants,N))}(C||b||t)&&(x=Object.assign({},C,t,x,b)),null!=c&&c.isHOC&&y&&(x.componentName=y);var S,T,_=!!(null!=l&&l.isText||null!=c&&c.isText),w=null!==(T=null!==(S=null==l?void 0:l.acceptsClassName)&&void 0!==S?S:H)&&void 0!==T?T:u||p||(null==c?void 0:c.isHOC)&&(null==c?void 0:c.acceptsClassName),h=Object.assign({},c,l,!u&&{Component:v},{variants:N,defaultProps:x,defaultVariants:b,componentName:y||(null==c?void 0:c.componentName),isReactNative:p,isText:_,acceptsClassName:w,context:j},f,{isStyledHOC:!(null==c||!c.isHOC),parentStaticConfig:c});return(x.children||!w||j)&&(h.neverFlatten=!0),h})(),O=(0,r(d[3]).createComponent)(C||{});for(var N in t)"propTypes"!==N&&(N in O||(O[N]=t[N]));return O}!(function(t,n){for(var s in n)o(t,s,{get:n[s],enumerable:!0})})(f,{styled:function(){return p}}),m.exports=(t=f,v(o({},"__esModule",{value:!0}),t))},1543,[207,1544,1545,1485]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=function(t,p,f,s){if(p&&"object"==typeof p||"function"==typeof p){var l=function(u){!c.call(t,u)&&u!==f&&n(t,u,{get:function(){return p[u]},enumerable:!(s=o(p,u))||s.enumerable})};for(var v of u(p))l(v)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{getReactNativeConfig:function(){return s},setupReactNative:function(){return v}}),m.exports=(t=f,p(n({},"__esModule",{value:!0}),t));function s(t){var n,o,u;if(t)return null!==(n=t.propTypes)&&void 0!==n&&n.onTextInput||null!==(o=t.propTypes)&&void 0!==o&&o.onChangeText?l.TextInput:t.getSizeWithHeaders?l.Image:null!==(u=t.propTypes)&&void 0!==u&&u.textBreakStrategy?l.Text:l.default}var l={Image:{isReactNative:!0,inlineProps:new Set(["src","width","height"])},Text:{isReactNative:!0,isText:!0},TextInput:{isReactNative:!0,isInput:!0,isText:!0},default:{isReactNative:!0}};function v(t){}},1544,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var v=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))v(b)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{mergeVariants:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u={};for(var c in n){var f=null==t?void 0:t[c],s=n[c];u[c]=f&&"function"!=typeof s?f&&!s?f[c]:0===o?p(f,s,o+1):Object.assign({},f,s):s}return Object.assign({},t,u)}},1545,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1546,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["_expressions"],u=Object.create,f=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(s){!b.call(t,s)&&s!==o&&f(t,s,{get:function(){return n[s]},enumerable:!(u=c(n,s))||u.enumerable})};for(var p of s(n))l(p)}return t},O={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(O,{_withStableStyle:function(){return v}}),m.exports=(t=O,p(f({},"__esModule",{value:!0}),t));var y=r(d[1]),j=(function(t,n,o){return o=null!=t?u(l(t)):{},p(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=function(t,u){return j.default.forwardRef(function(f,c){var s=f._expressions,l=void 0===s?[]:s,b=n(f,o),p=(0,r(d[3]).useTheme)();return(0,y.jsx)(t,Object.assign({ref:c,style:u(p,l)},b))})}},1547,[207,258,128,1499]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var v=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))v(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{getShorthandValue:function(){return v}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=null,v=function(t,n){var o;return p||(p=(0,r(d[0]).getConfig)().inverseShorthands),null!==(o=t[n])&&void 0!==o?o:p?t[p[n]]:void 0}},1548,[1469]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(n,c,p,s){if(c&&"object"==typeof c||"function"==typeof c){var v=function(u){!f.call(n,u)&&u!==p&&t(n,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var h of u(c))v(h)}return n},p={};function s(n){var t=(0,r(d[0]).getConfig)().shorthands;if(!t)return n;var o={};for(var u in n)o[t[u]||u]=n[u];return o}function v(n,t){var o,u=(0,r(d[0]).getConfig)().inverseShorthands;return null!==(o=t[n])&&void 0!==o?o:t[u[n]]}!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(p,{getExpandedShorthand:function(){return v},getExpandedShorthands:function(){return s}}),m.exports=(n=p,c(t({},"__esModule",{value:!0}),n))},1549,[1469]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};function l(t,n){var o=null==t?void 0:t.staticConfig;return!(!o||n&&n!==o.componentName)}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isTamaguiComponent:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1550,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{isTamaguiElement:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(t,n){return s.default.isValidElement(t)&&(0,r(d[1]).isTamaguiComponent)(t.type,n)}},1551,[128,1550]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var y of u(f))l(y)}return t},p={};function s(t){return new Proxy(t||{},{has:function(t,n){return Reflect.has(t,l(n))},get:function(t,n){return Reflect.get(t,l(n))}})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{proxyThemeVariables:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return"string"==typeof t&&"$"===t[0]?t.slice(1):t}},1552,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getStyleTags:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));r(d[0]);function b(t){r(d[1]).IS_REACT_19}},1553,[258,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var v of u(f))l(v)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useThemeName:function(){return v}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s={forceClassName:!0,deopt:!0,needsUpdate:function(){return!0}},l={current:new Set([""])};function v(){var t;return(null===(t=(0,r(d[0]).useThemeState)(s,!1,l))||void 0===t?void 0:t.name)||""}},1554,[1472]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var s of c(n))b(s)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{useConfiguration:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(){return s.default.useContext(r(d[1]).ComponentContext)}},1555,[128,1489]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))p(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{useIsTouchDevice:function(){return b}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var b=function(){return!r(d[0]).isWeb||!!(0,r(d[1]).useDidFinishSSR)()&&r(d[0]).isTouchable}},1556,[1463,1494]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var f=function(c){!p.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var v of c(n))f(v)}return t},b={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(b,{useProps:function(){return S},usePropsAndStyle:function(){return j},useStyle:function(){return O}}),m.exports=(t=b,v(s({},"__esModule",{value:!0}),t));var y=(function(t,n,o){return o=null!=t?u(f(t)):{},v(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function S(t,n){var u=j(t,Object.assign({},n,{noExpand:!0,noNormalize:!0,resolveValues:"none"})),s=o(u,2),l=s[0],c=s[1];return Object.assign({},l,c)}function O(t,n){return j(t,n)[1]||{}}function j(t,u){var s,l,c=null!==(l=null==u||null===(s=u.forComponent)||void 0===s?void 0:s.staticConfig)&&void 0!==l?l:r(d[3]).Stack.staticConfig,f=(0,r(d[4]).useThemeWithState)({componentName:c.componentName,name:"theme"in t?t.theme:void 0,inverse:"themeInverse"in t?t.themeInverse:void 0,needsUpdate:function(){return!0}}),p=o(f,2),v=p[0],b=p[1],S=y.default.useContext(r(d[5]).ComponentContext),O=y.default.useContext(r(d[6]).GroupContext),j=(0,r(d[7]).useComponentState)(t,S.animationDriver,c,(0,r(d[8]).getConfig)()),C=j.state,h=j.disabled,x=j.setStateShallow,P=null!=u&&u.noMedia?r(d[9]).mediaState:(0,r(d[9]).useMedia)(),w=(0,r(d[10]).useSplitStyles)(t,c,v,(null==b?void 0:b.name)||"",C,Object.assign({isAnimated:!1,mediaState:P,noSkip:!0,noMergeStyle:!0,noClass:!0,resolveValues:"auto"},u),null,S,O),G=w||{},_=G.mediaGroups,M=G.pseudoGroups;return(0,r(d[11]).useIsomorphicLayoutEffect)(function(){if(!h){if(C.unmounted)return void x({unmounted:!1});if(O)return(0,r(d[12]).subscribeToContextGroup)({groupContext:O,setStateShallow:x,mediaGroups:_,pseudoGroups:M})}},[h,O,M?Object.keys(n(M)).join(""):0,_?Object.keys(n(_)).join(""):0]),[(null==w?void 0:w.viewProps)||{},(null==w?void 0:w.style)||{},v,r(d[9]).mediaState]}},1557,[32,19,128,1558,1499,1489,1492,1493,1469,1467,1503,1463,1528]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))p(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Stack:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createComponent)({acceptsClassName:!0,defaultProps:r(d[1]).stackDefaultStyles,validStyles:r(d[2]).validStyles});s.displayName="Stack"},1558,[1485,1473,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))p(y)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{View:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createComponent)({acceptsClassName:!0,defaultProps:r(d[1]).stackDefaultStyles,validStyles:r(d[2]).validStyles})},1559,[1485,1473,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=function(t,u,c,p){if(u&&"object"==typeof u||"function"==typeof u){var f=function(s){!l.call(t,s)&&s!==c&&n(t,s,{get:function(){return u[s]},enumerable:!(p=o(u,s))||p.enumerable})};for(var y of s(u))f(y)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{Text:function(){return f}}),m.exports=(t=c,u(n({},"__esModule",{value:!0}),t));var p={numberOfLines:1,lineBreakMode:"clip"},f=(0,r(d[0]).createComponent)({acceptsClassName:!0,isText:!0,defaultProps:{fontFamily:"unset",suppressHighlighting:!0},inlineWhenUnflattened:new Set(["fontFamily"]),variants:{ellipse:{true:p},ellipsis:{true:p}},validStyles:Object.assign({},r(d[1]).validStyles,r(d[1]).stylePropsTextOnly)});f.displayName="Text"},1560,[1485,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,l,f){if(c&&"object"==typeof c||"function"==typeof c){var h=function(s){!u.call(t,s)&&s!==l&&n(t,s,{get:function(){return c[s]},enumerable:!(f=o(c,s))||f.enumerable})};for(var v of s(c))h(v)}return t},l={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(l,{ThemeProvider:function(){return v}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var f=r(d[0]),h=r(d[1]),v=function(t){var n,o,s=null!==(n=t.disableRootThemeClass)&&void 0!==n?n:(0,r(d[2]).getSetting)("disableRootThemeClass"),u=null!==(o=t.themeClassNameOnRoot)&&void 0!==o?o:(0,r(d[2]).getSetting)("themeClassNameOnRoot");return r(d[3]).isClient&&(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(!s){var n=`${r(d[4]).THEME_CLASSNAME_PREFIX}${t.defaultTheme}`,o=u?document.documentElement:document.body;return o.classList.add(n),function(){o.classList.remove(n)}}},[t.defaultTheme,s,u]),(0,f.jsx)(r(d[5]).Theme,{className:t.className,name:t.defaultTheme,forceClassName:!s&&!u,_isRoot:h.useId,children:t.children})}},1561,[258,128,1469,1463,1473,1530]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],u=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var s=function(l){!p.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=f(n,l))||u.enumerable})};for(var b of l(n))s(b)}return t},O={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(O,{FontLanguage:function(){return v}}),m.exports=(t=O,b(c({},"__esModule",{value:!0}),t));var y=r(d[1]),j=(function(t,n,o){return o=null!=t?u(s(t)):{},b(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=function(t){var u=t.children,c=n(t,o),f=j.default.useContext(r(d[3]).ComponentContext),l=j.default.useMemo(function(){return c},[JSON.stringify(c)]);return(0,y.jsx)(r(d[3]).ComponentContext.Provider,Object.assign({},f,{language:l,children:u}))};v.displayName="FontLanguage"},1562,[207,258,128,1489]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,h=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var h=function(u){!f.call(t,u)&&u!==o&&l(t,u,{get:function(){return n[u]},enumerable:!(c=s(n,u))||c.enumerable})};for(var p of u(n))h(p)}return t},p={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(p,{TamaguiProvider:function(){return y}}),m.exports=(t=p,h(l({},"__esModule",{value:!0}),t));var b=r(d[1]),v=(function(t,n,s){return s=null!=t?o(c(t)):{},h(!n&&t&&t.__esModule?s:l(s,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function y(t){var n=t.children,o=t.disableInjectCSS,l=t.config,s=t.className,u=t.defaultTheme,c=t.disableRootThemeClass,f=t.reset,h=t.themeClassNameOnRoot;r(d[3]).IS_REACT_19||r(d[3]).isClient&&(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(l&&!o){var t=document.createElement("style");return t.appendChild(document.createTextNode(l.getCSS())),document.head.appendChild(t),function(){document.head.removeChild(t)}}},[l,o]),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){(0,r(d[4]).stopAccumulatingRules)(),(0,r(d[5]).updateMediaListeners)()},[]);var p=(0,b.jsx)(C,{children:(0,b.jsx)(r(d[6]).ComponentContext.Provider,{animationDriver:null==l?void 0:l.animations,children:(0,b.jsx)(r(d[7]).ThemeProvider,{themeClassNameOnRoot:null!=h?h:(0,r(d[8]).getSetting)("themeClassNameOnRoot"),disableRootThemeClass:null!=c?c:(0,r(d[8]).getSetting)("disableRootThemeClass"),defaultTheme:null!=u?u:l?Object.keys(l.themes)[0]:"",reset:f,className:s,children:n})})});return(0,r(d[8]).getSetting)("disableSSR")&&(p=(0,b.jsx)(r(d[9]).ClientOnly,{enabled:!0,children:p})),(0,b.jsxs)(b.Fragment,{children:[p,!1]})}function C(t){var o=v.default.useState(!1),l=n(o,2),s=l[0],u=l[1];return v.default.useEffect(function(){u(!0)},[]),r(d[3]).isWeb?(0,b.jsx)("span",{style:{display:"contents"},className:s?"":"t_unmounted",children:t.children}):t.children}y.displayName="TamaguiProvider"},1563,[19,258,128,1463,1474,1467,1489,1561,1469,1494]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,b=function(t,n,l,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var p of c(n))s(p)}return t},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{Configuration:function(){return j}}),m.exports=(t=s,b(o({},"__esModule",{value:!0}),t));var p=r(d[0]),O=(function(t,u,c){return c=null!=t?n(l(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),j=function(t){var n,o=O.default.useContext(r(d[2]).ComponentContext);return(0,p.jsx)(r(d[3]).ClientOnly,{enabled:null!==(n=t.disableSSR)&&void 0!==n?n:o.disableSSR,children:(0,p.jsx)(r(d[2]).ComponentContext.Provider,Object.assign({},o,t))})}},1564,[258,128,1489,1494]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1565,[1566,1567]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(n,u)&&u!==l&&t(n,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return n},l={};function p(n){return(0,r(d[0]).useGet)(n,s,!0)}!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{useEvent:function(){return p}}),m.exports=(n=l,f(t({},"__esModule",{value:!0}),n));var s=function(){throw new Error("Cannot call an event handler while rendering.")}},1566,[1567]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(c){!l.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(p=o(n,c))||p.enumerable})};for(var b of c(n))s(b)}return t},s={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(s,{useGet:function(){return v}}),m.exports=(t=s,p(u({},"__esModule",{value:!0}),t));var b=(function(t,o,c){return c=null!=t?n(f(t)):{},p(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function v(t,n,u){var o=b.useRef(null!=n?n:t);return(0,r(d[1]).useIsomorphicLayoutEffect)(function(){o.current=t}),b.useCallback(u?function(){for(var t=arguments.length,n=new Array(t),u=0;u=77){var u={boxSizing:!0,mixBlendMode:!0,outlineWidth:!0,outlineStyle:!0,outlineSpread:!0,outlineColor:!0};Object.assign(r(d[2]).validStyles,u),Object.assign(r(d[2]).stylePropsAll,u)}}!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(f,{addNativeValidStyles:function(){return v}}),m.exports=(t=f,s(o({},"__esModule",{value:!0}),t))},1569,[19,1570,1476]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.version=void 0;e.version={major:0,minor:79,patch:2,prerelease:null}},1570,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1571,[1572,1573]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var l of c(f))s(l)}return t},p={};function b(t){return(0,r(d[0]).setupMatchMedia)(r(d[1]).matchMedia),t}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createMedia:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1572,[1466,1573]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var y of u(f))s(y)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{matchMedia:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=function(t){return new(r(d[0]).NativeMediaQueryList)(t)}},1573,[1574]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(t,u,c,f){if(u&&"object"==typeof u||"function"==typeof u){var h=function(o){!s.call(t,o)&&o!==c&&n(t,o,{get:function(){return u[o]},enumerable:!(f=i(u,o))||f.enumerable})};for(var l of o(u))h(l)}return t},c={};!(function(t,i){for(var o in i)n(t,o,{get:i[o],enumerable:!0})})(c,{NativeMediaQueryList:function(){return y}}),m.exports=(t=c,u(n({},"__esModule",{value:!0}),t));var f=r(d[0]);function h(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function l(t,n){for(var i=0;it.width?"portrait":"landscape"}},{key:"notify",value:function(){var t=this;this.listeners.forEach(function(n){n(t.orientation)})}},{key:"addListener",value:function(t){this.listeners.push(t)}},{key:"removeListener",value:function(t){var n=this.listeners.indexOf(t);-1!==n&&this.listeners.splice(n,1)}},{key:"match",value:function(t,n){var i=n.width,o=n.height;return(0,r(d[1]).matchQuery)(t,{type:"screen",orientation:o>i?"portrait":"landscape","device-width":i,"device-height":o})}},{key:"matches",get:function(){var t=f.Dimensions.get("window");return(0,r(d[1]).matchQuery)(this.query,Object.assign({type:"screen",orientation:this.orientation},t,{"device-width":t.width,"device-height":t.height}))}}])&&l(n.prototype,i),o&&l(n,o),t;var n,i,o})()},1574,[28,1575]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,c=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,u=function(t,u,p,f){if(u&&"object"==typeof u||"function"==typeof u){var l=function(s){!o.call(t,s)&&s!==p&&n(t,s,{get:function(){return u[s]},enumerable:!(f=c(u,s))||f.enumerable})};for(var v of s(u))l(v)}return t},p={};!(function(t,c){for(var s in c)n(t,s,{get:c[s],enumerable:!0})})(p,{matchQuery:function(){return y},parseQuery:function(){return w}}),m.exports=(t=p,u(n({},"__esModule",{value:!0}),t));var f=/(?:(only|not)?\s*([^\s\(\)]+)(?:\s*and)?\s*)?(.+)?/i,l=/\(\s*([^\s\:\)]+)\s*(?:\:\s*([^\s\)]+))?\s*\)/,v=/^(?:(min|max)-)?(.+)/,h=/(em|rem|px|cm|mm|in|pt|pc)?$/,b=/(dpi|dpcm|dppx)?$/;function y(t,n){return w(t).some(function(t){if(t){var c=t.inverse,s="all"===t.type||n.type===t.type;if(s&&c||!s&&!c)return!1;var o=t.expressions.every(function(t){var c=t.feature,s=t.modifier,o=t.value,u=n[c];if(!u)return!1;switch(c){case"orientation":case"scan":return u.toLowerCase()===o.toLowerCase();case"width":case"height":case"device-width":case"device-height":o=N(o),u=N(u);break;case"resolution":o=O(o),u=O(u);break;case"aspect-ratio":case"device-aspect-ratio":case"device-pixel-ratio":o=x(o),u=x(u);break;case"grid":case"color":case"color-index":case"monochrome":o=Number.parseInt(o,10)||1,u=Number.parseInt(u,10)||0}switch(s){case"min":return u>=o;case"max":return u<=o;default:return u===o}});return o&&!c||!o&&c}})}function w(t){return t.split(",").map(function(t){var n=(t=t.trim()).match(f);if(!n)return null;var c=n[1],s=n[2],o=(n[3]||"").match(/\([^\)]+\)/g)||[];return{inverse:!!c&&"not"===c.toLowerCase(),type:s?s.toLowerCase():"all",expressions:o.map(function(t){var n=t.match(l),c=n[1].toLowerCase().match(v);return{modifier:c[1],feature:c[2],value:n[2]}})}})}function x(t){var n,c=Number(t);return c||(c=(n=t.match(/^(\d+)\s*\/\s*(\d+)$/))[1]/n[2]),c}function O(t){var n,c=Number.parseFloat(t);switch(null===(n=String(t).match(b))||void 0===n?void 0:n[1]){case"dpcm":return c/2.54;case"dppx":return 96*c;default:return c}}function N(t){var n,c=Number.parseFloat(t);switch(null===(n=String(t).match(h))||void 0===n?void 0:n[1]){case"em":case"rem":return 16*c;case"cm":return 96*c/2.54;case"mm":return 96*c/2.54/10;case"in":return 96*c;case"pt":return 72*c;case"pc":return 72*c/12;default:return c}}},1575,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(t,l,c,s){if(l&&"object"==typeof l||"function"==typeof l){var b=function(u){!f.call(t,u)&&u!==c&&n(t,u,{get:function(){return l[u]},enumerable:!(s=o(l,u))||s.enumerable})};for(var p of u(l))b(p)}return t},c={};function s(){var t,n,o=r(d[0]);t=r(d[1]).default;var u,f=r(d[2]);return n=null!==(u=f.default)&&void 0!==u?u:f,t||(t=o.View||o.default.View),{View:t,Text:o.Text||o.default.Text,StyleSheet:o.StyleSheet||o.default.StyleSheet,TextAncestor:n,Pressable:o.Pressable||o.default.Pressable}}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{getBaseViews:function(){return s}}),m.exports=(t=c,l(n({},"__esModule",{value:!0}),t))},1576,[28,257,256]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,s,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==s&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var p of u(c))b(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Pressability:function(){return r(d[0]).default},usePressability:function(){return r(d[1]).default}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t))},1577,[292,291]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,l=Object.create,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.getPrototypeOf,o=Object.prototype.hasOwnProperty,b=function(t,l,u,b){if(l&&"object"==typeof l||"function"==typeof l){var v=function(c){!o.call(t,c)&&c!==u&&n(t,c,{get:function(){return l[c]},enumerable:!(b=s(l,c))||b.enumerable})};for(var p of c(l))v(p)}return t},v={};!(function(t,l){for(var s in l)n(t,s,{get:l[s],enumerable:!0})})(v,{createOptimizedView:function(){return y},getAccessibilityRoleFromRole:function(){return f}}),m.exports=(t=v,b(n({},"__esModule",{value:!0}),t));var p=(function(t,s,c){return c=null!=t?l(u(t)):{},b(!s&&t&&t.__esModule?c:n(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function y(t,l,n){var s,c,u,o,b,v=n.TextAncestor,y=n.View,h=l.accessibilityElementsHidden,x=l.accessibilityLabel,w=l.accessibilityLabelledBy,O=l.accessibilityLiveRegion,j=l.accessibilityState,k=l.accessibilityValue,E=l["aria-busy"],L=l["aria-checked"],P=l["aria-disabled"],R=l["aria-expanded"],_=l["aria-hidden"],V=l["aria-label"],A=l["aria-labelledby"],B=l["aria-live"],D=l["aria-selected"],F=l["aria-valuemax"],H=l["aria-valuemin"],I=l["aria-valuenow"],M=l["aria-valuetext"],S=l.focusable,q=l.id,z=l.role,C=l.tabIndex,N=null!==(c=null==A?void 0:A.split(/\s*,\s*/g))&&void 0!==c?c:w;((null!=j||null!=E||null!=L||null!=P||null!=R||null!=D)&&(u={busy:null!=E?E:null==j?void 0:j.busy,checked:null!=L?L:null==j?void 0:j.checked,disabled:null!=P?P:null==j?void 0:j.disabled,expanded:null!=R?R:null==j?void 0:j.expanded,selected:null!=D?D:null==j?void 0:j.selected}),(null!=k||null!=F||null!=H||null!=I||null!=M)&&(o={max:null!=F?F:null==k?void 0:k.max,min:null!=H?H:null==k?void 0:k.min,now:null!=I?I:null==k?void 0:k.now,text:null!=M?M:null==k?void 0:k.text}),null!==(s=l.style)&&void 0!==s&&s.pointerEvents)&&(l.pointerEvents=null===(b=l.style)||void 0===b?void 0:b.pointerEvents);if(q&&(l.nativeID=q),!0===_&&(l.importantForAccessibility="no-hide-descendants"),o&&(l.accessibilityValue=o),z&&(l.accessibilityRole=f(z)),"off"===B)l.accessibilityLiveRegion="none";else{var T=null!=B?B:O;T&&(l.accessibilityLiveRegion=T)}var G=null!=V?V:x;G&&(l.accessibilityLabel=G);var J=void 0!==C?!C:S;null!=J&&(l.focusable=J),null!=u&&(l.accessibilityState=u);var K=null!=_?_:h;null!=K&&(l.accessibilityElementsHidden=K),N&&(l.accessibilityLabelledBy=N);var Q=p.default.useContext(v),U=p.default.createElement(y,l,t);return Q?p.default.createElement(v.Provider,{value:!1},U):U}function f(t){switch(t){case"alert":return"alert";case"alertdialog":case"application":case"article":case"banner":case"cell":case"columnheader":case"complementary":case"contentinfo":case"definition":case"dialog":case"directory":case"document":case"feed":case"figure":case"form":case"group":case"listitem":case"log":case"main":case"marquee":case"math":case"meter":case"navigation":case"note":case"option":case"region":case"row":case"rowgroup":case"rowheader":case"separator":case"status":case"table":case"tabpanel":case"term":case"tooltip":case"tree":case"treegrid":case"treeitem":return;case"button":return"button";case"checkbox":return"checkbox";case"combobox":return"combobox";case"grid":return"grid";case"heading":return"header";case"img":return"image";case"link":return"link";case"list":return"list";case"menu":return"menu";case"menubar":return"menubar";case"menuitem":return"menuitem";case"none":case"presentation":return"none";case"progressbar":return"progressbar";case"radio":return"radio";case"radiogroup":return"radiogroup";case"scrollbar":return"scrollbar";case"searchbox":return"search";case"slider":return"adjustable";case"spinbutton":return"spinbutton";case"summary":return"summary";case"switch":return"switch";case"tab":return"tab";case"tablist":return"tablist";case"timer":return"timer";case"toolbar":return"toolbar"}}},1578,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1579,[1580]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,n=r(d[0]),t=r(d[1]),l=r(d[2]),c=["type"],s=["value","defaultValue","control","onValueChange","collapsible"],u=["value","defaultValue","onValueChange"],p=["__scopeAccordion","disabled","dir","orientation"],f=["__scopeAccordion","value"],b=["__scopeAccordion"],v=["__scopeAccordion"],y=["__scopeAccordion"],_=["children"],h=Object.create,A=Object.defineProperty,C=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,x=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,O=function(o,n,t,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!w.call(o,c)&&c!==t&&A(o,c,{get:function(){return n[c]},enumerable:!(l=C(n,c))||l.enumerable})};for(var s of j(n))c(s)}return o},S={};!(function(o,n){for(var t in n)A(o,t,{get:n[t],enumerable:!0})})(S,{Accordion:function(){return ie}}),m.exports=(o=S,O(A({},"__esModule",{value:!0}),o));var k=r(d[3]),I=(function(o,n,t){return t=null!=o?h(x(o)):{},O(!n&&o&&o.__esModule?t:A(t,"default",{value:o,enumerable:!0}),o)})(r(d[4])),V="Accordion",E=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],P=(0,r(d[5]).createCollection)(V),H=l(P,2),R=H[0],D=H[1],$="Accordion",L=I.forwardRef(function(o,n){var l=o.type,s=t(o,c),u=s,p=s;return(0,k.jsx)(R.Provider,{scope:o.__scopeAccordion||$,children:"multiple"===l?(0,k.jsx)(W,Object.assign({},p,{ref:n})):(0,k.jsx)(K,Object.assign({},u,{ref:n}))})});L.displayName=V,L.propTypes={type:function(o){var n=o.value||o.defaultValue;return o.type&&!["single","multiple"].includes(o.type)?new Error("Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`."):"multiple"===o.type&&"string"==typeof n?new Error("Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`."):"single"===o.type&&Array.isArray(n)?new Error("Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`."):null}};var T=(0,r(d[6]).createStyledContext)(),M=T.Provider,N=T.useStyledContext,U=(0,r(d[6]).createStyledContext)(),z=U.Provider,G=U.useStyledContext,K=I.forwardRef(function(o,n){var c=o.value,u=o.defaultValue,p=(o.control,o.onValueChange),f=void 0===p?function(){}:p,b=o.collapsible,v=void 0!==b&&b,y=t(o,s),_=(0,r(d[7]).useControllableState)({prop:c,defaultProp:u||"",onChange:f}),h=l(_,2),A=h[0],C=h[1];return(0,k.jsx)(M,{scope:o.__scopeAccordion,value:A?[A]:[],onItemOpen:C,onItemClose:I.useCallback(function(){return v&&C("")},[C,v]),children:(0,k.jsx)(z,{scope:o.__scopeAccordion,collapsible:v,children:(0,k.jsx)(B,Object.assign({},y,{ref:n}))})})}),W=I.forwardRef(function(o,c){var s=o.value,p=o.defaultValue,f=o.onValueChange,b=void 0===f?function(){}:f,v=t(o,u),y=(0,r(d[7]).useControllableState)({prop:s,defaultProp:p||[],onChange:b}),_=l(y,2),h=_[0],A=_[1],C=I.useCallback(function(o){return A(function(){return[].concat(n(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),[o])})},[A]),j=I.useCallback(function(o){return A(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(n){return n!==o})})},[A]);return(0,k.jsx)(M,{scope:o.__scopeAccordion,value:h||[],onItemOpen:C,onItemClose:j,children:(0,k.jsx)(z,{scope:o.__scopeAccordion,collapsible:!0,children:(0,k.jsx)(B,Object.assign({},v,{ref:c}))})})}),F=(0,r(d[6]).createStyledContext)(),Y=F.Provider,q=F.useStyledContext,B=I.forwardRef(function(o,n){var l=o.__scopeAccordion,c=o.disabled,s=o.dir,u=o.orientation,f=void 0===u?"vertical":u,b=t(o,p),v=I.useRef(null),y=(0,r(d[8]).useComposedRefs)(v,n),_=D(l||$),h="ltr"===(0,r(d[9]).useDirection)(s),A=(0,r(d[10]).composeEventHandlers)(o.onKeyDown,function(o){var n;if(E.includes(o.key)){var t=o.target,l=_().filter(function(o){var n=o.ref.current;return!(null!=n&&n.disabled)}),c=l.findIndex(function(o){return o.ref.current===t}),s=l.length;if(-1!==c){o.preventDefault();var u=c,p=s-1,b=function(){(u=c+1)>p&&(u=0)},v=function(){(u=c-1)<0&&(u=p)};switch(o.key){case"Home":u=0;break;case"End":u=p;break;case"ArrowRight":"horizontal"===f&&(h?b():v());break;case"ArrowDown":"vertical"===f&&b();break;case"ArrowLeft":"horizontal"===f&&(h?v():b());break;case"ArrowUp":"vertical"===f&&v()}null===(n=l[u%s].ref.current)||void 0===n||n.focus()}}});return(0,k.jsx)(Y,{scope:l,disabled:c,direction:s,orientation:f,children:(0,k.jsx)(R.Slot,{scope:l||$,children:(0,k.jsx)(r(d[11]).YStack,Object.assign({"data-orientation":f,ref:y},b,r(d[12]).isWeb&&{onKeyDown:A}))})})}),J=(0,r(d[6]).createStyledContext)(),Q=J.Provider,X=J.useStyledContext,Z=I.forwardRef(function(o,n){var l=o.__scopeAccordion,c=o.value,s=t(o,f),u=q(l),p=N(l),b=I.useId(),v=c&&p.value.includes(c)||!1,y=u.disabled||o.disabled;return(0,k.jsx)(Q,{scope:l,open:v,disabled:y,triggerId:b,children:(0,k.jsx)(r(d[13]).Collapsible,Object.assign({"data-orientation":u.orientation,"data-state":v?"open":"closed",__scopeCollapsible:l||$},s,{ref:n,disabled:y,open:v,onOpenChange:function(o){o?p.onItemOpen(c):p.onItemClose(c)}}))})});Z.displayName="AccordionItem";var ee=I.forwardRef(function(o,n){var l,c=o.__scopeAccordion,s=t(o,b),u=q(c),p=X(c);return(0,k.jsx)(r(d[14]).H1,Object.assign({"data-orientation":u.orientation,"data-state":(l=p.open,l?"open":"closed"),"data-disabled":p.disabled?"":void 0},s,{ref:n}))});ee.displayName="AccordionHeader";var oe=(0,r(d[6]).styled)(r(d[13]).Collapsible.Trigger,{variants:{unstyled:{false:{cursor:"pointer",backgroundColor:"$background",borderColor:"$borderColor",borderWidth:1,padding:"$true",hoverStyle:{backgroundColor:"$backgroundHover"},focusStyle:{backgroundColor:"$backgroundFocus"},pressStyle:{backgroundColor:"$backgroundPress"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),re=oe.styleable(function(o,n){var l=o.__scopeAccordion,c=t(o,v),s=q(l),u=X(l),p=G(l);return(0,k.jsx)(R.ItemSlot,{scope:l||$,children:(0,k.jsx)(oe,Object.assign({__scopeCollapsible:l||$,"aria-disabled":u.open&&!p.collapsible||void 0,"data-orientation":s.orientation,id:u.triggerId},c,{ref:n}))})}),ne=(0,r(d[6]).styled)(r(d[13]).Collapsible.Content,{variants:{unstyled:{false:{padding:"$true",backgroundColor:"$background"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),te=ne.styleable(function(o,n){var l=o.__scopeAccordion,c=t(o,y),s=q(l),u=X(l);return(0,k.jsx)(ne,Object.assign({role:"region","aria-labelledby":u.triggerId,"data-orientation":s.orientation,__scopeCollapsible:l||$},c,{ref:n}))}),ae=r(d[6]).View.styleable(function(o,n){var c=X(),s=o.children,u=t(o,_),p=I.useState(0),f=l(p,2),b=f[0],v=f[1];return(0,k.jsx)(r(d[6]).View,Object.assign({ref:n,height:c.open?b:0},u,{children:(0,k.jsx)(r(d[6]).View,{position:"absolute",width:"100%",onLayout:function(o){var n=o.nativeEvent;n.layout.height&&v(n.layout.height)},children:s})}))});var ie=(0,r(d[10]).withStaticProperties)(L,{Trigger:re,Header:ee,Content:te,Item:Z,HeightAnimator:ae})},1580,[32,207,19,258,128,1581,1461,1583,1525,1586,1476,1588,1463,1597,1609]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1581,[1582]); -__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),c=["scope","children"],l=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!p.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=f(n,l))||c.enumerable})};for(var s of a(n))l(s)}return t},y={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(y,{createCollection:function(){return R}}),m.exports=(t=y,v(u({},"__esModule",{value:!0}),t));var b=r(d[2]),O=(function(t,n,o){return o=null!=t?l(s(t)):{},v(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[3]));function R(t){var l=(0,r(d[4]).createStyledContext)({collectionRef:{current:void 0},itemMap:new Map},"Toast"),u=l.Provider,f=l.useStyledContext,a=function(t){var n=t.scope,o=t.children,c=O.default.useRef(void 0),l=O.default.useRef(new Map).current;return(0,b.jsx)(u,{scope:n,itemMap:l,collectionRef:c,children:o})};a.displayName="CollectionProvider";var s=t+"CollectionSlot",p=O.default.forwardRef(function(t,n){var o=t.scope,c=t.children,l=f(o),u=(0,r(d[5]).useComposedRefs)(n,l.collectionRef);return(0,b.jsx)(r(d[4]).Slot,{ref:u,children:c})});p.displayName=s;var v=t+"CollectionItemSlot",y="data-collection-item",R=O.default.forwardRef(function(t,l){var u=t.scope,a=t.children,s=o(t,c),p=O.default.useRef(void 0),v=(0,r(d[5]).useComposedRefs)(l,p),R=f(u);return O.default.useEffect(function(){return R.itemMap.set(p,Object.assign({ref:p},s)),function(){R.itemMap.delete(p)}}),(0,b.jsx)(r(d[4]).Slot,n(n(n({},y,""),"ref",v),"children",a))});return R.displayName=v,[{Provider:a,Slot:p,ItemSlot:R},function(t){var n=f(t);return O.default.useCallback(function(){if(!r(d[6]).isWeb)return[];var t=n.collectionRef.current;if(!t)return[];var o=Array.from(t.querySelectorAll(`[${y}]`));return Array.from(n.itemMap.values()).sort(function(t,n){return o.indexOf(t.ref.current)-o.indexOf(n.ref.current)})},[n.collectionRef,n.itemMap])}]}},1582,[18,207,258,128,1461,1525,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1583,[1584]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,l=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var l=function(c){!p.call(t,c)&&c!==o&&u(t,c,{get:function(){return n[c]},enumerable:!(s=f(n,c))||s.enumerable})};for(var v of c(n))l(v)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{useControllableState:function(){return O}}),m.exports=(t=v,l(u({},"__esModule",{value:!0}),t));var b=(function(t,n,f){return f=null!=t?o(s(t)):{},l(!n&&t&&t.__esModule?f:u(f,"default",{value:t,enumerable:!0}),t)})(r(d[1])),y=function(t){return t()};function O(t){var o=t.prop,u=t.defaultProp,f=t.onChange,c=t.strategy,s=void 0===c?"prop-wins":c,p=t.preventUpdate,l=t.transition,v=b.useState(null!=o?o:u),O=n(v,2),P=O[0],_=O[1],w=b.useRef(P),E="prop-wins"===s&&void 0!==o,h=E?o:P,C=(0,r(d[2]).useEvent)(f||j),M=l?r(d[3]).startTransition:y;return b.useEffect(function(){void 0!==o&&(w.current=o,M(function(){_(o)}))},[o]),b.useEffect(function(){E||P!==w.current&&(w.current=P,C(P))},[C,P,E]),[h,(0,r(d[2]).useEvent)(function(t){if(!p)if(E){var n="function"==typeof t?t(w.current):t;C(n)}else M(function(){_(t)})})]}var j=function(){}},1584,[19,128,1565,1585]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{startTransition:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));r(d[0]);var s=function(t){t()}},1585,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1586,[1587]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,v=function(t,n,f,v){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(v=u(n,c))||v.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{DirectionProvider:function(){return j},Provider:function(){return P},useDirection:function(){return y}}),m.exports=(t=b,v(o({},"__esModule",{value:!0}),t));var p=r(d[0]),s=(function(t,u,c){return c=null!=t?n(f(t)):{},v(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),O=s.createContext(void 0),j=function(t){var n=t.dir,o=t.children;return(0,p.jsx)(O.Provider,{value:n,children:o})};function y(t){var n=s.useContext(O);return t||n||"ltr"}var P=j},1587,[258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1588,[1589,1591,1595,1596]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var p=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var v of c(l))p(v)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{XStack:function(){return y},YStack:function(){return v},ZStack:function(){return b},fullscreenStyle:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s={position:"absolute",top:0,left:0,right:0,bottom:0},p={fullscreen:{true:s},elevation:{"...size":r(d[0]).getElevation,":number":r(d[0]).getElevation},inset:function(t){return t&&"object"==typeof t?t:{top:t,left:t,bottom:t,right:t}}},v=(0,r(d[1]).styled)(r(d[1]).View,{flexDirection:"column",variants:p});v.displayName="YStack";var y=(0,r(d[1]).styled)(r(d[1]).View,{flexDirection:"row",variants:p});y.displayName="XStack";var b=(0,r(d[1]).styled)(v,{position:"relative"},{neverFlatten:!0,isZStack:!0});b.displayName="ZStack"},1589,[1590,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,s,c,l){if(s&&"object"==typeof s||"function"==typeof s){var v=function(u){!f.call(t,u)&&u!==c&&n(t,u,{get:function(){return s[u]},enumerable:!(l=o(s,u))||l.enumerable})};for(var b of u(s))v(b)}return t},c={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(c,{getElevation:function(){return l},getSizedElevation:function(){return v}}),m.exports=(t=c,s(n({},"__esModule",{value:!0}),t));var l=function(t,n){if(t){var o=n.tokens.size[t],u=(0,r(d[0]).isVariable)(o)?+o.val:t;return v(u,n)}},v=function(t,n){var o=n.theme,u=n.tokens,f=0;if(!0===t){var s=(0,r(d[0]).getVariableValue)(u.size.true);f="number"==typeof s?s:10}else f=+t;if(0!==f){var c=[Math.round(f/4+1),Math.round(f/2+2)],l=c[0],v=c[1];return Object.assign({shadowColor:o.shadowColor,shadowRadius:v,shadowOffset:{height:l,width:0}},r(d[0]).isAndroid?{elevationAndroid:2*l}:{})}}},1590,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,s=function(t,s,f,l){if(s&&"object"==typeof s||"function"==typeof s){var b=function(c){!u.call(t,c)&&c!==f&&o(t,c,{get:function(){return s[c]},enumerable:!(l=n(s,c))||l.enumerable})};for(var h of c(s))b(h)}return t},f={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(f,{SizableStack:function(){return l}}),m.exports=(t=f,s(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[1]).XStack,{name:"SizableStack",variants:{unstyled:{true:{hoverTheme:!1,pressTheme:!1,focusTheme:!1,elevate:!1,bordered:!1}},hoverTheme:r(d[2]).hoverTheme,pressTheme:r(d[2]).pressTheme,focusTheme:r(d[2]).focusTheme,circular:r(d[2]).circular,elevate:r(d[2]).elevate,bordered:r(d[2]).bordered,size:{"...size":function(t,o){return(0,r(d[3]).getButtonSized)(t,o)}}}})},1591,[1461,1589,1592,1593]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(o,c,b,f){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!s.call(o,u)&&u!==b&&t(o,u,{get:function(){return c[u]},enumerable:!(f=n(c,u))||f.enumerable})};for(var p of u(c))l(p)}return o},b={};!(function(o,n){for(var u in n)t(o,u,{get:n[u],enumerable:!0})})(b,{bordered:function(){return l},circular:function(){return C},elevate:function(){return f},focusTheme:function(){return k},hoverTheme:function(){return y},padded:function(){return p},pressTheme:function(){return $},radiused:function(){return v}}),m.exports=(o=b,c(t({},"__esModule",{value:!0}),o));var f={true:function(o,t){return(0,r(d[0]).getElevation)(t.props.size,t)}},l=function(o,t){var n=t.props;return Object.assign({borderWidth:"number"==typeof o?o:1,borderColor:"$borderColor"},n.hoverTheme&&{hoverStyle:{borderColor:"$borderColorHover"}},n.pressTheme&&{pressStyle:{borderColor:"$borderColorPress"}},n.focusTheme&&{focusStyle:{borderColor:"$borderColorFocus"}})},p={true:function(o,t){var n=t.tokens,u=t.props;return{padding:n.space[u.size]||n.space.$true}}},v={true:function(o,t){var n=t.tokens,u=t.props;return{borderRadius:n.radius[u.size]||n.radius.$true}}},h={borderRadius:1e5,padding:0},C={true:function(o,t){var n=t.props,u=t.tokens;if(!("size"in n))return h;var s="number"==typeof n.size?n.size:u.size[n.size];return Object.assign({},h,{width:s,height:s,maxWidth:s,maxHeight:s,minWidth:s,minHeight:s})}},y={true:{hoverStyle:{backgroundColor:"$backgroundHover",borderColor:"$borderColorHover"}},false:{}},$={true:{cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress",borderColor:"$borderColorPress"}},false:{}},k={true:{focusStyle:{backgroundColor:"$backgroundFocus",borderColor:"$borderColorFocus"}},false:{}}},1592,[1590]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getButtonSized:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t,n){var o=n.tokens,u=n.props;if(t&&!u.circular){if("number"==typeof t)return{paddingHorizontal:.25*t,height:t,borderRadius:u.circular?1e5:.2*t};var c,f=(0,r(d[0]).getSpace)(t),p=null!==(c=o.radius[t])&&void 0!==c?c:o.radius.$true;return{paddingHorizontal:f,height:t,borderRadius:u.circular?1e5:p}}}},1593,[1594]); -__d(function(g,r,i,_a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,f=function(t,f,l,c){if(f&&"object"==typeof f||"function"==typeof f){var s=function(o){!a.call(t,o)&&o!==l&&n(t,o,{get:function(){return f[o]},enumerable:!(c=u(f,o))||c.enumerable})};for(var v of o(f))s(v)}return t},l={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(l,{getRadius:function(){return p},getSize:function(){return s},getSpace:function(){return v},getTokenRelative:function(){return x},stepTokenUpOrDown:function(){return k}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var c={shift:0,bounds:[0]},s=function(t,n){return x("size",t,n)},v=function(t,n){return x("space",t,n)},p=function(t,n){return x("radius",t,n)},y={},h={},b={},O={},k=function(t,n){var u,o,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c,f=(0,r(d[0]).getTokens)({prefixed:!0})[t];if(!(t in y)){b[t]=[],y[t]=[],O[t]=[],h[t]=[];var l=Object.keys(f).map(function(t){return f[t]}).sort(function(t,n){return t.val-n.val}),s=!0,v=!1,p=void 0;try{for(var k,x=l[Symbol.iterator]();!(s=(k=x.next()).done);s=!0){var j=k.value;b[t].push(j.key),y[t].push(j)}}catch(t){v=!0,p=t}finally{try{!s&&null!=x.return&&x.return()}finally{if(v)throw p}}var w=l.filter(function(t){return!t.key.endsWith(".5")}),S=!0,P=!1,_=void 0;try{for(var M,T=w[Symbol.iterator]();!(S=(M=T.next()).done);S=!0){var z=M.value;O[t].push(z.key),h[t].push(z)}}catch(t){P=!0,_=t}finally{try{!S&&null!=T.return&&T.return()}finally{if(P)throw _}}}var D,R,$="string"==typeof n,H=(a.excludeHalfSteps?$?O:h:$?b:y)[t],N=null!==(D=null===(u=a.bounds)||void 0===u?void 0:u[0])&&void 0!==D?D:0,U=null!==(R=null===(o=a.bounds)||void 0===o?void 0:o[1])&&void 0!==R?R:H.length-1,V=H.indexOf(n),W=a.shift||0;W&&("$true"===n||(0,r(d[0]).isVariable)(n)&&"true"===n.name)&&(W+=W>0?1:-1);var q=H[Math.min(U,Math.max(N,V+W))];return("string"==typeof q?f[q]:q)||f.$true},x=k},1594,[1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(t,s,l,p){if(s&&"object"==typeof s||"function"==typeof s){var b=function(u){!c.call(t,u)&&u!==l&&o(t,u,{get:function(){return s[u]},enumerable:!(p=n(s,u))||p.enumerable})};for(var f of u(s))b(f)}return t},l={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(l,{ThemeableStack:function(){return f},themeableVariants:function(){return b}}),m.exports=(t=l,s(o({},"__esModule",{value:!0}),t));var p={backgroundColor:"transparent",borderColor:"transparent",shadowColor:"transparent",hoverStyle:{borderColor:"transparent"}},b={backgrounded:{true:{backgroundColor:"$background"}},radiused:r(d[0]).radiused,hoverTheme:r(d[0]).hoverTheme,pressTheme:r(d[0]).pressTheme,focusTheme:r(d[0]).focusTheme,circular:r(d[0]).circular,padded:r(d[0]).padded,elevate:r(d[0]).elevate,bordered:r(d[0]).bordered,transparent:{true:{backgroundColor:"transparent"}},chromeless:{true:p,all:Object.assign({},p,{hoverStyle:p,pressStyle:p,focusStyle:p})}},f=(0,r(d[1]).styled)(r(d[2]).YStack,{variants:b})},1595,[1592,1461,1589]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var O of c(n))p(O)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{ButtonNestingContext:function(){return s}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.createContext(!1)},1596,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1597,[1598]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),l=["__scopeCollapsible","open","defaultOpen","disabled","onOpenChange"],s=["__scopeCollapsible","children"],c=["forceMount","children","__scopeCollapsible"],p=Object.create,u=Object.defineProperty,b=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,C=Object.getPrototypeOf,O=Object.prototype.hasOwnProperty,v=function(n,t,o,l){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!O.call(n,s)&&s!==o&&u(n,s,{get:function(){return t[s]},enumerable:!(l=b(t,s))||l.enumerable})};for(var c of f(t))s(c)}return n},y={};!(function(n,t){for(var o in t)u(n,o,{get:t[o],enumerable:!0})})(y,{Collapsible:function(){return R},CollapsibleContent:function(){return I},CollapsibleContentFrame:function(){return N},CollapsibleTrigger:function(){return k},CollapsibleTriggerFrame:function(){return w}}),m.exports=(n=y,v(u({},"__esModule",{value:!0}),n));var _=r(d[2]),j=(function(n,t,o){return o=null!=n?p(C(n)):{},v(!t&&n&&n.__esModule?o:u(o,"default",{value:n,enumerable:!0}),n)})(r(d[3])),h=(0,r(d[4]).createStyledContext)(),P=h.Provider,x=h.useStyledContext,S=j.forwardRef(function(n,s){var c=n.__scopeCollapsible,p=n.open,u=n.defaultOpen,b=n.disabled,f=n.onOpenChange,C=o(n,l),O=(0,r(d[5]).useControllableState)({prop:p,defaultProp:u,onChange:f}),v=t(O,2),y=v[0],h=void 0!==y&&y,x=v[1];return(0,_.jsx)(P,{scope:c,disabled:b,contentId:j.useId(),open:h,onOpenToggle:j.useCallback(function(){return x(function(n){return!n})},[x]),children:(0,_.jsx)(r(d[4]).Stack,Object.assign({"data-state":F(h),"data-disabled":b?"":void 0},C,{ref:s}))})});S.displayName="Collapsible";var T="CollapsibleTrigger",w=(0,r(d[4]).styled)(r(d[4]).Stack,{name:T,tag:"button"}),k=w.styleable(function(n,t){var l=n.__scopeCollapsible,c=n.children,p=o(n,s),u=x(l);return(0,_.jsx)(w,Object.assign({"aria-controls":u.contentId,"aria-expanded":u.open||!1,"data-state":F(u.open),"data-disabled":u.disabled?"":void 0,disabled:u.disabled},p,{ref:t,onPress:(0,r(d[6]).composeEventHandlers)(n.onPress,u.onOpenToggle),children:"function"==typeof c?c({open:u.open}):c}))});k.displayName=T;var M="CollapsibleContent",N=(0,r(d[4]).styled)(r(d[4]).Stack,{name:M}),I=N.styleable(function(n,t){var l=n.forceMount,s=n.children,p=n.__scopeCollapsible,u=o(n,c),b=x(p);return(0,_.jsx)(r(d[7]).AnimatePresence,Object.assign({},u,{children:l||b.open?(0,_.jsx)(N,Object.assign({ref:t},u,{children:(0,_.jsx)(r(d[7]).ResetPresence,{children:s})})):null}))});function F(n){return n?"open":"closed"}I.displayName=M;var R=(0,r(d[6]).withStaticProperties)(S,{Trigger:k,Content:I})},1598,[19,207,258,128,1466,1583,1476,1599]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1599,[1600,1605,1608,1603]); -__d(function(g,r,_i,a,m,e,d){"use strict";var n,t=r(d[0]),i=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,o=Object.prototype.hasOwnProperty,s=function(n,t,s,f){if(t&&"object"==typeof t||"function"==typeof t){var l=function(u){!o.call(n,u)&&u!==s&&i(n,u,{get:function(){return t[u]},enumerable:!(f=c(t,u))||f.enumerable})};for(var p of u(t))l(p)}return n},f={};!(function(n,t){for(var c in t)i(n,c,{get:t[c],enumerable:!0})})(f,{AnimatePresence:function(){return y}}),m.exports=(n=f,s(i({},"__esModule",{value:!0}),n));var l=r(d[1]),p=r(d[2]),x=function(n){return n.key||""};function h(n,t){n.forEach(function(n){var i=x(n);t.set(i,n)})}function v(n){var t=[];return p.Children.forEach(n,function(n){(0,p.isValidElement)(n)&&t.push(n)}),t}var y=function(n){var i,c=n.children,u=n.enterVariant,o=n.exitVariant,s=n.enterExitVariant,f=n.initial,y=void 0===f||f,E=n.onExitComplete,V=n.exitBeforeEnter,P=n.presenceAffectsLayout,j=void 0===P||P,O=n.custom,b=n.passThrough,C=null!==(i=(0,p.useContext)(r(d[3]).LayoutGroupContext).forceRender)&&void 0!==i?i:(0,r(d[4]).useForceUpdate)(),A=v(c),L=(0,p.useRef)(A),w=(0,p.useRef)(new Map).current,R=(0,p.useRef)(new Set).current;h(A,w);var F=(0,p.useRef)(!0);if(b)return(0,l.jsx)(l.Fragment,{children:c});if((0,r(d[5]).useIsomorphicLayoutEffect)(function(){F.current=!1},[]),F.current)return(0,l.jsx)(l.Fragment,{children:A.map(function(n){return(0,l.jsx)(r(d[6]).PresenceChild,{isPresent:!0,enterExitVariant:s,exitVariant:o,enterVariant:u,initial:!!y&&void 0,presenceAffectsLayout:j,custom:O,children:n},x(n))})});for(var _=t(A),k=L.current.map(x),z=A.map(x),I=k.length,M=0;M"u")return b.useMemo(function(){return t()},[]);var n=b.useRef(void 0);return n.current||(n.current={v:t()}),n.current.v}},1604,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(n,c,f,P){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!s.call(n,u)&&u!==f&&t(n,u,{get:function(){return c[u]},enumerable:!(P=o(c,u))||P.enumerable})};for(var b of u(c))p(b)}return n},f={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(f,{PresenceContext:function(){return r(d[0]).PresenceContext},ResetPresence:function(){return r(d[0]).ResetPresence},isPresent:function(){return r(d[1]).isPresent},useIsPresent:function(){return r(d[1]).useIsPresent},usePresence:function(){return r(d[1]).usePresence}}),m.exports=(n=f,c(t({},"__esModule",{value:!0}),n))},1605,[1606,1607]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,s=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{PresenceContext:function(){return O},ResetPresence:function(){return j}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t));var p=r(d[0]),v=(function(t,u,c){return c=null!=t?n(l(t)):{},s(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),O=v.createContext(null),j=function(t){var n=v.useContext(O);return(0,p.jsx)(O.Provider,{value:t.disable?n:null,children:t.children})}},1606,[258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,l=function(t,n,f,l){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!s.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(l=o(n,c))||l.enumerable})};for(var P of c(n))p(P)}return t},p={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(p,{isPresent:function(){return O},useIsPresent:function(){return v},usePresence:function(){return b}}),m.exports=(t=p,l(u({},"__esModule",{value:!0}),t));var P=(function(t,o,c){return c=null!=t?n(f(t)):{},l(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function b(){var t=P.useContext(r(d[1]).PresenceContext);if(!t)return[!0,null,t];var n=t.id,u=t.isPresent,o=t.onExitComplete,c=t.register;P.useEffect(function(){return c(n)},[]);return!u&&o?[!1,function(){return null==o?void 0:o(n)},t]:[!0,void 0,t]}function v(){return O(P.useContext(r(d[1]).PresenceContext))}function O(t){return null===t||t.isPresent}},1607,[128,1606]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1608,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,c=function(t,c,f,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!p.call(t,u)&&u!==f&&o(t,u,{get:function(){return c[u]},enumerable:!(s=n(c,u))||s.enumerable})};for(var b of u(c))l(b)}return t},f=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},s={};m.exports=(t=s,c(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports),f(s,r(d[3]),m.exports),f(s,r(d[4]),m.exports)},1609,[1610,1612,1613,1614,1615]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,c,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(s){!u.call(t,s)&&s!==c&&n(t,s,{get:function(){return f[s]},enumerable:!(l=o(f,s))||l.enumerable})};for(var y of s(f))p(y)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{SizableText:function(){return l}}),m.exports=(t=c,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{name:"SizableText",fontFamily:"$body",variants:{unstyled:{false:{size:"$true",color:"$color"}},size:r(d[1]).getFontSized},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}});l.staticConfig.variants.fontFamily={"...":function(t,n){var o=n.props.size,s=n.props.fontSize,u="$true"===o&&s?s:n.props.size||"$true";return(0,r(d[1]).getFontSized)(u,n)}}},1610,[1466,1611]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,v,c){if(f&&"object"==typeof f||"function"==typeof f){var s=function(l){!u.call(t,l)&&l!==v&&n(t,l,{get:function(){return f[l]},enumerable:!(c=o(f,l))||c.enumerable})};for(var y of l(f))s(y)}return t},v={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(v,{SizableText:function(){return s},getFontSized:function(){return c}}),m.exports=(t=v,f(n({},"__esModule",{value:!0}),t));var c=function(){var t,n,o,l,u,f,v=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",c=arguments.length>1?arguments[1]:void 0,s=c.font,y=c.fontFamily,b=c.props;if(!s)return{fontSize:v};var z,S,O="$true"===v?p(s):v,h={},j=s.size[O],$=null===(t=s.lineHeight)||void 0===t?void 0:t[O],w=null===(n=s.weight)||void 0===n?void 0:n[O],x=null===(o=s.letterSpacing)||void 0===o?void 0:o[O],T=null===(l=s.transform)||void 0===l?void 0:l[O],k=null!==(z=b.fontStyle)&&void 0!==z?z:null===(u=s.style)||void 0===u?void 0:u[O],F=null!==(S=b.color)&&void 0!==S?S:null===(f=s.color)||void 0===f?void 0:f[O];return k&&(h.fontStyle=k),T&&(h.textTransform=T),y&&(h.fontFamily=y),w&&(h.fontWeight=w),x&&(h.letterSpacing=x),j&&(h.fontSize=j),$&&(h.lineHeight=$),F&&(h.color=F),h},s=(0,r(d[0]).styled)(r(d[0]).Text,{name:"SizableText",fontFamily:"$body",variants:{size:{"...fontSize":c}},defaultVariants:{size:"$true"}}),y=new WeakMap;function p(t){if("object"==typeof t&&y.has(t))return y.get(t);var n="$true"in t.size?t.size:(0,r(d[0]).getTokens)().size,o=n.$true,l=o?Object.keys(n).find(function(t){return"$true"!==t&&n[t].val===o.val}):null;return o&&l?(y.set(t,l),l):Object.keys(t.size)[3]}},1611,[1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(l=n(f,c))||l.enumerable})};for(var b of c(f))s(b)}return t},p={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(p,{Paragraph:function(){return l}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[1]).SizableText,{name:"Paragraph",tag:"p",userSelect:"auto",color:"$color",size:"$true",whiteSpace:"normal"})},1612,[1466,1610]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,o=function(t,o,f,c){if(o&&"object"==typeof o||"function"==typeof o){var y=function(u){!l.call(t,u)&&u!==f&&n(t,u,{get:function(){return o[u]},enumerable:!(c=s(o,u))||c.enumerable})};for(var H of u(o))y(H)}return t},f={};!(function(t,s){for(var u in s)n(t,u,{get:s[u],enumerable:!0})})(f,{H1:function(){return y},H2:function(){return H},H3:function(){return p},H4:function(){return v},H5:function(){return A},H6:function(){return E},Heading:function(){return c}}),m.exports=(t=f,o(n({},"__esModule",{value:!0}),t));var c=(0,r(d[0]).styled)(r(d[1]).Paragraph,{tag:"span",name:"Heading",accessibilityRole:"header",fontFamily:"$heading",size:"$8",margin:0}),y=(0,r(d[0]).styled)(c,{name:"H1",tag:"h1",variants:{unstyled:{false:{size:"$10"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),H=(0,r(d[0]).styled)(c,{name:"H2",tag:"h2",variants:{unstyled:{false:{size:"$9"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[0]).styled)(c,{name:"H3",tag:"h3",variants:{unstyled:{false:{size:"$8"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[0]).styled)(c,{name:"H4",tag:"h4",variants:{unstyled:{false:{size:"$7"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=(0,r(d[0]).styled)(c,{name:"H5",tag:"h5",variants:{unstyled:{false:{size:"$6"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),E=(0,r(d[0]).styled)(c,{name:"H6",tag:"h6",variants:{unstyled:{false:{size:"$5"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1613,[1466,1612]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return n[u]},enumerable:!(p=l(n,u))||p.enumerable})};for(var y of u(n))s(y)}return t},s={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(s,{wrapChildrenInText:function(){return O}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t));var y=r(d[0]),b=(function(t,l,u){return u=null!=t?n(f(t)):{},p(!l&&t&&t.__esModule?u:o(u,"default",{value:t,enumerable:!0}),t)})(r(d[1]));function O(t,n,o){var l=n.children,u=n.textProps,f=n.size,c=n.noTextWrap,p=n.color,s=n.fontFamily,O=n.fontSize,j=n.fontWeight,v=n.letterSpacing,x=n.textAlign,S=n.fontStyle,h=n.maxFontSizeMultiplier;if(c||!l)return[l];var z=Object.assign({},o);return p&&(z.color=p),s&&(z.fontFamily=s),O&&(z.fontSize=O),j&&(z.fontWeight=j),v&&(z.letterSpacing=v),x&&(z.textAlign=x),f&&(z.size=f),S&&(z.fontStyle=S),h&&(z.maxFontSizeMultiplier=h),b.default.Children.toArray(l).map(function(n,o){return"string"==typeof n?(0,y.jsx)(t,Object.assign({},z,u,{children:n}),o):n})}},1614,[258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1615,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1616,[1617]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["children"],l=["scope"],s=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,v=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,P=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!h.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=f(n,l))||u.enumerable})};for(var s of p(n))l(s)}return t},C={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(C,{Adapt:function(){return N},AdaptContents:function(){return I},AdaptContext:function(){return y},AdaptParent:function(){return S},AdaptPortalContents:function(){return W},ProvideAdaptContext:function(){return w},useAdaptContext:function(){return O},useAdaptIsActive:function(){return _}}),m.exports=(t=C,P(c({},"__esModule",{value:!0}),t));var b=r(d[2]),x=(function(t,n,o){return o=null!=t?s(v(t)):{},P(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),y=(0,r(d[4]).createStyledContext)({Contents:null,scopeName:"",portalName:"",platform:null,setPlatform:function(t){},when:null,setChildren:null,setWhen:function(){}}),j=(0,x.createContext)(""),w=function(t){var n=t.children,l=o(t,u),s=l.scopeName||"",c=(0,x.useContext)(j);return(0,b.jsx)(j.Provider,{value:c||l.lastScope||"",children:(0,b.jsx)(y.Provider,Object.assign({scope:s,lastScope:c||l.lastScope},l,{children:n}))})},O=function(t){var n=(0,x.useContext)(j),o=null!=t?t:n;return y.useStyledContext(o)},A=new Map,S=function(t){var o=t.children,u=t.Contents,l=t.scope,s=t.portal,c=(0,x.useId)(),f=`AdaptPortal${l}${c}`,p=(0,x.useMemo)(function(){if(u)return u;if(A.has(f))return A.get(f);var t=function(){return(0,b.jsx)(r(d[5]).PortalHost,{name:f,forwardProps:"boolean"==typeof s||null==s?void 0:s.forwardProps},c)};return A.set(f,t),t},[f,u]);(0,r(d[6]).useIsomorphicLayoutEffect)(function(){return A.set(f,p),function(){A.delete(f)}},[f]);var v=x.default.useState(null),h=n(v,2),P=h[0],C=h[1],y=x.default.useState(null),O=n(y,2),S=O[0],I=O[1],N=x.default.useState(null),W=n(N,2),E=(W[0],W[1]);return(0,b.jsx)(j.Provider,{value:l,children:(0,b.jsx)(w,{Contents:p,when:P,platform:S,setPlatform:I,setWhen:C,setChildren:E,portalName:f,scopeName:l,children:o})})},I=function(t){var n=t.scope,u=o(t,l),s=O(n);if(null==s||!s.Contents)throw new Error("tamagui.dev/docs/intro/errors#warning-002");return x.default.createElement(s.Contents,Object.assign({},u,{key:"stable"}))};I.shouldForwardSpace=!0;var N=(0,r(d[7]).withStaticProperties)(function(t){var n,o=t.platform,u=t.when,l=t.children,s=t.scope,c=O(s),f=E(t);if((0,r(d[6]).useIsomorphicLayoutEffect)(function(){var t,n;null==c||null===(t=c.setWhen)||void 0===t||t.call(c,u||f),null==c||null===(n=c.setPlatform)||void 0===n||n.call(c,o||null)},[u,o,f,c.setWhen,c.setPlatform]),(0,r(d[6]).useIsomorphicLayoutEffect)(function(){return function(){var t,n;null==c||null===(t=c.setWhen)||void 0===t||t.call(c,null),null==c||null===(n=c.setPlatform)||void 0===n||n.call(c,null)}},[]),"function"==typeof l){var p=null==c?void 0:c.Contents;n=l(p?(0,b.jsx)(p,{}):null)}else n=l;return(0,r(d[6]).useIsomorphicLayoutEffect)(function(){"function"==typeof l&&void 0!==n&&(null==c||c.setChildren(n))},[n]),(0,b.jsx)(r(d[8]).StackZIndexContext,{children:f?n:null})},{Contents:I}),W=function(t){var n=_(t.scope),o=O(t.scope).portalName;return(0,b.jsx)(r(d[5]).PortalItem,{passThrough:!n,hostName:o,children:t.children})},E=function(t){var n=t.when,o=t.platform,u=(0,r(d[4]).useMedia)();if(null==n&&null==o)return!1;if(!0===n)return!0;var l=!1;return"touch"===o?l=r(d[6]).isTouchable:"native"===o?l=!r(d[6]).isWeb:"web"===o?l=r(d[6]).isWeb:"ios"===o?l=r(d[6]).isIos:"android"===o&&(l=r(d[6]).isAndroid),(!o||0!=l)&&(n&&"string"==typeof n&&(l=u[n]),l)},_=function(t){var n=O(t);return E(n)}},1617,[19,207,258,128,1461,1618,1463,1476,1624]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,l){if(c&&"object"==typeof c||"function"==typeof c){var s=function(u){!f.call(t,u)&&u!==p&&o(t,u,{get:function(){return c[u]},enumerable:!(l=n(c,u))||l.enumerable})};for(var b of u(c))s(b)}return t},p=function(t,o,n){return c(t,o,"default"),n&&c(n,o,"default")},l={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(l,{PortalItem:function(){return r(d[0]).GorhomPortalItem},resolveViewZIndex:function(){return r(d[1]).resolveViewZIndex}}),m.exports=(t=l,c(o({},"__esModule",{value:!0}),t)),p(l,r(d[2]),m.exports),p(l,r(d[3]),m.exports),p(l,r(d[4]),m.exports),p(l,r(d[5]),m.exports)},1618,[1619,1622,1623,1628,1620,1621]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var v of u(f))p(v)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{GorhomPortalItem:function(){return p}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var l=r(d[0]),p=function(n){var t=n.name,o=n.hostName,u=n.handleOnMount,c=n.handleOnUnmount,f=n.handleOnUpdate,s=n.children,p=n.passThrough,v=(0,r(d[1]).usePortal)(o),h=v.addPortal,O=v.removePortal,b=(0,l.useId)(),y=t||b,P=(0,r(d[2]).useEvent)(function(){u?u(function(){return h(y,s)}):h(y,s)}),j=(0,r(d[2]).useEvent)(function(){c?c(function(){return O(y)}):O(y)}),E=(0,r(d[2]).useEvent)(function(){f?f(function(){return h(y,s)}):h(y,s)});return(0,r(d[3]).useIsomorphicLayoutEffect)(function(){if(!p)return P(),function(){j()}},[]),(0,l.useEffect)(function(){p||E()},[s]),p?s:null}},1619,[128,1620,1461,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["children"],c=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,P=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var p of f(n))c(p)}return t},h={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(h,{ACTIONS:function(){return E},INITIAL_STATE:function(){return j},PortalHost:function(){return D},PortalProvider:function(){return I},usePortal:function(){return A}}),m.exports=(t=h,P(s({},"__esModule",{value:!0}),t));var O=r(d[2]),b=(function(t,n,o){return o=null!=t?c(p(t)):{},P(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),E=(function(t){return t[t.REGISTER_HOST=0]="REGISTER_HOST",t[t.DEREGISTER_HOST=1]="DEREGISTER_HOST",t[t.ADD_UPDATE_PORTAL=2]="ADD_UPDATE_PORTAL",t[t.REMOVE_PORTAL=3]="REMOVE_PORTAL",t})(E||{}),j={},y=function(t,n){return n in t||(t[n]=[]),t},T=function(t,n){return delete t[n],t},N=function(t,n,o,u){n in t||(t=y(t,n));var c=t[n].findIndex(function(t){return t.name===o});return-1!==c?t[n][c].node=u:t[n].push({name:o,node:u}),t},_=function(t,n,o){if(!(n in t))return console.info(`Failed to remove portal '${o}', '${n}' was not registered!`),t;var u=t[n].findIndex(function(t){return t.name===o});return-1!==u&&t[n].splice(u,1),t},x=function(t,n){switch(n.type){case 0:return y(Object.assign({},t),n.hostName);case 1:return T(Object.assign({},t),n.hostName);case 2:return N(Object.assign({},t),n.hostName,n.portalName,n.node);case 3:return _(Object.assign({},t),n.hostName,n.portalName);default:return t}},R=(0,b.createContext)(null),H=(0,b.createContext)(null),w=function(t){var n=(0,b.useContext)(R);if(null===n)throw new Error("'PortalStateContext' cannot be null, please add 'PortalProvider' to the root component.");return n[t]||[]},A=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"root",n=(0,b.useContext)(H);if(null===n)throw new Error("'PortalDispatchContext' cannot be null, please add 'PortalProvider' to the root component.");var o=(0,b.useCallback)(function(){n({type:0,hostName:t})},[]),u=(0,b.useCallback)(function(){n({type:1,hostName:t})},[]),c=(0,b.useCallback)(function(o,u){n({type:2,hostName:t,portalName:o,node:u})},[]);return{registerHost:o,deregisterHost:u,addPortal:c,updatePortal:c,removePortal:(0,b.useCallback)(function(o){n({type:3,hostName:t,portalName:o})},[])}},C=function(t){var n=t.rootHostName,u=void 0===n?"root":n,c=t.shouldAddRootHost,s=void 0===c||c,l=t.children,f=(0,b.useReducer)(x,j),p=o(f,2),v=p[0],P=p[1],h=(0,b.useMemo)(function(){return function(t){(0,r(d[4]).startTransition)(function(){P(t)})}},[P]);return(0,O.jsx)(H.Provider,{value:h,children:(0,O.jsxs)(R.Provider,{value:v,children:[l,s&&(0,O.jsx)(D,{name:u})]})})},I=(0,b.memo)(C);I.displayName="PortalProvider";var S=function(t){return(0,O.jsx)(O.Fragment,{children:t})},D=(0,b.memo)(function(t){return r(d[5]).isWeb?(0,O.jsx)(L,Object.assign({},t)):(0,O.jsx)(k,Object.assign({},t))});function L(t){return(0,r(d[5]).useIsomorphicLayoutEffect)(function(){return function(){r(d[6]).allPortalHosts.delete(t.name)}},[t.name]),(0,O.jsx)("div",{style:{display:"contents"},ref:function(n){var o;n&&(r(d[6]).allPortalHosts.set(t.name,n),null===(o=r(d[6]).portalListeners[t.name])||void 0===o||o.forEach(function(t){return t(n)}))}})}function k(t){var o=t.name,c=t.forwardProps,s=t.render,l=void 0===s?S:s,f=w(o),p=A(t.name),v=p.registerHost,P=p.deregisterHost;return(0,r(d[5]).useIsomorphicLayoutEffect)(function(){if(!(typeof window>"u"))return v(),function(){P()}},[]),l(c?f.map(function(t){var o=t.node,s=(c.children,n(c,u));return c?b.default.Children.map(o,function(t){return b.default.isValidElement(t)?b.default.cloneElement(t,Object.assign({key:t.key},s)):t}):o}):f.map(function(t){return t.node}))}},1620,[207,19,258,128,1585,1463,1621]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var _=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))_(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{IS_FABRIC:function(){return _},USE_NATIVE_PORTAL:function(){return l},allPortalHosts:function(){return A},portalListeners:function(){return v}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p,_=typeof g<"u"&&!!(null!==(p=g._IS_FABRIC)&&void 0!==p?p:g.nativeFabricUIManager),l=!(!process.env.TAMAGUI_USE_NATIVE_PORTAL||"false"===process.env.TAMAGUI_USE_NATIVE_PORTAL)||!r(d[0]).isAndroid&&!_,A=new Map,v={}},1621,[1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getStackedZIndexProps:function(){return s},resolveViewZIndex:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(t){return{stackZIndex:t.stackZIndex,zIndex:b(t.zIndex)}},b=function(t){return typeof t>"u"||"unset"===t?void 0:"number"==typeof t?t:(0,r(d[0]).getTokenValue)(t,"zIndex")}},1622,[1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=function(t,o,c,f){if(o&&"object"==typeof o||"function"==typeof o){var p=function(u){!s.call(t,u)&&u!==c&&n(t,u,{get:function(){return o[u]},enumerable:!(f=l(o,u))||f.enumerable})};for(var v of u(o))p(v)}return t},p={};!(function(t,o){for(var l in o)n(t,l,{get:o[l],enumerable:!0})})(p,{Portal:function(){return O}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var v=r(d[0]),h=(function(t,l,u){return u=null!=t?o(c(t)):{},f(!l&&t&&t.__esModule?u:n(u,"default",{value:t,enumerable:!0}),t)})(r(d[1])),b=r(d[2]),P=(function(){if(r(d[3]).IS_FABRIC)try{var t,o,n=r(d[4]);return null!==(o=null==n||null===(t=n.default)||void 0===t?void 0:t.createPortal)&&void 0!==o?o:n.createPortal}catch(t){return console.info("Note: error importing portal, defaulting to non-native portals",t),null}try{var l,u,c=r(d[5]);return null!==(u=null==c||null===(l=c.default)||void 0===l?void 0:l.createPortal)&&void 0!==u?u:c.createPortal}catch(t){return console.info("Note: error importing portal, defaulting to non-native portals",t),null}})(),O=function(t){var o=h.useContext(b.RootTagContext),n=(0,r(d[6]).useStackedZIndex)((0,r(d[7]).getStackedZIndexProps)(t)),l=t.children,u=t.passThrough,c=(0,v.jsx)(r(d[8]).View,{pointerEvents:"box-none",position:"absolute",inset:0,maxWidth:"100%",zIndex:n,passThrough:u,children:l});return P&&r(d[3]).USE_NATIVE_PORTAL&&o?P(c,o):(0,v.jsx)(r(d[9]).GorhomPortalItem,{passThrough:u,hostName:"root",children:c})}},1623,[258,128,28,1621,60,278,1624,1622,1461,1619]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},1624,[1625,1627,1626]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,s,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(o){!f.call(t,o)&&o!==s&&n(t,o,{get:function(){return c[o]},enumerable:!(l=u(c,o))||l.enumerable})};for(var v of o(c))b(v)}return t},s={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(s,{useStackedZIndex:function(){return x}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t));var l=r(d[0]),b={},v={},x=function(t){if(process.env.TAMAGUI_STACK_Z_INDEX_GLOBAL){var n=t.stackZIndex,u=t.zIndex,o=(0,l.useId)(),f=(0,l.useMemo)(function(){if(n&&"global"!==n&&void 0===u){var t=Object.values(v).reduce(function(t,n){return Math.max(t,n)},0);return Math.max(!0===n?1:n,t+1)}return null!=u?u:1e3},[n]);return(0,l.useEffect)(function(){if("number"==typeof n)return v[o]=n,function(){delete v[o]}},[n]),f}var c,s,x=t.stackZIndex,p=t.zIndex,I=(0,l.useId)(),y=(0,l.useContext)(r(d[1]).ZIndexStackContext),O="global"===x?0:y,_=(0,l.useContext)(r(d[1]).ZIndexHardcodedContext);(c=b)[s=O]||(c[s]={});var j=b[O],M=(0,l.useMemo)(function(){if("number"==typeof p)return p;if(x){if(_)return _+1;var t=Object.values(j).reduce(function(t,n){return Math.max(t,n)},0),n=5e3*O+t+1;return"number"==typeof x?x+n:n}return 1},[O,p,x]);return(0,l.useEffect)(function(){if(x)return j[I]=M,function(){delete j[I]}},[M]),M}},1625,[128,1626]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))l(s)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{ZIndexHardcodedContext:function(){return s},ZIndexStackContext:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=r(d[0]),l=(0,b.createContext)(1),s=(0,b.createContext)(void 0)},1626,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,x,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==x&&n(t,c,{get:function(){return f[c]},enumerable:!(l=o(f,c))||l.enumerable})};for(var v of c(f))p(v)}return t},x={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(x,{StackZIndexContext:function(){return v}}),m.exports=(t=x,f(n({},"__esModule",{value:!0}),t));var l=r(d[0]),p=r(d[1]),v=function(t){var n=t.children,o=t.zIndex,c=(0,p.useContext)(r(d[2]).ZIndexStackContext),u=(0,l.jsx)(r(d[2]).ZIndexStackContext.Provider,{value:c+1,children:n});return typeof o<"u"&&(u=(0,l.jsx)(r(d[2]).ZIndexHardcodedContext.Provider,{value:o,children:u})),u}},1627,[258,128,1626]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1628,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1629,[1630]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["__native","onPress","__onPress"],s=["scope"],c=["scope"],u=["scope"],f=["scope","children"],p=["scope"],v=["scope"],y=["scope"],D=["scope"],b=["scope","native"],O=Object.create,j=Object.defineProperty,A=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,C=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,_=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var s=function(s){!P.call(t,s)&&s!==o&&j(t,s,{get:function(){return n[s]},enumerable:!(l=A(n,s))||l.enumerable})};for(var c of h(n))s(c)}return t},x={};!(function(t,n){for(var o in n)j(t,o,{get:n[o],enumerable:!0})})(x,{AlertDialog:function(){return X},AlertDialogAction:function(){return G},AlertDialogCancel:function(){return K},AlertDialogContent:function(){return W},AlertDialogDescription:function(){return z},AlertDialogOverlay:function(){return F},AlertDialogPortal:function(){return N},AlertDialogTitle:function(){return k},AlertDialogTrigger:function(){return V}}),m.exports=(t=x,_(j({},"__esModule",{value:!0}),t));var w=r(d[2]),T=(function(t,n,o){return o=null!=t?O(C(t)):{},_(!n&&t&&t.__esModule?o:j(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),E=r(d[4]),S="AlertDialogTrigger",R=(0,r(d[5]).styled)(r(d[5]).View,{name:S}),V=R.styleable(function(t,n){if(t.__native){t.__native;var c=t.onPress,u=t.__onPress,f=o(t,l);return(0,w.jsx)(R,Object.assign({},f,{onPress:(0,r(d[6]).composeEventHandlers)(c,u)}))}var p=t.scope,v=o(t,s);return(0,w.jsx)(r(d[7]).DialogTrigger,Object.assign({scope:p},v,{ref:n}))}),N=function(t){var n=t.scope,l=o(t,c);return(0,w.jsx)(r(d[7]).DialogPortal,Object.assign({scope:n},l))},F=(0,r(d[5]).styled)(r(d[7]).DialogOverlayFrame,{name:"AlertDialogOverlay"}).styleable(function(t,n){var l=t.scope,s=o(t,u);return(0,w.jsx)(r(d[7]).DialogOverlay,Object.assign({scope:l},s,{ref:n}))}),H=(0,r(d[5]).createStyledContext)({},"AlertDialogContext"),I=H.Provider,M=H.useStyledContext,W=T.forwardRef(function(t,n){var l=t.scope,s=t.children,c=o(t,f),u=l,p=T.useRef(null),v=(0,r(d[8]).useComposedRefs)(n,p),y=T.useRef(null);return(0,w.jsx)(r(d[7]).DialogWarningProvider,{contentName:"AlertDialogContent",titleName:L,docsSlug:"alert-dialog",children:(0,w.jsx)(I,{scope:l,cancelRef:y,children:(0,w.jsxs)(r(d[7]).DialogContent,Object.assign({role:"alertdialog",scope:u},c,{ref:v,onOpenAutoFocus:(0,r(d[6]).composeEventHandlers)(c.onOpenAutoFocus,function(t){var n;(t.preventDefault(),r(d[9]).isWeb)&&(null===(n=y.current)||void 0===n||n.focus({preventScroll:!0}))}),onPointerDownOutside:function(t){return t.preventDefault()},onInteractOutside:function(t){return t.preventDefault()},children:[(0,w.jsx)(r(d[5]).Slottable,{children:s}),!1]}))})})}),L="AlertDialogTitle",k=(0,r(d[5]).styled)(r(d[5]).View,{name:L}).styleable(function(t,n){var l=t.scope,s=o(t,p);return(0,w.jsx)(r(d[7]).DialogTitle,Object.assign({scope:l},s,{ref:n}))}),q="AlertDialogDescription",z=(0,r(d[5]).styled)(r(d[5]).View,{name:q}).styleable(function(t,n){var l=t.scope,s=o(t,v);return(0,w.jsx)(r(d[7]).DialogDescription,Object.assign({scope:l},s,{ref:n}))}),B="AlertDialogAction",G=(0,r(d[5]).styled)(r(d[5]).View,{name:B}).styleable(function(t,n){var l=t.scope,s=o(t,y);return(0,w.jsx)(r(d[7]).DialogClose,Object.assign({scope:l},s,{ref:n}))}),J="AlertDialogCancel",K=(0,r(d[5]).styled)(r(d[5]).View,{name:J}).styleable(function(t,n){var l=t.scope,s=o(t,D),c=M(l).cancelRef,u=(0,r(d[8]).useComposedRefs)(n,c);return(0,w.jsx)(r(d[7]).DialogClose,Object.assign({scope:l},s,{ref:u}))});function Q(t,n){var o=!0,l=!1,s=void 0;try{for(var c,u=t[Symbol.iterator]();!(o=(c=u.next()).done);o=!0){var f=c.value;if(T.isValidElement(f)&&n(f)){var p=f.props;p.children&&Q(T.Children.toArray(p.children),n)}}}catch(t){l=!0,s=t}finally{try{!o&&null!=u.return&&u.return()}finally{if(l)throw s}}}function U(t){var n="";return Q(T.Children.toArray(t),function(t){return"string"!=typeof t.props.children||(n=t.props.children,!1)}),n}var X=(0,r(d[6]).withStaticProperties)(function(t){var l=t.scope,s=t.native,c=o(t,b),u=l,f=(0,r(d[10]).useControllableState)({prop:t.open,defaultProp:t.defaultOpen||!1,onChange:t.onOpenChange,transition:!0}),p=n(f,2),v=p[0],y=p[1],D=null,O="",j="",A=[];return Q(T.Children.toArray(t.children),function(t){if(!T.isValidElement(t))return!1;var n=(0,r(d[5]).isTamaguiElement)(t)?t.type.staticConfig.componentName:t.type.displayName;switch(n){case S:return D=T.cloneElement(t,{__native:!0}),!1;case L:return O=U(t),!1;case q:return j=U(t),!1;case B:case J:var o=n===B?"default":"cancel",l=U(t);return A.push({style:o,text:l,onPress:function(){var n,o=t.props;null==o||null===(n=o.onPress)||void 0===n||n.call(o,{native:!0}),y(!1)}}),!1;default:return!0}}),(0,r(d[9]).useIsomorphicLayoutEffect)(function(){!v||!s||(O||j)&&E.Alert.alert(O,j,A)},[s,v]),s?T.cloneElement(D,{__onPress:function(){y(!0)}}):(0,w.jsx)(r(d[7]).Dialog,Object.assign({scope:u},c,{modal:!0}))},{Trigger:V,Portal:N,Overlay:F,Content:W,Action:G,Cancel:K,Title:k,Description:z});X.displayName="AlertDialog"},1630,[19,207,258,128,28,1461,1476,1631,1525,1463,1583]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1631,[1632]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),s=["scope"],c=["scope","forceMount","children"],l=["scope"],u=["forceMount"],p=["scope"],f=["forceMount"],v=["children","context"],h=["trapFocus","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","context"],x=["scope"],b=["scope"],O=["scope","displayWhenAdapted"],j=Object.create,C=Object.defineProperty,D=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,A=Object.getPrototypeOf,P=Object.prototype.hasOwnProperty,S=function(n,t,o,s){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!P.call(n,c)&&c!==o&&C(n,c,{get:function(){return t[c]},enumerable:!(s=D(t,c))||s.enumerable})};for(var l of y(t))c(l)}return n},I={};!(function(n,t){for(var o in t)C(n,o,{get:t[o],enumerable:!0})})(I,{Dialog:function(){return se},DialogClose:function(){return ee},DialogContent:function(){return K},DialogContext:function(){return F},DialogDescription:function(){return Q},DialogOverlay:function(){return $},DialogOverlayFrame:function(){return L},DialogPortal:function(){return k},DialogPortalFrame:function(){return N},DialogProvider:function(){return w},DialogTitle:function(){return q},DialogTrigger:function(){return _},DialogWarningProvider:function(){return re},useDialogContext:function(){return T}}),m.exports=(n=I,S(C({},"__esModule",{value:!0}),n));var E=r(d[2]),R=(function(n,t,o){return o=null!=n?j(A(n)):{},S(!t&&n&&n.__esModule?o:C(o,"default",{value:n,enumerable:!0}),n)})(r(d[3])),F=(0,r(d[4]).createStyledContext)({},"Dialog__"),T=F.useStyledContext,w=F.Provider,M=(0,r(d[4]).styled)(r(d[4]).View,{name:"DialogTrigger"}),_=M.styleable(function(n,t){var c=n.scope,l=o(n,s),u=R.useContext(r(d[5]).ButtonNestingContext),p=T(c),f=(0,r(d[6]).useComposedRefs)(t,p.triggerRef);return(0,E.jsx)(r(d[5]).ButtonNestingContext.Provider,{value:!0,children:(0,E.jsx)(M,Object.assign({tag:u?"span":"button","aria-haspopup":"dialog","aria-expanded":p.open,"aria-controls":p.contentId,"data-state":ne(p.open)},l,{ref:f,onPress:(0,r(d[7]).composeEventHandlers)(n.onPress,p.onOpenToggle)}))})}),N=(0,r(d[4]).styled)(r(d[5]).YStack,{pointerEvents:"none",tag:"dialog",variants:{unstyled:{false:{alignItems:"center",justifyContent:"center",fullscreen:!0,"$platform-web":{borderWidth:0,backgroundColor:"transparent",color:"inherit",maxInlineSize:"none",margin:0,width:"auto",height:"auto",maxHeight:"100vh",position:"fixed"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),H=r(d[8]).isAndroid||r(d[8]).isIos&&!r(d[9]).USE_NATIVE_PORTAL,W=function(n){var t=n.context,o=n.children,s=(0,r(d[4]).useThemeName)(),c=(0,r(d[10]).useAdaptIsActive)(t.adaptScope),l=(0,r(d[10]).useAdaptContext)(t.adaptScope),u=(0,E.jsx)(r(d[4]).Theme,{name:s,children:o});return H&&(u=(0,E.jsx)(r(d[10]).ProvideAdaptContext,Object.assign({},l,{children:(0,E.jsx)(w,Object.assign({},t,{children:u}))}))),c?(0,E.jsx)(r(d[10]).AdaptPortalContents,{scope:t.adaptScope,children:u}):t.modal?(0,E.jsx)(r(d[9]).PortalItem,{hostName:t.modal?"root":t.adaptScope,children:u}):u},k=R.forwardRef(function(n,s){var l=n.scope,u=n.forceMount,p=n.children,f=o(n,c),v=R.useRef(null),h=(0,r(d[6]).composeRefs)(v,s),x=T(l),b=u||x.open,O=R.useState(!b),j=t(O,2),C=j[0],D=j[1],y=(0,r(d[10]).useAdaptIsActive)(x.adaptScope),A=!!b||!C;b&&C&&D(!1),r(d[8]).isWeb&&(0,r(d[8]).useIsomorphicLayoutEffect)(function(){var n=v.current;n instanceof HTMLDialogElement&&(A?n.show():n.close())},[A]);var P=R.useCallback(function(){D(!0)},[]),S=(0,r(d[4]).getExpandedShorthand)("zIndex",n),I=(0,E.jsx)(r(d[11]).StackZIndexContext,{zIndex:(0,r(d[9]).resolveViewZIndex)(S),children:(0,E.jsx)(r(d[12]).AnimatePresence,{passThrough:y,onExitComplete:P,children:b||y?p:null})}),F=C&&!y?null:(0,E.jsx)(r(d[4]).LayoutMeasurementController,{disable:!b,children:(0,E.jsx)(N,Object.assign({ref:h},r(d[8]).isWeb&&b&&{"aria-modal":!0},{pointerEvents:b?"auto":"none"},f,{className:"_no_backdrop "+(f.className||""),children:I}))});return r(d[8]).isWeb?(0,E.jsx)(r(d[9]).Portal,{zIndex:S,stackZIndex:1e3,passThrough:y,children:(0,E.jsx)(z,{passThrough:y,children:F})}):y?F:(0,E.jsx)(W,{context:x,children:F})}),z=function(n){var t=n.children,o=n.passThrough,s=(0,r(d[4]).useThemeName)();return(0,E.jsx)(r(d[4]).Theme,{passThrough:o,name:s,forceClassName:!0,children:t})},L=(0,r(d[4]).styled)(r(d[13]).Overlay,{name:"DialogOverlay"}),$=L.styleable(function(n,t){var s=n.scope,c=o(n,l),p=T(s),f=c.forceMount,v=void 0===f?p.forceMount:f,h=o(c,u),x=(0,r(d[10]).useAdaptIsActive)(p.adaptScope);return v||p.modal&&!x?(0,E.jsx)(L,Object.assign({"data-state":ne(p.open),pointerEvents:p.open?"auto":"none"},h,{ref:t})):null}),U="DialogContent",V=(0,r(d[4]).styled)(r(d[5]).ThemeableStack,{name:U,variants:{size:{"...size":function(n,t){return{}}},unstyled:{false:{position:"relative",backgrounded:!0,padded:!0,radiused:!0,elevate:!0,zIndex:1e5}}},defaultVariants:{size:"$true",unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),K=V.styleable(function(n,t){var s=n.scope,c=o(n,p),l=T(s),u=c.forceMount,v=(void 0===u&&l.forceMount,o(c,f)),h=(0,E.jsx)(E.Fragment,{children:l.modal?(0,E.jsx)(B,Object.assign({context:l},v,{ref:t})):(0,E.jsx)(Z,Object.assign({context:l},v,{ref:t}))});return!r(d[8]).isWeb||l.disableRemoveScroll?h:(0,E.jsx)(r(d[14]).RemoveScroll,{enabled:l.open,children:(0,E.jsx)("div",{"data-remove-scroll-container":!0,className:"_dsp_contents",children:h})})}),B=R.forwardRef(function(n,t){var s=n.children,c=n.context,l=o(n,v),u=R.useRef(null),p=(0,r(d[6]).useComposedRefs)(t,c.contentRef,u);return(0,E.jsx)(G,Object.assign({},l,{context:c,ref:p,trapFocus:c.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,r(d[7]).composeEventHandlers)(l.onCloseAutoFocus,function(n){var t;n.preventDefault(),null===(t=c.triggerRef.current)||void 0===t||t.focus()}),onPointerDownOutside:(0,r(d[7]).composeEventHandlers)(l.onPointerDownOutside,function(n){var t=n.detail.originalEvent,o=0===t.button&&!0===t.ctrlKey;(2===t.button||o)&&n.preventDefault()}),onFocusOutside:(0,r(d[7]).composeEventHandlers)(l.onFocusOutside,function(n){return n.preventDefault()})},!l.unstyled&&{outlineStyle:"none"},{children:s}))}),Z=R.forwardRef(function(n,t){var o=R.useRef(!1);return(0,E.jsx)(G,Object.assign({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:function(t){var s;if(null===(s=n.onCloseAutoFocus)||void 0===s||s.call(n,t),!t.defaultPrevented){var c;if(!o.current)null===(c=n.context.triggerRef.current)||void 0===c||c.focus();t.preventDefault()}o.current=!1},onInteractOutside:function(t){var s;null===(s=n.onInteractOutside)||void 0===s||s.call(n,t),t.defaultPrevented||(o.current=!0);var c=t.target,l=n.context.triggerRef.current;l instanceof HTMLElement&&(l.contains(c)&&t.preventDefault())}}))}),G=R.forwardRef(function(n,t){var s=n.trapFocus,c=n.onOpenAutoFocus,l=n.onCloseAutoFocus,u=n.disableOutsidePointerEvents,p=n.onEscapeKeyDown,f=n.onPointerDownOutside,v=n.onFocusOutside,x=n.onInteractOutside,b=n.context,O=o(n,h),j=R.useRef(void 0),C=(0,r(d[6]).useComposedRefs)(t,j);if((0,r(d[10]).useAdaptIsActive)(b.adaptScope))return r(d[8]).isWeb||b.open?(0,E.jsx)(W,{context:b,children:O.children}):null;var D=(0,E.jsx)(V,Object.assign({ref:C,id:b.contentId,"aria-describedby":b.descriptionId,"aria-labelledby":b.titleId,"data-state":ne(b.open)},O));return r(d[8]).isWeb?(0,E.jsxs)(E.Fragment,{children:[(0,E.jsx)(r(d[15]).Dismissable,{disableOutsidePointerEvents:b.open&&u,forceUnmount:!b.open,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:x,onDismiss:function(){var n;return null==b||null===(n=b.onOpenChange)||void 0===n?void 0:n.call(b,!1)},children:(0,E.jsx)(r(d[16]).FocusScope,{loop:!0,enabled:b.open,trapped:s,onMountAutoFocus:c,forceUnmount:!b.open,onUnmountAutoFocus:l,children:D})}),!1]}):D}),Y=(0,r(d[4]).styled)(r(d[17]).H2,{name:"DialogTitle"}),q=Y.styleable(function(n,t){var s=n.scope,c=o(n,x),l=T(s);return(0,E.jsx)(Y,Object.assign({id:l.titleId},c,{ref:t}))}),J=(0,r(d[4]).styled)(r(d[17]).Paragraph,{name:"DialogDescription"}),Q=J.styleable(function(n,t){var s=n.scope,c=o(n,b),l=T(s);return(0,E.jsx)(J,Object.assign({id:l.descriptionId},c,{ref:t}))}),X=(0,r(d[4]).styled)(r(d[4]).View,{name:"DialogClose",tag:"button"}),ee=X.styleable(function(n,t){var s=n.scope,c=n.displayWhenAdapted,l=o(n,O),u=T(s),p=(0,r(d[10]).useAdaptIsActive)(u.adaptScope),f=R.useContext(r(d[5]).ButtonNestingContext);return p&&!c?null:(0,E.jsx)(X,Object.assign({accessibilityLabel:"Dialog Close",tag:f?"span":"button"},l,{ref:t,onPress:(0,r(d[7]).composeEventHandlers)(n.onPress,function(){u.onOpenChange(!1)})}))});function ne(n){return n?"open":"closed"}var te=(0,r(d[18]).createContext)("DialogTitleWarning",{contentName:U,titleName:"DialogTitle",docsSlug:"dialog"}),oe=t(te,2),re=oe[0],se=(oe[1],(0,r(d[7]).withStaticProperties)(R.forwardRef(function(n,o){var s=n.scope,c=void 0===s?"":s,l=n.children,u=n.open,p=n.defaultOpen,f=void 0!==p&&p,v=n.onOpenChange,h=n.modal,x=void 0===h||h,b=n.disableRemoveScroll,O=void 0!==b&&b,j=`Dialog-${c}-${R.useId()}`,C=`${j}-content`,D=`${j}-title`,y=`${j}-description`,A=R.useRef(null),P=R.useRef(null),S=(0,r(d[19]).useControllableState)({prop:u,defaultProp:f,onChange:v}),I=t(S,2),F=I[0],T=I[1],M=R.useCallback(function(){T(function(n){return!n})},[T]),_=`DialogAdapt${c}`,N={dialogScope:c,adaptScope:_,triggerRef:A,contentRef:P,contentId:C,titleId:D,descriptionId:y,open:F,onOpenChange:T,onOpenToggle:M,modal:x,disableRemoveScroll:O};return R.useImperativeHandle(o,function(){return{open:T}},[T]),(0,E.jsx)(r(d[10]).AdaptParent,{scope:_,portal:{forwardProps:n},children:(0,E.jsx)(w,Object.assign({scope:c},N,{children:(0,E.jsx)(ae,{onOpenChange:T,scope:c,children:l})}))})}),{Trigger:_,Portal:k,Overlay:$,Content:K,Title:q,Description:Q,Close:ee,Sheet:r(d[13]).Sheet.Controlled,FocusScope:r(d[16]).FocusScopeController,Adapt:r(d[10]).Adapt})),ae=function(n){var t=T(n.scope),o=(0,r(d[10]).useAdaptIsActive)(t.adaptScope);return(0,E.jsx)(r(d[13]).SheetController,{onOpenChange:function(t){var s;o&&(null===(s=n.onOpenChange)||void 0===s||s.call(n,t))},open:t.open,hidden:!o,children:n.children})}},1632,[19,207,258,128,1461,1588,1525,1476,1463,1618,1616,1624,1599,1633,1642,1656,1658,1609,1636,1583]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,u=function(t,u,c,f){if(u&&"object"==typeof u||"function"==typeof u){var x=function(p){!s.call(t,p)&&p!==c&&o(t,p,{get:function(){return u[p]},enumerable:!(f=n(u,p))||f.enumerable})};for(var l of p(u))x(l)}return t},c=function(t,o,n){return u(t,o,"default"),n&&u(n,o,"default")},f={};m.exports=(t=f,u(o({},"__esModule",{value:!0}),t)),c(f,r(d[0]),m.exports),c(f,r(d[1]),m.exports),c(f,r(d[2]),m.exports),c(f,r(d[3]),m.exports),c(f,r(d[4]),m.exports),c(f,r(d[5]),m.exports),c(f,r(d[6]),m.exports),c(f,r(d[7]),m.exports),c(f,r(d[8]),m.exports),c(f,r(d[9]),m.exports),c(f,r(d[10]),m.exports)},1633,[1634,1654,1640,1655,1644,1647,1641,1651,1650,1639,1646]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,l,f){if(c&&"object"==typeof c||"function"==typeof c){var p=function(u){!s.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(f=o(c,u))||f.enumerable})};for(var y of u(c))p(y)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{Frame:function(){return y},Handle:function(){return f},Overlay:function(){return p},Sheet:function(){return v},SheetHandleFrame:function(){return S},SheetOverlayFrame:function(){return E},createSheetScope:function(){return r(d[0]).createSheetScope}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(l,r(d[1]),m.exports);var f=(0,r(d[2]).styled)(r(d[3]).XStack,{name:r(d[4]).SHEET_HANDLE_NAME,variants:{open:{true:{opacity:1,pointerEvents:"auto"},false:{opacity:0,pointerEvents:"none"}},unstyled:{false:{height:10,borderRadius:100,backgroundColor:"$background",zIndex:10,marginHorizontal:"35%",marginBottom:"$2",opacity:.5,hoverStyle:{opacity:.7}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[2]).styled)(r(d[3]).ThemeableStack,{name:r(d[4]).SHEET_OVERLAY_NAME,variants:{open:{true:{pointerEvents:"auto"},false:{pointerEvents:"none"}},unstyled:{false:{fullscreen:!0,position:"absolute",backgrounded:!0,zIndex:99999,pointerEvents:"auto"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[2]).styled)(r(d[3]).YStack,{name:r(d[4]).SHEET_NAME,variants:{unstyled:{false:{flex:1,backgroundColor:"$background",borderTopLeftRadius:"$true",borderTopRightRadius:"$true",width:"100%",maxHeight:"100%",overflow:"hidden"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[5]).createSheet)({Frame:y,Handle:f,Overlay:p}),E=p,S=f},1634,[1635,1639,1461,1588,1638,1640]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,p,b){if(n&&"object"==typeof n||"function"==typeof n){var s=function(u){!f.call(t,u)&&u!==p&&o(t,u,{get:function(){return n[u]},enumerable:!(b=c(n,u))||b.enumerable})};for(var S of u(n))s(S)}return t},b={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(b,{SheetProvider:function(){return y},createSheetContext:function(){return S},createSheetScope:function(){return l},useSheetContext:function(){return O}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var s=n((0,r(d[1]).createContextScope)(r(d[2]).SHEET_NAME),2),S=s[0],l=s[1],v=n(S(r(d[2]).SHEET_NAME,{}),2),y=v[0],O=v[1]},1635,[19,1636,1638]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1636,[1637]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),u=r(d[2]),c=["children"],l=["scope","children"],f=Object.create,s=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,b=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,O=function(n,t,o,u){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!h.call(n,c)&&c!==o&&s(n,c,{get:function(){return t[c]},enumerable:!(u=v(t,c))||u.enumerable})};for(var l of p(t))c(l)}return n},j={};!(function(n,t){for(var o in t)s(n,o,{get:t[o],enumerable:!0})})(j,{createContext:function(){return x},createContextScope:function(){return y}}),m.exports=(n=j,O(s({},"__esModule",{value:!0}),n));var w=r(d[3]),_=(function(n,t,o){return o=null!=n?f(b(n)):{},O(!t&&n&&n.__esModule?o:s(o,"default",{value:n,enumerable:!0}),n)})(r(d[4]));function x(n,t){var o=_.createContext(t);return[function(n){var t=n.children,l=u(n,c),f=_.useMemo(function(){return l},Object.values(l));return(0,w.jsx)(o.Provider,{value:f,children:t})},function(u){var c=_.useContext(o);if(c)return c;if(void 0!==t)return t;throw new Error(`\`${u}\` must be used within \`${n}\``)}]}function y(n){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],f=[];var s=function(){var o=f.map(function(n){return _.createContext(n)});return function(u){var c=(null==u?void 0:u[n])||o;return _.useMemo(function(){return t({},`__scope${n}`,Object.assign({},u,t({},n,c)))},[u,c])}};return s.scopeName=n,[function(t,c){var s=_.createContext(c),v=f.length;return f=[].concat(o(f),[c]),[function(t){var o,c=t.scope,f=t.children,p=u(t,l),b=(null==c||null===(o=c[n])||void 0===o?void 0:o[v])||s,h=_.useMemo(function(){return p},Object.values(p));return(0,w.jsx)(b.Provider,{value:h,children:f})},function(o,u,l){var f,p=(null==u||null===(f=u[n])||void 0===f?void 0:f[v])||s,b=_.useContext(p);if(b)return b;if(void 0!==c)return c;var h=`\`${o}\` must be used within \`${t}\``;if(null!=l&&l.fallback)return!1!==(null==l?void 0:l.warn)&&console.warn(h),l.fallback;throw new Error(h)}]},N.apply(void 0,[s].concat(o(c)))]}function N(){for(var n=arguments.length,o=new Array(n),u=0;uh?o-h:h-o;v10})();return i&&H.setParentDragging(!0),i},onPanResponderGrant:o,onPanResponderMove:function(t,i){var o=i.dy+n,u=(0,r(d[11]).resisted)(o,e);u<=e?H.setParentDragging(!1):H.setParentDragging(!0),ve.setValue(u,{type:"direct"})},onPanResponderEnd:i,onPanResponderTerminate:i,onPanResponderRelease:i})}function s(e){Ae(e),r(d[4]).isClient&&(S||(S=document.createElement("style"),typeof document.head<"u"&&document.head.appendChild(S)),S.innerText=e?":root * { user-select: none !important; -webkit-user-select: none !important; }":"")}},[Ne,re,Me,D,se,W]),ze=p.default.useCallback(function(e){var n,t=Math.min(null===(n=e.nativeEvent)||void 0===n?void 0:n.layout.height,b.Dimensions.get(P).height);t&&L(t)},[]),De=p.default.useCallback(function(e){var n,t=Math.min(null===(n=e.nativeEvent)||void 0===n?void 0:n.layout.height,b.Dimensions.get(P).height);t&&U(t)},[]),Le=ce(ve,((Ie=function(e){return{transform:[{translateY:0===D?y:e}]}}).__closure={frameSize:D,hiddenSize:y},Ie.__workletHash=4615248473798,Ie.__initData=h,Ie)),Te=p.default.useRef(null);p.default.useEffect(function(){if(!r(d[4]).isWeb&&M){var e=b.Keyboard.addListener("ios"===r(d[4]).currentPlatform?"keyboardWillShow":"keyboardDidShow",function(e){null===Te.current&&(Te.current=G||-1===F?K:se[F],ve.setValue(Math.max(Te.current-e.endCoordinates.height,0),{type:"timing",duration:250}))}),n=b.Keyboard.addListener("keyboardDidHide",function(){null!==Te.current&&(ve.setValue(Te.current,{type:"timing",duration:250}),Te.current=null)});return function(){n.remove(),e.remove()}}},[M,se,F,G]);var Ve=p.default.useState(q?1:0),Ye=n(Ve,2),Fe=Ye[0],We=Ye[1];q&&0===Fe&&We(1),p.default.useEffect(function(){if(!q){var e=setTimeout(function(){We(0)},400);return function(){clearTimeout(e)}}},[q]);var He=Y?void 0:"percent"===V?`${$}${r(d[4]).isWeb?"dvh":"%"}`:$,Ke=p.default.useCallback(function(e){xe.current=e},[]),Ue=(0,v.jsx)(r(d[9]).LayoutMeasurementController,{disable:!q,children:(0,v.jsx)(r(d[5]).ParentSheetContext.Provider,{value:me,children:(0,v.jsxs)(r(d[12]).SheetProvider,Object.assign({},z,{setHasScrollView:Ke,children:[(0,v.jsx)(r(d[13]).AnimatePresence,{custom:{open:q},children:ie||!q?null:A}),"percent"!==V&&(0,v.jsx)(b.View,{style:{opacity:0,position:"absolute",top:0,left:0,right:0,bottom:0,pointerEvents:"none"},onLayout:De}),(0,v.jsx)(fe,Object.assign({ref:Z},null==ke?void 0:ke.panHandlers,{onLayout:ze,animation:Ee||Se?null:o,disableClassName:!0,style:[Object.assign({position:"absolute",zIndex:f,width:"100%",height:He,minHeight:He,opacity:ie?0:Fe},(ie||!q)&&{pointerEvents:"none"}),Le],children:e.children}))]}))})});if(!r(d[10]).USE_NATIVE_PORTAL){var $e=(0,r(d[14]).useAdaptContext)();Ue=(0,v.jsx)(r(d[14]).ProvideAdaptContext,Object.assign({},$e,{children:Ue}))}var qe=!O||!!Fe;if(l){var Be=(0,v.jsx)(r(d[10]).Portal,Object.assign({stackZIndex:f},I,{children:qe&&(0,v.jsx)(R,{children:(0,v.jsx)(r(d[9]).Theme,{contain:!0,forceClassName:!0,name:Re,children:Ue})})}));return r(d[4]).isWeb?Be:(0,v.jsx)(r(d[5]).SheetInsideSheetContext.Provider,{value:ue,children:Be})}return Ue});function C(e,n,t,i){if(!t||!i)return 0;if("mixed"===e){if("number"==typeof n)return t-Math.min(t,Math.max(0,n));if("fit"===n)return t-Math.min(t,i);if(n.endsWith("%")){var o=Math.min(100,Math.max(0,Number(n.slice(0,-1))))/100;return Number.isNaN(o)?(console.warn("Invalid snapPoint percentage string"),0):Math.round(t-o*t)}return console.warn("Invalid snapPoint unknown value"),0}if("fit"===e)return 0===n?t:t-Math.min(t,i);if("constant"===e&&"number"==typeof n)return t-Math.min(t,Math.max(0,n));var u=Math.min(100,Math.max(0,Number(n)))/100;return Number.isNaN(u)?(console.warn("Invalid snapPoint percentage"),0):Math.round(t-u*t)}},1645,[19,258,128,28,1463,1646,1647,1648,1525,1461,1618,1649,1635,1599,1616]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var O of c(n))p(O)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{ParentSheetContext:function(){return s},SheetInsideSheetContext:function(){return y}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.createContext({zIndex:1e5}),y=O.default.createContext(null)},1646,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,c=function(n,t,c,f){if(t&&"object"==typeof t||"function"==typeof t){var s=function(u){!p.call(n,u)&&u!==c&&o(n,u,{get:function(){return t[u]},enumerable:!(f=l(t,u))||f.enumerable})};for(var v of u(t))s(v)}return n},f={};!(function(n,t){for(var l in t)o(n,l,{get:t[l],enumerable:!0})})(f,{useSheetOpenState:function(){return s}}),m.exports=(n=f,c(o({},"__esModule",{value:!0}),n));var s=function(n){var o,l,u,p=(0,r(d[1]).useSheetController)(),c=p.isHidden,f=p.controller,s=n.preferAdaptParentOpenState?null!==(o=null==f?void 0:f.open)&&void 0!==o?o:n.open:null!==(l=n.open)&&void 0!==l?l:null==f?void 0:f.open,v=(0,r(d[2]).useControllableState)({prop:s,defaultProp:null!==(u=n.defaultOpen)&&void 0!==u&&u,onChange:function(t){var o,l;null==f||null===(o=f.onOpenChange)||void 0===o||o.call(f,t),null===(l=n.onOpenChange)||void 0===l||l.call(n,t)},strategy:"most-recent-wins"}),O=t(v,2);return{open:O[0],setOpen:O[1],isHidden:c,controller:f}}},1647,[19,1644,1583]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,O=function(n,t,o,s){if(t&&"object"==typeof t||"function"==typeof t){var f=function(c){!p.call(n,c)&&c!==o&&l(n,c,{get:function(){return t[c]},enumerable:!(s=u(t,c))||s.enumerable})};for(var O of c(t))f(O)}return n},v={};!(function(n,t){for(var o in t)l(n,o,{get:t[o],enumerable:!0})})(v,{useSheetProviderProps:function(){return S}}),m.exports=(n=v,O(l({},"__esModule",{value:!0}),n));var P=(function(n,t,o){return o=null!=n?s(f(n)):{},O(!t&&n&&n.__esModule?o:l(o,"default",{value:n,enumerable:!0}),n)})(r(d[2]));function S(n,s){var l,u,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=P.default.useRef(null),p=P.default.useRef(null),O=P.default.useState(0),v=o(O,2),S=v[0],b=v[1],y=P.default.useState(0),h=o(y,2),C=h[0],w=h[1],B=null!==(l=n.snapPointsMode)&&void 0!==l?l:"percent",_=null!==(u=n.snapPoints)&&void 0!==u?u:"percent"===B?[80]:"constant"===B?[256]:["fit"],j="fit"===_[0],D=P.default.useMemo(function(){return n.dismissOnSnapToBottom?[].concat(t(_),[0]):_},[JSON.stringify(_),n.dismissOnSnapToBottom]),M=(0,r(d[3]).useControllableState)({prop:n.position,defaultProp:n.defaultPosition||(s.open?0:-1),onChange:n.onPositionChange,strategy:"most-recent-wins"}),T=o(M,2),E=T[0],R=T[1],z=!1===s.open?-1:E,x=s.open,F=P.default.useCallback(function(t){n.dismissOnSnapToBottom&&t===D.length-1?s.setOpen(!1):R(t)},[n.dismissOnSnapToBottom,D.length,R,s.setOpen]);x&&n.dismissOnSnapToBottom&&z===D.length-1&&R(0);var Y=x&&z<0;if(P.default.useEffect(function(){Y&&F(0)},[F,Y]),!(0,r(d[4]).useConfiguration)().animationDriver)throw new Error("\u274c 008");var k,N,H,I=(0,r(d[5]).useConstant)(function(){var n=new Set,t={hasScrollableContent:!1,enabled:!1,y:0,paneY:0,paneMinY:0,scrollStartY:-1,drag:function(){},release:function(){},scrollLock:!1,isParentDragging:!1,onParentDragging:function(t){return n.add(t),function(){n.delete(t)}},setParentDragging:function(o){o!==t.isParentDragging&&(t.isParentDragging=o,n.forEach(function(n){return n(o)}))}};return t}),J=null!==(k=n.forceRemoveScrollEnabled)&&void 0!==k?k:x&&n.modal,L=D[0];return{screenSize:"percent"===B?S/(("number"==typeof L?L:100)/100):C,maxSnapPoint:L,removeScrollEnabled:J,scrollBridge:I,modal:!!n.modal,open:s.open,setOpen:s.setOpen,hidden:!!s.isHidden,contentRef:p,handleRef:f,frameSize:S,setFrameSize:b,dismissOnOverlayPress:null===(N=n.dismissOnOverlayPress)||void 0===N||N,dismissOnSnapToBottom:null!==(H=n.dismissOnSnapToBottom)&&void 0!==H&&H,onOverlayComponent:c.onOverlayComponent,scope:n.__scopeSheet,hasFit:j,position:z,snapPoints:D,snapPointsMode:B,setMaxContentSize:w,setPosition:F,setPositionImmediate:R,onlyShowFrame:!1}}},1648,[32,19,128,1583,1461,1604]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};function s(t,n){if(t>=n)return t;var o=n-t;return n-2*Math.sqrt(o)}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{resisted:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1649,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(n,s,l,f){if(s&&"object"==typeof s||"function"==typeof s){var h=function(u){!c.call(n,u)&&u!==l&&t(n,u,{get:function(){return s[u]},enumerable:!(f=o(s,u))||f.enumerable})};for(var v of u(s))h(v)}return n},l={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(l,{getNativeSheet:function(){return j},setupNativeSheet:function(){return O}}),m.exports=(n=l,s(t({},"__esModule",{value:!0}),n));var f=r(d[0]),h=r(d[1]),v=r(d[2]),p={ios:null};function j(n){return p[n]}function O(n,t){var o=t.ModalSheetView,u=t.ModalSheetViewMainContent;"ios"===n&&(p[n]=function(n){var t=(0,r(d[3]).useSheetOpenState)(n),c=(0,r(d[4]).useSheetProviderProps)(n,t),s=t.open,l=t.setOpen,p=(0,h.useRef)(void 0);return(0,h.useEffect)(function(){var n,t;s?null===(n=p.current)||void 0===n||n.presentModal():null===(t=p.current)||void 0===t||t.dismissModal()},[s]),(0,f.jsx)(f.Fragment,{children:(0,f.jsxs)(r(d[5]).SheetProvider,Object.assign({setHasScrollView:S},c,{onlyShowFrame:!0,children:[(0,f.jsx)(o,{ref:p,onModalDidDismiss:function(){return t=!1,null===(o=n.onOpenChange)||void 0===o||o.call(n,s),void l(t);var t,o},children:(0,f.jsx)(u,{children:(0,f.jsx)(v.View,{style:{flex:1},children:n.children})})}),(0,f.jsx)(r(d[6]).YStack,{position:"absolute",opacity:0,pointerEvents:"none",width:0,height:0,children:n.children})]}))})})}var S=function(){}},1650,[258,128,28,1647,1648,1635,1588]); -__d(function(g,r,i,_a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeSheet","children","onScroll","scrollEnabled"],l=Object.create,c=Object.defineProperty,a=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,v=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var l=function(l){!f.call(e,l)&&l!==n&&c(e,l,{get:function(){return t[l]},enumerable:!(o=a(t,l))||o.enumerable})};for(var s of u(t))l(s)}return e},S={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(S,{SheetScrollView:function(){return y}}),m.exports=(e=S,v(c({},"__esModule",{value:!0}),e));var p=r(d[2]),h=(function(e,t,n){return n=null!=e?l(s(e)):{},v(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),y=h.default.forwardRef(function(e,l){var c=e.__scopeSheet,a=e.children,u=e.onScroll,s=e.scrollEnabled,f=n(e,o),v=(0,r(d[4]).useSheetContext)("SheetScrollView",c),S=v.scrollBridge,y=v.setHasScrollView,b=(0,r(d[5]).useControllableState)({prop:s,defaultProp:!0}),E=t(b,2),P=E[0],Y=E[1],O=h.default.useRef(null),R=function(e){var t,n;null===(n=O.current)||void 0===n||null===(t=n.setNativeProps)||void 0===t||t.call(n,{scrollEnabled:e}),Y(e)},_=h.default.useRef({lastPageY:0,dragAt:0,dys:[],isScrolling:!1,isDraggingScrollArea:!1});(0,h.useEffect)(function(){return y(!0),function(){y(!1)}},[]);var j=P;(0,h.useEffect)(function(){var e;if(r(d[6]).isClient&&O.current){var t=new AbortController,n=null===(e=O.current)||void 0===e?void 0:e.getScrollableNode();if(n){n.addEventListener("touchmove",function(e){S.isParentDragging&&n.scrollTo({top:S.y,behavior:"instant"})},{signal:t.signal,passive:!1});var o=S.onParentDragging(function(e){});return function(){o(),t.abort()}}}},[O]);var w=(0,h.useState)(!0),A=t(w,2),D=A[0],M=A[1],x=(0,h.useRef)(0),C=(0,h.useRef)(0),L=function(){x.current&&C.current&&M(C.current>x.current)};return(0,h.useEffect)(function(){S.hasScrollableContent=D},[D]),(0,p.jsxs)(r(d[7]).ScrollView,Object.assign({onLayout:function(e){x.current=Math.ceil(e.nativeEvent.layout.height),L()},ref:(0,r(d[8]).composeRefs)(O,l),flex:1,scrollEventThrottle:8,onResponderRelease:function(){if(_.current.isDraggingScrollArea){_.current.isDraggingScrollArea=!1,S.scrollStartY=-1,S.scrollLock=!1,_.current.isScrolling=!1,R(!0);var e=0;if(_.current.dys.length){var t=_.current.dys.slice(-10);e=.04*((t.length?t.reduce(function(e,t){return e+t},0):0)/t.length)}_.current.dys=[],S.release({dragAt:_.current.dragAt,vy:e})}},className:"_ovs-contain",scrollEnabled:j,onScroll:function(e){var t=e.nativeEvent.contentOffset.y;S.y=t,r(d[6]).isWeb&&(S.scrollLock=t>0),t>0&&(S.scrollStartY=-1),null==u||u(e)},onStartShouldSetResponder:function(){return S.scrollStartY=-1,_.current.isDraggingScrollArea=!0,j},onMoveShouldSetResponder:function(e){return j},contentContainerStyle:{minHeight:"100%"},onResponderMove:function(e){if(r(d[6]).isWeb){var t=e.nativeEvent.pageY;_.current.isScrolling||-1===S.scrollStartY&&(S.scrollStartY=t,_.current.lastPageY=t);var n=t-S.scrollStartY,o=t-_.current.lastPageY;_.current.lastPageY=t;var l=o<0,c=S.paneY<=S.paneMinY;if(D&&(0===o||l)&&c&&!_.current.isScrolling)return _.current.isScrolling=!0,S.scrollLock=!0,void R(!0);if(!(!_.current.isScrolling&&o>0&&0===S.y)&&S.y>=0)return;R(!1),S.drag(n),_.current.dragAt=n,_.current.dys.push(o),_.current.dys.length>100&&(_.current.dys=_.current.dys.slice(-10))}}},f,{children:[(0,p.jsx)(r(d[6]).View,{position:"absolute",inset:0,pointerEvents:"none",zIndex:-1,onLayout:function(e){C.current=Math.floor(e.nativeEvent.layout.height),L()}}),a]}))})},1651,[19,207,258,128,1635,1583,1461,1652,1525]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1652,[1653]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,u=function(t,u,f,s){if(u&&"object"==typeof u||"function"==typeof u){var p=function(c){!l.call(t,c)&&c!==f&&n(t,c,{get:function(){return u[c]},enumerable:!(s=o(u,c))||s.enumerable})};for(var y of c(u))p(y)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{ScrollView:function(){return p}}),m.exports=(t=f,u(n({},"__esModule",{value:!0}),t));var s=r(d[0]),p=(0,r(d[1]).styled)(s.ScrollView,{name:"ScrollView",scrollEnabled:!0,variants:{fullscreen:{true:r(d[2]).fullscreenStyle}}},{accept:{contentContainerStyle:"style"}})},1653,[28,1466,1588]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useSheet:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(){return(0,r(d[0]).useSheetContext)("",void 0)}},1654,[1635]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(n,t,l,p){if(t&&"object"==typeof t||"function"==typeof t){var s=function(c){!f.call(n,c)&&c!==l&&o(n,c,{get:function(){return t[c]},enumerable:!(p=u(t,c))||p.enumerable})};for(var b of c(t))s(b)}return n},s={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(s,{SheetController:function(){return v}}),m.exports=(n=s,p(o({},"__esModule",{value:!0}),n));var b=r(d[0]),O=(function(n,u,c){return c=null!=n?t(l(n)):{},p(!u&&n&&n.__esModule?c:o(c,"default",{value:n,enumerable:!0}),n)})(r(d[1])),v=function(n){var t=n.children,o=n.onOpenChange,u=n.open,c=n.hidden,l=n.disableDrag,f=(0,r(d[2]).useEvent)(o),p=(0,O.useId)(),s=O.default.useMemo(function(){return{id:p,open:u,hidden:c,disableDrag:l,onOpenChange:f}},[p,f,u,c,l]);return(0,b.jsx)(r(d[3]).SheetControllerContext.Provider,{value:s,children:t})}},1655,[258,128,1461,1644]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1656,[1657]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(t,n,c,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(f){!l.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))b(p)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{Dismissable:function(){return O},DismissableBranch:function(){return y}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t));var p=(function(t,u,f){return f=null!=t?n(c(t)):{},s(!u&&t&&t.__esModule?f:o(f,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=p.default.forwardRef(function(t,n){return t.children}),y=p.default.forwardRef(function(t,n){return t.children})},1657,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1658,[1659,1660]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,p=function(t,n,f,p){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(p=u(n,c))||p.enumerable})};for(var O of c(n))b(O)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{FocusScope:function(){return s}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var O=(function(t,u,c){return c=null!=t?n(f(t)):{},p(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),s=O.default.forwardRef(function(t,n){return t.children})},1659,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,f=function(o,t,n,s){if(t&&"object"==typeof t||"function"==typeof t){var f=function(l){!p.call(o,l)&&l!==n&&u(o,l,{get:function(){return t[l]},enumerable:!(s=c(t,l))||s.enumerable})};for(var b of l(t))f(b)}return o},b={};!(function(o,t){for(var n in t)u(o,n,{get:t[n],enumerable:!0})})(b,{FocusScopeController:function(){return M},FocusScopeControllerProvider:function(){return C},createFocusScopeControllerScope:function(){return S},useFocusScopeControllerContext:function(){return P}}),m.exports=(o=b,f(u({},"__esModule",{value:!0}),o));var O=r(d[1]),v=(function(o,t,c){return c=null!=o?n(s(o)):{},f(!t&&o&&o.__esModule?c:u(c,"default",{value:o,enumerable:!0}),o)})(r(d[2])),F="FocusScopeController",j=t((0,r(d[3]).createContextScope)(F),2),y=j[0],S=j[1],_=t(y(F),2),C=_[0],P=_[1];var M=function(o){var t=o.__scopeFocusScope,n=o.children,u=o.enabled,c=o.loop,l=o.trapped,s=o.onMountAutoFocus,p=o.onUnmountAutoFocus,f=o.forceUnmount,b=o.focusOnIdle,F=(0,r(d[4]).useEvent)(s),j=(0,r(d[4]).useEvent)(p),y=v.useMemo(function(){return{enabled:u,loop:c,trapped:l,onMountAutoFocus:F,onUnmountAutoFocus:j,forceUnmount:f,focusOnIdle:b}},[u,c,l,F,j,f,b]);return(0,O.jsx)(C,Object.assign({scope:t},y,{children:n}))}},1660,[19,258,128,1636,1565]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1661,[1662]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["__scopeAvatar","src","onLoadingStatusChange"],c=["__scopeAvatar","delayMs"],s=["__scopeAvatar","size"],f=Object.create,l=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,b=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,_=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!S.call(t,c)&&c!==o&&l(t,c,{get:function(){return n[c]},enumerable:!(u=v(n,c))||u.enumerable})};for(var s of p(n))c(s)}return t},y={};!(function(t,n){for(var o in n)l(t,o,{get:n[o],enumerable:!0})})(y,{Avatar:function(){return T},AvatarFallback:function(){return M},AvatarFallbackFrame:function(){return E},AvatarFrame:function(){return R},AvatarImage:function(){return P},createAvatarScope:function(){return k}}),m.exports=(t=y,_(l({},"__esModule",{value:!0}),t));var j=r(d[2]),A=(function(t,n,o){return o=null!=t?f(b(t)):{},_(!n&&t&&t.__esModule?o:l(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="Avatar",O=(0,r(d[4]).createContextScope)(h),w=o(O,2),x=w[0],k=w[1],z=x(h),I=o(z,2),N=I[0],L=I[1],F="AvatarImage",P=A.forwardRef(function(t,c){var s,f=t.__scopeAvatar,l=t.src,v=t.onLoadingStatusChange,p=void 0===v?function(){}:v,b=n(t,u),S=L(F,f),_=A.useState("idle"),y=o(_,2),h=y[0],O=y[1],w=(0,r(d[5]).getVariableValue)(null===(s=(0,r(d[6]).getShapeSize)(S.size,{tokens:(0,r(d[5]).getTokens)()}))||void 0===s?void 0:s.width);return A.useEffect(function(){O("idle")},[JSON.stringify(l)]),A.useEffect(function(){p(h),S.onImageLoadingStatusChange(h)},[h]),(0,j.jsx)(r(d[7]).YStack,{fullscreen:!0,zIndex:1,children:(0,j.jsx)(r(d[8]).Image,Object.assign({fullscreen:!0},"number"==typeof w&&!Number.isNaN(w)&&{width:w,height:w},b,{ref:c,src:l,onError:function(){O("error")},onLoad:function(){O("loaded")}}))})});P.displayName=F;var C="AvatarFallback",E=(0,r(d[5]).styled)(r(d[7]).YStack,{name:C,position:"absolute",fullscreen:!0,zIndex:0}),M=E.extractable(A.forwardRef(function(t,u){var s=t.__scopeAvatar,f=t.delayMs,l=n(t,c),v=L(C,s),p=A.useState(void 0===f),b=o(p,2),S=b[0],_=b[1];return A.useEffect(function(){if(void 0!==f){var t=setTimeout(function(){return _(!0)},f);return function(){return clearTimeout(t)}}},[f]),S&&"loaded"!==v.imageLoadingStatus?(0,j.jsx)(E,Object.assign({},l,{ref:u})):null}));M.displayName=C;var R=(0,r(d[5]).styled)(r(d[6]).Square,{name:h,position:"relative",overflow:"hidden"}),T=(0,r(d[9]).withStaticProperties)(A.forwardRef(function(t,u){var c=t.__scopeAvatar,f=t.size,l=void 0===f?"$true":f,v=n(t,s),p=A.useState("idle"),b=o(p,2),S=b[0],_=b[1];return(0,j.jsx)(N,{size:l,scope:c,imageLoadingStatus:S,onImageLoadingStatusChange:_,children:(0,j.jsx)(R,Object.assign({size:l},v,{ref:u}))})}),{Image:P,Fallback:M});T.displayName=h},1662,[207,19,258,128,1636,1461,1663,1588,1667,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},1663,[1664,1666,1665]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))b(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Square:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Square",alignItems:"center",justifyContent:"center",variants:{size:{"...size":r(d[2]).getShapeSize,":number":r(d[2]).getShapeSize}}},{memo:!0})},1664,[1466,1588,1665]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var h of u(f))s(h)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{getShapeSize:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t,n){var o,u,c=n.tokens,f=null!==(o=c.size[t])&&void 0!==o?o:t,l=null!==(u=c.size[t])&&void 0!==u?u:t;return{width:f,height:l,minWidth:f,maxWidth:f,maxHeight:l,minHeight:l}}},1665,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Circle:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).styled)(r(d[1]).Square,{name:"Circle",circular:!0})},1666,[1466,1664]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1667,[1668]); -__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var t,o=r(d[1]),n=r(d[2]),u=["src","source","objectFit"],c=Object.create,f=Object.defineProperty,h=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,y=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){!b.call(t,c)&&c!==n&&f(t,c,{get:function(){return o[c]},enumerable:!(u=h(o,c))||u.enumerable})};for(var s of l(o))c(s)}return t},p={};!(function(t,o){for(var n in o)f(t,n,{get:o[n],enumerable:!0})})(p,{Image:function(){return O}}),m.exports=(t=p,y(f({},"__esModule",{value:!0}),t));var j=r(d[3]),v=((function(t,o,n){n=null!=t?c(s(t)):{},y(!o&&t&&t.__esModule?n:f(n,"default",{value:t,enumerable:!0}),t)})(r(d[4])),r(d[5])),O=(0,r(d[6]).styled)(v.Image,{name:"Image"}).styleable(function(t,c){var f=(0,r(d[6]).usePropsAndStyle)(t),h=n(f,2),l=h[0],s=h[1],b=l.src,y=l.source,p=l.objectFit,O=o(l,u),I="string"==typeof b?Object.assign({uri:b},r(d[7]).isWeb&&{width:l.width||(null==s?void 0:s.width),height:l.height||(null==s?void 0:s.height)}):null!=y?y:b;if(I&&"object"==typeof I){var w,P,_,z;if(!Array.isArray(I)&&"number"==typeof I.uri&&(I=I.uri,y&&"object"==typeof y&&!Array.isArray(y)))null!==(_=(w=s).width)&&void 0!==_||(w.width=y.width),null!==(z=(P=s).height)&&void 0!==z||(P.height=y.height);I.default&&(I=I.default)}return(0,j.jsx)(v.Image,Object.assign({resizeMode:p,ref:c,source:I,style:s},O))});O.getSize=v.Image.getSize,O.getSizeWithHeaders=v.Image.getSizeWithHeaders,O.prefetch=v.Image.prefetch,O.prefetchWithMetadata=v.Image.prefetchWithMetadata,O.abortPrefetch=v.Image.abortPrefetch,O.queryCache=v.Image.queryCache},1668,[367,207,19,258,128,28,1461,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1669,[1670]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=r(d[1]),l=r(d[2]),s=["textProps"],c=["icon","iconAfter","space","spaceFlex","scaleIcon","scaleSpace","separator","noTextWrap","fontFamily","fontSize","fontWeight","fontStyle","letterSpacing","tag","ellipse","maxFontSizeMultiplier"],u=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,v=function(t,o,n,l){if(o&&"object"==typeof o||"function"==typeof o){var s=function(s){!b.call(t,s)&&s!==n&&u(t,s,{get:function(){return o[s]},enumerable:!(l=p(o,s))||l.enumerable})};for(var c of f(o))s(c)}return t},S={};!(function(t,o){for(var n in o)u(t,n,{get:o[n],enumerable:!0})})(S,{Button:function(){return A},ButtonContext:function(){return h},ButtonFrame:function(){return z},ButtonIcon:function(){return T},ButtonText:function(){return C},useButton:function(){return B}}),m.exports=(t=S,v(u({},"__esModule",{value:!0}),t));var x=r(d[3]),y=r(d[4]),h=(0,r(d[5]).createStyledContext)({color:void 0,ellipse:void 0,fontFamily:void 0,fontSize:void 0,fontStyle:void 0,fontWeight:void 0,letterSpacing:void 0,maxFontSizeMultiplier:void 0,size:void 0,textAlign:void 0,variant:void 0}),z=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:"Button",tag:"button",context:h,role:"button",focusable:!0,variants:{unstyled:{false:{size:"$true",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",hoverTheme:!0,pressTheme:!0,backgrounded:!0,borderWidth:1,borderColor:"transparent",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},variant:{outlined:{backgroundColor:"transparent",borderWidth:2,borderColor:"$borderColor",hoverStyle:{backgroundColor:"transparent",borderColor:"$borderColorHover"},pressStyle:{backgroundColor:"transparent",borderColor:"$borderColorPress"},focusVisibleStyle:{backgroundColor:"transparent",borderColor:"$borderColorFocus"}}},size:{"...size":r(d[7]).getButtonSized,":number":r(d[7]).getButtonSized},disabled:{true:{pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),C=(0,r(d[5]).styled)(r(d[8]).SizableText,{name:"Button",context:h,variants:{unstyled:{false:{userSelect:"none",cursor:"pointer",flexGrow:0,flexShrink:1,ellipse:!0,color:"$color"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),T=function(t){var o=t.children,n=t.scaleIcon,l=void 0===n?1:n,s=(0,y.useContext)(h),c=s.size,u=s.color,p=("number"==typeof c?.5*c:(0,r(d[9]).getFontSize)(c))*l;return(0,r(d[10]).useGetThemedIcon)({size:p,color:u})(o)},F=z.styleable(function(t,o){var n=B(t).props;return(0,x.jsx)(z,Object.assign({"data-disable-theme":!0},n,{ref:o}))}),A=(0,r(d[11]).withStaticProperties)(F,{Text:C,Icon:T});function B(t){var u=t.textProps,p=l(t,s),f=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{Text:A.Text}).Text,b=void 0===f?A.Text:f,v=(0,y.useContext)(r(d[6]).ButtonNestingContext),S=(0,r(d[5]).useProps)(p,{noNormalize:!0,noExpand:!0}),h=S.icon,z=S.iconAfter,T=S.space,F=S.spaceFlex,B=S.scaleIcon,I=void 0===B?1:B,P=S.scaleSpace,$=void 0===P?.66:P,j=S.separator,k=S.noTextWrap,W=S.fontFamily,O=S.fontSize,w=S.fontWeight,E=S.fontStyle,M=S.letterSpacing,D=S.tag,V=S.ellipse,_=S.maxFontSizeMultiplier,G=l(S,c),N=S.size||(S.unstyled?void 0:"$true"),H=S.color,L=("number"==typeof N?.5*N:(0,r(d[9]).getFontSize)(N,{font:"$"===(null==W?void 0:W[0])?W:void 0}))*I,U=(0,r(d[10]).useGetThemedIcon)({size:L,color:H}),K=[h,z].map(U),R=n(K,2),q=R[0],J=R[1],Q=null!=T?T:(0,r(d[5]).getVariableValue)(L)*$,X=k?[p.children]:(0,r(d[8]).wrapChildrenInText)(b,{children:p.children,color:H,fontFamily:W,fontSize:O,textProps:u,fontWeight:w,fontStyle:E,letterSpacing:M,ellipse:V,maxFontSizeMultiplier:_},b===C&&!0!==S.unstyled?{unstyled:"1"===process.env.TAMAGUI_HEADLESS,size:N}:void 0),Y=(0,r(d[5]).spacedChildren)({space:!1===Q?0:1==Q?"$true":Q,spaceFlex:F,ensureKeys:!0,separator:j,direction:"column"===S.flexDirection||"column-reverse"===S.flexDirection?"vertical":"horizontal",children:[q].concat(o(X),[J])});return{spaceSize:Q,isNested:v,props:Object.assign({size:N},p.disabled&&{focusable:void 0,focusVisibleStyle:{borderColor:"$background"}},{tag:null!=D?D:v?"span":"link"===S.accessibilityRole||"link"===S.role?"a":"button"},G,{children:(0,x.jsx)(r(d[6]).ButtonNestingContext.Provider,{value:!0,children:Y}),disableClassName:!0})}}},1670,[32,19,207,258,128,1466,1588,1593,1609,1671,1673,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1671,[1672]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,l=function(n,l,c,s){if(l&&"object"==typeof l||"function"==typeof l){var v=function(u){!f.call(n,u)&&u!==c&&t(n,u,{get:function(){return l[u]},enumerable:!(s=o(l,u))||s.enumerable})};for(var b of u(l))v(b)}return n},c={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(c,{getFontSize:function(){return s},getFontSizeToken:function(){return b},getFontSizeVariable:function(){return v}}),m.exports=(n=c,l(t({},"__esModule",{value:!0}),n));var s=function(n,t){var o=v(n,t);return(0,r(d[0]).isVariable)(o)?+o.val:o?+o:16},v=function(n,t){var o=b(n,t);if(!o)return n;var u=(0,r(d[0]).getConfig)(),f=u.fontsParsed[(null==t?void 0:t.font)||u.defaultFontToken];return null==f?void 0:f.size[o]},b=function(n,t){if("number"==typeof n)return null;var o,u,f=(null==t?void 0:t.relativeSize)||0,l=(0,r(d[0]).getConfig)(),c=l.fontsParsed[(null==t?void 0:t.font)||l.defaultFontToken],s=(null==c?void 0:c.size)||l.tokensParsed.size,v=null!==(o="$true"!==n||"$true"in s?n:"$4")&&void 0!==o?o:"$true"in s?"$true":"$4",b=Object.keys(s),p=b.indexOf(v);return-1===p&&v.endsWith(".5")&&(p=b.indexOf(v.replace(".5",""))),null!==(u=b[Math.min(Math.max(0,p+f),b.length-1)])&&void 0!==u?u:v}},1672,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1673,[1476,1674,1675,1676]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(e,c,f,p){if(c&&"object"==typeof c||"function"==typeof c){var b=function(o){!u.call(e,o)&&o!==f&&t(e,o,{get:function(){return c[o]},enumerable:!(p=n(c,o))||p.enumerable})};for(var l of o(c))b(l)}return e},f={};!(function(e,n){for(var o in n)t(e,o,{get:n[o],enumerable:!0})})(f,{prevent:function(){return p}}),m.exports=(e=f,c(t({},"__esModule",{value:!0}),e));var p=function(e){return[e.preventDefault(),e.stopPropagation()]}},1674,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,v){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(v=o(f,u))||v.enumerable})};for(var b of u(f))p(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{useCurrentColor:function(){return v}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var v=function(t){var n,o,u=(0,r(d[0]).useTheme)();return t?(0,r(d[0]).getVariable)(t):(null===(n=u[t])||void 0===n?void 0:n.get())||(null===(o=u.color)||void 0===o?void 0:o.get())}},1675,[1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,s=function(t,n,l,s){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!f.call(t,c)&&c!==l&&o(t,c,{get:function(){return n[c]},enumerable:!(s=u(n,c))||s.enumerable})};for(var b of c(n))p(b)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{useGetThemedIcon:function(){return O}}),m.exports=(t=p,s(o({},"__esModule",{value:!0}),t));var b=(function(t,u,c){return c=null!=t?n(l(t)):{},s(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(t){var n=(0,r(d[1]).useCurrentColor)(t.color);return function(o){return o&&(b.default.isValidElement(o)?b.default.cloneElement(o,Object.assign({},t,{color:n},o.props)):b.default.createElement(o,t))}}},1676,[128,1675]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1677,[1678]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,c,f){if(l&&"object"==typeof l||"function"==typeof l){var p=function(s){!u.call(t,s)&&s!==c&&n(t,s,{get:function(){return l[s]},enumerable:!(f=o(l,s))||f.enumerable})};for(var v of s(l))p(v)}return t},c={};!(function(t,o){for(var s in o)n(t,s,{get:o[s],enumerable:!0})})(c,{Card:function(){return S},CardBackground:function(){return b},CardFooter:function(){return y},CardFrame:function(){return p},CardHeader:function(){return v}}),m.exports=(t=c,l(n({},"__esModule",{value:!0}),t));var f=(0,r(d[0]).createStyledContext)({size:"$true"}),p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Card",context:f,variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",position:"relative"}},size:{"...size":function(t,n){var o;return{borderRadius:null!==(o=n.tokens.radius[t])&&void 0!==o?o:t}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CardHeader",context:f,variants:{unstyled:{false:{zIndex:10,backgroundColor:"transparent",marginBottom:"auto"}},size:{"...size":function(t,n){var o;return{padding:null!==(o=n.tokens.space[t])&&void 0!==o?o:t}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[0]).styled)(v,{name:"CardFooter",variants:{unstyled:{false:{zIndex:5,flexDirection:"row",marginTop:"auto",marginBottom:0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CardBackground",variants:{unstyled:{false:{zIndex:0,fullscreen:!0,overflow:"hidden",pointerEvents:"none",padding:0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),S=(0,r(d[0]).withStaticProperties)(p,{Header:v,Footer:y,Background:b})},1678,[1466,1588]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var l of c(f))s(l)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},b={};!(function(t,n){for(var c in n)o(t,c,{get:n[c],enumerable:!0})})(b,{Checkbox:function(){return s}}),m.exports=(t=b,f(o({},"__esModule",{value:!0}),t)),p(b,r(d[0]),m.exports),p(b,r(d[1]),m.exports),p(b,r(d[2]),m.exports);var s=(0,r(d[0]).createCheckbox)({Frame:r(d[1]).CheckboxFrame,Indicator:r(d[1]).CheckboxIndicatorFrame})},1679,[1680,1681,1682]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["scaleSize","sizeAdjust","scaleIcon","checked","defaultChecked","onCheckedChange","native","unstyled"],c=["children","forceMount","disablePassStyles","unstyled"],u=Object.create,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,h=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,x=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&s(t,c,{get:function(){return n[c]},enumerable:!(l=f(n,c))||l.enumerable})};for(var u of b(n))c(u)}return t},y={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(y,{CheckboxContext:function(){return k},createCheckbox:function(){return z}}),m.exports=(t=y,x(s({},"__esModule",{value:!0}),t));var C=r(d[2]),p=(function(t,n,o){return o=null!=t?u(h(t)):{},x(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),k=p.default.createContext({checked:!1,disabled:!1}),j=function(t){t.context||(t.context=k)};function z(t){t.disableActiveTheme;var u=t.Frame,s=void 0===u?r(d[4]).CheckboxFrame:u,f=t.Indicator,b=void 0===f?r(d[4]).CheckboxIndicatorFrame:f;j(s),j(b);var h=s.styleable(function(t,c){var u,f,b=t.scaleSize,h=void 0===b?.45:b,v=t.sizeAdjust,x=void 0===v?0:v,y=t.scaleIcon,j=t.checked,z=t.defaultChecked,P=t.onCheckedChange,I=t.native,O=t.unstyled,S=void 0!==O&&O,w=o(t,l),M=(0,r(d[5]).useProps)(w),_=p.default.useContext(r(d[6]).CheckboxStyledContext),A=0,F=0;S||(A=(0,r(d[5]).getVariableValue)((0,r(d[7]).getSize)(null!==(f=null!==(u=M.size)&&void 0!==u?u:null==_?void 0:_.size)&&void 0!==f?f:"$true",{shift:x})),F=h?Math.round(A*h):A);var E=(0,r(d[8]).useControllableState)({prop:j,defaultProp:z,onChange:P}),T=n(E,2),V=T[0],N=void 0!==V&&V,R=T[1],$=(0,r(d[9]).useCheckbox)(M,[N,R],c),D=$.checkboxProps,G=$.checkboxRef,q=$.bubbleInput;if(p.default.useEffect(function(){if(w.id&&!w.disabled)return(0,r(d[10]).registerFocusable)(w.id,{focusAndSelect:function(){null==R||R(function(t){return!t})},focus:function(){}})},[w.id,w.disabled]),"web"===(0,r(d[5]).shouldRenderNativePlatform)(I))return(0,C.jsx)("input",{type:"checkbox",defaultChecked:!(0,r(d[9]).isIndeterminate)(N)&&N,tabIndex:-1,ref:G,disabled:D.disabled,style:Object.assign({appearance:"auto",accentColor:"var(--color6)"},D.style)});var B,H,J,K=(0,p.useMemo)(function(){return{checked:N,disabled:D.disabled}},[N,D.disabled]);return(0,C.jsx)(k.Provider,{value:K,children:(0,C.jsxs)(r(d[6]).CheckboxStyledContext.Provider,{size:null!==(H=null!==(B=M.size)&&void 0!==B?B:null==_?void 0:_.size)&&void 0!==H?H:"$true",scaleIcon:null!==(J=null!=y?y:null==_?void 0:_.scaleIcon)&&void 0!==J?J:1,children:[(0,C.jsx)(s,Object.assign({},!S&&{width:F,height:F},{tag:"button",ref:G,unstyled:S},!1===S&&{size:F,theme:N?"active":null},{checked:N,disabled:D.disabled},D,{style:D.style,children:M.children})),q]})})}),v=b.styleable(function(t,n){var l=t.children,u=t.forceMount,s=t.disablePassStyles,f=t.unstyled,h=void 0!==f&&f,v=o(t,c),x=p.default.useContext(r(d[6]).CheckboxStyledContext),y=l;if(!h){var j=("number"==typeof x.size?.65*x.size:(0,r(d[11]).getFontSize)(x.size))*x.scaleIcon,z=(0,r(d[5]).useTheme)(),P=(0,r(d[12]).useGetThemedIcon)({size:j,color:z.color});y=p.default.Children.toArray(l).map(function(t){return s||!p.default.isValidElement(t)?t:P(t)})}var I=p.default.useContext(k);return u||(0,r(d[9]).isIndeterminate)(I.checked)||!0===I.checked?(0,C.jsx)(b,Object.assign({pointerEvents:"none"},v,{ref:n,children:y})):null});return(0,r(d[5]).withStaticProperties)(h,{Indicator:v})}},1680,[19,207,258,128,1681,1461,1682,1594,1583,1683,1687,1671,1673]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(o,c,s,b){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!u.call(o,l)&&l!==s&&t(o,l,{get:function(){return c[l]},enumerable:!(b=n(c,l))||b.enumerable})};for(var C of l(c))f(C)}return o},s={};!(function(o,n){for(var l in n)t(o,l,{get:n[l],enumerable:!0})})(s,{CheckboxFrame:function(){return f},CheckboxIndicatorFrame:function(){return b}}),m.exports=(o=s,c(t({},"__esModule",{value:!0}),o));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"CheckboxIndicator",context:r(d[2]).CheckboxStyledContext,variants:{unstyled:{false:{}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"Checkbox",tag:"button",context:r(d[2]).CheckboxStyledContext,variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",justifyContent:"center",pressTheme:!0,focusable:!0,borderWidth:1,borderColor:"$borderColor",hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"}}},disabled:{true:{pointerEvents:"none",userSelect:"none",cursor:"not-allowed",hoverStyle:{borderColor:"$borderColor",backgroundColor:"$background"},pressStyle:{borderColor:"$borderColor",backgroundColor:"$background"},focusStyle:{outlineWidth:0}}},size:{"...size":function(o){return{borderRadius:(0,r(d[0]).getVariableValue)((0,r(d[3]).getSize)(o))/8}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1681,[1461,1588,1682,1594]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{CheckboxStyledContext:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=(0,r(d[0]).createStyledContext)({size:"$true",scaleIcon:1})},1682,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1683,[1684,1691]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["labelledBy","name","required","disabled","value","onCheckedChange"],l=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,b=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,v=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(l){!p.call(t,l)&&l!==o&&s(t,l,{get:function(){return n[l]},enumerable:!(u=c(n,l))||u.enumerable})};for(var f of b(n))l(f)}return t},y={};!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(y,{useCheckbox:function(){return P}}),m.exports=(t=y,v(s({},"__esModule",{value:!0}),t));var h=r(d[2]),O=(function(t,n,o){return o=null!=t?l(f(t)):{},v(!n&&t&&t.__esModule?o:s(o,"default",{value:t,enumerable:!0}),t)})(r(d[3]));function P(t,l,s){var c=o(l,2),b=c[0],f=c[1],p=t.labelledBy,v=t.name,y=t.required,P=t.disabled,j=t.value,k=void 0===j?"on":j,x=(t.onCheckedChange,n(t,u)),C=O.default.useState(null),_=o(C,2),w=_[0],D=_[1],I=(0,r(d[4]).useComposedRefs)(s,D),M=O.default.useRef(!1),S=!!r(d[5]).isWeb&&(!w||!!w.closest("form")),q=(0,r(d[6]).useLabelContext)(w),B=p||q,E=t.onKeyDown,H=(0,O.useMemo)(function(){return(0,r(d[7]).composeEventHandlers)(E,function(t){"Enter"===t.key&&t.preventDefault()})},[E]),R=(0,O.useMemo)(function(){return(0,r(d[7]).composeEventHandlers)(t.onPress,function(t){f(function(t){return!!(0,r(d[8]).isIndeterminate)(t)||!t}),S&&"isPropagationStopped"in t&&(M.current=t.isPropagationStopped(),M.current||t.stopPropagation())})},[S]);return{bubbleInput:r(d[5]).isWeb&&S?(0,h.jsx)(r(d[9]).BubbleInput,{isHidden:!0,control:w,bubbles:!M.current,name:v,value:k,checked:b,required:y,disabled:P}):null,checkboxRef:I,checkboxProps:Object.assign({role:"checkbox","aria-labelledby":B,"aria-checked":(0,r(d[8]).isIndeterminate)(b)?"mixed":b},x,r(d[5]).isWeb&&{type:"button",value:k,"data-state":(0,r(d[8]).getState)(b),"data-disabled":P?"":void 0,disabled:P,onKeyDown:P?void 0:H},{onPress:P?void 0:R})}}},1684,[207,19,258,128,1525,1463,1685,1476,1691,1692]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1685,[1686]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["htmlFor","id"],u=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var u=function(u){!v.call(t,u)&&u!==o&&c(t,u,{get:function(){return n[u]},enumerable:!(l=s(n,u))||l.enumerable})};for(var b of f(n))u(b)}return t},y={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(y,{Label:function(){return L},LabelFrame:function(){return z},useLabelContext:function(){return R}}),m.exports=(t=y,p(c({},"__esModule",{value:!0}),t));var j=r(d[2]),O=(function(t,n,o){return o=null!=t?u(b(t)):{},p(!n&&t&&t.__esModule?o:c(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="Label",P=o((0,r(d[4]).createContext)(h,{id:void 0,controlRef:{current:null}}),2),x=P[0],F=P[1],z=(0,r(d[5]).styled)(r(d[6]).SizableText,{name:"Label",tag:"label",variants:{unstyled:{false:{size:"$true",color:"$color",backgroundColor:"transparent",display:"flex",alignItems:"center",userSelect:"none",cursor:"default",pressStyle:{color:"$colorPress"}}},size:{"...size":function(t,n){var o=(0,r(d[7]).getButtonSized)(t,n),l=null==o?void 0:o.height,u=(0,r(d[8]).getFontSized)(t,n);return Object.assign({},u,{lineHeight:l?n.tokens.size[l]:void 0})}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=O.forwardRef(function(t,o){var u=t.htmlFor,c=t.id,s=n(t,l),f=O.useRef(null),b=O.useRef(null),v=(0,r(d[9]).useComposedRefs)(o,b),p=O.useId(),y=null!=c?c:p;return r(d[10]).isWeb&&O.useEffect(function(){if(u){var t=document.getElementById(u);if(b.current&&t){var n=function(){return t.getAttribute("aria-labelledby")},o=[y,n()].filter(Boolean).join(" ");return t.setAttribute("aria-labelledby",o),f.current=t,function(){var o;if(y){var l=null===(o=n())||void 0===o?void 0:o.replace(y,"");""===l?t.removeAttribute("aria-labelledby"):l&&t.setAttribute("aria-labelledby",l)}}}}},[y,u]),(0,j.jsx)(x,{id:y,controlRef:f,children:(0,j.jsx)(z,Object.assign({id:y,htmlFor:u},s,{ref:v,onMouseDown:function(n){var o;null===(o=t.onMouseDown)||void 0===o||o.call(t,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault()},onPress:function(n){var o;if(null===(o=t.onPress)||void 0===o||o.call(t,n),r(d[10]).isWeb){if(u||!f.current||n.defaultPrevented)return;var l=f.current.contains(n.target),c=!0===n.isTrusted;!l&&c&&(f.current.click(),f.current.focus())}else t.htmlFor&&(0,r(d[11]).focusFocusable)(t.htmlFor)}}))})});A.displayName=h;var L=z.extractable((0,r(d[5]).themeable)(A)),R=function(t){var n=F("LabelConsumer"),o=n.controlRef;return O.useEffect(function(){t&&(o.current=t)},[t,o]),n.id}},1686,[207,19,258,128,1636,1466,1609,1593,1611,1525,1463,1687]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports)},1687,[1688,1689,1690]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var p of u(f))b(p)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{focusFocusable:function(){return v},registerFocusable:function(){return b},unregisterFocusable:function(){return p}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l=new Map,b=function(t,n){return l.set(t,n),function(){l.delete(t)}},p=function(t){l.delete(t)},v=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=l.get(t);o&&(n||!o.focusAndSelect?o.focus():o.focusAndSelect())}},1688,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(t,n,f,s){if(n&&"object"==typeof n||"function"==typeof n){var b=function(c){!l.call(t,c)&&c!==f&&u(t,c,{get:function(){return n[c]},enumerable:!(s=o(n,c))||s.enumerable})};for(var p of c(n))b(p)}return t},b={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(b,{useFocusable:function(){return v}}),m.exports=(t=b,s(u({},"__esModule",{value:!0}),t));var p=(function(t,o,c){return c=null!=t?n(f(t)):{},s(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function v(t){var n=t.isInput,u=t.props,o=t.ref,c=u.id,f=u.onChangeText,l=u.value,s=u.defaultValue,b=p.default.useRef(l||s||""),v=p.default.useRef(void 0),O=p.default.useCallback(function(t){t.focus(),t.setSelection&&"string"==typeof b.current&&t.setSelection(0,b.current.length)},[]),y=p.default.useCallback(function(t){var u;!c||!t||(null===(u=v.current)||void 0===u||u.call(v),v.current=(0,r(d[1]).registerFocusable)(c,Object.assign({focus:t.focus},n&&{focusAndSelect:function(){return O(t)}})))},[c,n,O]),j=p.default.useCallback(function(t){t&&y(t)},[y]),_=(0,r(d[2]).useEvent)(function(t){b.current=t,null==f||f(t)});return p.default.useEffect(function(){return function(){var t;null===(t=v.current)||void 0===t||t.call(v)}},[]),{ref:p.default.useMemo(function(){return(0,r(d[3]).composeRefs)(o,j)},[o,j]),onChangeText:_}}},1689,[128,1688,1466,1525]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1690,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p={};function b(t){return"indeterminate"===t}function s(t){return b(t)?"indeterminate":t?"checked":"unchecked"}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{getState:function(){return s},isIndeterminate:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1691,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["checked","bubbles","control","isHidden"],c=Object.create,u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!f.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=s(n,l))||c.enumerable})};for(var p of l(n))b(p)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{BubbleInput:function(){return j}}),m.exports=(t=v,p(u({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,o){return o=null!=t?c(b(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),j=function(t){var c=t.checked,u=t.bubbles,s=void 0===u||u,l=(t.control,t.isHidden),b=n(t,o),f=O.useRef(null),p=(0,r(d[3]).usePrevious)(c);return O.useEffect(function(){var t=f.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"checked").set;if(p!==c&&o){var u=new Event("click",{bubbles:s});t.indeterminate=(0,r(d[4]).isIndeterminate)(c),o.call(t,!(0,r(d[4]).isIndeterminate)(c)&&c),t.dispatchEvent(u)}},[p,c,s]),(0,y.jsx)("input",Object.assign({type:"checkbox",defaultChecked:!(0,r(d[4]).isIndeterminate)(c)&&c},b,{tabIndex:-1,ref:f,"aria-hidden":l,style:Object.assign({},l?{position:"absolute",pointerEvents:"none",opacity:0,margin:0}:{appearance:"auto",accentColor:"var(--color6)"},t.style)}))}},1692,[207,258,128,1693,1691]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,u=Object.create,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,v=function(t,u,f,v){if(u&&"object"==typeof u||"function"==typeof u){var s=function(c){!l.call(t,c)&&c!==f&&n(t,c,{get:function(){return u[c]},enumerable:!(v=o(u,c))||v.enumerable})};for(var p of c(u))s(p)}return t},s={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(s,{usePrevious:function(){return b}}),m.exports=(t=s,v(n({},"__esModule",{value:!0}),t));var p=(function(t,o,c){return c=null!=t?u(f(t)):{},v(!o&&t&&t.__esModule?c:n(c,"default",{value:t,enumerable:!0}),t)})(r(d[0]));function b(t){var u=p.useRef({value:t,previous:t});return p.useMemo(function(){return u.current.value!==t&&(u.current.previous=u.current.value,u.current.value=t),u.current.previous},[t])}},1693,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1694,[1695]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeForm","children","onPress"],c=["onSubmit"],u=Object.defineProperty,s=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.prototype.hasOwnProperty,l=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var c=function(c){!b.call(e,c)&&c!==n&&u(e,c,{get:function(){return t[c]},enumerable:!(o=s(t,c))||o.enumerable})};for(var l of f(t))c(l)}return e},p={};!(function(e,t){for(var n in t)u(e,n,{get:t[n],enumerable:!0})})(p,{Form:function(){return T},FormFrame:function(){return j},FormProvider:function(){return O},FormTrigger:function(){return h},useFormContext:function(){return P}}),m.exports=(e=p,l(u({},"__esModule",{value:!0}),e));var v=r(d[2]),F="Form",j=(0,r(d[3]).styled)(r(d[3]).Stack,{name:F,tag:"form"}),y=n((0,r(d[4]).createContextScope)(F),1),_=n((0,y[0])(F),2),O=_[0],P=_[1],S="FormTrigger",x=(0,r(d[3]).styled)(r(d[3]).View,{name:S}),h=x.styleable(function(e,n){var c=e.__scopeForm,u=e.children,s=e.onPress,f=t(e,o),b=P(S,c);return(0,v.jsx)(x,Object.assign({tag:"button"},f,{ref:n,onPress:(0,r(d[5]).composeEventHandlers)(s,b.onSubmit),children:u}))}),w=j.extractable(function(e){var n=e.onSubmit,o=t(e,c);return(0,v.jsx)(O,{scope:o.__scopeForm,onSubmit:n,children:(0,v.jsx)(j,Object.assign({},o,{onSubmit:function(e){return e.preventDefault()}}))})}),T=(0,r(d[5]).withStaticProperties)(w,{Trigger:h})},1695,[207,19,258,1461,1636,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1696,[1697]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,i=r(d[0]),n=r(d[1]),o=["__scopeGroup","children","space","size","spaceDirection","separator","scrollable","axis","orientation","disabled","disablePassBorderRadius","borderRadius","forceUseItem"],s=Object.create,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,i,n,o){if(i&&"object"==typeof i||"function"==typeof i){var s=function(s){!p.call(t,s)&&s!==n&&l(t,s,{get:function(){return i[s]},enumerable:!(o=u(i,s))||o.enumerable})};for(var f of c(i))s(f)}return t},v={};!(function(t,i){for(var n in i)l(t,n,{get:i[n],enumerable:!0})})(v,{Group:function(){return C},GroupFrame:function(){return z},XGroup:function(){return F},YGroup:function(){return B},useGroupItem:function(){return V}}),m.exports=(t=v,b(l({},"__esModule",{value:!0}),t));var h=r(d[2]),j=(function(t,i,n){return n=null!=t?s(f(t)):{},b(!i&&t&&t.__esModule?n:l(n,"default",{value:t,enumerable:!0}),t)})(r(d[3])),y=r(d[4]),I="Group",O=(0,r(d[5]).createContextScope)(I),R=n(O,2),x=R[0],G=(R[1],x(I)),P=n(G,2),_=P[0],w=P[1],z=(0,r(d[6]).styled)(r(d[7]).ThemeableStack,{name:"GroupFrame",variants:{unstyled:{false:{size:"$true"}},size:function(t,i){var n,o,s=i.tokens;return{borderRadius:null!==(o=null!==(n=s.radius[t])&&void 0!==n?n:t)&&void 0!==o?o:s.radius.$true}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}});function E(t){return(0,r(d[8]).withStaticProperties)(z.styleable(function(s,l){var u=(0,r(d[6]).useProps)(s),c=u.__scopeGroup,f=u.children,p=u.space,b=u.size,v=void 0===b?"$true":b,y=u.spaceDirection,I=u.separator,O=(u.scrollable,u.axis),R=void 0===O?t?"vertical":"horizontal":O,x=u.orientation,G=void 0===x?R:x,P=u.disabled,w=u.disablePassBorderRadius,E=u.borderRadius,S=u.forceUseItem,V=i(u,o),C="vertical"===G,B=(0,r(d[9]).useControllableState)({defaultProp:S?1:0}),F=n(B,2),D=F[0],M=F[1],T=D>0,U=null!=E?E:v?(0,r(d[6]).getVariableValue)((0,r(d[6]).getTokens)().radius[v])-1:void 0,$=null!=w?w:!(void 0!==U),H=j.default.Children.toArray(f),N=T?j.default.Children.toArray(f).filter(j.default.isValidElement):H.map(function(t,i){if(!j.default.isValidElement(t)||t.type===j.default.Fragment)return t;var n,o=null!==(n=t.props.disabled)&&void 0!==n?n:P,s=0===i,l=i===H.length-1,u=!0===$?null:k({isFirst:s,isLast:l,radius:U,vertical:C,disable:$}),c=Object.assign({disabled:o},u);return A(t,c)}),X=(0,r(d[10]).useIndexedChildren)((0,r(d[6]).spacedChildren)({direction:y,separator:I,space:p,children:N})),Y=j.default.useCallback(function(){return M(function(t){return t+1})},[]),q=j.default.useCallback(function(){return M(function(t){return t-1})},[]);return(0,h.jsx)(_,{disablePassBorderRadius:$,vertical:"vertical"===G,radius:U,disabled:P,onItemMount:Y,onItemUnmount:q,scope:c,children:(0,h.jsx)(z,Object.assign({ref:l,size:v,flexDirection:"horizontal"===G?"row":"column",borderRadius:E},V,{children:L(Object.assign({},u,{orientation:G}),X)}))})}),{Item:S})}var S=j.default.forwardRef(function(t,i){var n=t.__scopeGroup,o=t.children,s=t.forcePlacement,l=V({disabled:!!j.default.isValidElement(o)&&o.props.disabled},s,n);return j.default.isValidElement(o)&&o.type!==j.default.Fragment?j.default.cloneElement(o,l):o}),V=function(t,i,n){var o=(0,r(d[10]).useIndex)(),s=w("GroupItem",n);if(j.default.useEffect(function(){return s.onItemMount(),function(){s.onItemUnmount()}},[]),!o)throw Error(" should only be used within a ");var l,u="first"===i||"last"!==i&&0===o.index,c="last"===i||"first"!==i&&o.index===o.maxIndex,f={disabled:null!==(l=t.disabled)&&void 0!==l?l:s.disabled};if(!0!==s.disablePassBorderRadius){var p=k({radius:s.radius,isFirst:u,isLast:c,vertical:s.vertical,disable:s.disablePassBorderRadius});return Object.assign({},f,p)}return f},C=E(!0),B=C,F=E(!1),L=function(t,i){var n=t.scrollable,o=t.orientation,s=t.showScrollIndicator,l=void 0!==s&&s;return n?(0,h.jsx)(y.ScrollView,Object.assign({},"vertical"===o&&{showsVerticalScrollIndicator:l},"horizontal"===o&&{horizontal:!0,showsHorizontalScrollIndicator:l},{children:i})):i},k=function(t){var i=t.isFirst,n=t.isLast,o=t.radius,s=t.vertical,l=t.disable;return{borderTopLeftRadius:i&&"top"!==l&&"start"!==l?o:0,borderTopRightRadius:"top"!==l&&"end"!==l&&(s&&i||!s&&n)?o:0,borderBottomLeftRadius:"bottom"!==l&&"start"!==l&&(s&&n||!s&&i)?o:0,borderBottomRightRadius:n&&"bottom"!==l&&"end"!==l?o:0}},A=function(t,i){return j.default.cloneElement(Object.assign({},t,{props:null}),Object.assign({},t.props,i))}},1697,[207,19,258,128,28,1636,1461,1588,1476,1583,1698]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,l=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,f=function(t,n,l,f){if(n&&"object"==typeof n||"function"==typeof n){var x=function(c){!s.call(t,c)&&c!==l&&u(t,c,{get:function(){return n[c]},enumerable:!(f=o(n,c))||f.enumerable})};for(var p of c(n))x(p)}return t},x={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(x,{useIndex:function(){return O},useIndexedChildren:function(){return P}}),m.exports=(t=x,f(u({},"__esModule",{value:!0}),t));var p=r(d[0]),v=(function(t,o,c){return c=null!=t?n(l(t)):{},f(!o&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[1])),b=v.createContext([]),h=v.createContext(null);function O(){var t=v.useContext(b),n=v.useContext(h);return v.useMemo(function(){if(null===n)return null;var u=j(n),o=t[t.length-1],c=u[u.length-1];return{maxIndex:o,maxIndexPath:t,index:c,indexPath:u,indexPathString:n,isFirst:0===c,isLast:c===o,isEven:c%2==0,isOdd:1===Math.abs(c%2)}},[t,n])}function P(t){var n=v.useContext(b),u=v.useContext(h),o=v.Children.count(t),c=v.useMemo(function(){return n.concat(o-1)},[o]);return(0,p.jsx)(b.Provider,{value:c,children:v.Children.map(t,function(t,n){return v.isValidElement(t)?(0,p.jsx)(h.Provider,{value:u?`${u}.${n.toString()}`:n.toString(),children:t},t.key):t})})}function j(t){return t.split(".").map(function(t){return Number.parseInt(t,10)})}},1698,[258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,f,s){if(l&&"object"==typeof l||"function"==typeof l){var y=function(c){!u.call(t,c)&&c!==f&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var b of c(l))y(b)}return t},f={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(f,{Article:function(){return y},Aside:function(){return w},Footer:function(){return v},Header:function(){return p},Main:function(){return b},Nav:function(){return x},Section:function(){return s}}),m.exports=(t=f,l(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).styled)(r(d[0]).View,{name:"Section",tag:"section",flexDirection:"column",accessibilityRole:"summary"}),y=(0,r(d[0]).styled)(r(d[0]).View,{name:"Article",tag:"article",flexDirection:"column"}),b=(0,r(d[0]).styled)(r(d[0]).View,{name:"Main",tag:"main",flexDirection:"column"}),p=(0,r(d[0]).styled)(r(d[0]).View,{name:"Header",tag:"header",accessibilityRole:"header",flexDirection:"column"}),w=(0,r(d[0]).styled)(r(d[0]).View,{name:"Aside",tag:"aside",flexDirection:"column"}),v=(0,r(d[0]).styled)(r(d[0]).View,{name:"Footer",tag:"footer",flexDirection:"column"}),x=(0,r(d[0]).styled)(r(d[0]).View,{name:"Nav",tag:"nav",flexDirection:"column"})},1699,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1700,[1701]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),l=r(d[1]),o=["children","icon","iconAfter","noTextWrap","theme","space","spaceFlex","scaleIcon","scaleSpace","unstyled","subTitle","title","color","fontWeight","fontSize","fontFamily","letterSpacing","textAlign","ellipse"],s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,p=function(t,n,l,o){if(n&&"object"==typeof n||"function"==typeof n){var p=function(u){!f.call(t,u)&&u!==l&&s(t,u,{get:function(){return n[u]},enumerable:!(o=c(n,u))||o.enumerable})};for(var x of u(n))p(x)}return t},x={};!(function(t,n){for(var l in n)s(t,l,{get:n[l],enumerable:!0})})(x,{ListItem:function(){return j},ListItemFrame:function(){return S},ListItemSubtitle:function(){return b},ListItemText:function(){return y},ListItemTitle:function(){return v},useListItem:function(){return T}}),m.exports=(t=x,p(s({},"__esModule",{value:!0}),t));var h=r(d[2]),S=(0,r(d[3]).styled)(r(d[4]).ThemeableStack,{name:"ListItem",tag:"li",variants:{unstyled:{false:{size:"$true",alignItems:"center",justifyContent:"space-between",flexWrap:"nowrap",width:"100%",borderColor:"$borderColor",maxWidth:"100%",overflow:"hidden",flexDirection:"row",backgroundColor:"$background",cursor:"default"}},size:{"...size":function(t,n){var l=n.tokens;return{minHeight:l.size[t],paddingHorizontal:l.space[t],paddingVertical:(0,r(d[5]).getSpace)(l.space[t],{shift:-4})}}},active:{true:{hoverStyle:{backgroundColor:"$background"}}},disabled:{true:{opacity:.5,pointerEvents:"none"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[3]).styled)(r(d[6]).SizableText,{name:"ListItemText",variants:{unstyled:{false:{color:"$color",size:"$true",flexGrow:1,flexShrink:1,ellipse:!0,cursor:"inherit"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),b=(0,r(d[3]).styled)(y,{name:"ListItemSubtitle",variants:{unstyled:{false:{opacity:.6,maxWidth:"100%",color:"$color"}},size:{"...size":function(t,n){var l=(0,r(d[5]).getSize)(t,{shift:-1,excludeHalfSteps:!0});return(0,r(d[7]).getFontSized)(l.key,n)}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),v=(0,r(d[3]).styled)(y,{name:"ListItemTitle"}),T=function(t){var s,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{Text:y,Subtitle:b,Title:v},u=c.Text,f=void 0===u?y:u,p=c.Subtitle,x=void 0===p?b:p,S=c.Title,T=void 0===S?v:S,z=(0,r(d[3]).useProps)(t,{resolveValues:"none"}),j=z.children,I=z.icon,A=z.iconAfter,L=z.noTextWrap,F=(z.theme,z.space,z.spaceFlex,z.scaleIcon),w=void 0===F?1:F,k=z.scaleSpace,O=void 0===k?1:k,W=z.unstyled,$=void 0!==W&&W,E=z.subTitle,V=z.title,_=z.color,C=z.fontWeight,H=z.fontSize,P=z.fontFamily,D=z.letterSpacing,G=z.textAlign,M=z.ellipse,U=l(z,o),N={color:_,fontWeight:C,fontSize:H,fontFamily:P,letterSpacing:D,textAlign:G,ellipse:M,children:j},Y=z.size||"$true",q=(0,r(d[8]).getFontSize)(Y)*w,B=(0,r(d[9]).useGetThemedIcon)({size:q,color:_}),J=[I,A].map(B),K=n(J,2),Q=K[0],R=K[1],X=null!==(s=(0,r(d[3]).getTokens)().space[z.space])&&void 0!==s?s:q,Z=(0,r(d[3]).getVariableValue)(X)*O,ee=(0,r(d[6]).wrapChildrenInText)(f,N);return{props:Object.assign({},U,{children:(0,h.jsxs)(h.Fragment,{children:[Q?(0,h.jsxs)(h.Fragment,{children:[Q,(0,h.jsx)(r(d[3]).Spacer,{size:Z})]}):null,V||E?(0,h.jsxs)(r(d[4]).YStack,{flex:1,children:["all"===L?V:(0,h.jsx)(T,{size:Y,children:V}),E?(0,h.jsx)(h.Fragment,{children:"string"==typeof E&&"all"!==L?(0,h.jsx)(x,{unstyled:$,size:Y,children:E}):E}):null,ee]}):ee,R?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(r(d[3]).Spacer,{size:Z}),R]}):null]})})}},z=S.styleable(function(t,n){var l=T(t).props;return(0,h.jsx)(S,Object.assign({ref:n},l))}),j=(0,r(d[10]).withStaticProperties)(z,{Text:y,Subtitle:b,Title:v})},1701,[19,207,258,1466,1588,1594,1609,1611,1671,1673,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1702,[1703,1713]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,o=r(d[0]),t=r(d[1]),s=r(d[2]),c=["scope"],u=["scope"],l=["trapFocus","enableRemoveScroll","zIndex","scope"],p=["trapFocus","scope","onOpenAutoFocus","onCloseAutoFocus","disableOutsidePointerEvents","disableFocusScope","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","children","enableRemoveScroll","freezeContentsWhenHidden","setIsFullyHidden","lazyMount","context"],v=["scope"],f=["scope"],h=["scope"],x=["scope"],b=["children","open","defaultOpen","onOpenChange","scope","keepChildrenMounted","hoverable","disableFocus","id","adaptScope"],C=["context"],O=Object.create,j=Object.defineProperty,P=Object.getOwnPropertyDescriptor,A=Object.getOwnPropertyNames,S=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,F=function(n,o,t,s){if(o&&"object"==typeof o||"function"==typeof o){var c=function(c){!w.call(n,c)&&c!==t&&j(n,c,{get:function(){return o[c]},enumerable:!(s=P(o,c))||s.enumerable})};for(var u of A(o))c(u)}return n},R={};!(function(n,o){for(var t in o)j(n,t,{get:o[t],enumerable:!0})})(R,{Popover:function(){return B},PopoverAnchor:function(){return M},PopoverArrow:function(){return Z},PopoverClose:function(){return K},PopoverContent:function(){return D},PopoverContext:function(){return E},PopoverTrigger:function(){return z},usePopoverContext:function(){return T}}),m.exports=(n=R,F(j({},"__esModule",{value:!0}),n));var k=r(d[3]),y=(function(n,o,t){return t=null!=n?O(S(n)):{},F(!o&&n&&n.__esModule?t:j(t,"default",{value:n,enumerable:!0}),n)})(r(d[4])),I=r(d[5]).isAndroid||r(d[5]).isIos&&!r(d[6]).USE_NATIVE_PORTAL,E=(0,r(d[7]).createStyledContext)({},"Popover__"),T=E.useStyledContext,M=y.forwardRef(function(n,o){var t=n.scope,u=s(n,c),l=T(t)||{},p=l.onCustomAnchorAdd,v=l.onCustomAnchorRemove;return y.useEffect(function(){return p(),function(){return v()}},[p,v]),(0,k.jsx)(r(d[8]).PopperAnchor,Object.assign({scope:t},u,{ref:o}))}),z=y.forwardRef(function(n,o){var t=n.scope,c=s(n,u),l=T(t),p=l.anchorTo,v=(0,r(d[9]).useComposedRefs)(o,l.triggerRef);if(!n.children)return null;var f=(0,k.jsx)(r(d[7]).View,Object.assign({"aria-expanded":l.open,"data-state":L(l.open)},c,{ref:v,onPress:(0,r(d[10]).composeEventHandlers)(n.onPress,l.onOpenToggle)})),h=y.useMemo(function(){return p?{current:Object.assign({getBoundingClientRect:function(){return r(d[5]).isWeb?DOMRect.fromRect(p):p}},!r(d[5]).isWeb&&{measure:function(n){return n(null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.width,null==p?void 0:p.height)},measureInWindow:function(n){return n(null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.width,null==p?void 0:p.height)}})}:null},[l.anchorTo,null==p?void 0:p.x,null==p?void 0:p.y,null==p?void 0:p.x,null==p?void 0:p.height,null==p?void 0:p.width]);return l.hasCustomAnchor?f:(0,k.jsx)(r(d[8]).PopperAnchor,Object.assign({},h&&{virtualRef:h},{scope:t,asChild:c.asChild,children:f}))}),D=(0,r(d[7]).styled)(r(d[8]).PopperContentFrame,{name:"Popover"}).extractable(y.forwardRef(function(n,o){var c,u=n.trapFocus,p=n.enableRemoveScroll,v=void 0!==p&&p,f=n.zIndex,h=n.scope,x=s(n,l),b=T(h),C=y.useRef(null),O=(0,r(d[9]).useComposedRefs)(o,C),j=y.useRef(!1),P=y.useState(!b.open),A=t(P,2),S=A[0],w=A[1];return b.open&&S&&w(!1),!b.keepChildrenMounted&&S?null:(0,k.jsx)(W,{passThrough:b.breakpointActive,context:b,zIndex:f,children:(0,k.jsx)(r(d[7]).Stack,{passThrough:b.breakpointActive,pointerEvents:b.open?null!==(c=x.pointerEvents)&&void 0!==c?c:"auto":"none",children:(0,k.jsx)(V,Object.assign({},x,{context:b,enableRemoveScroll:v,ref:O,setIsFullyHidden:w,scope:h,trapFocus:null!=u?u:b.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:!1===n.onCloseAutoFocus?void 0:(0,r(d[10]).composeEventHandlers)(n.onCloseAutoFocus,function(n){var o;n.defaultPrevented||(n.preventDefault(),j.current||null===(o=b.triggerRef.current)||void 0===o||o.focus())}),onPointerDownOutside:(0,r(d[10]).composeEventHandlers)(n.onPointerDownOutside,function(n){var o=n.detail.originalEvent,t=0===o.button&&!0===o.ctrlKey,s=2===o.button||t;j.current=s},{checkDefaultPrevented:!1}),onFocusOutside:(0,r(d[10]).composeEventHandlers)(n.onFocusOutside,function(n){return n.preventDefault()},{checkDefaultPrevented:!1})}))})})})),H=function(n){var o=T(n);return{popperContext:(0,r(d[8]).usePopperContext)(n),adaptContext:(0,r(d[11]).useAdaptContext)(o.adaptScope),context:o}};function _(n){var o=n.adaptContext,t=n.children,s=n.context,c=n.popperContext;return(0,k.jsx)(r(d[8]).PopperProvider,Object.assign({scope:s.popoverScope},c,{children:(0,k.jsx)(E.Provider,Object.assign({},s,{children:(0,k.jsx)(r(d[11]).ProvideAdaptContext,Object.assign({},o,{children:t}))}))}))}var N=function(n){var o=n.children,t=n.context;if(I){var s=H(t.popoverScope);return(0,k.jsx)(r(d[11]).AdaptPortalContents,{scope:t.adaptScope,children:(0,k.jsx)(_,Object.assign({},s,{children:o}))})}return(0,k.jsx)(r(d[11]).AdaptPortalContents,{scope:t.adaptScope,children:o})};function W(n){var o=n.context,t=n.zIndex,s=n.passThrough,c=n.children,u=n.onPress,l=(0,r(d[7]).useThemeName)(),p=c;if(I){var v=H(o.popoverScope);p=(0,k.jsx)(_,Object.assign({},v,{children:p}))}return(0,k.jsx)(r(d[6]).Portal,{passThrough:s,stackZIndex:!0,zIndex:t,children:(0,k.jsxs)(r(d[7]).Theme,{passThrough:s,contain:!0,forceClassName:!0,name:l,children:[!!o.open&&!o.breakpointActive&&(0,k.jsx)(r(d[12]).YStack,{fullscreen:!0,onPress:(0,r(d[10]).composeEventHandlers)(u,o.onOpenToggle)}),(0,k.jsx)(r(d[13]).StackZIndexContext,{zIndex:(0,r(d[6]).resolveViewZIndex)(t),children:p})]})})}var V=y.forwardRef(function(n,o){n.trapFocus;var t=n.scope,c=(n.onOpenAutoFocus,n.onCloseAutoFocus,n.disableOutsidePointerEvents,n.disableFocusScope,n.onEscapeKeyDown,n.onPointerDownOutside,n.onFocusOutside,n.onInteractOutside,n.children),u=(n.enableRemoveScroll,n.freezeContentsWhenHidden,n.setIsFullyHidden),l=n.lazyMount,v=n.context,f=s(n,p),h=v.open,x=v.keepChildrenMounted,b=y.useCallback(function(){null==u||u(!0)},[u]),C=(0,k.jsx)(r(d[14]).ResetPresence,{disable:v.breakpointActive,children:c});return v.breakpointActive,(0,k.jsx)(r(d[15]).Animate,{type:"presence",present:!!h,keepChildrenMounted:!!x,onExitComplete:b,lazyMount:l,passThrough:v.breakpointActive,children:(0,k.jsx)(r(d[8]).PopperContent,Object.assign({scope:t,"data-state":L(h),id:v.contentId,ref:o,passThrough:v.breakpointActive},f,{children:(0,k.jsx)(N,{context:v,children:C})}),v.contentId)})}),K=y.forwardRef(function(n,o){var t=n.scope,c=s(n,v),u=T(t);return(0,k.jsx)(r(d[12]).YStack,Object.assign({},c,{ref:o,componentName:"PopoverClose",onPress:(0,r(d[10]).composeEventHandlers)(n.onPress,function(){var n;return null==u||null===(n=u.onOpenChange)||void 0===n?void 0:n.call(u,!1,"press")})}))}),Z=r(d[8]).PopperArrowFrame.styleable(function(n,o){var t=n.scope,c=s(n,f),u=T(t);return(0,r(d[11]).useAdaptIsActive)(u.adaptScope)?null:(0,k.jsx)(r(d[8]).PopperArrow,Object.assign({scope:t,componentName:"PopoverArrow"},c,{ref:o}))}),Y=y.forwardRef(function(n,o){var t=n.scope,c=s(n,h),u=T(t);return(0,k.jsx)(r(d[16]).ScrollView,Object.assign({ref:o,pointerEvents:u.breakpointActive?"none":void 0,scrollEnabled:!u.breakpointActive,passThrough:u.breakpointActive},c))}),B=(0,r(d[10]).withStaticProperties)(y.forwardRef(function(n,o){var t=n.scope,c=void 0===t?"":t,u=s(n,x),l=y.useId(),p=`PopoverAdapt${c}`;return(0,k.jsx)(r(d[11]).AdaptParent,{scope:p,portal:!0,children:(0,k.jsx)(G,Object.assign({adaptScope:p,ref:o,id:l,scope:c},u))})}),{Anchor:M,Arrow:Z,Trigger:z,Content:D,Close:K,Adapt:r(d[11]).Adapt,ScrollView:Y,Sheet:r(d[17]).Sheet.Controlled,FocusScope:r(d[18]).FocusScopeController}),G=y.forwardRef(function(n,c){var u=n.children,l=n.open,p=n.defaultOpen,v=n.onOpenChange,f=n.scope,h=void 0===f?"":f,x=n.keepChildrenMounted,C=n.hoverable,O=n.disableFocus,j=n.id,P=n.adaptScope,A=s(n,b),S=y.useRef(null),w=y.useState(!1),F=t(w,2),R=F[0],I=F[1],T=y.useRef(void 0),M=(0,r(d[19]).useControllableState)({prop:x,defaultProp:!1,transition:"lazy"===x}),z=t(M,1)[0],D=(0,r(d[19]).useControllableState)({prop:l,defaultProp:p||!1,onChange:function(n){null==v||v(n,T.current)}}),H=t(D,2),_=H[0],N=H[1],W=(0,r(d[7]).useEvent)(function(n,o){T.current=o,N(n)}),V=(0,r(d[11]).useAdaptIsActive)(P),K=(0,r(d[20]).useFloatingContext)({open:_,setOpen:W,disable:V,hoverable:C,disableFocus:O}),Z=y.useState(),Y=t(Z,2),B=Y[0],G=Y[1],L=(0,r(d[7]).useCreateShallowSetState)(G);y.useImperativeHandle(c,function(){return{anchorTo:L,toggle:function(){return N(function(n){return!n})},open:function(){return N(!0)},close:function(){return N(!1)},setOpen:N}});var $={popoverScope:h,adaptScope:P,id:j,contentId:y.useId(),triggerRef:S,open:_,breakpointActive:V,onOpenChange:W,onOpenToggle:(0,r(d[7]).useEvent)(function(){_&&V||N(!_)}),hasCustomAnchor:R,anchorTo:B,onCustomAnchorAdd:y.useCallback(function(){return I(!0)},[]),onCustomAnchorRemove:y.useCallback(function(){return I(!1)},[]),keepChildrenMounted:z},q=y.useMemo(function(){return(0,k.jsx)(E.Provider,Object.assign({scope:h},$,{children:(0,k.jsx)(U,{context:$,onOpenChange:N,children:u})}))},[h,N,u].concat(o(Object.values($)))),J=(0,k.jsx)(r(d[8]).Popper,Object.assign({open:_,passThrough:V,scope:h,stayInFrame:!0},A,{children:q}));return(0,k.jsx)(k.Fragment,{children:r(d[5]).isWeb?(0,k.jsx)(r(d[21]).FloatingOverrideContext.Provider,{value:K,children:J}):J})});function L(n){return n?"open":"closed"}var U=function(n){var o=n.context,t=s(n,C),c=$(o),u=o.breakpointActive,l=(0,r(d[7]).useGet)(c);return(0,k.jsx)(r(d[17]).SheetController,{onOpenChange:function(n){var o;l()&&(null===(o=t.onOpenChange)||void 0===o||o.call(t,n))},open:o.open,hidden:!u,children:t.children})},$=function(n){var o=(0,r(d[11]).useAdaptIsActive)(n.adaptScope);return!1!==n.open&&o}},1703,[32,19,207,258,128,1463,1618,1461,1704,1525,1476,1616,1588,1624,1599,1711,1652,1633,1658,1583,1713,1706]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1704,[1705]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),o=r(d[1]),n=["scope","children"],s=["virtualRef","scope"],u=["scope","enableAnimationForPositionChange","children","passThrough"],l=["style"],c=["scope"],f=["offset","size","borderWidth"],p=Object.create,h=Object.defineProperty,b=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,v=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty,P=function(e,t,o,n){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!w.call(e,s)&&s!==o&&h(e,s,{get:function(){return t[s]},enumerable:!(n=b(t,s))||n.enumerable})};for(var u of y(t))s(u)}return e},S={};!(function(e,t){for(var o in t)h(e,o,{get:t[o],enumerable:!0})})(S,{Popper:function(){return W},PopperAnchor:function(){return I},PopperArrow:function(){return B},PopperArrowFrame:function(){return H},PopperContent:function(){return V},PopperContentFrame:function(){return D},PopperContextFast:function(){return R},PopperContextSlow:function(){return F},PopperPositionContext:function(){return r(d[2]).createStyledContext},PopperProvider:function(){return L},PopperProviderFast:function(){return A},PopperProviderSlow:function(){return E},setupPopper:function(){return _},usePopperContext:function(){return C},usePopperContextSlow:function(){return z}}),m.exports=(e=S,P(h({},"__esModule",{value:!0}),e));var j=r(d[3]),x=(function(e,t,o){return o=null!=e?p(v(e)):{},P(!t&&e&&e.__esModule?o:h(o,"default",{value:e,enumerable:!0}),e)})(r(d[4])),O=r(d[5]),R=(0,r(d[2]).createStyledContext)({},"Popper__"),C=R.useStyledContext,A=R.Provider,F=(0,r(d[2]).createStyledContext)({},"PopperSlow__"),z=F.useStyledContext,E=F.Provider,L=function(e){var t=e.scope,s=e.children,u=o(e,n),l=T(u);return(0,j.jsx)(A,Object.assign({scope:t},u,{children:(0,j.jsx)(E,Object.assign({scope:t},l,{children:s}))}))};function T(e){return{refs:e.refs,size:e.size,arrowRef:e.arrowRef,arrowStyle:e.arrowStyle,onArrowSize:e.onArrowSize,hasFloating:e.hasFloating,strategy:e.strategy,update:e.update,context:e.context,getFloatingProps:e.getFloatingProps,getReferenceProps:e.getReferenceProps,open:e.open}}var k={name:"checkFloating",fn:function(e){return{data:{hasFloating:!!e.rects.floating.width}}}},M={};function _(e){Object.assign(M,e)}function W(e){var o=e.children,n=e.size,s=e.strategy,u=void 0===s?"absolute":s,l=e.placement,c=void 0===l?"bottom":l,f=e.stayInFrame,p=e.allowFlip,h=e.offset,b=e.disableRTL,y=(e.resize,e.passThrough),v=e.open,w=e.scope,P=x.useState(null),S=t(P,2),R=S[0],C=S[1],A=x.useState(0),F=t(A,2),z=F[0],E=F[1],T=null!=h?h:z,_=(x.useRef({}),!y&&(v||!0)),W=(0,r(d[6]).useFloating)({open:_,strategy:u,placement:c,sameScrollView:!1,whileElementsMounted:_?r(d[6]).autoUpdate:void 0,platform:(null!=b?b:M.disableRTL)?Object.assign({},r(d[6]).platform,{isRTL:function(e){return!1}}):r(d[6]).platform,middleware:[f?(0,r(d[6]).shift)("boolean"==typeof f?{}:f):null,p?(0,r(d[6]).flip)("boolean"==typeof p?{}:p):null,R?(0,r(d[6]).arrow)({element:R}):null,typeof T<"u"?(0,r(d[6]).offset)(T):null,k,null].filter(Boolean)}),I=W.middlewareData,D=(0,O.useWindowDimensions)(),V=x.useState(!1),H=t(V,2),U=H[0],$=H[1];x.useEffect(function(){var e=O.Keyboard.addListener("keyboardDidShow",function(){(0,r(d[7]).startTransition)(function(){$(!0)})}),t=O.Keyboard.addListener("keyboardDidHide",function(){(0,r(d[7]).startTransition)(function(){$(!1)})});return function(){e.remove(),t.remove()}},[]),(0,r(d[8]).useIsomorphicLayoutEffect)(function(){y||W.update()},[y,D,U]);var B=x.useMemo(function(){var e;return Object.assign({size:n,arrowRef:C,arrowStyle:I.arrow,onArrowSize:E,hasFloating:null===(e=I.checkFloating)||void 0===e?void 0:e.hasFloating,open:!!v},W)},[v,n,W.x,W.y,W.placement,JSON.stringify(I.arrow||null),W.isPositioned]);return(0,j.jsx)(r(d[2]).LayoutMeasurementController,{disable:!_,children:(0,j.jsx)(L,Object.assign({scope:w},B,{children:o}))})}var I=r(d[9]).YStack.extractable(x.forwardRef(function(e,t){var n=e.virtualRef,u=e.scope,l=o(e,s),c=z(u),f=c.getReferenceProps,p=c.refs,h=c.update,b=x.useRef(null);x.useEffect(function(){n&&p.setReference(n.current)},[n]);var y=l,v=f?f(y):null,w=r(d[8]).isWeb&&u,P=(0,r(d[10]).useComposedRefs)(t,b,w?void 0:p.setReference);return(0,j.jsx)(r(d[2]).View,Object.assign({},y,v,{ref:P},w&&{onMouseEnter:function(e){var t;b.current instanceof HTMLElement&&(p.setReference(b.current),null===(t=v.onPointerEnter)||void 0===t||t.call(v,e),h())},onMouseLeave:function(e){var t;null==v||null===(t=v.onMouseLeave)||void 0===t||t.call(v,e)}}))})),D=(0,r(d[2]).styled)(r(d[9]).ThemeableStack,{name:"PopperContent",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",alignItems:"center",radiused:!0}},size:{"...size":function(e,t){var o=t.tokens;return{padding:o.space[e],borderRadius:o.radius[e]}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),V=x.forwardRef(function(e,n){var s=e.scope,c=e.enableAnimationForPositionChange,f=e.children,p=e.passThrough,h=o(e,u),b=C(s),y=b.strategy,v=b.placement,w=b.refs,P=b.x,S=b.y,O=b.getFloatingProps,R=b.size,A=b.isPositioned,F=(0,r(d[10]).useComposedRefs)(w.setFloating,n),z=x.useState(c),E=t(z,2),L=E[0],T=E[1];(0,r(d[8]).useIsomorphicLayoutEffect)(function(){L&&P&&S&&T(!1)},[L,c,P,S]);var k=0===P&&0===S,M="even-when-repositioning"===c?L:!A||L,_=x.useState(M),W=t(_,2),I=W[0],V=W[1];x.useEffect(function(){V(M)},[M]);var H=Object.assign({ref:F,x:P||0,y:S||0,top:0,left:0,position:y,opacity:1},c&&{animation:h.animation,animateOnly:I?[]:h.animateOnly,animatePresence:!1},k&&{opacity:0,animateOnly:[]}),U=O?O(H):H,$=U.style,B=o(U,l);return(0,j.jsx)(r(d[2]).View,Object.assign({passThrough:p,ref:F,contain:"layout style"},p?null:B,{children:(0,j.jsx)(D,Object.assign({passThrough:p},!p&&Object.assign({"data-placement":v,"data-strategy":y,size:R},$,h),{children:f}),"popper-content-frame")}))}),H=(0,r(d[2]).styled)(r(d[9]).YStack,{name:"PopperArrow",variants:{unstyled:{false:{borderColor:"$borderColor",backgroundColor:"$background",position:"relative"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),U=(0,r(d[2]).styled)(r(d[9]).YStack,{name:"PopperArrowOuter",variants:{unstyled:{false:{position:"absolute",zIndex:1e6,pointerEvents:"none",overflow:"hidden",alignItems:"center",justifyContent:"center"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),$={top:"bottom",right:"left",bottom:"top",left:"right"},B=x.forwardRef(function(e,t){var n,s,u=e.scope,l=o(e,c),p=(0,r(d[2]).useProps)(l),h=(p.offset,p.size),b=p.borderWidth,y=void 0===b?0:b,v=o(p,f),w=C(u),P="number"==typeof h?h:(0,r(d[2]).getVariableValue)((0,r(d[11]).getSpace)(null!=h?h:w.size,{shift:-2,bounds:[2]})),S=Math.max(0,+P),x=w.placement,O=(0,r(d[10]).useComposedRefs)(w.arrowRef,t),R=(null===(n=w.arrowStyle)||void 0===n?void 0:n.x)||0,A=(null===(s=w.arrowStyle)||void 0===s?void 0:s.y)||0,F=x?x.split("-")[0]:"top",z={x:R,y:A,width:S,height:S},E={};if(F){z["bottom"===F||"top"===F?"width":"height"]=2*S;var L=$[F];L&&(z[L]=-S,E[L]=S/2),("top"===L||"bottom"===L)&&(z.left=0),("left"===L||"right"===L)&&(z.top=0),(0,r(d[8]).useIsomorphicLayoutEffect)(function(){var e;null===(e=w.onArrowSize)||void 0===e||e.call(w,S)},[S,w.onArrowSize])}return(0,j.jsx)(U,Object.assign({ref:O},z,{children:(0,j.jsx)(H,Object.assign({width:S,height:S},v,E,{rotate:"45deg"},"bottom"===F&&{borderLeftWidth:y,borderTopWidth:y},"top"===F&&{borderBottomWidth:y,borderRightWidth:y},"right"===F&&{borderLeftWidth:y,borderBottomWidth:y},"left"===F&&{borderTopWidth:y,borderRightWidth:y}))}))})},1705,[19,207,1461,258,128,28,1706,1585,1463,1588,1525,1594]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,p){if(c&&"object"==typeof c||"function"==typeof c){var s=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var O of u(c))s(O)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{FloatingOverrideContext:function(){return r(d[0]).FloatingOverrideContext},arrow:function(){return r(d[1]).arrow},autoPlacement:function(){return r(d[1]).autoPlacement},autoUpdate:function(){return r(d[1]).autoUpdate},detectOverflow:function(){return r(d[1]).detectOverflow},flip:function(){return r(d[1]).flip},hide:function(){return r(d[1]).hide},inline:function(){return r(d[1]).inline},limitShift:function(){return r(d[1]).limitShift},offset:function(){return r(d[1]).offset},platform:function(){return r(d[1]).platform},shift:function(){return r(d[1]).shift},size:function(){return r(d[1]).size},useFloating:function(){return r(d[0]).useFloating}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t))},1706,[1707,1708]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,b=function(t,n,o,f){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!s.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(f=c(n,l))||f.enumerable})};for(var v of l(n))b(v)}return t},v=function(t,n,c){return c=null!=t?o(f(t)):{},b(!n&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)},O={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(O,{FloatingOverrideContext:function(){return j},useFloating:function(){return x}}),m.exports=(t=O,b(u({},"__esModule",{value:!0}),t));var p=v(r(d[1])),y=v(r(d[2])),j=p.default.createContext(null),x=function(t){var o;return null===(o=p.default.useContext(j)||y.useFloating)||void 0===o?void 0:o(Object.assign({},t,{middleware:[].concat(n(t.middleware),[{name:"rounded",fn:function(t){var n=t.x,o=t.y;return{x:Math.round(n),y:Math.round(o)}}}])}))}},1707,[32,128,1708]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,l){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==p&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var s of u(c))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{autoUpdate:function(){return l},platform:function(){return b}}),m.exports=(t=p,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(p,r(d[0]),m.exports);var l=function(){},b=null},1708,[1709]); -__d(function(g,r,_i,_a,m,_e,_d){'use strict';var e=r(_d[0]),t=r(_d[1]),n=r(_d[2]);function i(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if('default'!==n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var o=i(t),u={x:0,y:0},f='android'===n.Platform.OS;function c(e){return'measure'in e}var a=function(e){var t=e.offsetParent,i=e.sameScrollView,o=void 0===i||i,a=e.scrollOffsets,s=void 0===a?u:a;return{getElementRects:function(e){var i=e.reference,a=e.floating;return new Promise(function(e){var s=function(t,s){void 0===t&&(t=0),void 0===s&&(s=0),a.measure(function(a,l,d,v){var h=Object.assign({width:d,height:v},u),p=o?'measure':'measureInWindow';if(c(i))i[p](function(i,u,c,a){u=f&&!o&&n.StatusBar.currentHeight?u+n.StatusBar.currentHeight:u,e({reference:{width:c,height:a,x:i-t,y:u-s},floating:h})});else{var b=i.getBoundingClientRect(),O={width:b.width,height:b.height,x:b.x-t,y:b.y-s};e({reference:O,floating:h})}})};t?t.measure(s):s()})},getClippingRect:function(){var e=n.Dimensions.get('window'),t=e.width,i=e.height,c=n.Dimensions.get('screen').height,a=n.StatusBar.currentHeight||0,l=f?c-i-a:0;return Promise.resolve(Object.assign({width:t,height:c-l},o?s:u))},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var n=e.rect;return new Promise(function(e){var i=function(t,i){void 0===t&&(t=0),void 0===i&&(i=0),e(Object.assign({},n,{x:n.x+t,y:n.y+i}))};t?t.measure(i):i()})},getDimensions:function(e){return new Promise(function(t){return e.measure(function(e,n,i,o){return t({width:i,height:o})})})}}};function s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if('function'==typeof e&&e.toString()===t.toString())return!0;var n,i,o;if(e&&t&&'object'==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!==i--;)if(!s(e[i],t[i]))return!1;return!0}if((n=(o=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!==i--;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;0!==i--;){var u=o[i];if(('_owner'!==u||!e.$$typeof)&&!s(e[u],t[u]))return!1}return!0}return e!=e&&t!=t}var l={x:0,y:0};var d=function(e){return{name:'arrow',options:e,fn:function(t){var n,i='function'==typeof e?e(t):e,o=i.element,u=i.padding;return o&&(n=o,{}.hasOwnProperty.call(n,'current'))?null!=o.current?r(_d[3]).arrow({element:o.current,padding:u}).fn(t):{}:o?r(_d[3]).arrow({element:o,padding:u}).fn(t):{}}}};Object.defineProperty(_e,"detectOverflow",{enumerable:!0,get:function(){return r(_d[3]).detectOverflow}}),_e.arrow=function(e,t){return Object.assign({},d(e),{options:[e,t]})},_e.autoPlacement=function(e,t){return Object.assign({},r(_d[3]).autoPlacement(e),{options:[e,t]})},_e.flip=function(e,t){return Object.assign({},r(_d[3]).flip(e),{options:[e,t]})},_e.hide=function(e,t){return Object.assign({},r(_d[3]).hide(e),{options:[e,t]})},_e.inline=function(e,t){return Object.assign({},r(_d[3]).inline(e),{options:[e,t]})},_e.limitShift=function(e,t){return Object.assign({},r(_d[3]).limitShift(e),{options:[e,t]})},_e.offset=function(e,t){return Object.assign({},r(_d[3]).offset(e),{options:[e,t]})},_e.shift=function(e,t){return Object.assign({},r(_d[3]).shift(e),{options:[e,t]})},_e.size=function(e,t){return Object.assign({},r(_d[3]).size(e),{options:[e,t]})},_e.useFloating=function(t){void 0===t&&(t={});var n=t,i=n.placement,u=void 0===i?'bottom':i,f=n.middleware,c=void 0===f?[]:f,d=n.sameScrollView,v=void 0===d||d,h=n.elements,p=(h=void 0===h?{}:h).reference,b=h.floating,O=h.offsetParent,w=o.useState(null),y=e(w,2),j=y[0],P=y[1],S=o.useState(null),R=e(S,2),x=R[0],k=R[1],C=o.useState(null),E=e(C,2),D=E[0],M=E[1],A=p||j,B=b||x,F=O||D,V=o.useCallback(function(e){e!==_.current&&(_.current=e,P(e))},[]),z=o.useCallback(function(e){e!==L.current&&(L.current=e,k(e))},[]),H=o.useCallback(function(e){e!==T.current&&(T.current=e,M(e))},[]),_=o.useRef(null),L=o.useRef(null),T=o.useRef(null),$=o.useState({x:0,y:0,placement:u,strategy:'absolute',middlewareData:{}}),q=e($,2),I=q[0],W=q[1],G=o.useState(l),J=e(G,2),K=J[0],N=J[1],Q=o.useState(c),U=e(Q,2),X=U[0],Y=U[1];s(X,c)||Y(c);var Z=o.useMemo(function(){return a({offsetParent:F,scrollOffsets:K,sameScrollView:v})},[F,K,v]),ee=o.useCallback(function(){_.current&&L.current&&r(_d[3]).computePosition(_.current,L.current,{middleware:X,platform:Z,placement:u}).then(function(e){te.current&&W(e)})},[X,Z,u]);o.useLayoutEffect(function(){A&&(_.current=A),B&&(L.current=B),F&&(T.current=F);var e=requestAnimationFrame(ee);return function(){cancelAnimationFrame(e)}},[A,B,F,ee]);var te=o.useRef(!0);o.useLayoutEffect(function(){return te.current=!0,function(){te.current=!1}},[]);var ne=o.useMemo(function(){return{reference:_,floating:L,offsetParent:T,setReference:V,setFloating:z,setOffsetParent:H}},[V,z,H]),re=o.useMemo(function(){return{reference:A,floating:B,offsetParent:F}},[A,B,F]),ie=o.useMemo(function(){return re.floating?{position:'absolute',left:I.x,top:I.y}:{position:'absolute',left:0,top:0}},[re.floating,I.x,I.y]);return o.useMemo(function(){return Object.assign({},I,{update:ee,refs:ne,elements:re,floatingStyles:ie,offsetParent:H,reference:V,floating:z,scrollProps:{onScroll:function(e){return N(e.nativeEvent.contentOffset)},scrollEventThrottle:16}})},[I,ne,re,ie,V,z,H,ee])}},1709,[19,128,28,1710]); -__d(function(g,r,_i,_a,m,e,_d){var t,n,i=r(_d[0]),o=r(_d[1]),a=r(_d[2]),l=r(_d[3]),f=["crossAxis","alignment","allowedPlacements","autoAlignment"],c=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],s=["strategy"],u=["mainAxis","crossAxis","limiter"],d=["apply"];t=this,n=function(t){'use strict';var n=['top','right','bottom','left'],p=['start','end'],v=n.reduce(function(t,n){return t.concat(n,n+"-"+p[0],n+"-"+p[1])},[]),h=Math.min,y=Math.max,x={left:'right',right:'left',bottom:'top',top:'bottom'},b={start:'end',end:'start'};function w(t,n,i){return y(t,h(n,i))}function A(t,n){return'function'==typeof t?t(n):t}function R(t){return t.split('-')[0]}function O(t){return t.split('-')[1]}function P(t){return'x'===t?'y':'x'}function D(t){return'y'===t?'height':'width'}var T=new Set(['top','bottom']);function j(t){return T.has(R(t))?'y':'x'}function k(t){return P(j(t))}function E(t,n,i){void 0===i&&(i=!1);var o=O(t),a=k(t),l=D(a),f='x'===a?o===(i?'end':'start')?'right':'left':'start'===o?'bottom':'top';return n.reference[l]>n.floating[l]&&(f=V(f)),[f,V(f)]}function L(t){var n=V(t);return[S(t),n,S(n)]}function S(t){return t.replace(/start|end/g,function(t){return b[t]})}var C=['left','right'],B=['right','left'],H=['top','bottom'],F=['bottom','top'];function z(t,n,i){switch(t){case'top':case'bottom':return i?n?B:C:n?C:B;case'left':case'right':return n?H:F;default:return[]}}function M(t,n,i,o){var a=O(t),l=z(R(t),'start'===i,o);return a&&(l=l.map(function(t){return t+"-"+a}),n&&(l=l.concat(l.map(S)))),l}function V(t){return t.replace(/left|right|bottom|top/g,function(t){return x[t]})}function W(t){return Object.assign({top:0,right:0,bottom:0,left:0},t)}function _(t){return'number'!=typeof t?W(t):{top:t,right:t,bottom:t,left:t}}function I(t){var n=t.x,i=t.y,o=t.width,a=t.height;return{width:o,height:a,top:i,left:n,right:n+o,bottom:i+a,x:n,y:i}}function U(t,n,i){var o,a=t.reference,l=t.floating,f=j(n),c=k(n),s=D(c),u=R(n),d='y'===f,p=a.x+a.width/2-l.width/2,v=a.y+a.height/2-l.height/2,h=a[s]/2-l[s]/2;switch(u){case'top':o={x:p,y:a.y-l.height};break;case'bottom':o={x:p,y:a.y+a.height};break;case'right':o={x:a.x+a.width,y:v};break;case'left':o={x:a.x-l.width,y:v};break;default:o={x:a.x,y:a.y}}switch(O(n)){case'start':o[c]-=h*(i&&d?-1:1);break;case'end':o[c]+=h*(i&&d?-1:1)}return o}var q=(function(){var t=l(function*(t,n,i){for(var o=i.placement,l=void 0===o?'bottom':o,f=i.strategy,c=void 0===f?'absolute':f,s=i.middleware,u=void 0===s?[]:s,d=i.platform,p=u.filter(Boolean),v=yield null==d.isRTL?void 0:d.isRTL(n),h=yield d.getElementRects({reference:t,floating:n,strategy:c}),y=U(h,l,v),x=y.x,b=y.y,w=l,A={},R=0,O=0;O=0})}function X(t){var n=h.apply(void 0,o(t.map(function(t){return t.left}))),i=h.apply(void 0,o(t.map(function(t){return t.top})));return{x:n,y:i,width:y.apply(void 0,o(t.map(function(t){return t.right})))-n,height:y.apply(void 0,o(t.map(function(t){return t.bottom})))-i}}function Y(t){for(var n=t.slice().sort(function(t,n){return t.y-n.y}),i=[],o=null,a=0;ao.height/2?i.push([l]):i[i.length-1].push(l),o=l}return i.map(function(t){return I(X(t))})}var Z=new Set(['left','top']);function $(t,n){return tt.apply(this,arguments)}function tt(){return(tt=l(function*(t,n){var i=t.placement,o=t.platform,a=t.elements,l=yield null==o.isRTL?void 0:o.isRTL(a.floating),f=R(i),c=O(i),s='y'===j(i),u=Z.has(f)?-1:1,d=l&&s?-1:1,p=A(n,t),v='number'==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis},h=v.mainAxis,y=v.crossAxis,x=v.alignmentAxis;return c&&'number'==typeof x&&(y='end'===c?-1*x:x),s?{x:y*d,y:h*u}:{x:h*u,y:y*d}})).apply(this,arguments)}t.arrow=function(t){return{name:'arrow',options:t,fn:(n=l(function*(n){var i=n.x,o=n.y,l=n.placement,f=n.rects,c=n.platform,s=n.elements,u=n.middlewareData,d=A(t,n)||{},p=d.element,v=d.padding;if(null==p)return{};var y=_(void 0===v?0:v),x={x:i,y:o},b=k(l),R=D(b),P=yield c.getDimensions(p),T='y'===b,j=T?'top':'left',E=T?'bottom':'right',L=T?'clientHeight':'clientWidth',S=f.reference[R]+f.reference[b]-x[b]-f.floating[R],C=x[b]-f.reference[b],B=yield null==c.getOffsetParent?void 0:c.getOffsetParent(p),H=B?B[L]:0;H&&(yield null==c.isElement?void 0:c.isElement(B))||(H=s.floating[L]||f.floating[R]);var F=S/2-C/2,z=H/2-P[R]/2-1,M=h(y[j],z),V=h(y[E],z),W=M,I=H-P[R]-V,U=H/2-P[R]/2+F,q=w(W,U,I),G=!u.arrow&&null!=O(l)&&U!==q&&f.reference[R]/2-(U0})))return{data:{index:Y,overflows:K},reset:{placement:Z}};var $=null==(X=K.filter(function(t){return t.overflows[0]<=0}).sort(function(t,n){return t.overflows[1]-n.overflows[1]})[0])?void 0:X.placement;if(!$)switch(D){case'bestFit':var tt,et=null==(tt=K.filter(function(t){if(I){var n=j(t.placement);return n===F||'y'===n}return!0}).map(function(t){return[t.placement,t.overflows.filter(function(t){return t>0}).reduce(function(t,n){return t+n},0)]}).sort(function(t,n){return t[1]-n[1]})[0])?void 0:tt[0];et&&($=et);break;case'initialPlacement':$=d}if(f!==$)return{reset:{placement:$}}}return{}}),function(t){return n.apply(this,arguments)})};var n},t.hide=function(t){return void 0===t&&(t={}),{name:'hide',options:t,fn:(n=l(function*(n){var o=n.rects,a=A(t,n),l=a.strategy,f=void 0===l?'referenceHidden':l,c=i(a,s);switch(f){case'referenceHidden':var u=N(yield G(n,Object.assign({},c,{elementContext:'reference'})),o.reference);return{data:{referenceHiddenOffsets:u,referenceHidden:Q(u)}};case'escaped':var d=N(yield G(n,Object.assign({},c,{altBoundary:!0})),o.floating);return{data:{escapedOffsets:d,escaped:Q(d)}};default:return{}}}),function(t){return n.apply(this,arguments)})};var n},t.inline=function(t){return void 0===t&&(t={}),{name:'inline',options:t,fn:(n=l(function*(n){var i=n.placement,a=n.elements,l=n.rects,f=n.platform,c=n.strategy,s=A(t,n),u=s.padding,d=void 0===u?2:u,p=s.x,v=s.y,x=Array.from((yield null==f.getClientRects?void 0:f.getClientRects(a.reference))||[]),b=Y(x),w=I(X(x)),O=_(d),P=yield f.getElementRects({reference:{getBoundingClientRect:function(){if(2===b.length&&b[0].left>b[1].right&&null!=p&&null!=v)return b.find(function(t){return p>t.left-O.left&&pt.top-O.top&&v=2){if('y'===j(i)){var t=b[0],n=b[b.length-1],a='top'===R(i),l=t.top,f=n.bottom,c=a?t.left:n.left,s=a?t.right:n.right;return{top:l,bottom:f,left:c,right:s,width:s-c,height:f-l,x:c,y:l}}var u='left'===R(i),d=y.apply(void 0,o(b.map(function(t){return t.right}))),x=h.apply(void 0,o(b.map(function(t){return t.left}))),A=b.filter(function(t){return u?t.left===x:t.right===d}),P=A[0].top,D=A[A.length-1].bottom;return{top:P,bottom:D,left:x,right:d,width:d-x,height:D-P,x:x,y:P}}return w}},floating:a.floating,strategy:c});return l.reference.x!==P.reference.x||l.reference.y!==P.reference.y||l.reference.width!==P.reference.width||l.reference.height!==P.reference.height?{reset:{rects:P}}:{}}),function(t){return n.apply(this,arguments)})};var n},t.limitShift=function(t){return void 0===t&&(t={}),{options:t,fn:function(n){var i=n.x,o=n.y,l=n.placement,f=n.rects,c=n.middlewareData,s=A(t,n),u=s.offset,d=void 0===u?0:u,p=s.mainAxis,v=void 0===p||p,h=s.crossAxis,y=void 0===h||h,x={x:i,y:o},b=j(l),w=P(b),O=x[w],D=x[b],T=A(d,n),k='number'==typeof T?{mainAxis:T,crossAxis:0}:Object.assign({mainAxis:0,crossAxis:0},T);if(v){var E='y'===w?'height':'width',L=f.reference[w]-f.floating[E]+k.mainAxis,S=f.reference[w]+f.reference[E]-k.mainAxis;OS&&(O=S)}if(y){var C,B,H='y'===w?'width':'height',F=Z.has(R(l)),z=f.reference[b]-f.floating[H]+(F&&(null==(C=c.offset)?void 0:C[b])||0)+(F?0:k.crossAxis),M=f.reference[b]+f.reference[H]+(F?0:(null==(B=c.offset)?void 0:B[b])||0)-(F?k.crossAxis:0);DM&&(D=M)}return a(a({},w,O),b,D)}}},t.offset=function(t){return void 0===t&&(t=0),{name:'offset',options:t,fn:(n=l(function*(n){var i,o,a=n.x,l=n.y,f=n.placement,c=n.middlewareData,s=yield $(n,t);return f===(null==(i=c.offset)?void 0:i.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:a+s.x,y:l+s.y,data:Object.assign({},s,{placement:f})}}),function(t){return n.apply(this,arguments)})};var n},t.rectToClientRect=I,t.shift=function(t){return void 0===t&&(t={}),{name:'shift',options:t,fn:(n=l(function*(n){var o=n.x,l=n.y,f=n.placement,c=A(t,n),s=c.mainAxis,d=void 0===s||s,p=c.crossAxis,v=void 0!==p&&p,h=c.limiter,y=void 0===h?{fn:function(t){return{x:t.x,y:t.y}}}:h,x=i(c,u),b={x:o,y:l},O=yield G(n,x),D=j(R(f)),T=P(D),k=b[T],E=b[D];if(d){var L='y'===T?'bottom':'right';k=w(k+O['y'===T?'top':'left'],k,k-O[L])}if(v){var S='y'===D?'bottom':'right';E=w(E+O['y'===D?'top':'left'],E,E-O[S])}var C=y.fn(Object.assign({},n,a(a({},T,k),D,E)));return Object.assign({},C,{data:{x:C.x-o,y:C.y-l,enabled:a(a({},T,d),D,v)}})}),function(t){return n.apply(this,arguments)})};var n},t.size=function(t){return void 0===t&&(t={}),{name:'size',options:t,fn:(n=l(function*(n){var o,a,l,f,c=n.placement,s=n.rects,u=n.platform,p=n.elements,v=A(t,n),x=v.apply,b=void 0===x?function(){}:x,w=i(v,d),P=yield G(n,w),D=R(c),T=O(c),k='y'===j(c),E=s.floating,L=E.width,S=E.height;'top'===D||'bottom'===D?(l=D,f=T===((yield null==u.isRTL?void 0:u.isRTL(p.floating))?'start':'end')?'left':'right'):(f=D,l='end'===T?'top':'bottom');var C=S-P.top-P.bottom,B=L-P.left-P.right,H=h(S-P[l],C),F=h(L-P[f],B),z=!n.middlewareData.shift,M=H,V=F;if(null!=(o=n.middlewareData.shift)&&o.enabled.x&&(V=B),null!=(a=n.middlewareData.shift)&&a.enabled.y&&(M=C),z&&!T){var W=y(P.left,0),_=y(P.right,0),I=y(P.top,0),U=y(P.bottom,0);k?V=L-2*(0!==W||0!==_?W+_:y(P.left,P.right)):M=S-2*(0!==I||0!==U?I+U:y(P.top,P.bottom))}yield b(Object.assign({},n,{availableWidth:V,availableHeight:M}));var q=yield u.getDimensions(p.floating);return L!==q.width||S!==q.height?{reset:{rects:!0}}:{}}),function(t){return n.apply(this,arguments)})};var n}},'object'==typeof e&&void 0!==m?n(e):'function'==typeof define&&define.amd?define(['exports'],n):n((t='undefined'!=typeof globalThis?globalThis:t||self).FloatingUICore={})},1710,[207,32,18,367]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1711,[1712]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),s=["children","lazyMount","type","present","passThrough"],c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,f=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var f=function(l){!p.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(s=u(n,l))||s.enumerable})};for(var h of l(n))f(h)}return t},h={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(h,{Animate:function(){return j}}),m.exports=(t=h,f(c({},"__esModule",{value:!0}),t));var y=r(d[2]),b=r(d[3]);function j(t){var c=t.children,u=t.lazyMount,l=t.type,p=t.present,f=t.passThrough,h=o(t,s),j=(0,b.useState)(!u&&p),x=n(j,2),v=x[0],O=x[1];(0,b.useEffect)(function(){f||u&&p&&(0,b.startTransition)(function(){O(p)})},[u,p]);var P=!!p&&(u?v:p);return"presence"===l?h.keepChildrenMounted?(0,y.jsx)(r(d[4]).PresenceChild,Object.assign({isPresent:!0},!f&&{initial:!!h.initial&&void 0,onExitComplete:h.onExitComplete,enterVariant:h.enterVariant,exitVariant:h.exitVariant,enterExitVariant:h.enterExitVariant,presenceAffectsLayout:!1,isPresent:p,custom:h.custom},{children:c})):(0,y.jsx)(r(d[4]).AnimatePresence,Object.assign({passThrough:f},h,{children:P||f?c:null})):(0,y.jsx)(y.Fragment,{children:c})}},1712,[19,207,258,128,1599]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,b=function(t,n,f,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!l.call(t,c)&&c!==f&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var s of c(n))p(s)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{useFloatingContext:function(){return O}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var s=(function(t,u,c){return c=null!=t?n(f(t)):{},b(!u&&t&&t.__esModule?c:o(c,"default",{value:t,enumerable:!0}),t)})(r(d[0])),O=function(){return s.default.useCallback(function(){},[])}},1713,[128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1714,[1715]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),o=["__scopeProgress","animation"],u=["__scopeProgress","value","max","getValueLabel","size"],s=Object.create,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(e,t,n,o){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!b.call(e,u)&&u!==n&&l(e,u,{get:function(){return t[u]},enumerable:!(o=c(t,u))||o.enumerable})};for(var s of v(t))u(s)}return e},y={};!(function(e,t){for(var n in t)l(e,n,{get:t[n],enumerable:!0})})(y,{Progress:function(){return G},ProgressFrame:function(){return F},ProgressIndicator:function(){return L},ProgressIndicatorFrame:function(){return I},createProgressScope:function(){return j}}),m.exports=(e=y,p(l({},"__esModule",{value:!0}),e));var h=r(d[2]),P=(function(e,t,n){return n=null!=e?s(f(e)):{},p(!t&&e&&e.__esModule?n:l(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),w="Progress",x=(0,r(d[4]).createContextScope)(w),_=n(x,2),O=_[0],j=_[1],S=O(w),V=n(S,2),N=V[0],z=V[1],A="ProgressIndicator",I=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:A,variants:{unstyled:{false:{height:"100%",width:"100%",backgrounded:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),L=I.styleable(function(e,n){var u,s,l=e.__scopeProgress,c=e.animation,v=t(e,o),f=z(A,l),b=f.max-(null!==(u=f.value)&&void 0!==u?u:0),p=-(0===f.width?300:f.width)*(b/100);return(0,h.jsx)(I,Object.assign({"data-state":E(f.value,f.max),"data-value":null!==(s=f.value)&&void 0!==s?s:void 0,"data-max":f.max,x:p,width:f.width},!e.unstyled&&{animateOnly:["transform"],opacity:0===f.width?0:1},v,{ref:n,animation:f.width?c:null}))});function M(e,t){return`${Math.round(e/t*100)}%`}function E(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function k(e){return"number"==typeof e}function T(e){return k(e)&&!Number.isNaN(e)&&e>0}function D(e,t){return k(e)&&!Number.isNaN(e)&&e<=t&&e>=0}var F=(0,r(d[5]).styled)(r(d[6]).ThemeableStack,{name:"Progress",variants:{unstyled:{false:{borderRadius:1e5,overflow:"hidden",backgrounded:!0}},size:{"...size":function(e){var t=Math.round(.25*(0,r(d[5]).getVariableValue)((0,r(d[7]).getSize)(e)));return{height:t,minWidth:20*(0,r(d[5]).getVariableValue)(t),width:"100%"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),G=(0,r(d[8]).withStaticProperties)(F.styleable(function(e,o){var s=e.__scopeProgress,l=e.value,c=e.max,v=e.getValueLabel,f=void 0===v?M:v,b=e.size,p=void 0===b?"$true":b,y=t(e,u),w=T(c)?c:100,x=D(l,w)?l:null,_=k(x)?f(x,w):void 0,O=P.useState(0),j=n(O,2),S=j[0],V=j[1];return(0,h.jsx)(N,{scope:s,value:x,max:w,width:S,children:(0,h.jsx)(F,Object.assign({"aria-valuemax":w,"aria-valuemin":0,"aria-valuenow":k(x)?x:void 0,"aria-valuetext":_,role:"progressbar","data-state":E(x,w),"data-value":null!=x?x:void 0,"data-max":w},!0!==y.unstyled&&{size:p},y,{onLayout:function(e){var t;V(e.nativeEvent.layout.width),null===(t=y.onLayout)||void 0===t||t.call(y,e)},ref:o}))})}),{Indicator:L})},1715,[207,19,258,128,1636,1461,1588,1594,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,p=function(t,p,f,s){if(p&&"object"==typeof p||"function"==typeof p){var l=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return p[u]},enumerable:!(s=n(p,u))||s.enumerable})};for(var b of u(p))l(b)}return t},f=function(t,o,n){return p(t,o,"default"),n&&p(n,o,"default")},s={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(s,{RadioGroup:function(){return l}}),m.exports=(t=s,p(o({},"__esModule",{value:!0}),t)),f(s,r(d[0]),m.exports),f(s,r(d[1]),m.exports),f(s,r(d[2]),m.exports);var l=(0,r(d[0]).createRadioGroup)({Frame:r(d[1]).RadioGroupFrame,Indicator:r(d[1]).RadioGroupIndicatorFrame,Item:r(d[1]).RadioGroupItemFrame})},1716,[1717,1718,1725]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=["value","defaultValue","onValueChange","required","disabled","name","native","accentColor","orientation"],u=["value","labelledBy","onPress","onKeyDown","disabled","id"],l=["forceMount","disabled"],c=["checked"],s=Object.create,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,f=Object.getPrototypeOf,j=Object.prototype.hasOwnProperty,y=function(o,t,n,u){if(t&&"object"==typeof t||"function"==typeof t){var l=function(l){!j.call(o,l)&&l!==n&&v(o,l,{get:function(){return t[l]},enumerable:!(u=b(t,l))||u.enumerable})};for(var c of p(t))l(c)}return o},G={};!(function(o,t){for(var n in t)v(o,n,{get:t[n],enumerable:!0})})(G,{createRadioGroup:function(){return F}}),m.exports=(o=G,y(v({},"__esModule",{value:!0}),o));var x=r(d[1]),I=(function(o,t,n){return n=null!=o?s(f(o)):{},y(!t&&o&&o.__esModule?n:v(n,"default",{value:o,enumerable:!0}),o)})(r(d[2])),O=function(o){o.context||(o.context=h)},h=I.default.createContext({}),R=I.default.createContext({checked:!1,disabled:!1});function F(o){o.disableActiveTheme;var s=o.Frame,v=void 0===s?r(d[3]).RadioGroupFrame:s,b=o.Indicator,p=void 0===b?r(d[3]).RadioGroupIndicatorFrame:b,f=o.Item,j=void 0===f?r(d[3]).RadioGroupItemFrame:f;O(v),O(p),O(j);var y=v.styleable(function(o,u){var l=o.value,c=o.defaultValue,s=o.onValueChange,v=o.required,b=void 0!==v&&v,p=o.disabled,f=void 0!==p&&p,j=o.name,y=o.native,G=o.accentColor,I=o.orientation,O=void 0===I?"vertical":I,R=t(o,n),F=(0,r(d[4]).useRadioGroup)({orientation:O,name:j,defaultValue:c,value:l,onValueChange:s,required:b,disabled:f,native:y,accentColor:G}),C=F.providerValue,P=F.frameAttrs,V=F.rovingFocusGroupAttrs;return(0,x.jsx)(h.Provider,{value:C,children:(0,x.jsx)(r(d[5]).RovingFocusGroup,Object.assign({},V,{children:(0,x.jsx)(r(d[3]).RadioGroupFrame,Object.assign({},P,{ref:u},R))}))})}),G=j.styleable(function(o,n){var l=o.value,c=o.labelledBy,s=o.onPress,v=o.onKeyDown,b=o.disabled,p=o.id,f=t(o,u),j=(0,r(d[4]).useRadioGroupItem)({radioGroupContext:h,value:l,id:p,labelledBy:c,disabled:b,onPress:s,onKeyDown:v}),y=j.providerValue,G=j.bubbleInput,I=j.rovingFocusGroupAttrs,O=j.frameAttrs,F=j.isFormControl,C=j.native;return(0,x.jsx)(R.Provider,{value:y,children:r(d[6]).isWeb&&C?G:(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(r(d[5]).RovingFocusGroup.Item,Object.assign({},I,{children:(0,x.jsx)(r(d[3]).RadioGroupItemFrame,Object.assign({},O,{ref:n},f))})),F&&G]})})});G.displayName="RadioGroupItem";var I=p.styleable(function(o,n){var u=o.forceMount,s=o.disabled,v=t(o,l),b=(0,r(d[4]).useRadioGroupItemIndicator)({radioGroupItemContext:R,disabled:s}),f=b.checked,j=t(b,c);return u||f?(0,x.jsx)(p,Object.assign({},j,{ref:n},v)):null});I.displayName="RadioIndicator";var F=(0,r(d[6]).withStaticProperties)(y,{Item:G,Indicator:I});return F.displayName="RadioGroup",F}},1717,[207,258,128,1718,1719,1723,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(o,c,s,b){if(c&&"object"==typeof c||"function"==typeof c){var f=function(l){!u.call(o,l)&&l!==s&&t(o,l,{get:function(){return c[l]},enumerable:!(b=n(c,l))||b.enumerable})};for(var p of l(c))f(p)}return o},s={};!(function(o,n){for(var l in n)t(o,l,{get:n[l],enumerable:!0})})(s,{RadioGroupFrame:function(){return p},RadioGroupIndicatorFrame:function(){return f},RadioGroupItemFrame:function(){return b}}),m.exports=(o=s,c(t({},"__esModule",{value:!0}),o));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroupItem",tag:"button",variants:{unstyled:{false:{size:"$true",borderRadius:1e3,backgroundColor:"$background",alignItems:"center",justifyContent:"center",borderWidth:1,borderColor:"$borderColor",padding:0,hoverStyle:{borderColor:"$borderColorHover",backgroundColor:"$backgroundHover"},focusStyle:{borderColor:"$borderColorHover",backgroundColor:"$backgroundHover"},focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},pressStyle:{borderColor:"$borderColorFocus",backgroundColor:"$backgroundFocus"}}},disabled:{true:{pointerEvents:"none",userSelect:"none",cursor:"not-allowed",hoverStyle:{borderColor:"$borderColor",backgroundColor:"$background"},pressStyle:{borderColor:"$borderColor",backgroundColor:"$background"},focusVisibleStyle:{outlineWidth:0}}},size:{"...size":function(o,t){var n,l=t.props,u=Math.floor((0,r(d[0]).getVariableValue)((0,r(d[2]).getSize)(o))*(null!==(n=l.scaleSize)&&void 0!==n?n:.5));return{width:u,height:u}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroupIndicator",variants:{unstyled:{false:{width:"33%",height:"33%",borderRadius:1e3,backgroundColor:"$color",pressTheme:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),p=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"RadioGroup",variants:{orientation:{horizontal:{flexDirection:"row",spaceDirection:"horizontal"},vertical:{flexDirection:"column",spaceDirection:"vertical"}}}})},1718,[1461,1588,1594]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1719,[1720,1722]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=["radioGroupItemContext","disabled"],c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var b=function(l){!f.call(t,l)&&l!==o&&c(t,l,{get:function(){return n[l]},enumerable:!(u=s(n,l))||u.enumerable})};for(var p of l(n))b(p)}return t},p={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(p,{useRadioGroup:function(){return C},useRadioGroupItem:function(){return k},useRadioGroupItemIndicator:function(){return w}}),m.exports=(t=p,b(c({},"__esModule",{value:!0}),t));var v=r(d[2]),y=r(d[3]);function C(t){var n=t.value,u=t.onValueChange,c=t.defaultValue,s=t.required,l=t.disabled,f=t.name,b=t.native,p=t.accentColor,v=t.orientation,y=(t.ref,(0,r(d[4]).useControllableState)({prop:n,defaultProp:c,onChange:u})),C=o(y,2);return{providerValue:{value:C[0],onChange:C[1],required:s,disabled:l,name:f,native:b,accentColor:p},frameAttrs:{role:"radiogroup","aria-orientation":v,"data-disabled":l?"":void 0},rovingFocusGroupAttrs:{orientation:v,loop:!0}}}var h=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],k=function(t){var n=t.radioGroupContext,u=t.value,c=t.labelledBy,s=t.disabled,l=t.ref,f=t.id,b=t.onPress,p=t.onKeyDown,C=t.onFocus,k=(0,y.useContext)(n),w=k.value,E=k.disabled,O=k.required,j=k.onChange,x=k.name,A=k.native,P=k.accentColor,G=(0,y.useState)(null),R=o(G,2),I=R[0],F=R[1],L=(0,y.useRef)(!1),S=(0,y.useRef)(null),q=(0,r(d[5]).useComposedRefs)(l,function(t){return F(t)},S),D=(0,y.useRef)(!1),W=!!r(d[6]).isWeb&&(!I||!!I.closest("form")),H=w===u,V=(0,r(d[7]).useLabelContext)(I),_=c||V;(0,y.useEffect)(function(){if(r(d[6]).isWeb){var t=function(t){h.includes(t.key)&&(D.current=!0)},n=function(){D.current=!1};return document.addEventListener("keydown",t),document.addEventListener("keyup",n),function(){document.removeEventListener("keydown",t),document.removeEventListener("keyup",n)}}},[]),(0,y.useEffect)(function(){if(f&&!E)return(0,r(d[8]).registerFocusable)(f,{focusAndSelect:function(){null==j||j(u)},focus:function(){}})},[f,u,E]);var B=E||s;return{providerValue:{checked:H},checked:H,isFormControl:W,bubbleInput:(0,v.jsx)(r(d[9]).BubbleInput,Object.assign({isHidden:!A,control:I,bubbles:!L.current,name:x,value:u,checked:H,required:O,disabled:B},r(d[6]).isWeb&&A&&{accentColor:P,id:f})),native:A,frameAttrs:Object.assign({"data-state":(0,r(d[10]).getState)(H),"data-disabled":B?"":void 0,role:"radio","aria-labelledby":_,"aria-checked":H,"aria-required":O,disabled:B,ref:q},r(d[6]).isWeb&&{type:"button",value:u},{id:f,onPress:(0,r(d[11]).composeEventHandlers)(b,function(t){H||null==j||j(u),W&&(L.current=t.isPropagationStopped(),L.current||t.stopPropagation())})},r(d[6]).isWeb&&{onKeyDown:(0,r(d[11]).composeEventHandlers)(p,function(t){"Enter"===t.key&&t.preventDefault()}),onFocus:(0,r(d[11]).composeEventHandlers)(C,function(){var t;D.current&&(null===(t=S.current)||void 0===t||t.click())})}),rovingFocusGroupAttrs:{asChild:"expect-style",focusable:!B,active:H}}};function w(t){var o=t.radioGroupItemContext,c=t.disabled,s=n(t,u),l=(0,y.useContext)(o).checked;return Object.assign({checked:l,"data-state":(0,r(d[10]).getState)(l),"data-disabled":c?"":void 0},s)}},1720,[207,19,258,128,1583,1525,1463,1685,1687,1721,1722,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["checked","bubbles","control","isHidden","accentColor"],c=Object.create,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,b=Object.getPrototypeOf,f=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var b=function(s){!f.call(t,s)&&s!==o&&u(t,s,{get:function(){return n[s]},enumerable:!(c=l(n,s))||c.enumerable})};for(var p of s(n))b(p)}return t},v={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(v,{BubbleInput:function(){return j}}),m.exports=(t=v,p(u({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,o){return o=null!=t?c(b(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),j=function(t){var c=t.checked,u=t.bubbles,l=void 0===u||u,s=(t.control,t.isHidden),b=t.accentColor,f=n(t,o),p=O.default.useRef(null),v=(0,r(d[3]).usePrevious)(c);return O.default.useEffect(function(){var t=p.current,n=window.HTMLInputElement.prototype,o=Object.getOwnPropertyDescriptor(n,"checked").set;if(v!==c&&o){var u=new Event("click",{bubbles:l});o.call(t,c),t.dispatchEvent(u)}},[v,c,l]),(0,y.jsx)("input",Object.assign({type:"radio",defaultChecked:c},f,{tabIndex:-1,ref:p,"aria-hidden":s,style:Object.assign({},s?{position:"absolute",pointerEvents:"none",opacity:0,margin:0}:{appearance:"auto",accentColor:b},t.style)}))}},1721,[207,258,128,1693]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(b=o(f,c))||b.enumerable})};for(var s of c(f))l(s)}return t},p={};function b(t){return t?"checked":"unchecked"}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{getState:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1722,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1723,[1724]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],u=["children"],c=Object.create,f=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,p=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==o&&f(t,c,{get:function(){return n[c]},enumerable:!(u=l(n,c))||u.enumerable})};for(var p of s(n))c(p)}return t},O={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(O,{RovingFocusGroup:function(){return w},createRovingFocusGroupScope:function(){return P}}),m.exports=(t=O,b(f({},"__esModule",{value:!0}),t));var j=r(d[1]),y=(function(t,n,o){return o=null!=t?c(p(t)):{},b(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),h=y.default.forwardRef(function(t,u){var c=t.children,f=n(t,o);return(0,j.jsx)(r(d[3]).Stack,Object.assign({},f,{children:c}))});h.displayName="RovingFocusGroupItem";var w=(0,r(d[4]).withStaticProperties)(y.default.forwardRef(function(t,o){var c=t.children,f=n(t,u);return(0,j.jsx)(r(d[3]).Stack,Object.assign({},f,{children:c}))}),{Item:h});w.displayName="RovingFocusGroup";var P=function(){return function(){return{}}}},1724,[207,258,128,1461,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var y of u(f))s(y)}return t},p={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(p,{RadioGroupStyledContext:function(){return l}}),m.exports=(t=p,f(o({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).createStyledContext)({size:"$true",scaleIcon:1},"RadioGroup")},1725,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1726,[1727,1728]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),l=["scope","children","placeholder"],c=["scope"],u=["scope"],s=["scope"],p=Object.create,f=Object.defineProperty,S=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,h=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,C=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!b.call(t,c)&&c!==o&&f(t,c,{get:function(){return n[c]},enumerable:!(l=S(n,c))||l.enumerable})};for(var u of v(n))c(u)}return t},x={};!(function(t,n){for(var o in n)f(t,o,{get:n[o],enumerable:!0})})(x,{Select:function(){return M},SelectGroupFrame:function(){return T},SelectIcon:function(){return R},SelectSeparator:function(){return F}}),m.exports=(t=x,C(f({},"__esModule",{value:!0}),t));var I=r(d[2]),y=(function(t,n,o){return o=null!=t?p(h(t)):{},C(!n&&t&&t.__esModule?o:f(o,"default",{value:t,enumerable:!0}),t)})(r(d[3])),j=(0,r(d[4]).styled)(r(d[5]).SizableText,{name:"SelectValue",userSelect:"none"}),O=j.styleable(function(t,n){var c=t.scope,u=t.children,s=t.placeholder,p=o(t,l),f=(0,r(d[6]).useSelectContext)(c),S=(0,r(d[6]).useSelectItemParentContext)(c),v=(0,r(d[7]).useComposedRefs)(n,f.onValueNodeChange),h=null!=u?u:f.selectedItem,b=(null==f.value||""===f.value)&&null!=s?s:h;return(0,I.jsx)(j,Object.assign({},!p.unstyled&&{size:S.size,ellipse:!0,pointerEvents:"none"},{ref:v},p,{children:P(b)}))});function P(t){return y.Children.map(t,function(t){if(t){var n,o,l;if((null===(o=t.type)||void 0===o||null===(n=o.staticConfig)||void 0===n?void 0:n.componentName)===r(d[8]).ITEM_TEXT_NAME)return t.props.children;if(null!==(l=t.props)&&void 0!==l&&l.children)return P(t.props.children)}return t})}var R=(0,r(d[4]).styled)(r(d[9]).XStack,{name:"SelectIcon","aria-hidden":!0,children:(0,I.jsx)(r(d[5]).Paragraph,{children:"\u25bc"})}),w=(0,r(d[4]).styled)(r(d[9]).XStack,{name:"SelectItemIndicator"}),A=y.forwardRef(function(t,n){var l=t.scope,u=o(t,c),s=(0,r(d[6]).useSelectItemParentContext)(l),p=(0,r(d[10]).useSelectItemContext)(l);return s.shouldRenderWebNative?null:p.isSelected?(0,I.jsx)(w,Object.assign({"aria-hidden":!0},u,{ref:n})):null}),N="SelectGroup",z=(0,r(d[4]).createStyledContext)({id:""},"SelectGroup"),k=z.Provider,V=z.useStyledContext,T=(0,r(d[4]).styled)(r(d[9]).YStack,{name:N,width:"100%"}),E=(0,r(d[4]).styled)(r(d[5]).SizableText,{tag:"select",backgroundColor:"$background",borderColor:"$borderColor",hoverStyle:{backgroundColor:"$backgroundHover"}}),W=(0,r(d[4]).styled)(r(d[9]).ThemeableStack,{name:"NativeSelect",bordered:!0,userSelect:"none",outlineWidth:0,paddingRight:10,variants:{size:{"...size":function(t,n){var o,l=n.tokens,c=(0,r(d[4]).getVariableValue)(l.space[t]);return{borderRadius:null!==(o=l.radius[t])&&void 0!==o?o:t,minHeight:l.size[t],paddingRight:c+20,paddingLeft:c,paddingVertical:(0,r(d[11]).getSpace)(t,{shift:-3})}}}},defaultVariants:{size:"$2"}}),_=y.forwardRef(function(t,n){var l,c=t.scope,s=o(t,u),p=y.useId(),f=(0,r(d[6]).useSelectContext)(c),S=(0,r(d[6]).useSelectItemParentContext)(c),v=null!==(l=S.size)&&void 0!==l?l:"$true",h=y.useRef(null),b=S.shouldRenderWebNative?(0,I.jsx)(W,{asChild:!0,size:v,value:f.value,id:S.id,children:(0,I.jsx)(E,{onChange:function(t){S.onChange(t.currentTarget.value)},size:v,ref:h,style:{color:"var(--color)",appearance:"none"},children:t.children})}):(0,I.jsx)(T,Object.assign({role:"group","aria-labelledby":p},s,{ref:n}));return(0,I.jsx)(k,{scope:c,id:p||"",children:b})});_.displayName=N;var $="SelectLabel",B=y.forwardRef(function(t,n){var l=t.scope,c=o(t,s),u=(0,r(d[6]).useSelectItemParentContext)(l),p=V(l);return u.shouldRenderWebNative?null:(0,I.jsx)(r(d[12]).ListItem,Object.assign({tag:"div",componentName:$,fontWeight:"800",id:p.id,size:u.size},c,{ref:n}))});B.displayName=$;var F=(0,r(d[4]).styled)(r(d[13]).Separator,{name:"SelectSeparator"}),G=function(t){var n=(0,r(d[6]).useSelectContext)(t.scope),o=(0,r(d[14]).useShowSelectSheet)(n),l=(0,r(d[15]).useAdaptIsActive)(n.adaptScope),c=(0,r(d[4]).useGet)(o);return(0,I.jsx)(r(d[16]).SheetController,{onOpenChange:function(n){c()&&t.onOpenChange(n)},open:n.open,hidden:!l,children:t.children})},L=function(t){return(0,I.jsx)(I.Fragment,{children:t.children})},M=(0,r(d[17]).withStaticProperties)(function(t){var n=`AdaptSelect${t.scope||""}`;return(0,I.jsx)(r(d[15]).AdaptParent,{scope:n,portal:!0,children:(0,I.jsx)(U,Object.assign({scope:t.scope,adaptScope:n},t))})},{Adapt:r(d[15]).Adapt,Content:r(d[18]).SelectContent,Group:_,Icon:R,Item:r(d[10]).SelectItem,ItemIndicator:A,ItemText:r(d[8]).SelectItemText,Label:B,ScrollDownButton:r(d[19]).SelectScrollDownButton,ScrollUpButton:r(d[19]).SelectScrollUpButton,Trigger:r(d[20]).SelectTrigger,Value:O,Viewport:r(d[21]).SelectViewport,Sheet:r(d[16]).Sheet.Controlled,FocusScope:r(d[22]).FocusScopeController});function D(){var t=y.useRef(null);t.current||(t.current=new Set);return[function(n){t.current.forEach(function(t){return t(n)})},y.useCallback(function(n){return t.current.add(n),function(){t.current.delete(n)}},[])]}function U(t){var o=t.scope,l=void 0===o?"":o,c=t.adaptScope,u=t.native,s=t.children,p=t.open,f=t.defaultOpen,S=t.onOpenChange,v=t.value,h=t.defaultValue,b=t.onValueChange,C=t.disablePreventBodyScroll,x=t.size,j=void 0===x?"$true":x,O=t.onActiveChange,P=t.dir,R=t.id,w=(0,r(d[15]).useAdaptIsActive)(c)||!r(d[23]).isWeb?L:r(d[24]).SelectInlineImpl,A=y.useReducer(function(){return{}},{})[1],N=y.useState(null),z=n(N,2),k=z[0],V=z[1],T=(0,r(d[25]).useControllableState)({prop:p,defaultProp:f||!1,onChange:S}),E=n(T,2),W=E[0],_=E[1],$=(0,r(d[25]).useControllableState)({prop:v,defaultProp:h||"",onChange:b,transition:!0}),B=n($,2),F=B[0],M=B[1];y.useEffect(function(){W&&K(F)},[W]),y.useEffect(function(){K(F)},[F]),y.useEffect(function(){if(t.id)return(0,r(d[26]).registerFocusable)(t.id,{focusAndSelect:function(){null==_||_(function(t){return!t})},focus:function(){}})},[t.id]);var U=y.useState(0),X=n(U,2),H=X[0],Y=X[1],q=D(),J=n(q,2),K=J[0],Q=J[1],Z=D(),ee=n(Z,2),te=ee[0],ne=ee[1],re=y.useRef(null),oe=y.useRef(null),le=y.useRef([]),ce=y.useState(0),ae=n(ce,2),ue=ae[0],ie=ae[1],se=y.useState(null),de=n(se,2),pe=de[0],fe=de[1];(0,r(d[23]).useIsomorphicLayoutEffect)(function(){re.current=ue,oe.current=H});var Se=r(d[23]).isWeb&&(!0===u||"web"===u||Array.isArray(u)&&u.includes("web")),ve=(0,r(d[27]).useDebounce)(function(t){Y(function(n){return n!==t?("number"==typeof t&&te(t),t):n})},1,{},[]);return(0,I.jsx)(r(d[6]).SelectItemParentProvider,{scopeName:l,scope:l,adaptScope:c,initialValue:y.useMemo(function(){return F},[W]),size:j,activeIndexSubscribe:ne,valueSubscribe:Q,setOpen:_,id:R,onChange:y.useCallback(function(t){M(t),K(t)},[]),onActiveChange:(0,r(d[4]).useEvent)(function(t,n){null==O||O(t,n)}),setSelectedIndex:ie,setValueAtIndex:y.useCallback(function(t,n){le.current[t]=n},[]),shouldRenderWebNative:Se,children:(0,I.jsx)(r(d[6]).SelectProvider,{scope:l,scopeName:l,adaptScope:c,disablePreventBodyScroll:C,dir:P,blockSelection:!1,fallback:!1,selectedItem:k,setSelectedItem:V,forceUpdate:A,valueNode:pe,onValueNodeChange:fe,activeIndex:H,selectedIndex:ue,setActiveIndex:ve,value:F,open:W,native:u,children:(0,I.jsx)(G,{onOpenChange:_,scope:l,children:Se?s:(0,I.jsx)(w,Object.assign({activeIndexRef:oe,listContentRef:le,selectedIndexRef:re},t,{open:W,value:F,children:s}))})})})}},1727,[19,207,258,128,1461,1609,1728,1525,1729,1588,1730,1594,1700,1731,1733,1616,1633,1476,1734,1735,1736,1737,1658,1463,1739,1583,1687,1740]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,s,f){if(l&&"object"==typeof l||"function"==typeof l){var p=function(c){!u.call(t,c)&&c!==s&&n(t,c,{get:function(){return l[c]},enumerable:!(f=o(l,c))||f.enumerable})};for(var x of c(l))p(x)}return t},s={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(s,{ForwardSelectContext:function(){return P},SelectItemParentProvider:function(){return y},SelectProvider:function(){return x},useSelectContext:function(){return S},useSelectItemParentContext:function(){return b}}),m.exports=(t=s,l(n({},"__esModule",{value:!0}),t));var f=r(d[0]),p=(0,r(d[1]).createStyledContext)(null,"Select"),x=p.Provider,S=p.useStyledContext,v=(0,r(d[1]).createStyledContext)(null,"SelectItem"),y=v.Provider,b=v.useStyledContext,P=function(t){var n=t.context,o=t.itemContext,c=t.children;return(0,f.jsx)(x,Object.assign({isInSheet:!0,scope:n.scopeName},n,{children:(0,f.jsx)(y,Object.assign({scope:n.scopeName},o,{children:c}))}))}},1728,[258,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=["scope","className"],c=Object.create,l=Object.defineProperty,o=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,b=function(t,n,u,c){if(n&&"object"==typeof n||"function"==typeof n){var f=function(s){!p.call(t,s)&&s!==u&&l(t,s,{get:function(){return n[s]},enumerable:!(c=o(n,s))||c.enumerable})};for(var b of s(n))f(b)}return t},v={};!(function(t,n){for(var u in n)l(t,u,{get:n[u],enumerable:!0})})(v,{ITEM_TEXT_NAME:function(){return I},SelectItemText:function(){return j},SelectItemTextFrame:function(){return S}}),m.exports=(t=v,b(l({},"__esModule",{value:!0}),t));var y=r(d[1]),x=(function(t,n,u){return u=null!=t?c(f(t)):{},b(!n&&t&&t.__esModule?u:l(u,"default",{value:t,enumerable:!0}),t)})(r(d[2])),I="SelectItemText",S=(0,r(d[3]).styled)(r(d[4]).SizableText,{name:I,variants:{unstyled:{false:{userSelect:"none",color:"$color",ellipse:!0}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),j=S.styleable(function(t,c){var l=t.scope,o=t.className,s=n(t,u),f=(0,r(d[5]).useSelectContext)(l),p=(0,r(d[5]).useSelectItemParentContext)(l),b=x.useRef(null),v=(0,r(d[6]).useComposedRefs)(c,b),I=(0,r(d[7]).useSelectItemContext)(l),j=x.useRef(null);return j.current=(0,y.jsx)(S,Object.assign({className:o,size:p.size,id:I.textId},s,{ref:v})),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){p.initialValue===I.value&&!f.selectedIndex&&f.setSelectedItem(j.current)},[]),(0,r(d[3]).useIsomorphicLayoutEffect)(function(){return p.valueSubscribe(function(t){t===I.value&&f.setSelectedItem(j.current)})},[I.value]),p.shouldRenderWebNative?(0,y.jsx)(y.Fragment,{children:t.children}):(0,y.jsx)(y.Fragment,{children:j.current})})},1729,[207,258,128,1461,1609,1728,1525,1730]); -__d(function(g,r,_i,a,m,e,d){"use strict";var t,n=r(d[0]),u=r(d[1]),o=["scope","value","disabled","textValue","index"],c=Object.create,i=Object.defineProperty,l=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(t,n,u,o){if(n&&"object"==typeof n||"function"==typeof n){var c=function(c){!v.call(t,c)&&c!==u&&i(t,c,{get:function(){return n[c]},enumerable:!(o=l(n,c))||o.enumerable})};for(var f of s(n))c(f)}return t},p={};!(function(t,n){for(var u in n)i(t,u,{get:n[u],enumerable:!0})})(p,{SelectItem:function(){return j},SelectItemContextProvider:function(){return S},useSelectItemContext:function(){return O}}),m.exports=(t=p,b(i({},"__esModule",{value:!0}),t));var y=r(d[2]),x=(function(t,n,u){return u=null!=t?c(f(t)):{},b(!n&&t&&t.__esModule?u:i(u,"default",{value:t,enumerable:!0}),t)})(r(d[3])),h="SelectItem",I=(0,r(d[4]).createStyledContext)(null,h),S=I.Provider,O=I.useStyledContext,j=r(d[5]).ListItemFrame.styleable(function(t,c){var i=t.scope,l=t.value,s=t.disabled,f=void 0!==s&&s,v=(t.textValue,t.index),b=u(t,o),p=(0,r(d[5]).useListItem)(Object.assign({},!t.unstyled&&{ellipse:!0},b)).props,I=(0,r(d[6]).useSelectItemParentContext)(i),O=I.setSelectedIndex,j=I.listRef,C=I.setOpen,P=I.onChange,T=I.activeIndexSubscribe,M=I.valueSubscribe,R=I.allowMouseUpRef,w=I.allowSelectRef,E=I.setValueAtIndex,_=I.selectTimeoutRef,k=I.dataRef,L=I.interactions,V=I.shouldRenderWebNative,D=I.size,N=I.onActiveChange,W=I.initialValue,z=x.useState(W===l),A=n(z,2),F=A[0],U=A[1];x.useEffect(function(){return T(function(t){var n;v===t&&(N(l,v),null==j||null===(n=j.current[v])||void 0===n||n.focus())})},[v]),x.useEffect(function(){return M(function(t){U(t===l)})},[l]);var H=x.useId(),K=x.useCallback(function(t){r(d[7]).isWeb&&t instanceof HTMLElement&&j&&(j.current[v]=t)},[]),$=(0,r(d[8]).useComposedRefs)(c,K);function q(){O(v),P(l),C(!1)}(0,r(d[7]).useIsomorphicLayoutEffect)(function(){E(v,l)},[v,E,l]);var B=x.useMemo(function(){return L?L.getItemProps({onTouchMove:function(){w.current=!0,R.current=!1},onTouchEnd:function(){w.current=!1,R.current=!0},onKeyDown:function(t){"Enter"!==t.key&&(" "!==t.key||null!=k&&k.current.typing)?w.current=!0:(t.preventDefault(),q())},onClick:function(){w.current&&q()},onMouseUp:function(){R.current&&(w.current&&q(),clearTimeout(_.current),_.current=setTimeout(function(){w.current=!0}))}}):{onPress:q}},[q]);return(0,y.jsx)(S,{scope:i,value:l,textId:H||"",isSelected:F,children:V?(0,y.jsx)("option",{value:l,children:t.children}):(0,y.jsx)(r(d[5]).ListItemFrame,Object.assign({tag:"div",componentName:h,ref:$,"aria-labelledby":H,"aria-selected":F,"data-state":F?"active":"inactive","aria-disabled":f||void 0,"data-disabled":f?"":void 0,tabIndex:f?void 0:-1},!t.unstyled&&{backgrounded:!0,pressTheme:!0,hoverTheme:!0,focusTheme:!0,cursor:"default",size:D,outlineOffset:-.5,focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:1,outlineStyle:"solid"}},p,B))})},{disableTheme:!0})},1730,[19,207,258,128,1461,1700,1728,1463,1525]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1731,[1732]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,b=function(t,b,f,h){if(b&&"object"==typeof b||"function"==typeof b){var l=function(u){!c.call(t,u)&&u!==f&&o(t,u,{get:function(){return b[u]},enumerable:!(h=n(b,u))||h.enumerable})};for(var p of u(b))l(p)}return t},f={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(f,{Separator:function(){return h}}),m.exports=(t=f,b(o({},"__esModule",{value:!0}),t));var h=(0,r(d[0]).styled)(r(d[0]).Stack,{name:"Separator",borderColor:"$borderColor",flexShrink:0,borderWidth:0,flex:1,height:0,maxHeight:0,borderBottomWidth:1,y:-.5,variants:{vertical:{true:{y:0,x:-.5,height:r(d[1]).isWeb?"initial":"auto",maxHeight:r(d[1]).isWeb?"initial":"auto",width:0,maxWidth:0,borderBottomWidth:0,borderRightWidth:1}}}})},1732,[1461,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var l of u(f))b(l)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{useShowSelectSheet:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(t){var n=(0,r(d[0]).useAdaptIsActive)(t.adaptScope);return!1!==t.open&&n}},1733,[1616]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(l=o(f,c))||l.enumerable})};for(var s of c(f))b(s)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SelectContent:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return t.children}},1734,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var s of u(f))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{SelectScrollDownButton:function(){return b},SelectScrollUpButton:function(){return p}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t){return null},b=function(t){return null}},1735,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=["scope","disabled","unstyled"],u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,o,n,u){if(o&&"object"==typeof o||"function"==typeof o){var f=function(c){!b.call(t,c)&&c!==n&&s(t,c,{get:function(){return o[c]},enumerable:!(u=l(o,c))||u.enumerable})};for(var p of c(o))f(p)}return t},v={};!(function(t,o){for(var n in o)s(t,n,{get:o[n],enumerable:!0})})(v,{SelectTrigger:function(){return h}}),m.exports=(t=v,p(s({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,o,n){return n=null!=t?u(f(t)):{},p(!o&&t&&t.__esModule?n:s(n,"default",{value:t,enumerable:!0}),t)})(r(d[2])),h=(!r(d[3]).isWeb||!r(d[3]).isClient||window.matchMedia("(pointer:coarse)").matches,O.forwardRef(function(t,u){var s,l=t.scope,c=t.disabled,f=void 0!==c&&c,b=t.unstyled,p=void 0!==b&&b,v=o(t,n),O=(0,r(d[4]).useSelectContext)(l),h=(0,r(d[4]).useSelectItemParentContext)(l),j=(0,r(d[5]).useComposedRefs)(u,null===(s=O.floatingContext)||void 0===s?void 0:s.refs.setReference);return h.shouldRenderWebNative?null:(0,y.jsx)(r(d[6]).ListItem,Object.assign({componentName:"SelectTrigger",unstyled:p,tag:"button",type:"button",id:h.id},!p&&{backgrounded:!0,radiused:!0,hoverTheme:!0,pressTheme:!0,focusable:!0,focusVisibleStyle:{outlineStyle:"solid",outlineWidth:2,outlineColor:"$outlineColor"},borderWidth:1,size:h.size},{"aria-expanded":O.open,"aria-autocomplete":"none",dir:O.dir,disabled:f,"data-disabled":f?"":void 0},v,{ref:j,onPress:function(){h.setOpen(!O.open)}}))}))},1736,[207,258,128,1461,1728,1525,1700]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,s=function(t,s,p,l){if(s&&"object"==typeof s||"function"==typeof s){var f=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return s[c]},enumerable:!(l=o(s,c))||l.enumerable})};for(var x of c(s))f(x)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SelectViewport:function(){return f}}),m.exports=(t=p,s(n({},"__esModule",{value:!0}),t));var l=r(d[0]),f=function(t){var n=t.scope,o=t.children,c=(0,r(d[1]).useSelectContext)(n),u=(0,r(d[1]).useSelectItemParentContext)(n),s=(0,r(d[2]).useThemeName)(),p=(0,r(d[3]).useAdaptContext)();return(0,l.jsx)(r(d[3]).AdaptPortalContents,{scope:c.adaptScope,children:(0,l.jsx)(r(d[2]).Theme,{name:s,children:(0,l.jsx)(r(d[1]).ForwardSelectContext,{itemContext:u,context:c,children:(0,l.jsx)(r(d[3]).AdaptContext.Provider,Object.assign({},p,{children:o}))})})})};f.displayName=r(d[4]).VIEWPORT_NAME},1737,[258,1728,1461,1616,1738]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,O,_){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==O&&n(t,u,{get:function(){return f[u]},enumerable:!(_=o(f,u))||_.enumerable})};for(var L of u(f))p(L)}return t},O={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(O,{FALLBACK_THRESHOLD:function(){return R},MIN_HEIGHT:function(){return E},SCROLL_ARROW_THRESHOLD:function(){return l},SCROLL_ARROW_VELOCITY:function(){return L},SELECT_NAME:function(){return _},VIEWPORT_NAME:function(){return b},WINDOW_PADDING:function(){return p}}),m.exports=(t=O,f(n({},"__esModule",{value:!0}),t));var _="Select",p=8,L=8,l=8,E=80,R=16,b="SelectViewport"},1738,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(p=o(f,c))||p.enumerable})};for(var s of c(f))b(s)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{SelectInlineImpl:function(){return b}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=r(d[0]),b=function(t){return(0,p.jsx)(p.Fragment,{children:t.children})}},1739,[258]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),u=r(d[1]),o=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(n,t,u,o){if(t&&"object"==typeof t||"function"==typeof t){var s=function(l){!v.call(n,l)&&l!==u&&c(n,l,{get:function(){return t[l]},enumerable:!(o=f(t,l))||o.enumerable})};for(var p of l(t))s(p)}return n},b={};!(function(n,t){for(var u in t)c(n,u,{get:t[u],enumerable:!0})})(b,{debounce:function(){return O},useDebounce:function(){return h},useDebounceValue:function(){return _}}),m.exports=(n=b,p(c({},"__esModule",{value:!0}),n));var y=(function(n,t,u){return u=null!=n?o(s(n)):{},p(!t&&n&&n.__esModule?u:c(u,"default",{value:n,enumerable:!0}),n)})(r(d[2]));function O(n,t,u){var o,c=!1;function f(){var f=this;c=!1;var l=arguments;u&&!o&&n.apply(this,l),clearTimeout(o),o=setTimeout(function(){o=null,u||c||n.apply(f,l),c=!1},t)}return f.cancel=function(){c=!0},f}var j={leading:!1};function h(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[n],f=y.useRef(null);return y.useEffect(function(){return function(){var n;null===(n=f.current)||void 0===n||n.cancel()}},[]),y.useMemo(function(){return f.current=O(n,t,o.leading),f.current},[o.leading].concat(u(c)))}function _(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=y.useState(n),c=t(o,2),f=c[0],l=c[1];return y.useEffect(function(){var t=setTimeout(function(){l(function(t){return t===n?t:n})},u);return function(){clearTimeout(t)}},[n]),f}},1740,[19,32,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,l,p){if(c&&"object"==typeof c||"function"==typeof c){var b=function(u){!f.call(t,u)&&u!==l&&n(t,u,{get:function(){return c[u]},enumerable:!(p=o(c,u))||p.enumerable})};for(var s of u(c))b(s)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{SliderContext:function(){return r(d[0]).SliderContext},SliderFrame:function(){return r(d[1]).SliderFrame}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t)),(function(t,n,o){c(t,n,"default"),o&&c(o,n,"default")})(l,r(d[2]),m.exports)},1741,[1742,1743,1744]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,w){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(w=o(f,u))||w.enumerable})};for(var P of u(f))s(P)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{ARROW_KEYS:function(){return O},BACK_KEYS:function(){return x},PAGE_KEYS:function(){return v},SLIDER_NAME:function(){return w},SliderContext:function(){return s},SliderOrientationProvider:function(){return A},SliderProvider:function(){return P},useSliderContext:function(){return S},useSliderOrientationContext:function(){return y}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var w="Slider",s=(0,r(d[0]).createStyledContext)({size:"$true",min:0,max:100,orientation:"horizontal"}),P=s.Provider,S=s.useStyledContext,p=(0,r(d[0]).createStyledContext)({startEdge:"left",endEdge:"right",sizeProp:"width",size:0,direction:1}),A=p.Provider,y=p.useStyledContext,v=["PageUp","PageDown"],O=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],x={ltr:["ArrowDown","Home","ArrowLeft","PageDown"],rtl:["ArrowDown","Home","ArrowRight","PageDown"]}},1742,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,o=r(d[0]),t=["__scopeSlider","onSlideStart","onSlideMove","onSlideEnd","onHomeKeyDown","onEndKeyDown","onStepKeyDown"],u=Object.create,s=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,S=function(n,o,t,u){if(o&&"object"==typeof o||"function"==typeof o){var f=function(c){!p.call(n,c)&&c!==t&&s(n,c,{get:function(){return o[c]},enumerable:!(u=l(o,c))||u.enumerable})};for(var S of c(o))f(S)}return n},v={};!(function(n,o){for(var t in o)s(n,t,{get:o[t],enumerable:!0})})(v,{SliderFrame:function(){return y},SliderImpl:function(){return h}}),m.exports=(n=v,S(s({},"__esModule",{value:!0}),n));var b=r(d[1]),R=(function(n,o,t){return t=null!=n?u(f(n)):{},S(!o&&n&&n.__esModule?t:s(t,"default",{value:n,enumerable:!0}),n)})(r(d[2])),y=(0,r(d[3]).styled)(r(d[4]).YStack,{position:"relative",variants:{orientation:{horizontal:{},vertical:{}},size:function(n,o){if(n){var t=o.props.orientation,u=Math.round((0,r(d[3]).getVariableValue)((0,r(d[5]).getSize)(n))/6);return"horizontal"===t?{height:u,borderRadius:u,justifyContent:"center"}:{width:u,borderRadius:u,alignItems:"center"}}}}}),h=R.forwardRef(function(n,u){var s=n.__scopeSlider,l=n.onSlideStart,c=n.onSlideMove,f=n.onSlideEnd,p=n.onHomeKeyDown,S=n.onEndKeyDown,v=n.onStepKeyDown,R=o(n,t),h=(0,r(d[6]).useSliderContext)(s);return(0,b.jsx)(y,Object.assign({size:"$4"},R,{"data-orientation":R.orientation,ref:u},r(d[7]).isWeb&&{onKeyDown:function(n){"Home"===n.key?(p(n),n.preventDefault()):"End"===n.key?(S(n),n.preventDefault()):r(d[6]).PAGE_KEYS.concat(r(d[6]).ARROW_KEYS).includes(n.key)&&(v(n),n.preventDefault())}},{onMoveShouldSetResponderCapture:function(){return!0},onScrollShouldSetResponder:function(){return!0},onScrollShouldSetResponderCapture:function(){return!0},onMoveShouldSetResponder:function(){return!0},onStartShouldSetResponder:function(){return!0},onResponderTerminationRequest:function(){return!1},onResponderGrant:(0,r(d[8]).composeEventHandlers)(n.onResponderGrant,function(n){var o=n.target,t=h.thumbs.get(o),u=void 0!==t;r(d[7]).isWeb&&o instanceof HTMLElement&&h.thumbs.has(o)&&o.focus(),!r(d[7]).isWeb&&u&&(h.valueIndexToChangeRef.current=t),l(n,u?"thumb":"track")}),onResponderMove:(0,r(d[8]).composeEventHandlers)(n.onResponderMove,function(n){n.stopPropagation(),c(n)}),onResponderRelease:(0,r(d[8]).composeEventHandlers)(n.onResponderRelease,function(n){f(n)})}))})},1743,[207,258,128,1461,1588,1594,1742,1463,1476]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,n=r(d[0]),t=r(d[1]),o=r(d[2]),u=r(d[3]),l=["min","max","dir","onSlideStart","onSlideMove","onStepKeyDown","onSlideEnd"],s=["min","max","onSlideStart","onSlideMove","onStepKeyDown","onSlideEnd"],c=["__scopeSlider"],f=["__scopeSlider"],v=["__scopeSlider","index","circular","size"],S=["name","min","max","step","orientation","disabled","minStepsBetweenThumbs","defaultValue","value","onValueChange","size","onSlideEnd","onSlideMove","onSlideStart"],p=Object.create,b=Object.defineProperty,h=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,E=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,w=function(e,n,t,o){if(n&&"object"==typeof n||"function"==typeof n){var u=function(u){!x.call(e,u)&&u!==t&&b(e,u,{get:function(){return n[u]},enumerable:!(o=h(n,u))||o.enumerable})};for(var l of y(n))u(l)}return e},T={};!(function(e,n){for(var t in n)b(e,t,{get:n[t],enumerable:!0})})(T,{Range:function(){return F},Slider:function(){return W},SliderThumb:function(){return V},SliderThumbFrame:function(){return K},SliderTrack:function(){return A},SliderTrackActive:function(){return I},SliderTrackActiveFrame:function(){return D},SliderTrackFrame:function(){return k},Thumb:function(){return N},Track:function(){return B}}),m.exports=(e=T,w(b({},"__esModule",{value:!0}),e));var z,_=r(d[4]),O=(function(e,n,t){return t=null!=e?p(E(e)):{},w(!n&&e&&e.__esModule?t:b(t,"default",{value:e,enumerable:!0}),e)})(r(d[5])),C=new Set;r(d[6]).isWeb&&r(d[6]).isClient&&!process.env.TAMAGUI_DISABLE_SLIDER_INTERVAL&&(null===(z=setInterval)||void 0===z||z(function(){C.forEach(function(e){return e()})},1e3));var R=O.forwardRef(function(e,n){var t=e.min,s=e.max,c=e.dir,f=e.onSlideStart,v=e.onSlideMove,S=e.onStepKeyDown,p=e.onSlideEnd,b=u(e,l),h=(0,r(d[7]).useDirection)(c),y="ltr"===h,E=O.useRef(null),x=O.useState(function(){return{size:0,offset:0}}),w=o(x,2),T=w[0],z=w[1],R=(0,r(d[8]).useCreateShallowSetState)(z);function M(e){var n=[0,T.size],o=y?[t,s]:[s,t];return(0,r(d[9]).linearScale)(n,o)(e)}var k=function(){var e;null===(e=E.current)||void 0===e||e.measure(function(e,n,t,o,u,l){R({size:t,offset:u})})};return r(d[6]).isClient&&(j(k),O.useEffect(function(){var e=E.current;if(e){var n,t=function(){clearTimeout(n),n=setTimeout(function(){k()},200)},o=new IntersectionObserver(function(e){t(),null!=e&&e[0].isIntersecting?C.add(t):C.delete(t)},{root:null,rootMargin:"0px",threshold:[0,.5,1]});return o.observe(e),function(){C.delete(t),o.disconnect()}}},[])),(0,_.jsx)(r(d[10]).SliderOrientationProvider,{scope:e.__scopeSlider,startEdge:y?"left":"right",endEdge:y?"right":"left",direction:y?1:-1,sizeProp:"width",size:T.size,children:(0,_.jsx)(r(d[11]).SliderImpl,Object.assign({ref:(0,r(d[12]).composeRefs)(n,E),dir:h},b,{orientation:"horizontal",onLayout:k,onSlideStart:function(e,n){var t=M(e.nativeEvent.locationX);t&&(null==f||f(t,n,e))},onSlideMove:function(e){var n=M(e.nativeEvent.pageX-T.offset);n&&(null==v||v(n,e))},onSlideEnd:function(e){var n=M(e.nativeEvent.pageX-T.offset);n&&(null==p||p(e,n))},onStepKeyDown:function(e){var n=r(d[10]).BACK_KEYS[h].includes(e.key);null==S||S({event:e,direction:n?-1:1})}}))})});function j(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200;O.useEffect(function(){var t,o=function(){clearTimeout(t),t=setTimeout(e,n)};return window.addEventListener("resize",o),function(){clearTimeout(t),window.removeEventListener("resize",o)}},[])}var M=O.forwardRef(function(e,n){var t=e.min,l=e.max,c=e.onSlideStart,f=e.onSlideMove,v=e.onStepKeyDown,S=e.onSlideEnd,p=u(e,s),b=O.useState(function(){return{size:0,offset:0}}),h=o(b,2),y=h[0],E=h[1],x=(0,r(d[8]).useCreateShallowSetState)(E),w=O.useRef(null);function T(e){var n=[0,y.size],o=[l,t];return(0,r(d[9]).linearScale)(n,o)(e)}var z=function(){var e;null===(e=w.current)||void 0===e||e.measure(function(e,n,t,o,u,l){x({size:o,offset:l})})};return r(d[6]).isClient&&j(z),(0,_.jsx)(r(d[10]).SliderOrientationProvider,{scope:e.__scopeSlider,startEdge:"bottom",endEdge:"top",sizeProp:"height",size:y.size,direction:1,children:(0,_.jsx)(r(d[11]).SliderImpl,Object.assign({ref:(0,r(d[12]).composeRefs)(n,w)},p,{orientation:"vertical",onLayout:z,onSlideStart:function(e,n){var t=T(e.nativeEvent.locationY);t&&(null==c||c(t,n,e))},onSlideMove:function(e){var n=T(e.nativeEvent.pageY-y.offset);n&&(null==f||f(n,e))},onSlideEnd:function(e){var n=T(e.nativeEvent.pageY-y.offset);null==S||S(e,n)},onStepKeyDown:function(e){var n=r(d[10]).BACK_KEYS.ltr.includes(e.key);null==v||v({event:e,direction:n?-1:1})}}))})}),k=(0,r(d[8]).styled)(r(d[11]).SliderFrame,{name:"SliderTrack",variants:{unstyled:{false:{height:"100%",width:"100%",backgroundColor:"$background",position:"relative",borderRadius:1e5,overflow:"hidden"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),A=O.forwardRef(function(e,n){var t=e.__scopeSlider,o=u(e,c),l=(0,r(d[10]).useSliderContext)(t);return(0,_.jsx)(k,Object.assign({"data-disabled":l.disabled?"":void 0,"data-orientation":l.orientation,orientation:l.orientation,size:l.size},o,{ref:n}))});A.displayName="SliderTrack";var D=(0,r(d[8]).styled)(r(d[11]).SliderFrame,{name:"SliderTrackActive",backgroundColor:"$background",position:"absolute",pointerEvents:"box-none"}),I=O.forwardRef(function(e,o){var l=e.__scopeSlider,s=u(e,f),c=(0,r(d[10]).useSliderContext)(l),v=(0,r(d[10]).useSliderOrientationContext)(l),S=O.useRef(null),p=(0,r(d[12]).useComposedRefs)(o,S),b=c.values.length,h=c.values.map(function(e){return(0,r(d[9]).convertValueToPercentage)(e,c.min,c.max)}),y=b>1?Math.min.apply(Math,t(h)):0,E=100-Math.max.apply(Math,t(h));return(0,_.jsx)(D,Object.assign({orientation:c.orientation,"data-orientation":c.orientation,"data-disabled":c.disabled?"":void 0,size:c.size,animateOnly:["left","top","right","bottom"]},s,n(n({ref:p},v.startEdge,`${y}%`),v.endEdge,`${E}%`),"width"===v.sizeProp?{height:"100%"}:{left:0,right:0}))});I.displayName="SliderTrackActive";var P=function(e){var n=(0,r(d[8]).getTokens)(),t="number"==typeof e?e:(0,r(d[13]).getSize)(n.size[e],{shift:-1});return{width:t,height:t,minWidth:t,minHeight:t}},K=(0,r(d[8]).styled)(r(d[14]).ThemeableStack,{name:"SliderThumb",variants:{size:{"...size":P},unstyled:{false:{position:"absolute",bordered:2,borderWidth:2,backgrounded:!0,pressTheme:r(d[6]).isWeb,focusTheme:r(d[6]).isWeb,hoverTheme:r(d[6]).isWeb}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),V=K.styleable(function(e,t){var l,s=e.__scopeSlider,c=e.index,f=e.circular,S=e.size,p=u(e,v),b=(0,r(d[10]).useSliderContext)(s),h=(0,r(d[10]).useSliderOrientationContext)(s),y=O.useState(null),E=o(y,2),x=E[0],w=E[1],T=(0,r(d[12]).useComposedRefs)(t,w),z=b.values[c],C=void 0===z?0:(0,r(d[9]).convertValueToPercentage)(z,b.min,b.max),R=(0,r(d[9]).getLabel)(c,b.values.length),j=null!==(l=null!=S?S:b.size)&&void 0!==l?l:"$true",M=O.useState(function(){return(0,r(d[8]).getVariableValue)(P(j).width)}),k=o(M,2),A=k[0],D=k[1],I=A?(0,r(d[9]).getThumbInBoundsOffset)(A,C,h.direction):0;O.useEffect(function(){if(x)return b.thumbs.set(x,c),function(){b.thumbs.delete(x)}},[x,b.thumbs,c]);var V="horizontal"===b.orientation?Object.assign({x:I-A/2,y:-A/2,top:"50%"},0===A&&{top:"auto",bottom:"auto"}):Object.assign({x:-A/2,y:A/2,left:"50%"},0===A&&{left:"auto",right:"auto"});return(0,_.jsx)(K,Object.assign({ref:T,role:"slider","aria-label":e["aria-label"]||R,"aria-valuemin":b.min,"aria-valuenow":z,"aria-valuemax":b.max,"aria-orientation":b.orientation,"data-orientation":b.orientation,"data-disabled":b.disabled?"":void 0,tabIndex:b.disabled?void 0:0,animateOnly:["transform","left","top","right","bottom"]},V,n(n(n({},h.startEdge,`${C}%`),"size",j),"circular",f),p,{onLayout:function(e){D(e.nativeEvent.layout[h.sizeProp])},onFocus:(0,r(d[15]).composeEventHandlers)(e.onFocus,function(){b.valueIndexToChangeRef.current=c})}))},{staticConfig:{memo:!0}}),L=O.forwardRef(function(e,n){e.name;var t=e.min,l=void 0===t?0:t,s=e.max,c=void 0===s?100:s,f=e.step,v=void 0===f?1:f,p=e.orientation,b=void 0===p?"horizontal":p,h=e.disabled,y=void 0!==h&&h,E=e.minStepsBetweenThumbs,x=void 0===E?0:E,w=e.defaultValue,T=void 0===w?[l]:w,z=e.value,C=e.onValueChange,j=void 0===C?function(){}:C,k=e.size,A=e.onSlideEnd,D=e.onSlideMove,I=e.onSlideStart,P=u(e,S),K=O.useRef(null),V=(0,r(d[12]).useComposedRefs)(K,n),L=O.useRef(new Map),W=O.useRef(0),B="horizontal"===b,F=(0,r(d[16]).useControllableState)({prop:z,defaultProp:T,transition:!0,onChange:function(e){G(W.current),j(e)}}),N=o(F,2),Y=N[0],$=void 0===Y?[]:Y,H=N[1];function G(e){if(r(d[6]).isWeb){var n=!0,t=!1,u=void 0;try{for(var l,s=L.current.entries()[Symbol.iterator]();!(n=(l=s.next()).done);n=!0){var c=o(l.value,2),f=c[0];if(c[1]===e)return void f.focus()}}catch(e){t=!0,u=e}finally{try{!n&&null!=s.return&&s.return()}finally{if(t)throw u}}}}function U(e,n){var t=(0,r(d[9]).getDecimalCount)(v),o=(0,r(d[9]).roundValue)(Math.round((e-l)/v)*v+l,t),u=(0,r(d[15]).clamp)(o,[l,c]);H(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=(0,r(d[9]).getNextSortedValues)(e,u,n);return(0,r(d[9]).hasMinStepsBetweenValues)(t,x*v)?(W.current=t.indexOf(u),String(t)===String(e)?e:t):e})}r(d[6]).isWeb&&O.useEffect(function(){var e=K.current;if(e){var n=function(e){e.preventDefault()};return e.addEventListener("touchstart",n),function(){e.removeEventListener("touchstart",n)}}},[]);var X=B?R:M;return(0,_.jsx)(r(d[10]).SliderProvider,{scope:e.__scopeSlider,disabled:y,min:l,max:c,valueIndexToChangeRef:W,thumbs:L.current,values:$,orientation:b,size:k,children:(0,_.jsx)(X,Object.assign({"aria-disabled":y,"data-disabled":y?"":void 0},P,{ref:V,min:l,max:c,onSlideEnd:A,onSlideStart:y?void 0:function(e,n,t){"thumb"!==n&&U(e,(0,r(d[9]).getClosestValueIndex)($,e));null==I||I(t,e,n)},onSlideMove:y?void 0:function(e,n){U(e,W.current),null==D||D(n,e)},onHomeKeyDown:function(){return!y&&U(l,0)},onEndKeyDown:function(){return!y&&U(c,$.length-1)},onStepKeyDown:function(e){var n=e.event,t=e.direction;if(!y){var o=r(d[10]).PAGE_KEYS.includes(n.key)||n.shiftKey&&r(d[10]).ARROW_KEYS.includes(n.key)?10:1,u=W.current;U($[u]+v*o*t,u)}}}))})}),W=(0,r(d[15]).withStaticProperties)(L,{Track:A,TrackActive:I,Thumb:V});W.displayName=r(d[10]).SLIDER_NAME;var B=A,F=I,N=V},1744,[18,32,19,207,258,128,1463,1586,1461,1745,1742,1743,1525,1594,1588,1476,1583]); -__d(function(g,r,i,_a,m,e,d){"use strict";var n,t=r(d[0]),u=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,a=Object.prototype.hasOwnProperty,c=function(n,t,c,l){if(t&&"object"==typeof t||"function"==typeof t){var p=function(f){!a.call(n,f)&&f!==c&&u(n,f,{get:function(){return t[f]},enumerable:!(l=o(t,f))||l.enumerable})};for(var s of f(t))p(s)}return n},l={};function p(){var n=arguments.length>1?arguments[1]:void 0,u=arguments.length>2?arguments[2]:void 0,o=t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]);return o[u]=n,o.sort(function(n,t){return n-t})}function s(n,t,u){return 100/(u-t)*(n-t)}function v(n,t){return t>2?`Value ${n+1} of ${t}`:2===t?["Minimum","Maximum"][n]:void 0}function h(n,u){if(1===n.length)return 0;var o=n.map(function(n){return Math.abs(n-u)}),f=Math.min.apply(Math,t(o));return o.indexOf(f)}function b(n,t,u){var o=n/4;return(o-O([0,50],[0,o])(t)*u)*u}function M(n){return n.slice(0,-1).map(function(t,u){return n[u+1]-t})}function y(n,u){if(u>0){var o=M(n);return Math.min.apply(Math,t(o))>=u}return!0}function O(n,t){return function(u){if(n[0]===n[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(n[1]-n[0]);return t[0]+o*(u-n[0])}}function V(n){return(String(n).split(".")[1]||"").length}function j(n,t){var u=Math.pow(10,t);return Math.round(n*u)/u}!(function(n,t){for(var o in t)u(n,o,{get:t[o],enumerable:!0})})(l,{convertValueToPercentage:function(){return s},getClosestValueIndex:function(){return h},getDecimalCount:function(){return V},getLabel:function(){return v},getNextSortedValues:function(){return p},getThumbInBoundsOffset:function(){return b},hasMinStepsBetweenValues:function(){return y},linearScale:function(){return O},roundValue:function(){return j}}),m.exports=(n=l,c(u({},"__esModule",{value:!0}),n))},1745,[32]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p=function(t,n,o){return f(t,n,"default"),o&&f(o,n,"default")},b={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(b,{Switch:function(){return s}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t)),p(b,r(d[0]),m.exports),p(b,r(d[1]),m.exports),p(b,r(d[2]),m.exports);var s=(0,r(d[0]).createSwitch)({Frame:r(d[2]).SwitchFrame,Thumb:r(d[2]).SwitchThumb})},1746,[1747,1749,1748]); -__d(function(g,r,i,a,m,_e,d){"use strict";var e,t=r(d[0]),n=r(d[1]),l=["size","unstyled","nativeID"],u=["native","nativeProps","checked","defaultChecked","onCheckedChange"],o=Object.create,c=Object.defineProperty,s=Object.getOwnPropertyDescriptor,h=Object.getOwnPropertyNames,f=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,b=function(e,t,n,l){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!v.call(e,u)&&u!==n&&c(e,u,{get:function(){return t[u]},enumerable:!(l=s(t,u))||l.enumerable})};for(var o of h(t))u(o)}return e},y={};!(function(e,t){for(var n in t)c(e,n,{get:t[n],enumerable:!0})})(y,{SwitchContext:function(){return w},createSwitch:function(){return C}}),m.exports=(e=y,b(c({},"__esModule",{value:!0}),e));var S=r(d[2]),p=(function(e,t,n){return n=null!=e?o(f(e)):{},b(!t&&e&&e.__esModule?n:c(n,"default",{value:e,enumerable:!0}),e)})(r(d[3])),x=r(d[4]),w=p.createContext({checked:!1,disabled:!1,frameWidth:0});function C(e){var o=e.disableActiveTheme,c=e.Frame,s=void 0===c?r(d[5]).SwitchFrame:c,h=e.Thumb,f=void 0===h?r(d[5]).SwitchThumb:h;s.staticConfig.context=r(d[6]).SwitchStyledContext,f.staticConfig.context=r(d[6]).SwitchStyledContext;var v=f.styleable(function(e,u){var c,s,h=e.size,v=e.unstyled,b=(e.nativeID,n(e,l)),y=p.useContext(w),x=y.checked,C=y.disabled,j=y.frameWidth,V=r(d[6]).SwitchStyledContext.useStyledContext(),O=V.unstyled,z=V.size,P="1"===process.env.TAMAGUI_HEADLESS||null!==(c=null!=v?v:O)&&void 0!==c&&c,k=null!==(s=null!=h?h:z)&&void 0!==s?s:"$true",_=p.useRef(x).current,E=(0,r(d[7]).getVariableValue)(e.width,"size"),T=p.useState("number"==typeof E?E:0),A=t(T,2),L=A[0],D=A[1],I=j-L,M=_?x?0:-I:x?I:0;return(0,S.jsx)(f,Object.assign({ref:u,unstyled:P},!1===P&&Object.assign({size:k},!o&&!P&&{theme:x?"active":null}),{alignSelf:_?"flex-end":"flex-start",x:M,onLayout:(0,r(d[7]).composeEventHandlers)(e.onLayout,function(e){var t=e.nativeEvent.layout.width;t!==L&&D(t)}),checked:x,disabled:C},b))}),b=s.styleable(function(e,l){var c=e.native,h=e.nativeProps,f=e.checked,v=e.defaultChecked,b=e.onCheckedChange,y=n(e,u),C=(0,r(d[8]).useControllableState)({prop:f,defaultProp:v||!1,onChange:b,transition:!0}),V=t(C,2),O=V[0],z=V[1],P=p.useContext(r(d[6]).SwitchStyledContext.context),k=0,_=(0,r(d[7]).getVariableValue)((0,r(d[7]).getShorthandValue)(y,"width"),"size");if(_){var E,T,A,L,D,I,M=null!==(T=null!==(E=(0,r(d[7]).getShorthandValue)(y,"paddingHorizontal"))&&void 0!==E?E:(0,r(d[7]).getShorthandValue)(y,"padding"))&&void 0!==T?T:0,R=null!==(L=null!==(A=(0,r(d[7]).getShorthandValue)(y,"paddingLeft"))&&void 0!==A?A:M)&&void 0!==L?L:0,W=null!==(I=null!==(D=(0,r(d[7]).getShorthandValue)(y,"paddingRight"))&&void 0!==D?D:M)&&void 0!==I?I:0;k=_-(R?(0,r(d[7]).getVariableValue)(R,"size"):0)-(W?(0,r(d[7]).getVariableValue)(W,"size"):0)}var F=p.useState(k),H=t(F,2),N=H[0],$=H[1],G=(0,r(d[9]).useSwitch)(y,[O,z],l),U=G.switchProps,q=G.bubbleInput,B=G.switchRef;p.useEffect(function(){if(y.id&&!y.disabled)return(0,r(d[10]).registerFocusable)(y.id,{focusAndSelect:function(){null==z||z(function(e){return!e})},focus:function(){}})},[y.id,y.disabled]);var J=(0,r(d[7]).shouldRenderNativePlatform)(c);if("android"===J||"ios"===J)return(0,S.jsx)(x.Switch,Object.assign({value:O,onValueChange:z},h));var K,Q,X,Y,Z=y.disabled,ee=p.useMemo(function(){return{checked:O,disabled:Z,frameWidth:N}},[O,Z,N]),te=null!==(Q=null!==(K=P.unstyled)&&void 0!==K?K:y.unstyled)&&void 0!==Q&&Q;return(0,S.jsxs)(w.Provider,{value:ee,children:[(0,S.jsx)(s,Object.assign({ref:B,tag:"button"},r(d[7]).isWeb&&{type:"button"},!te&&{size:null!==(Y=null!==(X=P.size)&&void 0!==X?X:y.size)&&void 0!==Y?Y:"$true"},{unstyled:te},y,U,!o&&!y.unstyled&&{theme:O?"active":null},{checked:O,disabled:Z,children:(0,S.jsx)(x.View,{style:j,onLayout:function(e){var t=e.nativeEvent.layout.width;t!==N&&$(t)},children:N?y.children:null})})),q]})},{disableTheme:!0});return(0,r(d[7]).withStaticProperties)(b,{Thumb:v})}var j={alignSelf:"stretch",flex:1}},1747,[19,207,258,128,28,1748,1749,1461,1583,1750,1687]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,l=function(t,l,s,b){if(l&&"object"==typeof l||"function"==typeof l){var f=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return l[u]},enumerable:!(b=o(l,u))||b.enumerable})};for(var h of u(l))f(h)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{SwitchFrame:function(){return y},SwitchThumb:function(){return b}}),m.exports=(t=s,l(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"SwitchThumb",variants:{unstyled:{false:{size:"$true",backgroundColor:"$background",borderRadius:1e3}},checked:{true:{}},size:{"...size":function(t){var n=f(t);return{height:n,width:n}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),f=function(t){return Math.round(.65*(0,r(d[0]).getVariableValue)((0,r(d[2]).getSize)(t)))},h=function(t){return 2*f(t)},y=(0,r(d[0]).styled)(r(d[1]).YStack,{name:"Switch",tag:"button",tabIndex:0,variants:{unstyled:{false:{borderRadius:1e3,backgroundColor:"$background",borderWidth:2,borderColor:"$background",focusVisibleStyle:{outlineColor:"$outlineColor",outlineStyle:"solid",outlineWidth:2}}},checked:{true:{}},size:{"...size":function(t){var n=f(t)+4;return{height:n,minHeight:n,width:h(t)+4}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1748,[1461,1588,1594]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var y of c(f))l(y)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{SwitchStyledContext:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).createStyledContext)({size:void 0,unstyled:"1"===process.env.TAMAGUI_HEADLESS})},1749,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1750,[1751]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,l=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,s=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var s=function(f){!b.call(t,f)&&f!==o&&u(t,f,{get:function(){return n[f]},enumerable:!(l=c(n,f))||l.enumerable})};for(var p of f(n))s(p)}return t},p={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(p,{useSwitch:function(){return O}}),m.exports=(t=p,s(u({},"__esModule",{value:!0}),t));r(d[1]),(function(t,n,c){c=null!=t?o(l(t)):{},s(!n&&t&&t.__esModule?c:u(c,"default",{value:t,enumerable:!0}),t)})(r(d[2]));function O(t,o,u){var c=n(o,2),f=(c[0],c[1]);return{switchProps:{onPress:function(){f(function(t){return!t})}},switchRef:u,bubbleInput:null}}},1751,[19,258,128]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,b,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!f.call(t,u)&&u!==b&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var p of u(c))l(p)}return t},b=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Tabs:function(){return l}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t)),b(s,r(d[0]),m.exports),b(s,r(d[1]),m.exports);var l=(0,r(d[0]).createTabs)({ContentFrame:r(d[2]).DefaultTabsContentFrame,TabFrame:r(d[2]).DefaultTabsTabFrame,TabsFrame:r(d[2]).DefaultTabsFrame})},1752,[1753,1755,1754]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=r(d[0]),o=r(d[1]),u=["__scopeTabs","loop","children"],s=["__scopeTabs","value","disabled","onInteraction","disableActiveTheme"],c=["__scopeTabs","value","forceMount","children"],l=["__scopeTabs","value","onValueChange","defaultValue","orientation","dir","activationMode","size"],f=Object.create,v=Object.defineProperty,b=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,h=Object.getPrototypeOf,T=Object.prototype.hasOwnProperty,_=function(n,t,o,u){if(t&&"object"==typeof t||"function"==typeof t){var s=function(s){!T.call(n,s)&&s!==o&&v(n,s,{get:function(){return t[s]},enumerable:!(u=b(t,s))||u.enumerable})};for(var c of p(t))s(c)}return n},y={};!(function(n,t){for(var o in t)v(n,o,{get:t[o],enumerable:!0})})(y,{createTabs:function(){return O}}),m.exports=(n=y,_(v({},"__esModule",{value:!0}),n));var j=r(d[2]),C=(function(n,t,o){return o=null!=n?f(h(n)):{},_(!t&&n&&n.__esModule?o:v(o,"default",{value:n,enumerable:!0}),n)})(r(d[3]));function O(n){var f=n.ContentFrame,v=void 0===f?r(d[4]).DefaultTabsContentFrame:f,b=n.TabFrame,p=void 0===b?r(d[4]).DefaultTabsTabFrame:b,h=n.TabsFrame,T=void 0===h?r(d[4]).DefaultTabsFrame:h,_="TabsContext",y="TabsList",O=C.forwardRef(function(n,t){var s=n.__scopeTabs,c=n.loop,l=void 0===c||c,f=n.children,v=o(n,u),b=(0,r(d[5]).useTabsContext)(s);return(0,j.jsx)(r(d[6]).RovingFocusGroup,{__scopeRovingFocusGroup:s||_,orientation:b.orientation,dir:b.dir,loop:l,asChild:!0,children:(0,j.jsx)(r(d[7]).Group,Object.assign({role:"tablist",componentName:y,"aria-orientation":b.orientation,ref:t,orientation:b.orientation},v,{children:f}))})});O.displayName=y;var F=p.styleable(function(n,u){var c,l=n.__scopeTabs,f=n.value,v=n.disabled,b=void 0!==v&&v,h=n.onInteraction,T=n.disableActiveTheme,y=o(n,s),O=(0,r(d[5]).useTabsContext)(l),F=x(O.baseId,f),I=E(O.baseId,f),H=f===O.value,P=C.useState(null),w=t(P,2),D=w[0],M=w[1],R=C.useRef(null),z=(0,r(d[7]).useGroupItem)({disabled:!!b});return C.useEffect(function(){return O.registerTrigger(),function(){return O.unregisterTrigger()}},[]),C.useEffect(function(){if(R.current&&r(d[8]).isWeb){t();var n=new ResizeObserver(t);return n.observe(R.current),function(){R.current&&n.unobserve(R.current)}}function t(){R.current&&M({width:R.current.offsetWidth,height:R.current.offsetHeight,x:R.current.offsetLeft,y:R.current.offsetTop})}},[O.triggersCount]),C.useEffect(function(){H&&D&&(null==h||h("select",D))},[H,f,D]),(0,j.jsx)(r(d[9]).Theme,{name:H&&!T?"active":null,children:(0,j.jsx)(r(d[6]).RovingFocusGroup.Item,{__scopeRovingFocusGroup:l||_,asChild:!0,focusable:!b,active:H,children:(0,j.jsx)(p,Object.assign({onLayout:function(n){r(d[8]).isWeb||M(n.nativeEvent.layout)},onHoverIn:(0,r(d[10]).composeEventHandlers)(n.onHoverIn,function(){D&&(null==h||h("hover",D))}),onHoverOut:(0,r(d[10]).composeEventHandlers)(n.onHoverOut,function(){null==h||h("hover",null)}),role:"tab","aria-selected":H,"aria-controls":I,"data-state":H?"active":"inactive","data-disabled":b?"":void 0,disabled:b,id:F},!n.unstyled&&{size:O.size},H&&{forceStyle:"focus"},z,y,{ref:(0,r(d[11]).composeRefs)(u,R),onPress:(0,r(d[10]).composeEventHandlers)(null!==(c=n.onPress)&&void 0!==c?c:void 0,function(n){var t=!r(d[8]).isWeb||0===n.button&&!1===n.ctrlKey;b||H||!t?n.preventDefault():O.onChange(f)})},r(d[8]).isWeb&&{type:"button",onKeyDown:(0,r(d[10]).composeEventHandlers)(n.onKeyDown,function(n){[" ","Enter"].includes(n.key)&&(O.onChange(f),n.preventDefault())}),onFocus:(0,r(d[10]).composeEventHandlers)(n.onFocus,function(n){D&&(null==h||h("focus",D));var t="manual"!==O.activationMode;!H&&!b&&t&&O.onChange(f)}),onBlur:(0,r(d[10]).composeEventHandlers)(n.onFocus,function(){null==h||h("focus",null)})}))})})});F.displayName="TabsTrigger";var I=v.styleable(function(n,t){var u=n.__scopeTabs,s=n.value,l=n.forceMount,f=n.children,b=o(n,c),p=(0,r(d[5]).useTabsContext)(u),h=s===p.value,T=l||h,_=x(p.baseId,s),y=E(p.baseId,s);return T?(0,j.jsx)(v,Object.assign({"data-state":h?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":_,hidden:!T,id:y,tabIndex:0},b,{ref:t,children:f}),s):null}),H=T.styleable(function(n,u){var s=n.__scopeTabs,c=n.value,f=n.onValueChange,v=n.defaultValue,b=n.orientation,p=void 0===b?"horizontal":b,h=n.dir,_=n.activationMode,y=void 0===_?"automatic":_,O=n.size,x=void 0===O?"$true":O,E=o(n,l),F=(0,r(d[12]).useDirection)(h),I=(0,r(d[13]).useControllableState)({prop:c,onChange:f,defaultProp:null!=v?v:""}),H=t(I,2),P=H[0],w=H[1],D=C.useState(0),M=t(D,2),R=M[0],z=M[1],G=(0,r(d[9]).useEvent)(function(){return z(function(n){return n+1})}),S=(0,r(d[9]).useEvent)(function(){return z(function(n){return n-1})});return(0,j.jsx)(r(d[5]).TabsProvider,{scope:s,baseId:C.useId(),value:P,onChange:w,orientation:p,dir:F,activationMode:y,size:x,registerTrigger:G,triggersCount:R,unregisterTrigger:S,children:(0,j.jsx)(T,Object.assign({direction:F,"data-orientation":p},E,{ref:u}))})});return(0,r(d[10]).withStaticProperties)(H,{List:O,Trigger:F,Tab:F,Content:I})}function x(n,t){return`${n}-trigger-${t}`}function E(n,t){return`${n}-content-${t}`}},1753,[19,207,258,128,1754,1755,1723,1696,1463,1466,1476,1525,1586,1583]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,s=function(t,s,l,b){if(s&&"object"==typeof s||"function"==typeof s){var f=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return s[u]},enumerable:!(b=o(s,u))||b.enumerable})};for(var y of u(s))f(y)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{DefaultTabsContentFrame:function(){return y},DefaultTabsFrame:function(){return b},DefaultTabsTabFrame:function(){return f}}),m.exports=(t=l,s(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).styled)(r(d[1]).SizableStack,{name:"Tabs"}),f=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"TabsTrigger",tag:"button",variants:{size:{"...size":r(d[2]).getButtonSized},disabled:{true:{pointerEvents:"none"}},active:{true:{hoverStyle:{backgroundColor:"$background"},focusStyle:{backgroundColor:"$background"}}},unstyled:{false:{borderWidth:0,backgroundColor:"$background",userSelect:"none",justifyContent:"center",alignItems:"center",flexWrap:"nowrap",flexDirection:"row",cursor:"pointer",pressStyle:{backgroundColor:"$backgroundPress"},hoverStyle:{backgroundColor:"$backgroundHover"},focusStyle:{backgroundColor:"$backgroundFocus"}}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),y=(0,r(d[0]).styled)(r(d[1]).ThemeableStack,{name:"TabsContent"})},1754,[1461,1588,1593]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))p(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{TabsProvider:function(){return p},useTabsContext:function(){return l}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var b=(0,r(d[0]).createStyledContext)(),p=b.Provider,l=b.useStyledContext},1755,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,c=function(t,c,p,s){if(c&&"object"==typeof c||"function"==typeof c){var l=function(u){!f.call(t,u)&&u!==p&&n(t,u,{get:function(){return c[u]},enumerable:!(s=o(c,u))||s.enumerable})};for(var b of u(c))l(b)}return t},p=function(t,n,o){return c(t,n,"default"),o&&c(o,n,"default")},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{mutateThemes:function(){return r(d[0]).mutateThemes}}),m.exports=(t=s,c(n({},"__esModule",{value:!0}),t)),p(s,r(d[1]),m.exports),p(s,r(d[2]),m.exports),p(s,r(d[3]),m.exports)},1756,[1757,1758,1759,1760]); -__d(function(g,r,i,a,m,e,d){"use strict";r(d[0]);var t,n=r(d[1]),o=r(d[2]),u=["themes","batch","insertCSS"],s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,l=function(t,n,o,u){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!h.call(t,f)&&f!==o&&s(t,f,{get:function(){return n[f]},enumerable:!(u=c(n,f))||u.enumerable})};for(var v of f(n))l(v)}return t},v={};function p(t){var n=t.themes,s=t.batch,c=t.insertCSS,f=void 0===c||c,h=o(t,u),l={},v={},p=!0,S=!1,j=void 0;try{for(var w,C=n[Symbol.iterator]();!(p=(w=C.next()).done);p=!0){var R=w.value,P=R.name,_=R.theme,x=y(Object.assign({},h,{name:P,theme:_,avoidUpdate:!0,mutationType:"add"}));x&&(l[P]=x.theme,v[P]=x.themeRaw)}}catch(t){S=!0,j=t}finally{try{!p&&null!=C.return&&C.return()}finally{if(S)throw j}}var U=f?T(v,s):[];return(0,r(d[3]).startTransition)(function(){for(var t in l){b(t,l[t])}O()}),{themes:l,themesRaw:v,cssRules:U}}function y(t){if(!r(d[4]).isServer){var o,u=(0,r(d[5]).getConfig)(),s=t.name,c=t.theme,f=t.insertCSS,h=t.mutationType,l=Object.assign({},"update"===h&&null!==(o=u.themes[s])&&void 0!==o?o:{},c);for(var v in l)(0,r(d[5]).ensureThemeVariable)(l,v);var p=(0,r(d[5]).proxyThemeToParents)(s,l),y={themeRaw:l,theme:p,cssRules:[]};return t.avoidUpdate||(f&&(y.cssRules=T(n({},s,l))),b(s,p),O()),y}}function b(t,n){var o=(0,r(d[5]).getConfig)();o.themes[t]=n,(0,r(d[5]).updateConfig)("themes",o.themes)}function O(){(0,r(d[5]).forceUpdateThemes)()}function T(t){return[]}!(function(t,n){for(var o in n)s(t,o,{get:n[o],enumerable:!0})})(v,{_mutateTheme:function(){return y},mutateThemes:function(){return p}}),m.exports=(t=v,l(s({},"__esModule",{value:!0}),t))},1757,[32,18,207,1585,1463,1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var y of u(f))b(y)}return t},p={};function s(t){return(0,r(d[0])._mutateTheme)(Object.assign({},t,{insertCSS:!0,mutationType:"add"}))}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{addTheme:function(){return s}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1758,[1757]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var y of u(f))s(y)}return t},p={};function b(t){var n=t.name,o=t.theme;return(0,r(d[0])._mutateTheme)({name:n,theme:o,insertCSS:!0,mutationType:"update"})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{updateTheme:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1759,[1757]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};function l(t){var n=t.name,o=t.theme;return(0,r(d[0])._mutateTheme)({name:n,theme:o,insertCSS:!0,mutationType:"replace"})}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{replaceTheme:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1760,[1757]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1761,[1762]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=r(d[0]),n=r(d[1]),l=r(d[2]),u=["disablePassStyles"],s=["__scopeToggleGroup","value"],c=["type"],f=["value","defaultValue","onValueChange","disableDeactivation"],p=["value","defaultValue","onValueChange","disableDeactivation"],v=["__scopeToggleGroup","disabled","orientation","dir","rovingFocus","loop","unstyled","size","sizeAdjust"],b=Object.create,y=Object.defineProperty,h=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,_=Object.getPrototypeOf,x=Object.prototype.hasOwnProperty,C=function(t,o,n,l){if(o&&"object"==typeof o||"function"==typeof o){var u=function(u){!x.call(t,u)&&u!==n&&y(t,u,{get:function(){return o[u]},enumerable:!(l=h(o,u))||l.enumerable})};for(var s of j(o))u(s)}return t},G={};!(function(t,o){for(var n in o)y(t,n,{get:o[n],enumerable:!0})})(G,{ToggleGroup:function(){return R}}),m.exports=(t=G,C(y({},"__esModule",{value:!0}),t));var O=r(d[3]),T=(function(t,o,n){return n=null!=t?b(_(t)):{},C(!o&&t&&t.__esModule?n:y(n,"default",{value:t,enumerable:!0}),t)})(r(d[4])),S="ToggleGroup",P="ToggleGroup",V=(0,r(d[5]).createStyledContext)(),w=V.Provider,D=(V.useStyledContext,(0,r(d[5]).createStyledContext)()),z=D.Provider,I=D.useStyledContext,F=r(d[6]).ToggleFrame.extractable(T.default.forwardRef(function(t,o){var s,c=(0,r(d[5]).usePropsAndStyle)(t),f=l(c,2),p=(f[0],f[1].color),v=(t.disablePassStyles,n(t,u)),b=M(t.__scopeToggleGroup),y=I(t.__scopeToggleGroup),h=null==b?void 0:b.value.includes(t.value),j=y.disabled||t.disabled||!1,_=(0,r(d[7]).useGroupItem)({disabled:j}),x=null!==(s=t.size)&&void 0!==s?s:y.size,C=t.unstyled?{}:{width:void 0,height:void 0,padding:.6*(0,r(d[5]).getVariableValue)(x)},G=1.2*("number"==typeof x?.7*x:(0,r(d[8]).getFontSize)(x)),S=(0,r(d[5]).useTheme)(),V=(0,r(d[9]).useGetThemedIcon)({size:G,color:null!=p?p:S.color}),D=T.default.Children.toArray(t.children).map(function(o){return t.disablePassStyles||!T.default.isValidElement(o)?o:V(o)}),z=Object.assign({pressed:h,disabled:j},C,v,{children:D}),F=(0,O.jsx)(A,Object.assign({},z,{ref:o,tabIndex:j?-1:0,disabled:j},_));return(0,O.jsx)(w,{scope:t.__scopeToggleGroup,children:y.rovingFocus?(0,O.jsx)(r(d[10]).RovingFocusGroup.Item,{asChild:"except-style",__scopeRovingFocusGroup:t.__scopeToggleGroup||P,focusable:!j,active:h,children:F}):F})}));F.displayName="ToggleGroupItem";var A=T.default.forwardRef(function(t,o){var l=t.__scopeToggleGroup,u=t.value,c=n(t,s),f=M(l),p={"aria-pressed":void 0},v="single"===f.type?p:void 0;return(0,O.jsx)(r(d[6]).Toggle,Object.assign({},v,c,{ref:o,onPressedChange:function(t){t?f.onItemActivate(u):f.onItemDeactivate(u)}}))}),R=(0,r(d[11]).withStaticProperties)(T.default.forwardRef(function(t,o){var l=t.type,u=n(t,c);if(r(d[12]).isWeb||T.default.useEffect(function(){if(t.id)return(0,r(d[13]).registerFocusable)(t.id,{focus:function(){}})},[t.id]),"single"===l){var s=u;return(0,O.jsx)(N,Object.assign({},s,{ref:o}))}if("multiple"===l){var f=u;return(0,O.jsx)($,Object.assign({},f,{ref:o}))}throw new Error(`Missing prop \`type\` expected on \`${S}\``)}),{Item:F});R.displayName=S;var k=(0,r(d[5]).createStyledContext)(),E=k.Provider,M=k.useStyledContext,N=T.default.forwardRef(function(t,o){var u=t.value,s=t.defaultValue,c=t.onValueChange,p=void 0===c?function(){}:c,v=t.disableDeactivation,b=void 0!==v&&v,y=n(t,f),h=(0,r(d[14]).useControllableState)({prop:u,defaultProp:s,onChange:p}),j=l(h,2),_=j[0],x=j[1];return(0,O.jsx)(E,{scope:t.__scopeToggleGroup,type:"single",value:_?[_]:[],defaultValue:_,onItemActivate:x,onItemDeactivate:T.default.useCallback(function(){return b?null:x("")},[x,b]),children:(0,O.jsx)(L,Object.assign({},y,{ref:o}))})}),$=T.default.forwardRef(function(t,u){var s=t.value,c=t.defaultValue,f=t.onValueChange,v=void 0===f?function(){}:f,b=(t.disableDeactivation,n(t,p)),y=(0,r(d[14]).useControllableState)({prop:s,defaultProp:c,onChange:v}),h=l(y,2),j=h[0],_=void 0===j?[]:j,x=h[1],C=T.default.useCallback(function(t){return x(function(){return[].concat(o(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]),[t])})},[x]),G=T.default.useCallback(function(t){return x(function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).filter(function(o){return o!==t})})},[x]);return(0,O.jsx)(E,{scope:t.__scopeToggleGroup,type:"multiple",value:_,defaultValue:_,onItemActivate:C,onItemDeactivate:G,children:(0,O.jsx)(L,Object.assign({},b,{ref:u}))})});R.displayName=S;var H=(0,r(d[5]).styled)(r(d[7]).Group,{name:S,variants:{unstyled:{false:{backgroundColor:"$background"}},orientation:{vertical:{flexDirection:"column",spaceDirection:"vertical"},horizontal:{flexDirection:"row",spaceDirection:"horizontal"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),L=H.extractable(T.default.forwardRef(function(t,o){var l=t.__scopeToggleGroup,u=t.disabled,s=void 0!==u&&u,c=t.orientation,f=void 0===c?"horizontal":c,p=t.dir,b=t.rovingFocus,y=void 0===b||b,h=t.loop,j=void 0===h||h,_=t.unstyled,x=void 0!==_&&_,C=t.size,G=void 0===C?"$true":C,T=t.sizeAdjust,S=void 0===T?0:T,V=n(t,v),w=(0,r(d[15]).useDirection)(p),D=Object.assign({role:"group",dir:w},V),I=(0,r(d[5]).getVariableValue)((0,r(d[16]).getSize)(G,{shift:S})),F=Math.round(.45*I);return(0,O.jsx)(z,{scope:l,rovingFocus:y,disabled:s,size:F,children:y?(0,O.jsx)(r(d[10]).RovingFocusGroup,{asChild:"except-style",__scopeRovingFocusGroup:l||P,orientation:f,dir:w,loop:j,children:(0,O.jsx)(H,Object.assign({"aria-orientation":f,orientation:f,axis:f,ref:o,"data-disabled":s?"":void 0,unstyled:x},D))}):(0,O.jsx)(H,Object.assign({"aria-orientation":f,ref:o,orientation:f,"data-disabled":s?"":void 0,unstyled:x},D))})}))},1762,[32,207,19,258,128,1466,1763,1696,1671,1673,1723,1476,1463,1687,1583,1586,1594]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=r(d[0]),n=r(d[1]),l=["pressed","defaultPressed","onPressedChange"],u=Object.create,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,b=Object.getPrototypeOf,v=Object.prototype.hasOwnProperty,p=function(o,t,n,l){if(t&&"object"==typeof t||"function"==typeof t){var u=function(u){!v.call(o,u)&&u!==n&&s(o,u,{get:function(){return t[u]},enumerable:!(l=c(t,u))||l.enumerable})};for(var b of f(t))u(b)}return o},y={};!(function(o,t){for(var n in t)s(o,n,{get:t[n],enumerable:!0})})(y,{Toggle:function(){return k},ToggleFrame:function(){return S},context:function(){return P}}),m.exports=(o=y,p(s({},"__esModule",{value:!0}),o));var C=r(d[2]),h=(function(o,t,n){return n=null!=o?u(b(o)):{},p(!t&&o&&o.__esModule?n:s(n,"default",{value:o,enumerable:!0}),o)})(r(d[3])),P=(0,r(d[4]).createStyledContext)({color:""}),S=(0,r(d[4]).styled)(r(d[5]).ThemeableStack,{name:"Toggle",tag:"button",context:P,variants:{unstyled:{false:{pressTheme:!0,backgroundColor:"$background",alignItems:"center",justifyContent:"center",display:"flex",borderColor:"$borderColor",borderWidth:1,margin:-1,hoverStyle:{backgroundColor:"$backgroundHover"},pressStyle:{backgroundColor:"$backgroundPress"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}}},color:{"...color":function(){return{}}},active:{true:{zIndex:1,hoverStyle:{backgroundColor:"$background"},focusStyle:{borderColor:"$borderColor",backgroundColor:"$background"}}},orientation:{horizontal:{flexDirection:"row",spaceDirection:"horizontal"},vertical:{flexDirection:"column",spaceDirection:"vertical"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),k=h.forwardRef(function(o,u){var s,c=o.pressed,f=o.defaultPressed,b=void 0!==f&&f,v=o.onPressedChange,p=n(o,l),y=(0,r(d[6]).useControllableState)({prop:c,onChange:v,defaultProp:b}),h=t(y,2),P=h[0],k=void 0!==P&&P,O=h[1];return(0,C.jsx)(S,Object.assign({},!o.unstyled&&{theme:k?"active":null,themeShallow:!0},{active:o.unstyled?void 0:k,"aria-pressed":k,"data-state":k?"on":"off","data-disabled":o.disabled?"":void 0},p,{ref:u,onPress:(0,r(d[7]).composeEventHandlers)(null!==(s=o.onPress)&&void 0!==s?s:void 0,function(){o.disabled||O(!k)})}))})},1763,[19,207,258,128,1466,1588,1583,1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(s=n(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p=function(t,o,n){return f(t,o,"default"),n&&f(n,o,"default")},s={};m.exports=(t=s,f(o({},"__esModule",{value:!0}),t)),p(s,r(d[0]),m.exports),p(s,r(d[1]),m.exports)},1764,[1765,1766]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,l,p){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==l&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var b of u(f))s(b)}return t},l={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(l,{Tooltip:function(){return y},TooltipGroup:function(){return b},closeOpenTooltips:function(){return O}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var p=function(t){return t.children},s=function(t){return null},b=function(){return null},O=function(){},y=(0,r(d[0]).withStaticProperties)(p,{Anchor:p,Arrow:s,Close:s,Content:s,Trigger:p})},1765,[1476]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var s of u(f))b(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{TooltipSimple:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var l=function(t){return t.children}},1766,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.create,o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.getPrototypeOf,l=Object.prototype.hasOwnProperty,s=function(n,t,f,s){if(t&&"object"==typeof t||"function"==typeof t){var b=function(c){!l.call(n,c)&&c!==f&&o(n,c,{get:function(){return t[c]},enumerable:!(s=u(t,c))||s.enumerable})};for(var p of c(t))b(p)}return n},b={};!(function(n,t){for(var u in t)o(n,u,{get:t[u],enumerable:!0})})(b,{configureInitialWindowDimensions:function(){return r(d[0]).configureInitialWindowDimensions},useWindowDimensions:function(){return v}}),m.exports=(n=b,s(o({},"__esModule",{value:!0}),n));var p=(function(n,u,c){return c=null!=n?t(f(n)):{},s(!u&&n&&n.__esModule?c:o(c,"default",{value:n,enumerable:!0}),n)})(r(d[1]));function v(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).serverValue,t=void 0===n?r(d[0]).initialValue:n;return p.default.useSyncExternalStore(r(d[2]).subscribe,r(d[2]).getWindowSize,function(){return r(d[3]).isWeb?t:(0,r(d[2]).getWindowSize)()})}},1767,[1768,128,1769,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))p(b)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{configureInitialWindowDimensions:function(){return p},initialValue:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s={width:800,height:600,scale:1,fontScale:1};function p(t){Object.assign(s,t)}},1768,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var n,t=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(n,f,s,b){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(n,u)&&u!==s&&t(n,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var v of u(f))p(v)}return n},s={};!(function(n,o){for(var u in o)t(n,u,{get:o[u],enumerable:!0})})(s,{getWindowSize:function(){return p},subscribe:function(){return w}}),m.exports=(n=s,f(t({},"__esModule",{value:!0}),n));var b=r(d[0]);function p(){return b.Dimensions.get("window")}var v=new Set;function w(n){return v.add(n),function(){return v.delete(n)}}b.Dimensions.addEventListener("change",function(n){var t=n.window;v.forEach(function(n){return n(t)})})},1769,[28]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1770,[1771]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=function(t,l,p,c){if(l&&"object"==typeof l||"function"==typeof l){var f=function(u){!s.call(t,u)&&u!==p&&n(t,u,{get:function(){return l[u]},enumerable:!(c=o(l,u))||c.enumerable})};for(var v of u(l))f(v)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{VisuallyHidden:function(){return c}}),m.exports=(t=p,l(n({},"__esModule",{value:!0}),t));var c=(0,r(d[0]).styled)(r(d[0]).Text,{position:"absolute",width:1,height:1,margin:-1,zIndex:-1e4,overflow:"hidden",opacity:1e-8,pointerEvents:"none",variants:{preserveDimensions:{true:{position:"relative",width:"auto",height:"auto"}},visible:{true:{position:"relative",width:"auto",height:"auto",margin:0,zIndex:1,overflow:"visible",opacity:1,pointerEvents:"auto"}}}});c.isVisuallyHidden=!0},1771,[1466]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var s of u(f))l(s)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{createTamagui:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var b=r(d[0]).createTamagui},1772,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1773,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["children"],c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var v=function(f){!l.call(t,f)&&f!==o&&c(t,f,{get:function(){return n[f]},enumerable:!(s=u(n,f))||s.enumerable})};for(var p of f(n))v(p)}return t},v={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(v,{TamaguiProvider:function(){return b}}),m.exports=(t=v,s(c({},"__esModule",{value:!0}),t));var p=r(d[1]),b=function(t){var c=t.children,u=n(t,o);return(0,p.jsx)(r(d[2]).TamaguiProvider,Object.assign({},u,{children:(0,p.jsx)(r(d[3]).ZIndexStackContext.Provider,{value:1,children:(0,p.jsx)(r(d[4]).PortalProvider,{shouldAddRootHost:!0,children:c})})}))}},1774,[207,258,1461,1624,1618]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["href","target"],c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,l=function(t,n,o,l){if(n&&"object"==typeof n||"function"==typeof n){var b=function(u){!s.call(t,u)&&u!==o&&c(t,u,{get:function(){return n[u]},enumerable:!(l=f(n,u))||l.enumerable})};for(var p of u(n))b(p)}return t},b={};!(function(t,n){for(var o in n)c(t,o,{get:n[o],enumerable:!0})})(b,{Anchor:function(){return O}}),m.exports=(t=b,l(c({},"__esModule",{value:!0}),t));var p=r(d[1]),v=r(d[2]),y=(0,r(d[3]).styled)(r(d[4]).SizableText,{name:"Anchor",tag:"a",accessibilityRole:"link"}),O=y.styleable(function(t,c){var f=t.href,u=t.target,s=n(t,o);return(0,p.jsx)(y,Object.assign({},s,r(d[5]).isWeb?{href:f,target:u}:{onPress:function(t){var n;null===(n=s.onPress)||void 0===n||n.call(s,t),void 0!==f&&v.Linking.openURL(f)}},{ref:c}))})},1775,[207,258,28,1461,1609,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,w=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,f,l){if(c&&"object"==typeof c||"function"==typeof c){var p=function(w){!u.call(t,w)&&w!==f&&n(t,w,{get:function(){return c[w]},enumerable:!(l=o(c,w))||l.enumerable})};for(var s of w(c))p(s)}return t},f={};!(function(t,o){for(var w in o)n(t,w,{get:o[w],enumerable:!0})})(f,{EnsureFlexed:function(){return l}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{opacity:0,lineHeight:0,height:0,display:"flex",fontSize:200,children:"wwwwwwwwwwwwwwwwwww",pointerEvents:"none"});l.isVisuallyHidden=!0},1776,[1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,l,s){if(f&&"object"==typeof f||"function"==typeof f){var p=function(c){!u.call(t,c)&&c!==l&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var b of c(f))p(b)}return t},l={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(l,{Fieldset:function(){return s}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t));var s=(0,r(d[0]).styled)(r(d[1]).YStack,{name:"Fieldset",tag:"fieldset",borderWidth:0,variants:{horizontal:{true:{flexDirection:"row",alignItems:"center"}}}})},1777,[1461,1588]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.create,n=Object.defineProperty,l=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,f=function(o,t,s,f){if(t&&"object"==typeof t||"function"==typeof t){var b=function(u){!c.call(o,u)&&u!==s&&n(o,u,{get:function(){return t[u]},enumerable:!(f=l(t,u))||f.enumerable})};for(var p of u(t))b(p)}return o},b={};!(function(o,t){for(var l in t)n(o,l,{get:t[l],enumerable:!0})})(b,{Input:function(){return O},InputFrame:function(){return h},defaultStyles:function(){return C},useInputProps:function(){return j}}),m.exports=(o=b,f(n({},"__esModule",{value:!0}),o));var p=r(d[0]),v=(function(o,l,u){return u=null!=o?t(s(o)):{},f(!l&&o&&o.__esModule?u:n(u,"default",{value:o,enumerable:!0}),o)})(r(d[1])),y=r(d[2]),C=Object.assign({size:"$true",fontFamily:"$body",borderWidth:1,outlineWidth:0,color:"$color"},r(d[3]).isWeb?{tabIndex:0}:{focusable:!0},{borderColor:"$borderColor",backgroundColor:"$background",minWidth:0,hoverStyle:{borderColor:"$borderColorHover"},focusStyle:{borderColor:"$borderColorFocus"},focusVisibleStyle:{outlineColor:"$outlineColor",outlineWidth:2,outlineStyle:"solid"}}),h=(0,r(d[4]).styled)(y.TextInput,{name:"Input",variants:{unstyled:{false:C},size:{"...size":r(d[5]).inputSizeVariant},disabled:{true:{}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}},{isInput:!0,accept:{placeholderTextColor:"color",selectionColor:"color"}}),O=h.styleable(function(o,t){var n=v.default.useRef(null),l=j(o,(0,r(d[4]).useComposedRefs)(t,n));return(0,p.jsx)(h,Object.assign({},l))});function j(o,t){var n=(0,r(d[4]).useTheme)(),l=(0,r(d[6]).useFocusable)({props:o,ref:t,isInput:!0}),u=v.default.useMemo(function(){var t,l,u,s,c=o.placeholderTextColor;return null!==(s=null!==(u=null===(t=n[c])||void 0===t?void 0:t.get())&&void 0!==u?u:c)&&void 0!==s?s:null===(l=n.placeholderColor)||void 0===l?void 0:l.get()},[o.placeholderTextColor,n]);return v.default.useMemo(function(){return Object.assign({ref:l.ref,readOnly:o.disabled},o,{placeholderTextColor:u,onChangeText:l.onChangeText})},[l.ref,l.onChangeText,o.disabled,o,u])}},1778,[258,128,28,1463,1461,1779,1687]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var l=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(s=o(f,u))||s.enumerable})};for(var b of u(f))l(b)}return t},p={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{inputSizeVariant:function(){return s},textAreaSizeVariant:function(){return l}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t));var s=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",n=arguments.length>1?arguments[1]:void 0;if(n.props.multiline||n.props.numberOfLines>1)return l(t,n);var o=(0,r(d[0]).getButtonSized)(t,n),u=(0,r(d[1]).getSpace)(t,{shift:-1,bounds:[2]}),c=(0,r(d[2]).getFontSized)(t,n);return!r(d[3]).isWeb&&c&&delete c.lineHeight,Object.assign({},c,o,{paddingHorizontal:u})},l=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$true",o=arguments.length>1?arguments[1]:void 0,u=o.props,c=(0,r(d[0]).getButtonSized)(n,o),f=(0,r(d[2]).getFontSized)(n,o),p=null!==(t=u.rows)&&void 0!==t?t:u.numberOfLines,s="number"==typeof p?p*(0,r(d[3]).getVariableValue)(f.lineHeight):"auto",l=(0,r(d[1]).getSpace)(n,{shift:-2,bounds:[2]}),b=(0,r(d[1]).getSpace)(n,{shift:-1,bounds:[2]});return Object.assign({},c,f,{paddingVertical:l,paddingHorizontal:b,height:s})}},1779,[1593,1594,1611,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=["size","color"],c=Object.create,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,s=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,p=function(t,n,o,c){if(n&&"object"==typeof n||"function"==typeof n){var s=function(l){!b.call(t,l)&&l!==o&&u(t,l,{get:function(){return n[l]},enumerable:!(c=f(n,l))||c.enumerable})};for(var p of l(n))s(p)}return t},O={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(O,{Spinner:function(){return _}}),m.exports=(t=O,p(u({},"__esModule",{value:!0}),t));var j=r(d[1]),v=(function(t,n,o){return o=null!=t?c(s(t)):{},p(!n&&t&&t.__esModule?o:u(o,"default",{value:t,enumerable:!0}),t)})(r(d[2])),y=r(d[3]),_=r(d[4]).YStack.extractable((0,r(d[5]).themeable)(v.forwardRef(function(t,c){var u=t.size,f=t.color,l=n(t,o),s=(0,r(d[5]).useTheme)(),b=f;return b&&"$"===b[0]&&(b=(0,r(d[5]).variableToString)(s[b])),(0,j.jsx)(r(d[4]).YStack,Object.assign({ref:c},l,{children:(0,j.jsx)(y.ActivityIndicator,{size:u,color:b})}))}),{componentName:"Spinner"}))},1780,[207,258,128,28,1588,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=Object.create,o=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,p=function(t,n,u,f){if(n&&"object"==typeof n||"function"==typeof n){var p=function(l){!c.call(t,l)&&l!==u&&o(t,l,{get:function(){return n[l]},enumerable:!(f=s(n,l))||f.enumerable})};for(var b of l(n))p(b)}return t},b={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{TextArea:function(){return j},TextAreaFrame:function(){return v}}),m.exports=(t=b,p(o({},"__esModule",{value:!0}),t));var y=r(d[1]),O=(function(t,n,s){return s=null!=t?u(f(t)):{},p(!n&&t&&t.__esModule?s:o(s,"default",{value:t,enumerable:!0}),t)})(r(d[2])),v=(0,r(d[3]).styled)(r(d[4]).InputFrame,{name:"TextArea",multiline:!0,whiteSpace:"pre-wrap",variants:{unstyled:{false:Object.assign({height:"auto"},r(d[4]).defaultStyles)},size:{"...size":r(d[5]).textAreaSizeVariant}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}}),j=v.styleable(function(t,u){var o=O.default.useRef(null),s=(0,r(d[3]).useComposedRefs)(u,o),l=(0,r(d[4]).useInputProps)(t,s),f=n({},r(d[6]).isWeb?"rows":"numberOfLines",t.unstyled?void 0:4);return(0,y.jsx)(v,Object.assign({},f,l))})},1781,[18,258,128,1461,1778,1779,1463]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(l=o(f,u))||l.enumerable})};for(var y of u(f))p(y)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{Text:function(){return l}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t));var l=(0,r(d[0]).styled)(r(d[0]).Text,{variants:{unstyled:{false:{color:"$color"}}},defaultVariants:{unstyled:"1"===process.env.TAMAGUI_HEADLESS}})},1782,[1461]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.extensionTamaguiConfig=e.extensionSpace=e.extensionSize=e.extensionRadius=e.extensionFontSize=void 0;var $=e.extensionSize={$0:0,'$0.25':1,'$0.5':2,'$0.75':3,$1:4,'$1.5':6,$2:8,'$2.5':10,$3:12,'$3.5':14,$4:14,$true:16,'$4.5':16,$5:20,$6:24,$7:24,$8:32,$9:36,$10:40,$11:44,$12:48,$13:52,$14:56,$15:60,$16:64,$17:68,$18:72,$19:76,$20:80,$21:84,$22:88,$23:92,$24:96,$25:100,$26:104,$27:108,$28:112,$29:116,$30:120,$31:124,$32:128,$33:132,$34:136,$35:140,$36:144,$37:148,$38:152,$39:156,$40:160,$41:164,$42:168,$43:172,$44:176,$45:180,$46:184,$47:188,$48:192,$49:196,$container:400,$nav:400,$content:367,$card:71,$cardWidth:364,$cardContainer:381,$icon:53,$tab:198,$tabHeight:48,$paddingContainer:16,$paddingCard:9,$paddingCardInner:8,$gapCard:11,$gapTab:58},n=e.extensionSpace=Object.assign({},$,{'$-0.25':-1,'$-0.5':-2,'$-0.75':-3,'$-1':-4,'$-1.5':-6,'$-2':-8,'$-2.5':-10,'$-3':-12,'$-3.5':-14,'$-4':-16,'$-4.5':-18,'$-5':-20,'$-6':-24,'$-7':-28,'$-8':-32,'$-9':-36,'$-10':-40,'$-11':-44,'$-12':-48,'$-13':-52,'$-14':-56,'$-15':-60,'$-16':-64,'$-17':-68,'$-18':-72,'$-19':-76,'$-20':-80,'$-21':-84,'$-22':-88,'$-23':-92,'$-24':-96,'$-25':-100,'$-26':-104,'$-27':-108,'$-28':-112,'$-29':-116,'$-30':-120}),t=e.extensionRadius={0:0,1:4,2:9,3:13,4:16,true:18,5:22,6:27,7:31,8:36,9:40,10:44,11:49,12:53,card:18,button:27,icon:222,nav:0},o=e.extensionFontSize={xs:13,sm:16,base:18,lg:20,xl:22,'2xl':27,'3xl':31,'4xl':36,'5xl':40,'6xl':44,title:20,tab:18,body:16,small:13};e.extensionTamaguiConfig=(0,r(d[0]).createTamagui)(Object.assign({},r(d[1]).defaultConfig,{themes:r(d[2]).themes,tokens:Object.assign({},r(d[1]).defaultConfig.tokens,r(d[2]).colorTokens,{size:$,space:n,zIndex:r(d[2]).zIndex,radius:t,fontSize:o})}))},1783,[1460,1784,1819]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,c,f,l){if(c&&"object"==typeof c||"function"==typeof c){var h=function(u){!s.call(t,u)&&u!==f&&n(t,u,{get:function(){return c[u]},enumerable:!(l=o(c,u))||l.enumerable})};for(var y of u(c))h(y)}return t},f={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(f,{animations:function(){return r(d[0]).animations},breakpoints:function(){return r(d[1]).breakpoints},createSystemFont:function(){return r(d[2]).createSystemFont},createThemes:function(){return r(d[3]).createThemes},defaultConfig:function(){return y},fonts:function(){return r(d[2]).fonts},media:function(){return r(d[1]).media},mediaQueryDefaultActive:function(){return r(d[1]).mediaQueryDefaultActive},selectionStyles:function(){return l},settings:function(){return h},shorthands:function(){return r(d[4]).shorthands},tamaguiThemes:function(){return r(d[5]).tamaguiThemes},themes:function(){return r(d[5]).defaultThemes},tokens:function(){return r(d[5]).tokens}}),m.exports=(t=f,c(n({},"__esModule",{value:!0}),t));var l=function(t){return t.color5?{backgroundColor:t.color5,color:t.color11}:null},h={mediaQueryDefaultActive:r(d[1]).mediaQueryDefaultActive,defaultFont:"body",fastSchemeChange:!0,shouldAddPrefersColorThemes:!0,allowedStyleValues:"somewhat-strict-web",themeClassNameOnRoot:!0,onlyAllowShorthands:!0,maxDarkLightNesting:2},y={animations:r(d[6]).animations,media:r(d[1]).media,shorthands:r(d[4]).shorthands,themes:r(d[5]).defaultThemes,tokens:r(d[5]).tokens,fonts:r(d[2]).fonts,selectionStyles:l,settings:h}},1784,[1785,1789,1790,1791,1812,1813,1818]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var l of c(f))b(l)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{animations:function(){return r(d[0]).animationsReactNative}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1785,[1786]); -__d(function(g,r,i,a,m,e,d){"use strict";var s,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,p=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,o=function(s,o,u,c){if(o&&"object"==typeof o||"function"==typeof o){var y=function(p){!f.call(s,p)&&p!==u&&t(s,p,{get:function(){return o[p]},enumerable:!(c=n(o,p))||c.enumerable})};for(var l of p(o))y(l)}return s},u={};!(function(s,n){for(var p in n)t(s,p,{get:n[p],enumerable:!0})})(u,{animationsReactNative:function(){return c}}),m.exports=(s=u,o(t({},"__esModule",{value:!0}),s));var c=(0,r(d[0]).createAnimations)({"75ms":{type:"timing",duration:75},"100ms":{type:"timing",duration:100},"200ms":{type:"timing",duration:200},superBouncy:{type:"spring",damping:5,mass:.7,stiffness:200},bouncy:{type:"spring",damping:9,mass:.9,stiffness:150},lazy:{type:"spring",damping:18,stiffness:50},medium:{damping:15,stiffness:120,mass:1},slowest:{type:"spring",damping:15,stiffness:10},slow:{type:"spring",damping:15,stiffness:40},quick:{type:"spring",damping:20,mass:1.2,stiffness:250},tooltip:{type:"spring",damping:10,mass:.9,stiffness:100},quicker:{type:"spring",damping:20,mass:1,stiffness:250},quickest:{damping:14,mass:.1,stiffness:380}})},1786,[1787]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,l){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&o(t,u,{get:function(){return f[u]},enumerable:!(l=n(f,u))||l.enumerable})};for(var b of u(f))s(b)}return t},p={};m.exports=(t=p,f(o({},"__esModule",{value:!0}),t)),(function(t,o,n){f(t,o,"default"),n&&f(n,o,"default")})(p,r(d[0]),m.exports)},1787,[1788]); -__d(function(g,_r,i,a,m,e,d){"use strict";var t,n=_r(d[0]),r=_r(d[1]),u=_r(d[2]),o=_r(d[3]),l=["type"],s=Object.create,c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,v=Object.getOwnPropertyNames,p=Object.getPrototypeOf,b=Object.prototype.hasOwnProperty,y=function(t,n,r,u){if(n&&"object"==typeof n||"function"==typeof n){var o=function(o){!b.call(t,o)&&o!==r&&c(t,o,{get:function(){return n[o]},enumerable:!(u=f(n,o))||u.enumerable})};for(var l of v(n))o(l)}return t},O={};!(function(t,n){for(var r in n)c(t,r,{get:n[r],enumerable:!0})})(O,{AnimatedText:function(){return N},AnimatedView:function(){return w},createAnimations:function(){return x},useAnimatedNumber:function(){return W},useAnimatedNumberReaction:function(){return P},useAnimatedNumberStyle:function(){return T}}),m.exports=(t=O,y(c({},"__esModule",{value:!0}),t));var h=(function(t,n,r){return r=null!=t?s(p(t)):{},y(!n&&t&&t.__esModule?r:c(r,"default",{value:t,enumerable:!0}),t)})(_r(d[4])),A=_r(d[5]),R={transform:!0,opacity:!0},j={backgroundColor:!0,color:!0,borderColor:!0,borderLeftColor:!0,borderRightColor:!0,borderTopColor:!0,borderBottomColor:!0},V=Object.assign({borderRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderTopWidth:!0,borderBottomWidth:!0},j),w=A.Animated.View,N=A.Animated.Text;function W(t){var n=h.default.useRef(null);return n.current||(n.current={composite:null,val:new A.Animated.Value(t),strategy:{type:"spring"}}),{getInstance:function(){return n.current.val},getValue:function(){return n.current.val._value},stop:function(){var t;null===(t=n.current.composite)||void 0===t||t.stop(),n.current.composite=null},setValue:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{type:"spring"},u=r.type,s=o(r,l),c=arguments.length>2?arguments[2]:void 0,f=n.current.val,v=c?function(t){return t.finished?c():null}:void 0;if("direct"===u)f.setValue(t);else if("spring"===u){var p;null===(p=n.current.composite)||void 0===p||p.stop();var b=A.Animated.spring(f,Object.assign({},s,{toValue:t,useNativeDriver:!_r(d[6]).isWeb}));b.start(v),n.current.composite=b}else{var y;null===(y=n.current.composite)||void 0===y||y.stop();var O=A.Animated.timing(f,Object.assign({},s,{toValue:t,useNativeDriver:!_r(d[6]).isWeb}));O.start(v),n.current.composite=O}}}}var P=function(t,n){var r=t.value,u=(0,_r(d[7]).useEvent)(function(t){n(t.value)});h.default.useEffect(function(){var t=r.getInstance().addListener(u);return function(){r.getInstance().removeListener(t)}},[r,u])},T=function(t,n){return n(t.getInstance())};function x(t){return{isReactNative:!0,animations:t,View:w,Text:N,useAnimatedNumber:W,useAnimatedNumberReaction:P,useAnimatedNumberStyle:T,usePresence:_r(d[8]).usePresence,ResetPresence:_r(d[8]).ResetPresence,useAnimations:function(o){var l=o.props,s=o.onDidAnimate,c=o.style,f=o.componentState,v=o.presence,p=_r(d[6]).isWeb&&!0===f.unmounted,b=!1===(null==v?void 0:v[0]),y=null==v?void 0:v[1],O=h.default.useRef({}),w=h.default.useRef([]),N=h.default.useRef(new WeakMap),W=l.animateOnly||[],P=!!l.animateOnly,T=[JSON.stringify(c),f,b,!!s],x=h.default.useMemo(function(){return!!_r(d[6]).isWeb||Object.keys(c).some(function(t){return W?!R[t]&&-1===W.indexOf(t):!R[t]})},T),k=h.default.useMemo(function(){var o=[],s=[],f={};for(var v in c){var b=c[v];if(!p){if(null==R[v]&&!V[v]){f[v]=b;continue}if(P&&!W.includes(v)){f[v]=b;continue}if("transform"!==v){O.current[v]=q(v,O.current[v],b);continue}if(b){if("string"==typeof b){console.warn("Warning: Tamagui can't animate string transforms yet!");continue}var y=!0,h=!1,T=void 0;try{for(var k,E=b.entries()[Symbol.iterator]();!(y=(k=E.next()).done);y=!0){var I,M=u(k.value,2),S=M[0],B=M[1];if(B){var $=Object.keys(B)[0],X=null===(I=w.current[S])||void 0===I?void 0:I[$];w.current[S]=r({},$,q($,X,B[$])),w.current=n(w.current)}}}catch(t){h=!0,T=t}finally{try{!y&&null!=E.return&&E.return()}finally{if(h)throw T}}}}}var Y=Object.assign({},Object.fromEntries(Object.entries(O.current).map(function(t){var n,r=u(t,2),o=r[0],l=r[1];return[o,(null===(n=N.current.get(l))||void 0===n?void 0:n.interpolation)||l]})),{transform:w.current.map(function(t){var n,u=Object.keys(t)[0],o=(null===(n=N.current.get(t[u]))||void 0===n?void 0:n.interpolation)||t[u];return r({},u,o)})});return{runners:o,completions:s,style:[f,Y]};function q(n,r,c){var f,v,p=j[n],b=p?[0,void 0]:D(c),y=u(b,2),O=y[0],h=y[1],R=O,V=r||new A.Animated.Value(O),w=N.current.get(V);h&&(f=L(null!==(v=null==w?void 0:w.current)&&void 0!==v?v:V._value,O,h),N.current.set(V,{interpolation:V.interpolate(f),current:O}));if(p&&(R=null!=w&&w.animateToValue?0:1,f=_(null==w?void 0:w.current,c,R),N.current.set(V,{current:c,interpolation:V.interpolate(f),animateToValue:null!=w&&w.animateToValue?0:1})),V){var W,P=C(n,t,l.animation),T=new Promise(function(t){W=t});s.push(T),o.push(function(){function t(){return A.Animated[P.type||"spring"](V,Object.assign({toValue:R,useNativeDriver:!_r(d[6]).isWeb&&!x},P))}V.stopAnimation(),(P.delay?A.Animated.sequence([A.Animated.delay(P.delay),t()]):t()).start(function(t){t.finished&&W()})})}return V}},T);return(0,_r(d[6]).useIsomorphicLayoutEffect)(function(){k.runners.forEach(function(t){return t()});var t=!1;return Promise.all(k.completions).then(function(){t||(null==s||s(),b&&(null==y||y()))}),function(){t=!0}},T),k}}}function _(t,n,r){var u=[t||n,n];return 0===r&&u.reverse(),{inputRange:[0,1],outputRange:u}}function L(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"deg";n===t&&(t=n-1e-9);var u=[t,n],o=[`${t}${r}`,`${n}${r}`];return n0&&void 0!==arguments[0]?arguments[0]:{},o=t.font,c=void 0===o?{}:o,u=t.sizeLineHeight,s=void 0===u?function(t){return t+10}:u,f=t.sizeSize,b=void 0===f?function(t){return 1*t}:f,l=Object.fromEntries(Object.entries(Object.assign({},p,c.size)).map(function(t){var o=n(t,2),c=o[0],u=o[1];return[c,b(+u)]}));return(0,r(d[1]).createFont)(Object.assign({family:r(d[1]).isWeb?'-apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif':"System",lineHeight:Object.fromEntries(Object.entries(l).map(function(t){var o=n(t,2),c=o[0],u=o[1];return[c,s((0,r(d[1]).getVariableValue)(u))]})),weight:{4:"300"},letterSpacing:{4:0}},c,{size:l}))},p={1:11,2:12,3:13,4:14,true:14,5:16,6:18,7:20,8:23,9:30,10:46,11:55,12:62,13:72,14:92,15:114,16:134},v={body:l(),heading:l({sizeSize:function(t){return 1.4*t}})}},1790,[19,1461]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,u=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,l){if(f&&"object"==typeof f||"function"==typeof f){var p=function(o){!c.call(t,o)&&o!==s&&n(t,o,{get:function(){return f[o]},enumerable:!(l=u(f,o))||l.enumerable})};for(var T of o(f))p(T)}return t},s=function(t,n,u){return f(t,n,"default"),u&&f(u,n,"default")},l={};!(function(t,u){for(var o in u)n(t,o,{get:u[o],enumerable:!0})})(l,{PALETTE_BACKGROUND_OFFSET:function(){return r(d[0]).PALETTE_BACKGROUND_OFFSET},createPalettes:function(){return r(d[1]).createPalettes},createStudioThemes:function(){return r(d[2]).createStudioThemes},createThemes:function(){return r(d[1]).createThemes},defaultComponentThemes:function(){return r(d[3]).defaultComponentThemes},defaultTemplates:function(){return r(d[4]).defaultTemplates},getThemeSuitePalettes:function(){return r(d[0]).getThemeSuitePalettes},masks:function(){return r(d[5]).masks}}),m.exports=(t=l,f(n({},"__esModule",{value:!0}),t)),s(l,r(d[6]),m.exports),s(l,r(d[7]),m.exports)},1791,[1792,1794,1808,1797,1795,1811,1798,1799]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=r(d[1]),u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,n,o,s){if(n&&"object"==typeof n||"function"==typeof n){var h=function(c){!f.call(t,c)&&c!==o&&u(t,c,{get:function(){return n[c]},enumerable:!(s=l(n,c))||s.enumerable})};for(var v of c(n))h(v)}return t},h={};!(function(t,n){for(var o in n)u(t,o,{get:n[o],enumerable:!0})})(h,{PALETTE_BACKGROUND_OFFSET:function(){return v},getThemeSuitePalettes:function(){return y}}),m.exports=(t=h,s(u({},"__esModule",{value:!0}),t));var v=6,p=function(t){var u=t.palette,l=t.scheme;if(!u)return[];var c=u.anchors,f=[],s=function(t,n,o){f.push((0,r(d[2]).hsla)(t,n,o,1))},h=Object.keys(c).length,v=!0,p=!1,y=void 0;try{for(var b,O=c.entries()[Symbol.iterator]();!(v=(b=O.next()).done);v=!0){var x=o(b.value,2),j=x[0],P=x[1],_=[P.hue[l],P.sat[l],P.lum[l]],T=_[0],w=_[1],k=_[2];if(0!==j)for(var E=c[j-1],S=P.index-E.index,A=E.hue[l],D=E.sat[l],F=E.lum[l],N=(A-T)/S,B=(D-w)/S,C=(F-k)/S,G=E.index+1;G>>0)%2341}var l=function(r){return parseInt(r.replace(/_/g,''),36)},v='1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce(function(r,t){for(var n=l(t.substring(0,3)),e=l(t.substring(3)).toString(16),a='',o=0;o<6-e.length;o++)a+='0';return r[n]=`${a}${e}`,r},{});function p(r){var t=r.toLowerCase().trim(),n=v[s(t)];if(!n)throw new c(r);return`#${n}`}var h=function(r,t){return Array.from(Array(t)).map(function(){return r}).join('')},g=new RegExp(`^#${h('([a-f0-9])',3)}([a-f0-9])?$`,'i'),z=new RegExp(`^#${h('([a-f0-9]{2})',3)}([a-f0-9]{2})?$`,'i'),y=new RegExp(`^rgba?\\(\\s*(\\d+)\\s*${h(',\\s*(\\d+)\\s*',2)}(?:,\\s*([\\d.]+))?\\s*\\)$`,'i'),b=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,w=/^[a-z]+$/i,x=function(r){return Math.round(255*r)},k=function(r,t,n){var e=n/100;if(0===t)return[e,e,e].map(x);var a=(r%360+360)%360/60,o=(1-Math.abs(2*e-1))*(t/100),i=o*(1-Math.abs(a%2-1)),u=0,_=0,c=0;a>=0&&a<1?(u=o,_=i):a>=1&&a<2?(u=i,_=o):a>=2&&a<3?(_=o,c=i):a>=3&&a<4?(_=i,c=o):a>=4&&a<5?(u=i,c=o):a>=5&&a<6&&(u=o,c=i);var f=e-o/2;return[u+f,_+f,c+f].map(x)};function j(t){var n=f(t).map(function(r,t){return 3===t?r:r/255}),e=r(n,4),a=e[0],o=e[1],i=e[2],u=e[3],_=Math.max(a,o,i),c=Math.min(a,o,i),s=(_+c)/2;if(_===c)return[0,0,s,u];var l=_-c;return[60*(a===_?(o-i)/l+(o.5?l/(2-_-c):l/(_+c),s,u]}function $(r,t,n,e){return`hsla(${(r%360).toFixed()}, ${_(0,100,100*t).toFixed()}%, ${_(0,100,100*n).toFixed()}%, ${parseFloat(_(0,1,e).toFixed(3))})`}function q(t,n){var e=j(t),a=r(e,4);return $(a[0],a[1],a[2]-n,a[3])}function F(t,n){var e=j(t),a=r(e,4);return $(a[0],a[1]-n,a[2],a[3])}function M(t){if('transparent'===t)return 0;function n(r){var t=r/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}var e=f(t),a=r(e,3),o=a[0],i=a[1],u=a[2];return.2126*n(o)+.7152*n(i)+.0722*n(u)}function A(r,t){var n=M(r),e=M(t);return n>e?(n+.05)/(e+.05):(e+.05)/(n+.05)}function C(r,t,n,e){return`rgba(${_(0,255,r).toFixed()}, ${_(0,255,t).toFixed()}, ${_(0,255,n).toFixed()}, ${parseFloat(_(0,1,e).toFixed(3))})`}function I(t,n,e){var a=function(r,t){return 3===t?r:r/255},o=f(t).map(a),i=r(o,4),u=i[0],_=i[1],c=i[2],s=i[3],l=f(n).map(a),v=r(l,4),p=v[0],h=v[1],g=v[2],z=v[3],y=z-s,b=2*e-1,w=((b*y===-1?b:b+y/(1+b*y))+1)/2,x=1-w;return C(255*(u*x+p*w),255*(_*x+h*w),255*(c*x+g*w),z*e+s*(1-e))}var R={decorative:1.5,readable:3,aa:4.5,aaa:7};function E(t,n){var e=f(t),a=r(e,4);return C(a[0],a[1],a[2],a[3]-n)}function B(r){return M(r)>.179}_e.ColorError=c,_e.adjustHue=function(t,n){var e=j(t),a=r(e,4);return $(a[0]+n,a[1],a[2],a[3])},_e.darken=q,_e.desaturate=F,_e.getContrast=A,_e.getLuminance=M,_e.getScale=function(){for(var r=arguments.length,t=new Array(r),n=0;n1&&void 0!==arguments[1]?arguments[1]:'aa';return A(r,arguments.length>2&&void 0!==arguments[2]?arguments[2]:'#fff')5&&void 0!==arguments[5]&&arguments[5];if(!t[o])throw new Error(`No pallete: ${o}`);var v=Object.assign({},f);for(var l in f){var p=f[l];if("string"==typeof p&&"$"===p[0]){var O=p.split("."),y=n(O,2),j=y[0],w=y[1],_=j.slice(1),$=o.split("_")[0],M=t[_]||t[`${$}_${_}`];if(M){var P=b(M,+w);typeof P<"u"&&(v[l]=P)}}}return h(t[o],v,u,c,s)}function h(t,o,f,u){var c=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=c?"":JSON.stringify([u,t,o,f]);if(!c&&l.has(s))return l.get(s);var v=Object.assign({},Object.fromEntries(Object.entries(o).map(function(o){var f=n(o,2),u=f[0],c=f[1];return[u,b(t,c)]})),null==f?void 0:f.nonInheritedValues);return(0,r(d[1]).setThemeInfo)(v,{palette:t,definition:o,options:f,name:u}),s&&l.set(s,v),v}var b=function(t,n){if(!t)throw new Error("No palette!");if("string"==typeof n)return n;var o=t.length-1,f=(0===n?!(0,r(d[2]).isMinusZero)(n):n>=0)?n:o+n;return t[Math.min(Math.max(0,f),o)]};function O(t,n){var o=Object.assign({},t);for(var f in t){var u=n(f,t[f]);for(var c in u)o[`${f}_${c}`]=u[c]}return o}},1800,[19,1801,1802]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,u=function(t,u,s,p){if(u&&"object"==typeof u||"function"==typeof u){var O=function(f){!c.call(t,f)&&f!==s&&n(t,f,{get:function(){return u[f]},enumerable:!(p=o(u,f))||p.enumerable})};for(var y of f(u))O(y)}return t},s={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(s,{getThemeInfo:function(){return O},setThemeInfo:function(){return y}}),m.exports=(t=s,u(n({},"__esModule",{value:!0}),t));var p=new Map,O=function(t,n){return p.get(n||JSON.stringify(t))},y=function(t,n){var o=Object.assign({},n,{cache:new Map});p.set(n.name||JSON.stringify(t),o),p.set(JSON.stringify(n.definition),o)}},1801,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(u){!c.call(t,u)&&u!==p&&n(t,u,{get:function(){return f[u]},enumerable:!(b=o(f,u))||b.enumerable})};for(var l of u(f))s(l)}return t},p={};function b(t){return 1/t===Number.NEGATIVE_INFINITY}!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(p,{isMinusZero:function(){return b}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1802,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,c=function(t,n,c,v){if(n&&"object"==typeof n||"function"==typeof n){var l=function(f){!s.call(t,f)&&f!==c&&o(t,f,{get:function(){return n[f]},enumerable:!(v=u(n,f))||v.enumerable})};for(var k of f(n))l(k)}return t},v={};!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(v,{createIdentityMask:function(){return y},createInverseMask:function(){return h},createMask:function(){return l},createShiftMask:function(){return b},createSoftenMask:function(){return O},createStrengthenMask:function(){return j},createWeakenMask:function(){return M},skipMask:function(){return k}}),m.exports=(t=v,c(o({},"__esModule",{value:!0}),t));var l=function(t){return"function"==typeof t?{name:t.name||"unnamed",mask:t}:t},k={name:"skip-mask",mask:function(t,o){var u=o.skip;return Object.fromEntries(Object.entries(t).filter(function(t){var o=n(t,1)[0];return!u||!(o in u)}).map(function(t){var u=n(t,2),f=u[0];return[f,p(f,u[1],o)]}))}};function p(t,n,o){var u,f,s=o.overrideStrategy,c=null===(u=o.overrideSwap)||void 0===u?void 0:u[t];if(typeof c<"u")f=c,s="swap";else{var v,l=null===(v=o.overrideShift)||void 0===v?void 0:v[t];if(typeof l<"u")f=l,s="shift";else{var k,p=null===(k=o.override)||void 0===k?void 0:k[t];typeof p<"u"&&(f=p,s=o.overrideStrategy)}}return typeof f>"u"||"string"==typeof f?n:"swap"===s?f:n}var y=function(){return{name:"identity-mask",mask:function(t,n){return k.mask(t,n)}}},h=function(){return{name:"inverse-mask",mask:function(t,o){var u=(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectEntries)(t).map(function(t){var o=n(t,2);return[o[0],-o[1]]}));return k.mask(u,o)}}},b=function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).inverse,o=arguments.length>1?arguments[1]:void 0;return{name:"shift-mask",mask:function(u,f){var s=Object.assign({},o,f),c=s.override,v=s.overrideStrategy,l=void 0===v?"shift":v,p=s.max,y=s.palette,h=s.min,b=void 0===h?0:h,M=s.strength,O=void 0===M?1:M,j=Object.entries(u),S=null!=p?p:y?Object.values(y).length-1:Number.POSITIVE_INFINITY,w={},I=!0,x=!1,P=void 0;try{for(var _,E=j[Symbol.iterator]();!(I=(_=E.next()).done);I=!0){var N=n(_.value,2),F=N[0],T=N[1];if("string"!=typeof T){if("number"==typeof(null==c?void 0:c[F])){var D=c[F];w[F]="shift"===l?T+D:D;continue}if("string"==typeof(null==c?void 0:c[F])){w[F]=c[F];continue}var V=0===T?!(0,r(d[2]).isMinusZero)(T):T>=0,W=T+O*(V?1:-1)*(t?-1:1),Y=V?Math.max(b,Math.min(S,W)):Math.min(-b,Math.max(-S,W));w[F]=Y}}}catch(t){x=!0,P=t}finally{try{!I&&null!=E.return&&E.return()}finally{if(x)throw P}}return k.mask(w,f)}}},M=function(t){return{name:"soften-mask",mask:b({},t).mask}},O=M,j=function(t){return{name:"strengthen-mask",mask:b({inverse:!0},t).mask}}},1803,[19,1804,1802]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,b,s){if(f&&"object"==typeof f||"function"==typeof f){var j=function(c){!u.call(t,c)&&c!==b&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var p of c(f))j(p)}return t},b={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(b,{objectEntries:function(){return j},objectFromEntries:function(){return p},objectKeys:function(){return s}}),m.exports=(t=b,f(n({},"__esModule",{value:!0}),t));var s=function(t){return Object.keys(t)};function j(t){return Object.entries(t)}function p(t){return Object.fromEntries(t)}},1804,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,c=function(t,c,l,s){if(c&&"object"==typeof c||"function"==typeof c){var p=function(f){!u.call(t,f)&&f!==l&&n(t,f,{get:function(){return c[f]},enumerable:!(s=o(c,f))||s.enumerable})};for(var y of f(c))p(y)}return t},l={};!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(l,{combineMasks:function(){return s}}),m.exports=(t=l,c(n({},"__esModule",{value:!0}),t));var s=function(){for(var t=arguments.length,n=new Array(t),o=0;o2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0,p=arguments.length>4?arguments[4]:void 0,s=(0,r(d[0]).getThemeInfo)(t,f);if(!s)throw new Error("\u274c Err2");var u=l(s,n,o,f);return(0,r(d[0]).setThemeInfo)(u.theme,{definition:u.definition,palette:s.palette,name:p}),u.theme}function l(t,n){var o,f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=arguments.length>3?arguments[3]:void 0,s=Object.assign({},f.skip);if(null!==(o=t.options)&&void 0!==o&&o.nonInheritedValues)for(var u in t.options.nonInheritedValues)s[u]=1;var c=Object.assign({parentName:p,palette:t.palette},f,{skip:s}),l=n.mask(t.definition,c),h=(0,r(d[1]).createTheme)(t.palette,l);return Object.assign({},t,{cache:new Map,definition:l,theme:h})}!(function(t,o){for(var f in o)n(t,f,{get:o[f],enumerable:!0})})(u,{applyMask:function(){return c},applyMaskStateless:function(){return l}}),m.exports=(t=u,s(n({},"__esModule",{value:!0}),t))},1806,[1801,1800]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,b){if(f&&"object"==typeof f||"function"==typeof f){var s=function(c){!u.call(t,c)&&c!==p&&o(t,c,{get:function(){return f[c]},enumerable:!(b=n(f,c))||b.enumerable})};for(var y of c(f))s(y)}return t};m.exports=(t={},f(o({},"__esModule",{value:!0}),t))},1807,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,l=function(t,l,p,s){if(l&&"object"==typeof l||"function"==typeof l){var f=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return l[c]},enumerable:!(s=o(l,c))||s.enumerable})};for(var y of c(l))f(y)}return t},p={};function s(t){var n=(0,r(d[0]).createPalettes)(t.palettes),o="stronger"===t.templateStrategy?r(d[1]).defaultTemplatesStronger:"strongest"===t.templateStrategy?r(d[2]).defaultTemplatesStrongest:r(d[3]).defaultTemplates;return(0,r(d[0]).createSimpleThemeBuilder)({palettes:n,templates:o,componentThemes:r(d[4]).defaultComponentThemes,accentTheme:!!t.palettes.accent})}!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{createStudioThemes:function(){return s}}),m.exports=(t=p,l(n({},"__esModule",{value:!0}),t))},1808,[1794,1809,1810,1795,1797]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,c=r(d[0]),n=Object.defineProperty,s=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,b=function(o,c,b,t){if(c&&"object"==typeof c||"function"==typeof c){var k=function(l){!u.call(o,l)&&l!==b&&n(o,l,{get:function(){return c[l]},enumerable:!(t=s(c,l))||t.enumerable})};for(var C of l(c))k(C)}return o},t={};!(function(o,c){for(var s in c)n(o,s,{get:c[s],enumerable:!0})})(t,{defaultTemplatesStronger:function(){return f}}),m.exports=(o=t,b(n({},"__esModule",{value:!0}),o));var k,C,v=function(o){var n="light"===o?-1:1,s=-n,l={color:-6,colorHover:-7,colorPress:-6,colorFocus:-7,placeholderColor:-9,outlineColor:-2},u=Object.assign({accentBackground:0,accentColor:-0,background0:1,background02:2,background04:3,background06:4,background08:5,color1:6,color2:7,color3:8,color4:9,color5:10,color6:11,color7:12,color8:13,color9:14,color10:15,color11:16,color12:17,color0:-1,color02:-2,color04:-3,color06:-4,color08:-5,background:6,backgroundHover:6+n,backgroundPress:6+s,backgroundFocus:6+s,borderColor:9,borderColorHover:9+n,borderColorPress:9+s,borderColorFocus:9},l,{colorTransparent:-1});return{base:u,surface1:Object.assign({},l,{background:u.background+2,backgroundHover:u.backgroundHover+2,backgroundPress:u.backgroundPress+2,backgroundFocus:u.backgroundFocus+2,borderColor:u.borderColor+2,borderColorHover:u.borderColorHover+2,borderColorFocus:u.borderColorFocus+2,borderColorPress:u.borderColorPress+2}),surface2:Object.assign({},l,{background:u.background+3,backgroundHover:u.backgroundHover+3,backgroundPress:u.backgroundPress+3,backgroundFocus:u.backgroundFocus+3,borderColor:u.borderColor+3,borderColorHover:u.borderColorHover+3,borderColorFocus:u.borderColorFocus+3,borderColorPress:u.borderColorPress+3}),surface3:Object.assign({},l,{background:u.background+4,backgroundHover:u.backgroundHover+4,backgroundPress:u.backgroundPress+4,backgroundFocus:u.backgroundFocus+4,borderColor:u.borderColor+4,borderColorHover:u.borderColorHover+4,borderColorFocus:u.borderColorFocus+4,borderColorPress:u.borderColorPress+4}),alt1:{color:u.color-1,colorHover:u.colorHover-1,colorPress:u.colorPress-1,colorFocus:u.colorFocus-1},alt2:{color:u.color-2,colorHover:u.colorHover-2,colorPress:u.colorPress-2,colorFocus:u.colorFocus-2},inverse:Object.fromEntries(Object.entries(u).map(function(o){var n=c(o,2);return[n[0],-n[1]]}))}},f=(k=v("light"),C=v("dark"),Object.assign({},(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(k).map(function(o){return[`light_${o}`,k[o]]})),(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(C).map(function(o){return[`dark_${o}`,C[o]]}))))},1809,[19,1796]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,c=r(d[0]),s=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,b=function(o,c,b,t){if(c&&"object"==typeof c||"function"==typeof c){var k=function(l){!u.call(o,l)&&l!==b&&s(o,l,{get:function(){return c[l]},enumerable:!(t=n(c,l))||t.enumerable})};for(var C of l(c))k(C)}return o},t={};!(function(o,c){for(var n in c)s(o,n,{get:c[n],enumerable:!0})})(t,{defaultTemplatesStrongest:function(){return f}}),m.exports=(o=t,b(s({},"__esModule",{value:!0}),o));var k,C,v=function(o){var s="light"===o?-1:1,n=-s,l={color:-6,colorHover:-7,colorPress:-6,colorFocus:-7,placeholderColor:-9,outlineColor:-2},u=Object.assign({accentBackground:0,accentColor:-0,background0:1,background02:2,background04:3,background06:4,background08:5,color1:6,color2:7,color3:8,color4:9,color5:10,color6:11,color7:12,color8:13,color9:14,color10:15,color11:16,color12:17,color0:-1,color02:-2,color04:-3,color06:-4,color08:-5,background:6,backgroundHover:6+s,backgroundPress:6+n,backgroundFocus:6+n,borderColor:9,borderColorHover:9+s,borderColorPress:9+n,borderColorFocus:9},l,{colorTransparent:-1});return{base:u,surface1:Object.assign({},l,{background:u.background+3,backgroundHover:u.backgroundHover+3,backgroundPress:u.backgroundPress+3,backgroundFocus:u.backgroundFocus+3,borderColor:u.borderColor+3,borderColorHover:u.borderColorHover+3,borderColorFocus:u.borderColorFocus+3,borderColorPress:u.borderColorPress+3}),surface2:Object.assign({},l,{background:u.background+4,backgroundHover:u.backgroundHover+4,backgroundPress:u.backgroundPress+4,backgroundFocus:u.backgroundFocus+4,borderColor:u.borderColor+4,borderColorHover:u.borderColorHover+4,borderColorFocus:u.borderColorFocus+4,borderColorPress:u.borderColorPress+4}),surface3:Object.assign({},l,{background:u.background+5,backgroundHover:u.backgroundHover+5,backgroundPress:u.backgroundPress+5,backgroundFocus:u.backgroundFocus+5,borderColor:u.borderColor+5,borderColorHover:u.borderColorHover+5,borderColorFocus:u.borderColorFocus+5,borderColorPress:u.borderColorPress+5}),alt1:{color:u.color-1,colorHover:u.colorHover-1,colorPress:u.colorPress-1,colorFocus:u.colorFocus-1},alt2:{color:u.color-2,colorHover:u.colorHover-2,colorPress:u.colorPress-2,colorFocus:u.colorFocus-2},inverse:Object.fromEntries(Object.entries(u).map(function(o){var s=c(o,2);return[s[0],-s[1]]}))}},f=(k=v("light"),C=v("dark"),Object.assign({},(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(k).map(function(o){return[`light_${o}`,k[o]]})),(0,r(d[1]).objectFromEntries)((0,r(d[1]).objectKeys)(C).map(function(o){return[`dark_${o}`,C[o]]}))))},1810,[19,1796]); -__d(function(g,r,i,a,m,e,d){"use strict";var o,t=Object.defineProperty,s=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,b=function(o,b,l,k){if(b&&"object"==typeof b||"function"==typeof b){var f=function(n){!c.call(o,n)&&n!==l&&t(o,n,{get:function(){return b[n]},enumerable:!(k=s(b,n))||k.enumerable})};for(var C of n(b))f(C)}return o},l={};!(function(o,s){for(var n in s)t(o,n,{get:s[n],enumerable:!0})})(l,{masks:function(){return k}}),m.exports=(o=l,b(t({},"__esModule",{value:!0}),o));var k={identity:(0,r(d[0]).createIdentityMask)(),soften:(0,r(d[0]).createSoftenMask)(),soften2:(0,r(d[0]).createSoftenMask)({strength:2}),soften3:(0,r(d[0]).createSoftenMask)({strength:3}),strengthen:(0,r(d[0]).createStrengthenMask)(),inverse:(0,r(d[0]).createInverseMask)(),inverseSoften:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:2})),inverseSoften2:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:3})),inverseSoften3:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createSoftenMask)({strength:4})),inverseStrengthen2:(0,r(d[0]).combineMasks)((0,r(d[0]).createInverseMask)(),(0,r(d[0]).createStrengthenMask)({strength:2})),strengthenButSoftenBorder:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createStrengthenMask)().mask(o,t),n=(0,r(d[0]).createSoftenMask)().mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),soften2Border1:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:1}).mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),soften3FlatBorder:(0,r(d[0]).createMask)(function(o,t){var s=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:3}).mask(o,t);return Object.assign({},n,{borderColor:s.borderColor,borderColorHover:s.borderColorHover,borderColorPress:s.borderColorPress,borderColorFocus:s.borderColorFocus})}),softenBorder:(0,r(d[0]).createMask)(function(o,t){var s=r(d[0]).skipMask.mask(o,t),n=(0,r(d[0]).createSoftenMask)().mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})}),softenBorder2:(0,r(d[0]).createMask)(function(o,t){var s=r(d[0]).skipMask.mask(o,t),n=(0,r(d[0]).createSoftenMask)({strength:2}).mask(o,t);return Object.assign({},s,{borderColor:n.borderColor,borderColorHover:n.borderColorHover,borderColorPress:n.borderColorPress,borderColorFocus:n.borderColorFocus})})}},1811,[1799]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,o=Object.defineProperty,n=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,b=function(t,b,p,s){if(b&&"object"==typeof b||"function"==typeof b){var c=function(l){!f.call(t,l)&&l!==p&&o(t,l,{get:function(){return b[l]},enumerable:!(s=n(b,l))||s.enumerable})};for(var u of l(b))c(u)}return t},p={};!(function(t,n){for(var l in n)o(t,l,{get:n[l],enumerable:!0})})(p,{shorthands:function(){return s}}),m.exports=(t=p,b(o({},"__esModule",{value:!0}),t));var s={text:"textAlign",b:"bottom",bg:"backgroundColor",content:"alignContent",grow:"flexGrow",items:"alignItems",justify:"justifyContent",l:"left",m:"margin",maxH:"maxHeight",maxW:"maxWidth",mb:"marginBottom",minH:"minHeight",minW:"minWidth",ml:"marginLeft",mr:"marginRight",mt:"marginTop",mx:"marginHorizontal",my:"marginVertical",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",pt:"paddingTop",px:"paddingHorizontal",py:"paddingVertical",r:"right",rounded:"borderRadius",select:"userSelect",self:"alignSelf",shrink:"flexShrink",t:"top",z:"zIndex"};Object.assign(s,Object.fromEntries([["fd","flexDirection"],["fb","flexBasis"],["bblr","borderBottomLeftRadius"],["bbrr","borderBottomRightRadius"],["fwr","flexWrap"],["col","color"],["ff","fontFamily"],["fst","fontStyle"],["tr","transform"],["tt","textTransform"],["td","textDecorationLine"],["va","verticalAlign"],["ws","whiteSpace"],["wb","wordBreak"],["ww","wordWrap"],["brc","borderRightColor"],["brw","borderRightWidth"],["bs","borderStyle"],["btc","borderTopColor"],["btlr","borderTopLeftRadius"],["btrr","borderTopRightRadius"],["btw","borderTopWidth"],["bw","borderWidth"],["o","opacity"],["cur","cursor"],["pe","pointerEvents"],["ov","overflow"],["pos","position"],["dsp","display"],["fw","fontWeight"],["fs","fontSize"],["ls","letterSpacing"],["lh","lineHeight"],["bxs","boxSizing"],["bxsh","boxShadow"],["ox","overflowX"],["oy","overflowY"]]))},1812,[]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,c=Object.prototype.hasOwnProperty,f=function(t,f,s,p){if(f&&"object"==typeof f||"function"==typeof f){var b=function(u){!c.call(t,u)&&u!==s&&n(t,u,{get:function(){return f[u]},enumerable:!(p=o(f,u))||p.enumerable})};for(var l of u(f))b(l)}return t},s={};!(function(t,o){for(var u in o)n(t,u,{get:o[u],enumerable:!0})})(s,{createThemes:function(){return r(d[0]).createThemes},defaultThemes:function(){return r(d[1]).themes},tamaguiThemes:function(){return r(d[2]).themes},tokens:function(){return r(d[3]).tokens}}),m.exports=(t=s,f(n({},"__esModule",{value:!0}),t))},1813,[1791,1814,1815,1816]); -__d(function(g,r,i,_a,m,e,d){"use strict";var l,a=r(d[0]),h=Object.defineProperty,t=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=function(l,a,o,c){if(a&&"object"==typeof a||"function"==typeof a){var k=function(_){!s.call(l,_)&&_!==o&&h(l,_,{get:function(){return a[_]},enumerable:!(c=t(a,_))||c.enumerable})};for(var n of _(a))k(n)}return l},c={};function k(l){var h={},t=!0,_=!1,s=void 0;try{for(var o,c=l[Symbol.iterator]();!(t=(o=c.next()).done);t=!0){var k=a(o.value,2),u=k[0],w=k[1];h[b[u]]=n[w]}}catch(l){_=!0,s=l}finally{try{!t&&null!=c.return&&c.return()}finally{if(_)throw s}}return h}!(function(l,a){for(var t in a)h(l,t,{get:a[t],enumerable:!0})})(c,{colors:function(){return n},themes:function(){return fl}}),m.exports=(l=c,o(h({},"__esModule",{value:!0}),l));var n=["hsla(0, 0%, 10%, 1)","hsla(0, 0%, 38%, 1)","hsla(0, 0%, 100%, 0)","hsla(0, 0%, 100%, 0.2)","hsla(0, 0%, 100%, 0.4)","hsla(0, 0%, 100%, 0.6)","hsla(0, 0%, 100%, 0.8)","hsla(0, 0%, 100%, 1)","hsla(0, 0%, 95%, 1)","hsla(0, 0%, 93%, 1)","hsla(0, 0%, 91%, 1)","hsla(0, 0%, 88%, 1)","hsla(0, 0%, 85%, 1)","hsla(0, 0%, 82%, 1)","hsla(0, 0%, 76%, 1)","hsla(0, 0%, 56%, 1)","hsla(0, 0%, 50%, 1)","hsla(0, 0%, 42%, 1)","hsla(0, 0%, 9%, 1)","hsla(0, 0%, 9%, 0)","hsla(0, 0%, 9%, 0.2)","hsla(0, 0%, 9%, 0.4)","hsla(0, 0%, 9%, 0.6)","hsla(0, 0%, 9%, 0.8)","hsl(206, 100%, 99.2%)","hsl(210, 100%, 98.0%)","hsl(209, 100%, 96.5%)","hsl(210, 98.8%, 94.0%)","hsl(209, 95.0%, 90.1%)","hsl(209, 81.2%, 84.5%)","hsl(208, 77.5%, 76.9%)","hsl(206, 81.9%, 65.3%)","hsl(206, 100%, 50.0%)","hsl(208, 100%, 47.3%)","hsl(211, 100%, 43.2%)","hsl(211, 100%, 15.0%)","hsl(136, 50.0%, 98.9%)","hsl(138, 62.5%, 96.9%)","hsl(139, 55.2%, 94.5%)","hsl(140, 48.7%, 91.0%)","hsl(141, 43.7%, 86.0%)","hsl(143, 40.3%, 79.0%)","hsl(146, 38.5%, 69.0%)","hsl(151, 40.2%, 54.1%)","hsl(151, 55.0%, 41.5%)","hsl(152, 57.5%, 37.6%)","hsl(153, 67.0%, 28.5%)","hsl(155, 40.0%, 14.0%)","hsl(359, 100%, 99.4%)","hsl(359, 100%, 98.6%)","hsl(360, 100%, 96.8%)","hsl(360, 97.9%, 94.8%)","hsl(360, 90.2%, 91.9%)","hsl(360, 81.7%, 87.8%)","hsl(359, 74.2%, 81.7%)","hsl(359, 69.5%, 74.3%)","hsl(358, 75.0%, 59.0%)","hsl(358, 69.4%, 55.2%)","hsl(358, 65.0%, 48.7%)","hsl(354, 50.0%, 14.6%)","hsl(60, 54.0%, 98.5%)","hsl(52, 100%, 95.5%)","hsl(55, 100%, 90.9%)","hsl(54, 100%, 86.6%)","hsl(52, 97.9%, 82.0%)","hsl(50, 89.4%, 76.1%)","hsl(47, 80.4%, 68.0%)","hsl(48, 100%, 46.1%)","hsl(53, 92.0%, 50.0%)","hsl(50, 100%, 48.5%)","hsl(42, 100%, 29.0%)","hsl(40, 55.0%, 13.5%)","rgba(0,0,0,0.04)","rgba(0,0,0,0.08)","rgba(0,0,0,0.16)","rgba(0,0,0,0.24)","rgba(0,0,0,0.32)","rgba(0,0,0,0.4)","#050505","#151515","#191919","#232323","#282828","#323232","#424242","#494949","#545454","#626262","#a5a5a5","#fff","#f2f2f2","hsl(0, 0%, 93%)","hsl(0, 0%, 91%)","hsl(0, 0%, 88%)","hsl(0, 0%, 85%)","hsl(0, 0%, 82%)","hsl(0, 0%, 76%)","hsl(0, 0%, 56%)","hsl(0, 0%, 50%)","hsl(0, 0%, 42%)","hsl(0, 0%, 9%)","hsla(0, 0%, 2%, 1)","hsla(0, 0%, 8%, 1)","hsla(0, 0%, 14%, 1)","hsla(0, 0%, 16%, 1)","hsla(0, 0%, 20%, 1)","hsla(0, 0%, 26%, 1)","hsla(0, 0%, 29%, 1)","hsla(0, 0%, 33%, 1)","hsla(0, 0%, 65%, 1)","hsla(0, 0%, 2%, 0)","hsla(0, 0%, 2%, 0.2)","hsla(0, 0%, 2%, 0.4)","hsla(0, 0%, 2%, 0.6)","hsla(0, 0%, 2%, 0.8)","hsl(212, 35.0%, 9.2%)","hsl(216, 50.0%, 11.8%)","hsl(214, 59.4%, 15.3%)","hsl(214, 65.8%, 17.9%)","hsl(213, 71.2%, 20.2%)","hsl(212, 77.4%, 23.1%)","hsl(211, 85.1%, 27.4%)","hsl(211, 89.7%, 34.1%)","hsl(209, 100%, 60.6%)","hsl(210, 100%, 66.1%)","hsl(206, 98.0%, 95.8%)","hsl(146, 30.0%, 7.4%)","hsl(155, 44.2%, 8.4%)","hsl(155, 46.7%, 10.9%)","hsl(154, 48.4%, 12.9%)","hsl(154, 49.7%, 14.9%)","hsl(154, 50.9%, 17.6%)","hsl(153, 51.8%, 21.8%)","hsl(151, 51.7%, 28.4%)","hsl(151, 49.3%, 46.5%)","hsl(151, 50.0%, 53.2%)","hsl(137, 72.0%, 94.0%)","hsl(353, 23.0%, 9.8%)","hsl(357, 34.4%, 12.0%)","hsl(356, 43.4%, 16.4%)","hsl(356, 47.6%, 19.2%)","hsl(356, 51.1%, 21.9%)","hsl(356, 55.2%, 25.9%)","hsl(357, 60.2%, 31.8%)","hsl(358, 65.0%, 40.4%)","hsl(358, 85.3%, 64.0%)","hsl(358, 100%, 69.5%)","hsl(351, 89.0%, 96.0%)","hsl(45, 100%, 5.5%)","hsl(46, 100%, 6.7%)","hsl(45, 100%, 8.7%)","hsl(45, 100%, 10.4%)","hsl(47, 100%, 12.1%)","hsl(49, 100%, 14.3%)","hsl(49, 90.3%, 18.4%)","hsl(50, 100%, 22.0%)","hsl(54, 100%, 68.0%)","hsl(48, 100%, 47.0%)","hsl(53, 100%, 91.0%)","rgba(0,0,0,0.2)","rgba(0,0,0,0.3)","rgba(0,0,0,0.5)","rgba(0,0,0,0.6)","rgba(0,0,0,0.7)","hsla(216, 100%, 99%, 0)","hsla(216, 100%, 99%, 0.2)","hsla(216, 100%, 99%, 0.4)","hsla(216, 100%, 99%, 0.6)","hsla(216, 100%, 99%, 0.8)","hsla(210, 100%, 99%, 1)","hsla(210, 100%, 98%, 1)","hsla(210, 100%, 96%, 1)","hsla(210, 100%, 94%, 1)","hsla(209, 96%, 90%, 1)","hsla(209, 82%, 85%, 1)","hsla(208, 78%, 77%, 1)","hsla(206, 82%, 65%, 1)","hsla(206, 100%, 50%, 1)","hsla(208, 100%, 47%, 1)","hsla(211, 100%, 43%, 1)","hsla(211, 100%, 15%, 1)","hsla(211, 100%, 15%, 0)","hsla(211, 100%, 15%, 0.2)","hsla(211, 100%, 15%, 0.4)","hsla(211, 100%, 15%, 0.6)","hsla(211, 100%, 15%, 0.8)","hsla(0, 100%, 99%, 0)","hsla(0, 100%, 99%, 0.2)","hsla(0, 100%, 99%, 0.4)","hsla(0, 100%, 99%, 0.6)","hsla(0, 100%, 99%, 0.8)","hsla(0, 100%, 99%, 1)","hsla(0, 100%, 97%, 1)","hsla(0, 100%, 95%, 1)","hsla(0, 90%, 92%, 1)","hsla(0, 81%, 88%, 1)","hsla(359, 74%, 82%, 1)","hsla(359, 69%, 74%, 1)","hsla(358, 75%, 59%, 1)","hsla(358, 69%, 55%, 1)","hsla(358, 65%, 49%, 1)","hsla(355, 49%, 15%, 1)","hsla(355, 48%, 15%, 0)","hsla(355, 48%, 15%, 0.2)","hsla(355, 48%, 15%, 0.4)","hsla(355, 48%, 15%, 0.6)","hsla(355, 48%, 15%, 0.8)","hsla(60, 45%, 98%, 0)","hsla(60, 45%, 98%, 0.2)","hsla(60, 45%, 98%, 0.4)","hsla(60, 45%, 98%, 0.6)","hsla(60, 45%, 98%, 0.8)","hsla(60, 50%, 98%, 1)","hsla(52, 100%, 95%, 1)","hsla(55, 100%, 91%, 1)","hsla(54, 100%, 87%, 1)","hsla(52, 98%, 82%, 1)","hsla(50, 90%, 76%, 1)","hsla(47, 80%, 68%, 1)","hsla(48, 100%, 46%, 1)","hsla(53, 92%, 50%, 1)","hsla(50, 100%, 48%, 1)","hsla(42, 100%, 29%, 1)","hsla(41, 56%, 13%, 1)","hsla(41, 55%, 13%, 0)","hsla(41, 55%, 13%, 0.2)","hsla(41, 55%, 13%, 0.4)","hsla(41, 55%, 13%, 0.6)","hsla(41, 55%, 13%, 0.8)","hsla(140, 60%, 99%, 0)","hsla(140, 60%, 99%, 0.2)","hsla(140, 60%, 99%, 0.4)","hsla(140, 60%, 99%, 0.6)","hsla(140, 60%, 99%, 0.8)","hsla(140, 60%, 99%, 1)","hsla(138, 63%, 97%, 1)","hsla(139, 57%, 95%, 1)","hsla(139, 48%, 91%, 1)","hsla(141, 44%, 86%, 1)","hsla(142, 40%, 79%, 1)","hsla(146, 38%, 69%, 1)","hsla(151, 40%, 54%, 1)","hsla(151, 55%, 42%, 1)","hsla(152, 57%, 38%, 1)","hsla(153, 67%, 28%, 1)","hsla(155, 41%, 14%, 1)","hsla(155, 41%, 14%, 0)","hsla(155, 41%, 14%, 0.2)","hsla(155, 41%, 14%, 0.4)","hsla(155, 41%, 14%, 0.6)","hsla(155, 41%, 14%, 0.8)","hsla(214, 35%, 9%, 0)","hsla(214, 35%, 9%, 0.2)","hsla(214, 35%, 9%, 0.4)","hsla(214, 35%, 9%, 0.6)","hsla(214, 35%, 9%, 0.8)","hsla(212, 36%, 9%, 1)","hsla(216, 50%, 12%, 1)","hsla(214, 59%, 15%, 1)","hsla(214, 65%, 18%, 1)","hsla(213, 71%, 20%, 1)","hsla(212, 78%, 23%, 1)","hsla(211, 86%, 27%, 1)","hsla(211, 90%, 34%, 1)","hsla(209, 100%, 61%, 1)","hsla(210, 100%, 66%, 1)","hsla(206, 100%, 96%, 1)","hsla(207, 100%, 96%, 0)","hsla(207, 100%, 96%, 0.2)","hsla(207, 100%, 96%, 0.4)","hsla(207, 100%, 96%, 0.6)","hsla(207, 100%, 96%, 0.8)","hsla(351, 25%, 10%, 0)","hsla(351, 25%, 10%, 0.2)","hsla(351, 25%, 10%, 0.4)","hsla(351, 25%, 10%, 0.6)","hsla(351, 25%, 10%, 0.8)","hsla(350, 24%, 10%, 1)","hsla(357, 34%, 12%, 1)","hsla(357, 43%, 16%, 1)","hsla(356, 47%, 19%, 1)","hsla(356, 51%, 22%, 1)","hsla(357, 55%, 26%, 1)","hsla(357, 60%, 32%, 1)","hsla(358, 65%, 40%, 1)","hsla(358, 86%, 64%, 1)","hsla(358, 100%, 69%, 1)","hsla(353, 90%, 96%, 1)","hsla(353, 90%, 96%, 0)","hsla(353, 90%, 96%, 0.2)","hsla(353, 90%, 96%, 0.4)","hsla(353, 90%, 96%, 0.6)","hsla(353, 90%, 96%, 0.8)","hsla(46, 100%, 5%, 0)","hsla(46, 100%, 5%, 0.2)","hsla(46, 100%, 5%, 0.4)","hsla(46, 100%, 5%, 0.6)","hsla(46, 100%, 5%, 0.8)","hsla(45, 100%, 5%, 1)","hsla(46, 100%, 7%, 1)","hsla(45, 100%, 9%, 1)","hsla(45, 100%, 10%, 1)","hsla(46, 100%, 12%, 1)","hsla(49, 100%, 14%, 1)","hsla(49, 89%, 18%, 1)","hsla(50, 100%, 22%, 1)","hsla(54, 100%, 68%, 1)","hsla(48, 100%, 47%, 1)","hsla(53, 100%, 91%, 1)","hsla(53, 100%, 91%, 0)","hsla(53, 100%, 91%, 0.2)","hsla(53, 100%, 91%, 0.4)","hsla(53, 100%, 91%, 0.6)","hsla(53, 100%, 91%, 0.8)","hsla(145, 33%, 7%, 0)","hsla(145, 33%, 7%, 0.2)","hsla(145, 33%, 7%, 0.4)","hsla(145, 33%, 7%, 0.6)","hsla(145, 33%, 7%, 0.8)","hsla(145, 32%, 7%, 1)","hsla(155, 44%, 8%, 1)","hsla(155, 46%, 11%, 1)","hsla(154, 48%, 13%, 1)","hsla(155, 50%, 15%, 1)","hsla(154, 51%, 18%, 1)","hsla(153, 51%, 22%, 1)","hsla(151, 52%, 28%, 1)","hsla(151, 49%, 46%, 1)","hsla(151, 50%, 53%, 1)","hsla(136, 73%, 94%, 1)","hsla(134, 73%, 94%, 0)","hsla(134, 73%, 94%, 0.2)","hsla(134, 73%, 94%, 0.4)","hsla(134, 73%, 94%, 0.6)","hsla(134, 73%, 94%, 0.8)"],b=["accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","borderColor","borderColorHover","borderColorPress","borderColorFocus","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","colorTransparent","blue1","blue2","blue3","blue4","blue5","blue6","blue7","blue8","blue9","blue10","blue11","blue12","green1","green2","green3","green4","green5","green6","green7","green8","green9","green10","green11","green12","red1","red2","red3","red4","red5","red6","red7","red8","red9","red10","red11","red12","yellow1","yellow2","yellow3","yellow4","yellow5","yellow6","yellow7","yellow8","yellow9","yellow10","yellow11","yellow12","shadow1","shadow2","shadow3","shadow4","shadow5","shadow6","black1","black2","black3","black4","black5","black6","black7","black8","black9","black10","black11","black12","white1","white2","white3","white4","white5","white6","white7","white8","white9","white10","white11","white12","shadowColor","accent1","accent2","accent3","accent4","accent5","accent6","accent7","accent8","accent9","accent10","accent11","accent12"],u=k([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,60],[76,61],[77,62],[78,63],[79,64],[80,65],[81,66],[82,67],[83,68],[84,69],[85,70],[86,71],[87,72],[88,73],[89,74],[90,75],[91,76],[92,77],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,89],[106,90],[107,91],[108,92],[109,93],[110,94],[111,95],[112,96],[113,97],[114,98],[115,99],[116,100],[117,72],[118,101],[119,102],[120,0],[121,103],[122,104],[123,105],[124,106],[125,107],[126,108],[127,1],[128,109],[129,7]]),w=k([[0,16],[1,9],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,102],[26,114],[27,114],[28,103],[29,104],[30,0],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2],[39,115],[40,116],[41,117],[42,118],[43,119],[44,120],[45,121],[46,122],[47,32],[48,123],[49,124],[50,125],[51,126],[52,127],[53,128],[54,129],[55,130],[56,131],[57,132],[58,133],[59,44],[60,134],[61,135],[62,136],[63,137],[64,138],[65,139],[66,140],[67,141],[68,142],[69,143],[70,144],[71,56],[72,145],[73,146],[74,147],[75,148],[76,149],[77,150],[78,151],[79,152],[80,153],[81,154],[82,155],[83,68],[84,156],[85,157],[86,158],[87,159],[88,160],[89,77],[90,161],[91,162],[92,163],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,89],[106,90],[107,91],[108,92],[109,93],[110,94],[111,95],[112,96],[113,97],[114,98],[115,99],[116,100],[117,159],[118,7],[119,8],[120,9],[121,10],[122,11],[123,12],[124,13],[125,14],[126,15],[127,16],[128,17],[129,18]]),T=k([[0,9],[1,16],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,114],[26,102],[27,102],[28,103],[29,0],[30,104],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),S=k([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),p=k([[0,0],[1,1],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,114],[26,102],[27,102],[28,103],[29,0],[30,104],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),I=k([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),y=k([[0,0],[1,1],[2,164],[3,165],[4,166],[5,167],[6,168],[7,169],[8,170],[9,171],[10,172],[11,173],[12,174],[13,175],[14,176],[15,177],[16,178],[17,179],[18,180],[19,181],[20,182],[21,183],[22,184],[23,185],[24,169],[25,168],[26,170],[27,170],[28,172],[29,171],[30,173],[31,172],[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[38,181]]),C=k([[0,0],[1,1],[2,186],[3,187],[4,188],[5,189],[6,190],[7,191],[8,191],[9,192],[10,193],[11,194],[12,195],[13,196],[14,197],[15,198],[16,199],[17,200],[18,201],[19,202],[20,203],[21,204],[22,205],[23,206],[24,191],[25,190],[26,191],[27,191],[28,193],[29,192],[30,194],[31,193],[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[38,202]]),A=k([[0,0],[1,1],[2,207],[3,208],[4,209],[5,210],[6,211],[7,212],[8,213],[9,214],[10,215],[11,216],[12,217],[13,218],[14,219],[15,220],[16,221],[17,222],[18,223],[19,224],[20,225],[21,226],[22,227],[23,228],[24,212],[25,211],[26,213],[27,213],[28,215],[29,214],[30,216],[31,215],[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[38,224]]),P=k([[0,0],[1,1],[2,229],[3,230],[4,231],[5,232],[6,233],[7,234],[8,235],[9,236],[10,237],[11,238],[12,239],[13,240],[14,241],[15,242],[16,243],[17,244],[18,245],[19,246],[20,247],[21,248],[22,249],[23,250],[24,234],[25,233],[26,235],[27,235],[28,237],[29,236],[30,238],[31,237],[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[38,246]]),x=k([[0,16],[1,9],[2,110],[3,111],[4,112],[5,113],[6,114],[7,101],[8,102],[9,0],[10,103],[11,104],[12,105],[13,106],[14,107],[15,108],[16,1],[17,109],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,101],[25,102],[26,114],[27,114],[28,103],[29,104],[30,0],[31,103],[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[38,2]]),v=k([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),f=k([[0,16],[1,9],[2,251],[3,252],[4,253],[5,254],[6,255],[7,256],[8,257],[9,258],[10,259],[11,260],[12,261],[13,262],[14,263],[15,177],[16,264],[17,265],[18,266],[19,267],[20,268],[21,269],[22,270],[23,271],[24,256],[25,257],[26,255],[27,255],[28,259],[29,260],[30,258],[31,259],[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[38,267]]),B=k([[0,16],[1,9],[2,272],[3,273],[4,274],[5,275],[6,276],[7,277],[8,278],[9,279],[10,280],[11,281],[12,282],[13,283],[14,284],[15,198],[16,285],[17,286],[18,287],[19,288],[20,289],[21,290],[22,291],[23,292],[24,277],[25,278],[26,276],[27,276],[28,280],[29,281],[30,279],[31,280],[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[38,288]]),G=k([[0,16],[1,9],[2,293],[3,294],[4,295],[5,296],[6,297],[7,298],[8,299],[9,300],[10,301],[11,302],[12,303],[13,304],[14,305],[15,220],[16,306],[17,307],[18,308],[19,309],[20,310],[21,311],[22,312],[23,313],[24,298],[25,299],[26,297],[27,297],[28,301],[29,302],[30,300],[31,301],[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[38,309]]),L=k([[0,16],[1,9],[2,314],[3,315],[4,316],[5,317],[6,318],[7,319],[8,320],[9,321],[10,322],[11,323],[12,324],[13,325],[14,326],[15,242],[16,327],[17,328],[18,329],[19,330],[20,331],[21,332],[22,333],[23,334],[24,319],[25,320],[26,318],[27,318],[28,322],[29,323],[30,321],[31,322],[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[38,330]]),R=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,7],[26,9],[27,9],[28,11],[29,10],[31,11],[30,12]]),O=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,9],[26,11],[27,11],[28,13],[29,12],[31,13],[30,14]]),j=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,12],[29,11],[31,12],[30,13]]),F=k([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,23],[26,17],[27,17],[28,15],[29,16],[30,14],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),H=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,102],[25,0],[26,101],[27,101],[28,104],[29,105],[31,104],[30,103]]),D=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,103],[25,104],[26,0],[27,0],[28,106],[29,107],[31,106],[30,105]]),M=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,0],[25,103],[26,102],[27,102],[28,105],[29,106],[31,105],[30,104]]),N=k([[0,9],[1,16],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,109],[26,6],[27,6],[28,108],[29,107],[30,1],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),q=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,102],[25,101],[26,0],[27,0],[28,104],[29,103],[31,104],[30,105]]),z=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,103],[25,0],[26,104],[27,104],[28,106],[29,105],[31,106],[30,107]]),E=k([[32,7],[33,109],[34,7],[35,109],[36,108],[37,3],[24,0],[25,102],[26,103],[27,103],[28,105],[29,104],[31,105],[30,106]]),J=k([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,6],[26,109],[27,109],[28,108],[29,1],[30,107],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),K=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,9],[26,7],[27,7],[28,11],[29,12],[31,11],[30,10]]),Q=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,11],[26,9],[27,9],[28,13],[29,14],[31,13],[30,12]]),U=k([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,10],[26,8],[27,8],[28,12],[29,13],[31,12],[30,11]]),V=k([[0,0],[1,1],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),W=k([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,109],[9,1],[10,108],[11,107],[12,106],[13,105],[14,104],[15,103],[16,0],[17,102],[18,101],[19,110],[20,111],[21,112],[22,113],[23,114],[24,7],[25,6],[26,109],[27,109],[28,108],[29,1],[30,107],[31,108],[32,101],[33,102],[34,101],[35,102],[36,103],[37,111],[38,110]]),X=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,170],[25,169],[26,171],[27,171],[28,173],[29,172],[31,173],[30,174]]),Y=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,172],[25,171],[26,173],[27,173],[28,175],[29,174],[31,175],[30,176]]),Z=k([[32,180],[33,179],[34,180],[35,179],[36,177],[37,182],[24,171],[25,170],[26,172],[27,172],[28,174],[29,173],[31,174],[30,175]]),$=k([[0,1],[1,0],[2,181],[3,182],[4,183],[5,184],[6,185],[7,180],[8,179],[9,178],[10,177],[11,176],[12,175],[13,174],[14,173],[15,172],[16,171],[17,170],[18,169],[19,164],[20,165],[21,166],[22,167],[23,168],[24,180],[25,185],[26,179],[27,179],[28,177],[29,178],[30,176],[31,177],[32,169],[33,170],[34,169],[35,170],[36,172],[37,165],[38,164]]),ll=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,191],[25,191],[26,192],[27,192],[28,194],[29,193],[31,194],[30,195]]),el=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,193],[25,192],[26,194],[27,194],[28,196],[29,195],[31,196],[30,197]]),rl=k([[32,201],[33,200],[34,201],[35,200],[36,198],[37,203],[24,192],[25,191],[26,193],[27,193],[28,195],[29,194],[31,195],[30,196]]),al=k([[0,1],[1,0],[2,202],[3,203],[4,204],[5,205],[6,206],[7,201],[8,200],[9,199],[10,198],[11,197],[12,196],[13,195],[14,194],[15,193],[16,192],[17,191],[18,191],[19,186],[20,187],[21,188],[22,189],[23,190],[24,201],[25,206],[26,200],[27,200],[28,198],[29,199],[30,197],[31,198],[32,191],[33,191],[34,191],[35,191],[36,193],[37,187],[38,186]]),hl=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,213],[25,212],[26,214],[27,214],[28,216],[29,215],[31,216],[30,217]]),tl=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,215],[25,214],[26,216],[27,216],[28,218],[29,217],[31,218],[30,219]]),_l=k([[32,223],[33,222],[34,223],[35,222],[36,220],[37,225],[24,214],[25,213],[26,215],[27,215],[28,217],[29,216],[31,217],[30,218]]),il=k([[0,1],[1,0],[2,224],[3,225],[4,226],[5,227],[6,228],[7,223],[8,222],[9,221],[10,220],[11,219],[12,218],[13,217],[14,216],[15,215],[16,214],[17,213],[18,212],[19,207],[20,208],[21,209],[22,210],[23,211],[24,223],[25,228],[26,222],[27,222],[28,220],[29,221],[30,219],[31,220],[32,212],[33,213],[34,212],[35,213],[36,215],[37,208],[38,207]]),sl=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,235],[25,234],[26,236],[27,236],[28,238],[29,237],[31,238],[30,239]]),ol=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,237],[25,236],[26,238],[27,238],[28,240],[29,239],[31,240],[30,241]]),cl=k([[32,245],[33,244],[34,245],[35,244],[36,242],[37,247],[24,236],[25,235],[26,237],[27,237],[28,239],[29,238],[31,239],[30,240]]),dl=k([[0,1],[1,0],[2,246],[3,247],[4,248],[5,249],[6,250],[7,245],[8,244],[9,243],[10,242],[11,241],[12,240],[13,239],[14,238],[15,237],[16,236],[17,235],[18,234],[19,229],[20,230],[21,231],[22,232],[23,233],[24,245],[25,250],[26,244],[27,244],[28,242],[29,243],[30,241],[31,242],[32,234],[33,235],[34,234],[35,235],[36,237],[37,230],[38,229]]),gl=k([[0,9],[1,16],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),kl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,257],[25,258],[26,256],[27,256],[28,260],[29,261],[31,260],[30,259]]),nl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,259],[25,260],[26,258],[27,258],[28,262],[29,263],[31,262],[30,261]]),bl=k([[32,266],[33,265],[34,266],[35,265],[36,177],[37,268],[24,258],[25,259],[26,257],[27,257],[28,261],[29,262],[31,261],[30,260]]),ul=k([[0,9],[1,16],[2,267],[3,268],[4,269],[5,270],[6,271],[7,266],[8,265],[9,264],[10,177],[11,263],[12,262],[13,261],[14,260],[15,259],[16,258],[17,257],[18,256],[19,251],[20,252],[21,253],[22,254],[23,255],[24,266],[25,265],[26,271],[27,271],[28,177],[29,263],[30,264],[31,177],[32,256],[33,257],[34,256],[35,257],[36,259],[37,252],[38,251]]),wl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,278],[25,279],[26,277],[27,277],[28,281],[29,282],[31,281],[30,280]]),Tl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,280],[25,281],[26,279],[27,279],[28,283],[29,284],[31,283],[30,282]]),Sl=k([[32,287],[33,286],[34,287],[35,286],[36,198],[37,289],[24,279],[25,280],[26,278],[27,278],[28,282],[29,283],[31,282],[30,281]]),pl=k([[0,9],[1,16],[2,288],[3,289],[4,290],[5,291],[6,292],[7,287],[8,286],[9,285],[10,198],[11,284],[12,283],[13,282],[14,281],[15,280],[16,279],[17,278],[18,277],[19,272],[20,273],[21,274],[22,275],[23,276],[24,287],[25,286],[26,292],[27,292],[28,198],[29,284],[30,285],[31,198],[32,277],[33,278],[34,277],[35,278],[36,280],[37,273],[38,272]]),ml=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,299],[25,300],[26,298],[27,298],[28,302],[29,303],[31,302],[30,301]]),Il=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,301],[25,302],[26,300],[27,300],[28,304],[29,305],[31,304],[30,303]]),yl=k([[32,308],[33,307],[34,308],[35,307],[36,220],[37,310],[24,300],[25,301],[26,299],[27,299],[28,303],[29,304],[31,303],[30,302]]),Cl=k([[0,9],[1,16],[2,309],[3,310],[4,311],[5,312],[6,313],[7,308],[8,307],[9,306],[10,220],[11,305],[12,304],[13,303],[14,302],[15,301],[16,300],[17,299],[18,298],[19,293],[20,294],[21,295],[22,296],[23,297],[24,308],[25,307],[26,313],[27,313],[28,220],[29,305],[30,306],[31,220],[32,298],[33,299],[34,298],[35,299],[36,301],[37,294],[38,293]]),Al=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,320],[25,321],[26,319],[27,319],[28,323],[29,324],[31,323],[30,322]]),Pl=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,322],[25,323],[26,321],[27,321],[28,325],[29,326],[31,325],[30,324]]),xl=k([[32,329],[33,328],[34,329],[35,328],[36,242],[37,331],[24,321],[25,322],[26,320],[27,320],[28,324],[29,325],[31,324],[30,323]]),vl=k([[0,9],[1,16],[2,330],[3,331],[4,332],[5,333],[6,334],[7,329],[8,328],[9,327],[10,242],[11,326],[12,325],[13,324],[14,323],[15,322],[16,321],[17,320],[18,319],[19,314],[20,315],[21,316],[22,317],[23,318],[24,329],[25,328],[26,334],[27,334],[28,242],[29,326],[30,327],[31,242],[32,319],[33,320],[34,319],[35,320],[36,322],[37,315],[38,314]]),fl={light:u,dark:w,light_accent:T,dark_accent:S,light_black:p,light_white:I,light_blue:y,light_red:C,light_yellow:A,light_green:P,dark_black:x,dark_white:v,dark_blue:f,dark_red:B,dark_yellow:G,dark_green:L,light_ListItem:R,light_SelectTrigger:R,light_Card:R,light_Progress:R,light_TooltipArrow:R,light_SliderTrack:R,light_Input:R,light_TextArea:R,light_white_ListItem:R,light_white_SelectTrigger:R,light_white_Card:R,light_white_Progress:R,light_white_TooltipArrow:R,light_white_SliderTrack:R,light_white_Input:R,light_white_TextArea:R,light_Button:O,light_SliderTrackActive:O,light_white_Button:O,light_white_SliderTrackActive:O,light_Checkbox:j,light_Switch:j,light_TooltipContent:j,light_RadioGroupItem:j,light_white_Checkbox:j,light_white_Switch:j,light_white_TooltipContent:j,light_white_RadioGroupItem:j,light_SwitchThumb:F,light_SliderThumb:F,light_Tooltip:F,light_ProgressIndicator:F,light_white_SwitchThumb:F,light_white_SliderThumb:F,light_white_Tooltip:F,light_white_ProgressIndicator:F,dark_ListItem:H,dark_SelectTrigger:H,dark_Card:H,dark_Progress:H,dark_TooltipArrow:H,dark_SliderTrack:H,dark_Input:H,dark_TextArea:H,dark_black_ListItem:H,dark_black_SelectTrigger:H,dark_black_Card:H,dark_black_Progress:H,dark_black_TooltipArrow:H,dark_black_SliderTrack:H,dark_black_Input:H,dark_black_TextArea:H,dark_Button:D,dark_SliderTrackActive:D,dark_black_Button:D,dark_black_SliderTrackActive:D,dark_Checkbox:M,dark_Switch:M,dark_TooltipContent:M,dark_RadioGroupItem:M,dark_black_Checkbox:M,dark_black_Switch:M,dark_black_TooltipContent:M,dark_black_RadioGroupItem:M,dark_SwitchThumb:N,dark_SliderThumb:N,dark_Tooltip:N,dark_ProgressIndicator:N,dark_black_SwitchThumb:N,dark_black_SliderThumb:N,dark_black_Tooltip:N,dark_black_ProgressIndicator:N,light_accent_ListItem:q,light_accent_SelectTrigger:q,light_accent_Card:q,light_accent_Progress:q,light_accent_TooltipArrow:q,light_accent_SliderTrack:q,light_accent_Input:q,light_accent_TextArea:q,light_black_ListItem:q,light_black_SelectTrigger:q,light_black_Card:q,light_black_Progress:q,light_black_TooltipArrow:q,light_black_SliderTrack:q,light_black_Input:q,light_black_TextArea:q,light_accent_Button:z,light_accent_SliderTrackActive:z,light_black_Button:z,light_black_SliderTrackActive:z,light_accent_Checkbox:E,light_accent_Switch:E,light_accent_TooltipContent:E,light_accent_RadioGroupItem:E,light_black_Checkbox:E,light_black_Switch:E,light_black_TooltipContent:E,light_black_RadioGroupItem:E,light_accent_SwitchThumb:J,light_accent_SliderThumb:J,light_accent_Tooltip:J,light_accent_ProgressIndicator:J,dark_accent_ListItem:K,dark_accent_SelectTrigger:K,dark_accent_Card:K,dark_accent_Progress:K,dark_accent_TooltipArrow:K,dark_accent_SliderTrack:K,dark_accent_Input:K,dark_accent_TextArea:K,dark_white_ListItem:K,dark_white_SelectTrigger:K,dark_white_Card:K,dark_white_Progress:K,dark_white_TooltipArrow:K,dark_white_SliderTrack:K,dark_white_Input:K,dark_white_TextArea:K,dark_accent_Button:Q,dark_accent_SliderTrackActive:Q,dark_white_Button:Q,dark_white_SliderTrackActive:Q,dark_accent_Checkbox:U,dark_accent_Switch:U,dark_accent_TooltipContent:U,dark_accent_RadioGroupItem:U,dark_white_Checkbox:U,dark_white_Switch:U,dark_white_TooltipContent:U,dark_white_RadioGroupItem:U,dark_accent_SwitchThumb:V,dark_accent_SliderThumb:V,dark_accent_Tooltip:V,dark_accent_ProgressIndicator:V,light_black_SwitchThumb:W,light_black_SliderThumb:W,light_black_Tooltip:W,light_black_ProgressIndicator:W,light_blue_ListItem:X,light_blue_SelectTrigger:X,light_blue_Card:X,light_blue_Progress:X,light_blue_TooltipArrow:X,light_blue_SliderTrack:X,light_blue_Input:X,light_blue_TextArea:X,light_blue_Button:Y,light_blue_SliderTrackActive:Y,light_blue_Checkbox:Z,light_blue_Switch:Z,light_blue_TooltipContent:Z,light_blue_RadioGroupItem:Z,light_blue_SwitchThumb:$,light_blue_SliderThumb:$,light_blue_Tooltip:$,light_blue_ProgressIndicator:$,light_red_ListItem:ll,light_red_SelectTrigger:ll,light_red_Card:ll,light_red_Progress:ll,light_red_TooltipArrow:ll,light_red_SliderTrack:ll,light_red_Input:ll,light_red_TextArea:ll,light_red_Button:el,light_red_SliderTrackActive:el,light_red_Checkbox:rl,light_red_Switch:rl,light_red_TooltipContent:rl,light_red_RadioGroupItem:rl,light_red_SwitchThumb:al,light_red_SliderThumb:al,light_red_Tooltip:al,light_red_ProgressIndicator:al,light_yellow_ListItem:hl,light_yellow_SelectTrigger:hl,light_yellow_Card:hl,light_yellow_Progress:hl,light_yellow_TooltipArrow:hl,light_yellow_SliderTrack:hl,light_yellow_Input:hl,light_yellow_TextArea:hl,light_yellow_Button:tl,light_yellow_SliderTrackActive:tl,light_yellow_Checkbox:_l,light_yellow_Switch:_l,light_yellow_TooltipContent:_l,light_yellow_RadioGroupItem:_l,light_yellow_SwitchThumb:il,light_yellow_SliderThumb:il,light_yellow_Tooltip:il,light_yellow_ProgressIndicator:il,light_green_ListItem:sl,light_green_SelectTrigger:sl,light_green_Card:sl,light_green_Progress:sl,light_green_TooltipArrow:sl,light_green_SliderTrack:sl,light_green_Input:sl,light_green_TextArea:sl,light_green_Button:ol,light_green_SliderTrackActive:ol,light_green_Checkbox:cl,light_green_Switch:cl,light_green_TooltipContent:cl,light_green_RadioGroupItem:cl,light_green_SwitchThumb:dl,light_green_SliderThumb:dl,light_green_Tooltip:dl,light_green_ProgressIndicator:dl,dark_white_SwitchThumb:gl,dark_white_SliderThumb:gl,dark_white_Tooltip:gl,dark_white_ProgressIndicator:gl,dark_blue_ListItem:kl,dark_blue_SelectTrigger:kl,dark_blue_Card:kl,dark_blue_Progress:kl,dark_blue_TooltipArrow:kl,dark_blue_SliderTrack:kl,dark_blue_Input:kl,dark_blue_TextArea:kl,dark_blue_Button:nl,dark_blue_SliderTrackActive:nl,dark_blue_Checkbox:bl,dark_blue_Switch:bl,dark_blue_TooltipContent:bl,dark_blue_RadioGroupItem:bl,dark_blue_SwitchThumb:ul,dark_blue_SliderThumb:ul,dark_blue_Tooltip:ul,dark_blue_ProgressIndicator:ul,dark_red_ListItem:wl,dark_red_SelectTrigger:wl,dark_red_Card:wl,dark_red_Progress:wl,dark_red_TooltipArrow:wl,dark_red_SliderTrack:wl,dark_red_Input:wl,dark_red_TextArea:wl,dark_red_Button:Tl,dark_red_SliderTrackActive:Tl,dark_red_Checkbox:Sl,dark_red_Switch:Sl,dark_red_TooltipContent:Sl,dark_red_RadioGroupItem:Sl,dark_red_SwitchThumb:pl,dark_red_SliderThumb:pl,dark_red_Tooltip:pl,dark_red_ProgressIndicator:pl,dark_yellow_ListItem:ml,dark_yellow_SelectTrigger:ml,dark_yellow_Card:ml,dark_yellow_Progress:ml,dark_yellow_TooltipArrow:ml,dark_yellow_SliderTrack:ml,dark_yellow_Input:ml,dark_yellow_TextArea:ml,dark_yellow_Button:Il,dark_yellow_SliderTrackActive:Il,dark_yellow_Checkbox:yl,dark_yellow_Switch:yl,dark_yellow_TooltipContent:yl,dark_yellow_RadioGroupItem:yl,dark_yellow_SwitchThumb:Cl,dark_yellow_SliderThumb:Cl,dark_yellow_Tooltip:Cl,dark_yellow_ProgressIndicator:Cl,dark_green_ListItem:Al,dark_green_SelectTrigger:Al,dark_green_Card:Al,dark_green_Progress:Al,dark_green_TooltipArrow:Al,dark_green_SliderTrack:Al,dark_green_Input:Al,dark_green_TextArea:Al,dark_green_Button:Pl,dark_green_SliderTrackActive:Pl,dark_green_Checkbox:xl,dark_green_Switch:xl,dark_green_TooltipContent:xl,dark_green_RadioGroupItem:xl,dark_green_SwitchThumb:vl,dark_green_SliderThumb:vl,dark_green_Tooltip:vl,dark_green_ProgressIndicator:vl}},1814,[19]); -__d(function(g,r,i,_a,m,e,d){"use strict";var l,a=r(d[0]),_=Object.defineProperty,h=Object.getOwnPropertyDescriptor,t=Object.getOwnPropertyNames,s=Object.prototype.hasOwnProperty,o=function(l,a,o,k){if(a&&"object"==typeof a||"function"==typeof a){var c=function(t){!s.call(l,t)&&t!==o&&_(l,t,{get:function(){return a[t]},enumerable:!(k=h(a,t))||k.enumerable})};for(var n of t(a))c(n)}return l},k={};function c(l){var _={},h=!0,t=!1,s=void 0;try{for(var o,k=l[Symbol.iterator]();!(h=(o=k.next()).done);h=!0){var c=a(o.value,2),p=c[0],b=c[1];_[u[p]]=n[b]}}catch(l){t=!0,s=l}finally{try{!h&&null!=k.return&&k.return()}finally{if(t)throw s}}return _}!(function(l,a){for(var h in a)_(l,h,{get:a[h],enumerable:!0})})(k,{colors:function(){return n},themes:function(){return kr}}),m.exports=(l=k,o(_({},"__esModule",{value:!0}),l));var n=["hsla(0, 0%, 7%, 1)","hsla(0, 0%, 38%, 1)","hsla(0, 0%, 100%, 0)","hsla(0, 0%, 100%, 0.2)","hsla(0, 0%, 100%, 0.4)","hsla(0, 0%, 100%, 0.6)","hsla(0, 0%, 100%, 0.8)","hsla(0, 0%, 100%, 1)","hsla(0, 0%, 95%, 1)","hsla(0, 0%, 93%, 1)","hsla(0, 0%, 91%, 1)","hsla(0, 0%, 88%, 1)","hsla(0, 0%, 85%, 1)","hsla(0, 0%, 82%, 1)","hsla(0, 0%, 76%, 1)","hsla(0, 0%, 56%, 1)","hsla(0, 0%, 50%, 1)","hsla(0, 0%, 42%, 1)","hsla(0, 0%, 9%, 1)","hsla(0, 0%, 9%, 0)","hsla(0, 0%, 9%, 0.2)","hsla(0, 0%, 9%, 0.4)","hsla(0, 0%, 9%, 0.6)","hsla(0, 0%, 9%, 0.8)","hsl(206, 100%, 99.2%)","hsl(210, 100%, 98.0%)","hsl(209, 100%, 96.5%)","hsl(210, 98.8%, 94.0%)","hsl(209, 95.0%, 90.1%)","hsl(209, 81.2%, 84.5%)","hsl(208, 77.5%, 76.9%)","hsl(206, 81.9%, 65.3%)","hsl(206, 100%, 50.0%)","hsl(208, 100%, 47.3%)","hsl(211, 100%, 43.2%)","hsl(211, 100%, 15.0%)","hsl(0, 0%, 99.0%)","hsl(0, 0%, 97.3%)","hsl(0, 0%, 95.1%)","hsl(0, 0%, 93.0%)","hsl(0, 0%, 90.9%)","hsl(0, 0%, 88.7%)","hsl(0, 0%, 85.8%)","hsl(0, 0%, 78.0%)","hsl(0, 0%, 56.1%)","hsl(0, 0%, 52.3%)","hsl(0, 0%, 43.5%)","hsl(0, 0%, 9.0%)","hsla(140, 40%, 99%, 1)","hsla(138, 43%, 97%, 1)","hsla(139, 37%, 95%, 1)","hsla(139, 28%, 91%, 1)","hsla(141, 24%, 86%, 1)","hsla(142, 20%, 79%, 1)","hsla(146, 18%, 69%, 1)","hsla(151, 20%, 54%, 1)","hsla(151, 35%, 42%, 1)","hsla(152, 37%, 38%, 1)","hsla(153, 47%, 28%, 1)","hsla(155, 21%, 14%, 1)","hsl(24, 70.0%, 99.0%)","hsl(24, 83.3%, 97.6%)","hsl(24, 100%, 95.3%)","hsl(25, 100%, 92.2%)","hsl(25, 100%, 88.2%)","hsl(25, 100%, 82.8%)","hsl(24, 100%, 75.3%)","hsl(24, 94.5%, 64.3%)","hsl(24, 94.0%, 50.0%)","hsl(24, 100%, 46.5%)","hsl(24, 100%, 37.0%)","hsl(15, 60.0%, 17.0%)","hsl(322, 100%, 99.4%)","hsl(323, 100%, 98.4%)","hsl(323, 86.3%, 96.5%)","hsl(323, 78.7%, 94.2%)","hsl(323, 72.2%, 91.1%)","hsl(323, 66.3%, 86.6%)","hsl(323, 62.0%, 80.1%)","hsl(323, 60.3%, 72.4%)","hsl(322, 65.0%, 54.5%)","hsl(322, 63.9%, 50.7%)","hsl(322, 75.0%, 46.0%)","hsl(320, 70.0%, 13.5%)","hsl(280, 65.0%, 99.4%)","hsl(276, 100%, 99.0%)","hsl(276, 83.1%, 97.0%)","hsl(275, 76.4%, 94.7%)","hsl(275, 70.8%, 91.8%)","hsl(274, 65.4%, 87.8%)","hsl(273, 61.0%, 81.7%)","hsl(272, 60.0%, 73.5%)","hsl(272, 51.0%, 54.0%)","hsl(272, 46.8%, 50.3%)","hsl(272, 50.0%, 45.8%)","hsl(272, 66.0%, 16.0%)","hsl(359, 100%, 99.4%)","hsl(359, 100%, 98.6%)","hsl(360, 100%, 96.8%)","hsl(360, 97.9%, 94.8%)","hsl(360, 90.2%, 91.9%)","hsl(360, 81.7%, 87.8%)","hsl(359, 74.2%, 81.7%)","hsl(359, 69.5%, 74.3%)","hsl(358, 75.0%, 59.0%)","hsl(358, 69.4%, 55.2%)","hsl(358, 65.0%, 48.7%)","hsl(354, 50.0%, 14.6%)","hsl(60, 54.0%, 98.5%)","hsl(52, 100%, 95.5%)","hsl(55, 100%, 90.9%)","hsl(54, 100%, 86.6%)","hsl(52, 97.9%, 82.0%)","hsl(50, 89.4%, 76.1%)","hsl(47, 80.4%, 68.0%)","hsl(48, 100%, 46.1%)","hsl(53, 92.0%, 50.0%)","hsl(50, 100%, 48.5%)","hsl(42, 100%, 29.0%)","hsl(40, 55.0%, 13.5%)","rgba(0,0,0,0.04)","rgba(0,0,0,0.08)","rgba(0,0,0,0.16)","rgba(0,0,0,0.24)","rgba(0,0,0,0.32)","rgba(0,0,0,0.4)","rgba(0,0,0,0.5)","rgba(0,0,0,0.6)","rgba(0,0,0,0.7)","rgba(0,0,0,0.8)","#040404","#090909","#111","#151515","#222","#282828","#343434","#424242","#515151","#626262","#a5a5a5","#fff","#f2f2f2","hsl(0, 0%, 93%)","hsl(0, 0%, 91%)","hsl(0, 0%, 88%)","hsl(0, 0%, 85%)","hsl(0, 0%, 82%)","hsl(0, 0%, 76%)","hsl(0, 0%, 56%)","hsl(0, 0%, 50%)","hsl(0, 0%, 42%)","hsl(0, 0%, 9%)","hsla(0, 0%, 2%, 1)","hsla(0, 0%, 4%, 1)","hsla(0, 0%, 8%, 1)","hsla(0, 0%, 13%, 1)","hsla(0, 0%, 16%, 1)","hsla(0, 0%, 20%, 1)","hsla(0, 0%, 26%, 1)","hsla(0, 0%, 32%, 1)","hsla(0, 0%, 65%, 1)","hsla(0, 0%, 2%, 0)","hsla(0, 0%, 2%, 0.2)","hsla(0, 0%, 2%, 0.4)","hsla(0, 0%, 2%, 0.6)","hsla(0, 0%, 2%, 0.8)","hsl(212, 35.0%, 9.2%)","hsl(216, 50.0%, 11.8%)","hsl(214, 59.4%, 15.3%)","hsl(214, 65.8%, 17.9%)","hsl(213, 71.2%, 20.2%)","hsl(212, 77.4%, 23.1%)","hsl(211, 85.1%, 27.4%)","hsl(211, 89.7%, 34.1%)","hsl(209, 100%, 60.6%)","hsl(210, 100%, 66.1%)","hsl(206, 98.0%, 95.8%)","hsl(0, 0%, 8.5%)","hsl(0, 0%, 11.0%)","hsl(0, 0%, 13.6%)","hsl(0, 0%, 15.8%)","hsl(0, 0%, 17.9%)","hsl(0, 0%, 20.5%)","hsl(0, 0%, 24.3%)","hsl(0, 0%, 31.2%)","hsl(0, 0%, 43.9%)","hsl(0, 0%, 49.4%)","hsl(0, 0%, 62.8%)","hsla(145, 12%, 7%, 1)","hsla(155, 24%, 8%, 1)","hsla(155, 26%, 11%, 1)","hsla(154, 28%, 13%, 1)","hsla(155, 30%, 15%, 1)","hsla(154, 31%, 18%, 1)","hsla(153, 31%, 22%, 1)","hsla(151, 32%, 28%, 1)","hsla(151, 29%, 46%, 1)","hsla(151, 30%, 53%, 1)","hsla(136, 53%, 94%, 1)","hsl(30, 70.0%, 7.2%)","hsl(28, 100%, 8.4%)","hsl(26, 91.1%, 11.6%)","hsl(25, 88.3%, 14.1%)","hsl(24, 87.6%, 16.6%)","hsl(24, 88.6%, 19.8%)","hsl(24, 92.4%, 24.0%)","hsl(25, 100%, 29.0%)","hsl(24, 100%, 58.5%)","hsl(24, 100%, 62.2%)","hsl(24, 97.0%, 93.2%)","hsl(318, 25.0%, 9.6%)","hsl(319, 32.2%, 11.6%)","hsl(319, 41.0%, 16.0%)","hsl(320, 45.4%, 18.7%)","hsl(320, 49.0%, 21.1%)","hsl(321, 53.6%, 24.4%)","hsl(321, 61.1%, 29.7%)","hsl(322, 74.9%, 37.5%)","hsl(323, 72.8%, 59.2%)","hsl(325, 90.0%, 66.4%)","hsl(322, 90.0%, 95.8%)","hsl(284, 20.0%, 9.6%)","hsl(283, 30.0%, 11.8%)","hsl(281, 37.5%, 16.5%)","hsl(280, 41.2%, 20.0%)","hsl(279, 43.8%, 23.3%)","hsl(277, 46.4%, 27.5%)","hsl(275, 49.3%, 34.6%)","hsl(272, 52.1%, 45.9%)","hsl(273, 57.3%, 59.1%)","hsl(275, 80.0%, 71.0%)","hsl(279, 75.0%, 95.7%)","hsl(353, 23.0%, 9.8%)","hsl(357, 34.4%, 12.0%)","hsl(356, 43.4%, 16.4%)","hsl(356, 47.6%, 19.2%)","hsl(356, 51.1%, 21.9%)","hsl(356, 55.2%, 25.9%)","hsl(357, 60.2%, 31.8%)","hsl(358, 65.0%, 40.4%)","hsl(358, 85.3%, 64.0%)","hsl(358, 100%, 69.5%)","hsl(351, 89.0%, 96.0%)","hsl(45, 100%, 5.5%)","hsl(46, 100%, 6.7%)","hsl(45, 100%, 8.7%)","hsl(45, 100%, 10.4%)","hsl(47, 100%, 12.1%)","hsl(49, 100%, 14.3%)","hsl(49, 90.3%, 18.4%)","hsl(50, 100%, 22.0%)","hsl(54, 100%, 68.0%)","hsl(48, 100%, 47.0%)","hsl(53, 100%, 91.0%)","rgba(0,0,0,0.2)","rgba(0,0,0,0.3)","rgba(0,0,0,0.65)","rgba(0,0,0,0.75)","rgba(0,0,0,0.85)","rgba(0,0,0,0.9)","#000","hsla(0, 0%, 99%, 0)","hsla(0, 0%, 99%, 0.2)","hsla(0, 0%, 99%, 0.4)","hsla(0, 0%, 99%, 0.6)","hsla(0, 0%, 99%, 0.8)","hsla(0, 0%, 99%, 1)","hsla(0, 0%, 97%, 1)","hsla(0, 0%, 89%, 1)","hsla(0, 0%, 86%, 1)","hsla(0, 0%, 78%, 1)","hsla(0, 0%, 52%, 1)","hsla(0, 0%, 44%, 1)","hsla(216, 100%, 99%, 0)","hsla(216, 100%, 99%, 0.2)","hsla(216, 100%, 99%, 0.4)","hsla(216, 100%, 99%, 0.6)","hsla(216, 100%, 99%, 0.8)","hsla(210, 100%, 99%, 1)","hsla(210, 100%, 98%, 1)","hsla(210, 100%, 96%, 1)","hsla(210, 100%, 94%, 1)","hsla(209, 96%, 90%, 1)","hsla(209, 82%, 85%, 1)","hsla(208, 78%, 77%, 1)","hsla(206, 82%, 65%, 1)","hsla(206, 100%, 50%, 1)","hsla(208, 100%, 47%, 1)","hsla(211, 100%, 43%, 1)","hsla(211, 100%, 15%, 1)","hsla(211, 100%, 15%, 0)","hsla(211, 100%, 15%, 0.2)","hsla(211, 100%, 15%, 0.4)","hsla(211, 100%, 15%, 0.6)","hsla(211, 100%, 15%, 0.8)","hsla(20, 60%, 99%, 0)","hsla(20, 60%, 99%, 0.2)","hsla(20, 60%, 99%, 0.4)","hsla(20, 60%, 99%, 0.6)","hsla(20, 60%, 99%, 0.8)","hsla(20, 60%, 99%, 1)","hsla(24, 83%, 98%, 1)","hsla(25, 100%, 95%, 1)","hsla(25, 100%, 92%, 1)","hsla(25, 100%, 88%, 1)","hsla(25, 100%, 83%, 1)","hsla(24, 100%, 75%, 1)","hsla(24, 95%, 64%, 1)","hsla(24, 94%, 50%, 1)","hsla(24, 100%, 46%, 1)","hsla(24, 100%, 37%, 1)","hsla(15, 60%, 17%, 1)","hsla(15, 60%, 17%, 0)","hsla(15, 60%, 17%, 0.2)","hsla(15, 60%, 17%, 0.4)","hsla(15, 60%, 17%, 0.6)","hsla(15, 60%, 17%, 0.8)","hsla(0, 100%, 99%, 0)","hsla(0, 100%, 99%, 0.2)","hsla(0, 100%, 99%, 0.4)","hsla(0, 100%, 99%, 0.6)","hsla(0, 100%, 99%, 0.8)","hsla(0, 100%, 99%, 1)","hsla(0, 100%, 97%, 1)","hsla(0, 100%, 95%, 1)","hsla(0, 90%, 92%, 1)","hsla(0, 81%, 88%, 1)","hsla(359, 74%, 82%, 1)","hsla(359, 69%, 74%, 1)","hsla(358, 75%, 59%, 1)","hsla(358, 69%, 55%, 1)","hsla(358, 65%, 49%, 1)","hsla(355, 49%, 15%, 1)","hsla(355, 48%, 15%, 0)","hsla(355, 48%, 15%, 0.2)","hsla(355, 48%, 15%, 0.4)","hsla(355, 48%, 15%, 0.6)","hsla(355, 48%, 15%, 0.8)","hsla(60, 45%, 98%, 0)","hsla(60, 45%, 98%, 0.2)","hsla(60, 45%, 98%, 0.4)","hsla(60, 45%, 98%, 0.6)","hsla(60, 45%, 98%, 0.8)","hsla(60, 50%, 98%, 1)","hsla(52, 100%, 95%, 1)","hsla(55, 100%, 91%, 1)","hsla(54, 100%, 87%, 1)","hsla(52, 98%, 82%, 1)","hsla(50, 90%, 76%, 1)","hsla(47, 80%, 68%, 1)","hsla(48, 100%, 46%, 1)","hsla(53, 92%, 50%, 1)","hsla(50, 100%, 48%, 1)","hsla(42, 100%, 29%, 1)","hsla(41, 56%, 13%, 1)","hsla(41, 55%, 13%, 0)","hsla(41, 55%, 13%, 0.2)","hsla(41, 55%, 13%, 0.4)","hsla(41, 55%, 13%, 0.6)","hsla(41, 55%, 13%, 0.8)","hsla(120, 20%, 99%, 0)","hsla(120, 20%, 99%, 0.2)","hsla(120, 20%, 99%, 0.4)","hsla(120, 20%, 99%, 0.6)","hsla(120, 20%, 99%, 0.8)","hsla(150, 33%, 99%, 1)","hsla(137, 47%, 97%, 1)","hsla(140, 36%, 95%, 1)","hsla(140, 26%, 91%, 1)","hsla(143, 20%, 79%, 1)","hsla(150, 35%, 42%, 1)","hsla(156, 21%, 14%, 1)","hsla(156, 21%, 14%, 0)","hsla(156, 21%, 14%, 0.2)","hsla(156, 21%, 14%, 0.4)","hsla(156, 21%, 14%, 0.6)","hsla(156, 21%, 14%, 0.8)","hsla(300, 60%, 99%, 0)","hsla(300, 60%, 99%, 0.2)","hsla(300, 60%, 99%, 0.4)","hsla(300, 60%, 99%, 0.6)","hsla(300, 60%, 99%, 0.8)","hsla(300, 50%, 99%, 1)","hsla(276, 100%, 99%, 1)","hsla(277, 87%, 97%, 1)","hsla(274, 78%, 95%, 1)","hsla(276, 71%, 92%, 1)","hsla(274, 65%, 88%, 1)","hsla(273, 61%, 82%, 1)","hsla(272, 60%, 74%, 1)","hsla(272, 51%, 54%, 1)","hsla(272, 47%, 50%, 1)","hsla(272, 50%, 46%, 1)","hsla(272, 66%, 16%, 1)","hsla(272, 66%, 16%, 0)","hsla(272, 66%, 16%, 0.2)","hsla(272, 66%, 16%, 0.4)","hsla(272, 66%, 16%, 0.6)","hsla(272, 66%, 16%, 0.8)","hsla(324, 100%, 99%, 0)","hsla(324, 100%, 99%, 0.2)","hsla(324, 100%, 99%, 0.4)","hsla(324, 100%, 99%, 0.6)","hsla(324, 100%, 99%, 0.8)","hsla(320, 100%, 99%, 1)","hsla(322, 100%, 98%, 1)","hsla(323, 89%, 96%, 1)","hsla(323, 79%, 94%, 1)","hsla(324, 73%, 91%, 1)","hsla(323, 65%, 86%, 1)","hsla(323, 62%, 80%, 1)","hsla(323, 60%, 72%, 1)","hsla(322, 65%, 55%, 1)","hsla(322, 64%, 51%, 1)","hsla(322, 75%, 46%, 1)","hsla(321, 71%, 14%, 1)","hsla(321, 72%, 14%, 0)","hsla(321, 72%, 14%, 0.2)","hsla(321, 72%, 14%, 0.4)","hsla(321, 72%, 14%, 0.6)","hsla(321, 72%, 14%, 0.8)","hsla(30, 20%, 98%, 0)","hsla(30, 20%, 98%, 0.2)","hsla(30, 20%, 98%, 0.4)","hsla(30, 20%, 98%, 0.6)","hsla(30, 20%, 98%, 0.8)","hsla(40, 27%, 98%, 1)","hsla(43, 23%, 94%, 1)","hsla(36, 22%, 91%, 1)","hsla(38, 22%, 90%, 1)","hsla(37, 21%, 88%, 1)","hsla(36, 19%, 85%, 1)","hsla(34, 21%, 74%, 1)","hsla(35, 20%, 70%, 1)","hsla(35, 20%, 67%, 1)","hsla(34, 19%, 47%, 1)","hsla(35, 18%, 37%, 1)","hsla(33, 18%, 20%, 1)","hsla(33, 18%, 20%, 0)","hsla(33, 18%, 20%, 0.2)","hsla(33, 18%, 20%, 0.4)","hsla(33, 18%, 20%, 0.6)","hsla(33, 18%, 20%, 0.8)","hsla(0, 0%, 11%, 1)","hsla(0, 0%, 14%, 1)","hsla(0, 0%, 18%, 1)","hsla(0, 0%, 24%, 1)","hsla(0, 0%, 31%, 1)","hsla(0, 0%, 49%, 1)","hsla(0, 0%, 63%, 1)","hsla(0, 0%, 93%, 0)","hsla(0, 0%, 93%, 0.2)","hsla(0, 0%, 93%, 0.4)","hsla(0, 0%, 93%, 0.6)","hsla(0, 0%, 93%, 0.8)","hsla(214, 35%, 9%, 0)","hsla(214, 35%, 9%, 0.2)","hsla(214, 35%, 9%, 0.4)","hsla(214, 35%, 9%, 0.6)","hsla(214, 35%, 9%, 0.8)","hsla(212, 36%, 9%, 1)","hsla(216, 50%, 12%, 1)","hsla(214, 59%, 15%, 1)","hsla(214, 65%, 18%, 1)","hsla(213, 71%, 20%, 1)","hsla(212, 78%, 23%, 1)","hsla(211, 86%, 27%, 1)","hsla(211, 90%, 34%, 1)","hsla(209, 100%, 61%, 1)","hsla(210, 100%, 66%, 1)","hsla(206, 100%, 96%, 1)","hsla(207, 100%, 96%, 0)","hsla(207, 100%, 96%, 0.2)","hsla(207, 100%, 96%, 0.4)","hsla(207, 100%, 96%, 0.6)","hsla(207, 100%, 96%, 0.8)","hsla(28, 67%, 7%, 0)","hsla(28, 67%, 7%, 0.2)","hsla(28, 67%, 7%, 0.4)","hsla(28, 67%, 7%, 0.6)","hsla(28, 67%, 7%, 0.8)","hsla(29, 68%, 7%, 1)","hsla(28, 100%, 8%, 1)","hsla(26, 90%, 12%, 1)","hsla(25, 89%, 14%, 1)","hsla(24, 88%, 16%, 1)","hsla(24, 88%, 20%, 1)","hsla(24, 92%, 24%, 1)","hsla(25, 100%, 29%, 1)","hsla(24, 100%, 58%, 1)","hsla(24, 100%, 62%, 1)","hsla(24, 94%, 93%, 1)","hsla(25, 94%, 93%, 0)","hsla(25, 94%, 93%, 0.2)","hsla(25, 94%, 93%, 0.4)","hsla(25, 94%, 93%, 0.6)","hsla(25, 94%, 93%, 0.8)","hsla(351, 25%, 10%, 0)","hsla(351, 25%, 10%, 0.2)","hsla(351, 25%, 10%, 0.4)","hsla(351, 25%, 10%, 0.6)","hsla(351, 25%, 10%, 0.8)","hsla(350, 24%, 10%, 1)","hsla(357, 34%, 12%, 1)","hsla(357, 43%, 16%, 1)","hsla(356, 47%, 19%, 1)","hsla(356, 51%, 22%, 1)","hsla(357, 55%, 26%, 1)","hsla(357, 60%, 32%, 1)","hsla(358, 65%, 40%, 1)","hsla(358, 86%, 64%, 1)","hsla(358, 100%, 69%, 1)","hsla(353, 90%, 96%, 1)","hsla(353, 90%, 96%, 0)","hsla(353, 90%, 96%, 0.2)","hsla(353, 90%, 96%, 0.4)","hsla(353, 90%, 96%, 0.6)","hsla(353, 90%, 96%, 0.8)","hsla(46, 100%, 5%, 0)","hsla(46, 100%, 5%, 0.2)","hsla(46, 100%, 5%, 0.4)","hsla(46, 100%, 5%, 0.6)","hsla(46, 100%, 5%, 0.8)","hsla(45, 100%, 5%, 1)","hsla(46, 100%, 7%, 1)","hsla(45, 100%, 9%, 1)","hsla(45, 100%, 10%, 1)","hsla(46, 100%, 12%, 1)","hsla(49, 100%, 14%, 1)","hsla(49, 89%, 18%, 1)","hsla(50, 100%, 22%, 1)","hsla(54, 100%, 68%, 1)","hsla(48, 100%, 47%, 1)","hsla(53, 100%, 91%, 1)","hsla(53, 100%, 91%, 0)","hsla(53, 100%, 91%, 0.2)","hsla(53, 100%, 91%, 0.4)","hsla(53, 100%, 91%, 0.6)","hsla(53, 100%, 91%, 0.8)","hsla(135, 11%, 7%, 0)","hsla(135, 11%, 7%, 0.2)","hsla(135, 11%, 7%, 0.4)","hsla(135, 11%, 7%, 0.6)","hsla(135, 11%, 7%, 0.8)","hsla(135, 11%, 7%, 1)","hsla(153, 22%, 8%, 1)","hsla(154, 25%, 11%, 1)","hsla(153, 27%, 13%, 1)","hsla(154, 30%, 15%, 1)","hsla(154, 30%, 18%, 1)","hsla(154, 30%, 22%, 1)","hsla(151, 31%, 28%, 1)","hsla(135, 53%, 94%, 1)","hsla(135, 53%, 94%, 0)","hsla(135, 53%, 94%, 0.2)","hsla(135, 53%, 94%, 0.4)","hsla(135, 53%, 94%, 0.6)","hsla(135, 53%, 94%, 0.8)","hsla(287, 18%, 10%, 0)","hsla(287, 18%, 10%, 0.2)","hsla(287, 18%, 10%, 0.4)","hsla(287, 18%, 10%, 0.6)","hsla(287, 18%, 10%, 0.8)","hsla(287, 18%, 10%, 1)","hsla(283, 30%, 12%, 1)","hsla(281, 38%, 16%, 1)","hsla(280, 41%, 20%, 1)","hsla(279, 44%, 23%, 1)","hsla(277, 46%, 28%, 1)","hsla(274, 49%, 35%, 1)","hsla(272, 52%, 46%, 1)","hsla(273, 57%, 59%, 1)","hsla(275, 80%, 71%, 1)","hsla(281, 73%, 96%, 1)","hsla(284, 71%, 96%, 0)","hsla(284, 71%, 96%, 0.2)","hsla(284, 71%, 96%, 0.4)","hsla(284, 71%, 96%, 0.6)","hsla(284, 71%, 96%, 0.8)","hsla(318, 25%, 10%, 0)","hsla(318, 25%, 10%, 0.2)","hsla(318, 25%, 10%, 0.4)","hsla(318, 25%, 10%, 0.6)","hsla(318, 25%, 10%, 0.8)","hsla(318, 27%, 10%, 1)","hsla(319, 32%, 12%, 1)","hsla(319, 41%, 16%, 1)","hsla(320, 45%, 19%, 1)","hsla(319, 50%, 21%, 1)","hsla(321, 54%, 25%, 1)","hsla(321, 62%, 30%, 1)","hsla(322, 75%, 37%, 1)","hsla(323, 73%, 59%, 1)","hsla(325, 90%, 66%, 1)","hsla(322, 90%, 96%, 1)","hsla(323, 90%, 96%, 0)","hsla(323, 90%, 96%, 0.2)","hsla(323, 90%, 96%, 0.4)","hsla(323, 90%, 96%, 0.6)","hsla(323, 90%, 96%, 0.8)","hsla(36, 10%, 10%, 0)","hsla(36, 10%, 10%, 0.2)","hsla(36, 10%, 10%, 0.4)","hsla(36, 10%, 10%, 0.6)","hsla(36, 10%, 10%, 0.8)","hsla(36, 10%, 10%, 1)","hsla(30, 10%, 12%, 1)","hsla(30, 11%, 18%, 1)","hsla(30, 12%, 23%, 1)","hsla(30, 14%, 28%, 1)","hsla(29, 16%, 33%, 1)","hsla(31, 18%, 38%, 1)","hsla(30, 20%, 45%, 1)","hsla(31, 21%, 50%, 1)","hsla(29, 22%, 58%, 1)","hsla(34, 24%, 70%, 1)","hsla(9, 12%, 79%, 1)","hsla(9, 12%, 79%, 0)","hsla(9, 12%, 79%, 0.2)","hsla(9, 12%, 79%, 0.4)","hsla(9, 12%, 79%, 0.6)","hsla(9, 12%, 79%, 0.8)"],u=["accentBackground","accentColor","background0","background02","background04","background06","background08","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","color0","color02","color04","color06","color08","background","backgroundHover","backgroundPress","backgroundFocus","borderColor","borderColorHover","borderColorPress","borderColorFocus","color","colorHover","colorPress","colorFocus","placeholderColor","outlineColor","colorTransparent","blue1","blue2","blue3","blue4","blue5","blue6","blue7","blue8","blue9","blue10","blue11","blue12","gray1","gray2","gray3","gray4","gray5","gray6","gray7","gray8","gray9","gray10","gray11","gray12","green1","green2","green3","green4","green5","green6","green7","green8","green9","green10","green11","green12","orange1","orange2","orange3","orange4","orange5","orange6","orange7","orange8","orange9","orange10","orange11","orange12","pink1","pink2","pink3","pink4","pink5","pink6","pink7","pink8","pink9","pink10","pink11","pink12","purple1","purple2","purple3","purple4","purple5","purple6","purple7","purple8","purple9","purple10","purple11","purple12","red1","red2","red3","red4","red5","red6","red7","red8","red9","red10","red11","red12","yellow1","yellow2","yellow3","yellow4","yellow5","yellow6","yellow7","yellow8","yellow9","yellow10","yellow11","yellow12","shadow1","shadow2","shadow3","shadow4","shadow5","shadow6","shadow7","shadow8","shadow9","shadow10","black1","black2","black3","black4","black5","black6","black7","black8","black9","black10","black11","black12","white1","white2","white3","white4","white5","white6","white7","white8","white9","white10","white11","white12","shadowColor","colorBg","accent1","accent2","accent3","accent4","accent5","accent6","accent7","accent8","accent9","accent10","accent11","accent12"],p=c([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19],[39,24],[40,25],[41,26],[42,27],[43,28],[44,29],[45,30],[46,31],[47,32],[48,33],[49,34],[50,35],[51,36],[52,37],[53,38],[54,39],[55,40],[56,41],[57,42],[58,43],[59,44],[60,45],[61,46],[62,47],[63,48],[64,49],[65,50],[66,51],[67,52],[68,53],[69,54],[70,55],[71,56],[72,57],[73,58],[74,59],[75,60],[76,61],[77,62],[78,63],[79,64],[80,65],[81,66],[82,67],[83,68],[84,69],[85,70],[86,71],[87,72],[88,73],[89,74],[90,75],[91,76],[92,77],[93,78],[94,79],[95,80],[96,81],[97,82],[98,83],[99,84],[100,85],[101,86],[102,87],[103,88],[104,89],[105,90],[106,91],[107,92],[108,93],[109,94],[110,95],[111,96],[112,97],[113,98],[114,99],[115,100],[116,101],[117,102],[118,103],[119,104],[120,105],[121,106],[122,107],[123,108],[124,109],[125,110],[126,111],[127,112],[128,113],[129,114],[130,115],[131,116],[132,117],[133,118],[134,119],[135,120],[136,121],[137,122],[138,123],[139,124],[140,125],[141,126],[142,127],[143,128],[144,129],[145,130],[146,131],[147,132],[148,133],[149,134],[150,135],[151,136],[152,137],[153,138],[154,139],[155,140],[156,141],[157,141],[158,142],[159,143],[160,144],[161,145],[162,146],[163,147],[164,148],[165,149],[166,150],[167,151],[168,152],[169,120],[170,141],[171,153],[172,154],[173,0],[174,155],[175,156],[176,157],[177,158],[178,159],[179,160],[180,1],[181,161],[182,7]]),b=c([[0,16],[1,9],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,154],[26,166],[27,166],[28,155],[29,156],[30,0],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2],[39,167],[40,168],[41,169],[42,170],[43,171],[44,172],[45,173],[46,174],[47,32],[48,175],[49,176],[50,177],[51,178],[52,179],[53,180],[54,181],[55,182],[56,183],[57,184],[58,185],[59,186],[60,187],[61,188],[62,39],[63,189],[64,190],[65,191],[66,192],[67,193],[68,194],[69,195],[70,196],[71,56],[72,197],[73,198],[74,199],[75,200],[76,201],[77,202],[78,203],[79,204],[80,205],[81,206],[82,207],[83,68],[84,208],[85,209],[86,210],[87,211],[88,212],[89,213],[90,214],[91,215],[92,216],[93,217],[94,218],[95,80],[96,219],[97,220],[98,221],[99,222],[100,223],[101,224],[102,225],[103,226],[104,227],[105,228],[106,229],[107,92],[108,230],[109,231],[110,232],[111,233],[112,234],[113,235],[114,236],[115,237],[116,238],[117,239],[118,240],[119,104],[120,241],[121,242],[122,243],[123,244],[124,245],[125,246],[126,247],[127,248],[128,249],[129,250],[130,251],[131,116],[132,252],[133,253],[134,254],[135,255],[136,256],[137,125],[138,126],[139,127],[140,257],[141,258],[142,129],[143,259],[144,260],[145,130],[146,131],[147,132],[148,133],[149,134],[150,135],[151,136],[152,137],[153,138],[154,139],[155,140],[156,141],[157,141],[158,142],[159,143],[160,144],[161,145],[162,146],[163,147],[164,148],[165,149],[166,150],[167,151],[168,152],[169,255],[170,261],[171,7],[172,8],[173,9],[174,10],[175,11],[176,12],[177,13],[178,14],[179,15],[180,16],[181,17],[182,18]]),T=c([[0,9],[1,16],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,166],[26,154],[27,154],[28,155],[29,0],[30,156],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),w=c([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),S=c([[0,0],[1,1],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,166],[26,154],[27,154],[28,155],[29,0],[30,156],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),y=c([[0,0],[1,1],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,6],[26,8],[27,8],[28,10],[29,9],[30,11],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),I=c([[0,0],[1,1],[2,262],[3,263],[4,264],[5,265],[6,266],[7,267],[8,268],[9,8],[10,9],[11,10],[12,269],[13,270],[14,271],[15,15],[16,272],[17,273],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,267],[25,266],[26,268],[27,268],[28,9],[29,8],[30,10],[31,9],[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[38,19]]),f=c([[0,0],[1,1],[2,274],[3,275],[4,276],[5,277],[6,278],[7,279],[8,280],[9,281],[10,282],[11,283],[12,284],[13,285],[14,286],[15,287],[16,288],[17,289],[18,290],[19,291],[20,292],[21,293],[22,294],[23,295],[24,279],[25,278],[26,280],[27,280],[28,282],[29,281],[30,283],[31,282],[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[38,291]]),C=c([[0,0],[1,1],[2,296],[3,297],[4,298],[5,299],[6,300],[7,301],[8,302],[9,303],[10,304],[11,305],[12,306],[13,307],[14,308],[15,309],[16,310],[17,311],[18,312],[19,313],[20,314],[21,315],[22,316],[23,317],[24,301],[25,300],[26,302],[27,302],[28,304],[29,303],[30,305],[31,304],[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[38,313]]),A=c([[0,0],[1,1],[2,318],[3,319],[4,320],[5,321],[6,322],[7,323],[8,323],[9,324],[10,325],[11,326],[12,327],[13,328],[14,329],[15,330],[16,331],[17,332],[18,333],[19,334],[20,335],[21,336],[22,337],[23,338],[24,323],[25,322],[26,323],[27,323],[28,325],[29,324],[30,326],[31,325],[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[38,334]]),P=c([[0,0],[1,1],[2,339],[3,340],[4,341],[5,342],[6,343],[7,344],[8,345],[9,346],[10,347],[11,348],[12,349],[13,350],[14,351],[15,352],[16,353],[17,354],[18,355],[19,356],[20,357],[21,358],[22,359],[23,360],[24,344],[25,343],[26,345],[27,345],[28,347],[29,346],[30,348],[31,347],[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[38,356]]),x=c([[0,0],[1,1],[2,361],[3,362],[4,363],[5,364],[6,365],[7,366],[8,367],[9,368],[10,369],[11,52],[12,370],[13,54],[14,55],[15,371],[16,57],[17,58],[18,372],[19,373],[20,374],[21,375],[22,376],[23,377],[24,366],[25,365],[26,367],[27,367],[28,369],[29,368],[30,52],[31,369],[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[38,373]]),v=c([[0,0],[1,1],[2,378],[3,379],[4,380],[5,381],[6,382],[7,383],[8,384],[9,385],[10,386],[11,387],[12,388],[13,389],[14,390],[15,391],[16,392],[17,393],[18,394],[19,395],[20,396],[21,397],[22,398],[23,399],[24,383],[25,382],[26,384],[27,384],[28,386],[29,385],[30,387],[31,386],[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[38,395]]),B=c([[0,0],[1,1],[2,400],[3,401],[4,402],[5,403],[6,404],[7,405],[8,406],[9,407],[10,408],[11,409],[12,410],[13,411],[14,412],[15,413],[16,414],[17,415],[18,416],[19,417],[20,418],[21,419],[22,420],[23,421],[24,405],[25,404],[26,406],[27,406],[28,408],[29,407],[30,409],[31,408],[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[38,417]]),G=c([[0,0],[1,1],[2,422],[3,423],[4,424],[5,425],[6,426],[7,427],[8,428],[9,429],[10,430],[11,431],[12,432],[13,433],[14,434],[15,435],[16,436],[17,437],[18,438],[19,439],[20,440],[21,441],[22,442],[23,443],[24,427],[25,426],[26,428],[27,428],[28,430],[29,429],[30,431],[31,430],[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[38,439]]),L=c([[0,16],[1,9],[2,162],[3,163],[4,164],[5,165],[6,166],[7,153],[8,154],[9,0],[10,155],[11,156],[12,157],[13,158],[14,159],[15,160],[16,1],[17,161],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,153],[25,154],[26,166],[27,166],[28,155],[29,156],[30,0],[31,155],[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[38,2]]),R=c([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,8],[9,9],[10,10],[11,11],[12,12],[13,13],[14,14],[15,15],[16,16],[17,17],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,7],[25,8],[26,6],[27,6],[28,10],[29,11],[30,9],[31,10],[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[38,19]]),O=c([[0,16],[1,9],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,444],[9,445],[10,157],[11,446],[12,158],[13,447],[14,448],[15,273],[16,449],[17,450],[18,9],[19,451],[20,452],[21,453],[22,454],[23,455],[24,18],[25,444],[26,23],[27,23],[28,157],[29,446],[30,445],[31,157],[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[38,451]]),j=c([[0,16],[1,9],[2,456],[3,457],[4,458],[5,459],[6,460],[7,461],[8,462],[9,463],[10,464],[11,465],[12,466],[13,467],[14,468],[15,287],[16,469],[17,470],[18,471],[19,472],[20,473],[21,474],[22,475],[23,476],[24,461],[25,462],[26,460],[27,460],[28,464],[29,465],[30,463],[31,464],[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[38,472]]),F=c([[0,16],[1,9],[2,477],[3,478],[4,479],[5,480],[6,481],[7,482],[8,483],[9,484],[10,485],[11,486],[12,487],[13,488],[14,489],[15,309],[16,490],[17,491],[18,492],[19,493],[20,494],[21,495],[22,496],[23,497],[24,482],[25,483],[26,481],[27,481],[28,485],[29,486],[30,484],[31,485],[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[38,493]]),H=c([[0,16],[1,9],[2,498],[3,499],[4,500],[5,501],[6,502],[7,503],[8,504],[9,505],[10,506],[11,507],[12,508],[13,509],[14,510],[15,330],[16,511],[17,512],[18,513],[19,514],[20,515],[21,516],[22,517],[23,518],[24,503],[25,504],[26,502],[27,502],[28,506],[29,507],[30,505],[31,506],[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[38,514]]),D=c([[0,16],[1,9],[2,519],[3,520],[4,521],[5,522],[6,523],[7,524],[8,525],[9,526],[10,527],[11,528],[12,529],[13,530],[14,531],[15,352],[16,532],[17,533],[18,534],[19,535],[20,536],[21,537],[22,538],[23,539],[24,524],[25,525],[26,523],[27,523],[28,527],[29,528],[30,526],[31,527],[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[38,535]]),M=c([[0,16],[1,9],[2,540],[3,541],[4,542],[5,543],[6,544],[7,545],[8,546],[9,547],[10,548],[11,549],[12,550],[13,551],[14,552],[15,371],[16,197],[17,198],[18,553],[19,554],[20,555],[21,556],[22,557],[23,558],[24,545],[25,546],[26,544],[27,544],[28,548],[29,549],[30,547],[31,548],[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[38,554]]),N=c([[0,16],[1,9],[2,559],[3,560],[4,561],[5,562],[6,563],[7,564],[8,565],[9,566],[10,567],[11,568],[12,569],[13,570],[14,571],[15,391],[16,572],[17,573],[18,574],[19,575],[20,576],[21,577],[22,578],[23,579],[24,564],[25,565],[26,563],[27,563],[28,567],[29,568],[30,566],[31,567],[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[38,575]]),q=c([[0,16],[1,9],[2,580],[3,581],[4,582],[5,583],[6,584],[7,585],[8,586],[9,587],[10,588],[11,589],[12,590],[13,591],[14,592],[15,413],[16,593],[17,594],[18,595],[19,596],[20,597],[21,598],[22,599],[23,600],[24,585],[25,586],[26,584],[27,584],[28,588],[29,589],[30,587],[31,588],[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[38,596]]),z=c([[0,16],[1,9],[2,601],[3,602],[4,603],[5,604],[6,605],[7,606],[8,607],[9,608],[10,609],[11,610],[12,611],[13,612],[14,613],[15,614],[16,615],[17,616],[18,617],[19,618],[20,619],[21,620],[22,621],[23,622],[24,606],[25,607],[26,605],[27,605],[28,609],[29,610],[30,608],[31,609],[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[38,618]]),E=c([[32,17],[33,16],[34,17],[35,16]]),J=c([[32,16],[33,15],[34,16],[35,15]]),K=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,7],[26,9],[27,9],[28,11],[29,10],[31,11],[30,12]]),Q=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,12],[29,11],[31,12],[30,13]]),U=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,9],[26,11],[27,11],[28,13],[29,12],[31,13],[30,14]]),V=c([[32,161],[33,1],[34,161],[35,1]]),W=c([[32,1],[33,160],[34,1],[35,160]]),X=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,154],[25,0],[26,153],[27,153],[28,156],[29,157],[31,156],[30,155]]),Y=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,0],[25,155],[26,154],[27,154],[28,157],[29,158],[31,157],[30,156]]),Z=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,155],[25,156],[26,0],[27,0],[28,158],[29,159],[31,158],[30,157]]),$=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,154],[25,153],[26,0],[27,0],[28,156],[29,155],[31,156],[30,157]]),ll=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,0],[25,154],[26,155],[27,155],[28,157],[29,156],[31,157],[30,158]]),al=c([[32,7],[33,161],[34,7],[35,161],[36,160],[37,3],[24,155],[25,0],[26,156],[27,156],[28,158],[29,157],[31,158],[30,159]]),rl=c([[32,273],[33,272],[34,273],[35,272]]),_l=c([[32,272],[33,15],[34,272],[35,15]]),hl=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,268],[25,267],[26,8],[27,8],[28,10],[29,9],[31,10],[30,269]]),el=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,8],[25,268],[26,9],[27,9],[28,269],[29,10],[31,269],[30,270]]),tl=c([[32,18],[33,273],[34,18],[35,273],[36,15],[37,20],[24,9],[25,8],[26,10],[27,10],[28,270],[29,269],[31,270],[30,271]]),sl=c([[32,289],[33,288],[34,289],[35,288]]),il=c([[32,288],[33,287],[34,288],[35,287]]),ol=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,280],[25,279],[26,281],[27,281],[28,283],[29,282],[31,283],[30,284]]),gl=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,281],[25,280],[26,282],[27,282],[28,284],[29,283],[31,284],[30,285]]),dl=c([[32,290],[33,289],[34,290],[35,289],[36,287],[37,292],[24,282],[25,281],[26,283],[27,283],[28,285],[29,284],[31,285],[30,286]]),kl=c([[32,311],[33,310],[34,311],[35,310]]),cl=c([[32,310],[33,309],[34,310],[35,309]]),nl=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,302],[25,301],[26,303],[27,303],[28,305],[29,304],[31,305],[30,306]]),ul=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,303],[25,302],[26,304],[27,304],[28,306],[29,305],[31,306],[30,307]]),pl=c([[32,312],[33,311],[34,312],[35,311],[36,309],[37,314],[24,304],[25,303],[26,305],[27,305],[28,307],[29,306],[31,307],[30,308]]),bl=c([[32,332],[33,331],[34,332],[35,331]]),Tl=c([[32,331],[33,330],[34,331],[35,330]]),wl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,323],[25,323],[26,324],[27,324],[28,326],[29,325],[31,326],[30,327]]),Sl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,324],[25,323],[26,325],[27,325],[28,327],[29,326],[31,327],[30,328]]),yl=c([[32,333],[33,332],[34,333],[35,332],[36,330],[37,335],[24,325],[25,324],[26,326],[27,326],[28,328],[29,327],[31,328],[30,329]]),ml=c([[32,354],[33,353],[34,354],[35,353]]),Il=c([[32,353],[33,352],[34,353],[35,352]]),fl=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,345],[25,344],[26,346],[27,346],[28,348],[29,347],[31,348],[30,349]]),Cl=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,346],[25,345],[26,347],[27,347],[28,349],[29,348],[31,349],[30,350]]),Al=c([[32,355],[33,354],[34,355],[35,354],[36,352],[37,357],[24,347],[25,346],[26,348],[27,348],[28,350],[29,349],[31,350],[30,351]]),Pl=c([[32,58],[33,57],[34,58],[35,57]]),xl=c([[32,57],[33,371],[34,57],[35,371]]),vl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,367],[25,366],[26,368],[27,368],[28,52],[29,369],[31,52],[30,370]]),Bl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,368],[25,367],[26,369],[27,369],[28,370],[29,52],[31,370],[30,54]]),Gl=c([[32,372],[33,58],[34,372],[35,58],[36,371],[37,374],[24,369],[25,368],[26,52],[27,52],[28,54],[29,370],[31,54],[30,55]]),Ll=c([[32,393],[33,392],[34,393],[35,392]]),Rl=c([[32,392],[33,391],[34,392],[35,391]]),Ol=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,384],[25,383],[26,385],[27,385],[28,387],[29,386],[31,387],[30,388]]),jl=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,385],[25,384],[26,386],[27,386],[28,388],[29,387],[31,388],[30,389]]),Fl=c([[32,394],[33,393],[34,394],[35,393],[36,391],[37,396],[24,386],[25,385],[26,387],[27,387],[28,389],[29,388],[31,389],[30,390]]),Hl=c([[32,415],[33,414],[34,415],[35,414]]),Dl=c([[32,414],[33,413],[34,414],[35,413]]),Ml=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,406],[25,405],[26,407],[27,407],[28,409],[29,408],[31,409],[30,410]]),Nl=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,407],[25,406],[26,408],[27,408],[28,410],[29,409],[31,410],[30,411]]),ql=c([[32,416],[33,415],[34,416],[35,415],[36,413],[37,418],[24,408],[25,407],[26,409],[27,409],[28,411],[29,410],[31,411],[30,412]]),zl=c([[32,437],[33,436],[34,437],[35,436]]),El=c([[32,436],[33,435],[34,436],[35,435]]),Jl=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,428],[25,427],[26,429],[27,429],[28,431],[29,430],[31,431],[30,432]]),Kl=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,429],[25,428],[26,430],[27,430],[28,432],[29,431],[31,432],[30,433]]),Ql=c([[32,438],[33,437],[34,438],[35,437],[36,435],[37,440],[24,430],[25,429],[26,431],[27,431],[28,433],[29,432],[31,433],[30,434]]),Ul=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,8],[25,9],[26,7],[27,7],[28,11],[29,12],[31,11],[30,10]]),Vl=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,9],[25,10],[26,8],[27,8],[28,12],[29,13],[31,12],[30,11]]),Wl=c([[32,18],[33,17],[34,18],[35,17],[36,15],[37,20],[24,10],[25,11],[26,9],[27,9],[28,13],[29,14],[31,13],[30,12]]),Xl=c([[32,450],[33,449],[34,450],[35,449]]),Yl=c([[32,449],[33,273],[34,449],[35,273]]),Zl=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,444],[25,445],[26,18],[27,18],[28,446],[29,158],[31,446],[30,157]]),$l=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,445],[25,157],[26,444],[27,444],[28,158],[29,447],[31,158],[30,446]]),la=c([[32,9],[33,450],[34,9],[35,450],[36,273],[37,452],[24,157],[25,446],[26,445],[27,445],[28,447],[29,448],[31,447],[30,158]]),aa=c([[32,470],[33,469],[34,470],[35,469]]),ra=c([[32,469],[33,287],[34,469],[35,287]]),ha=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,462],[25,463],[26,461],[27,461],[28,465],[29,466],[31,465],[30,464]]),ea=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,463],[25,464],[26,462],[27,462],[28,466],[29,467],[31,466],[30,465]]),ta=c([[32,471],[33,470],[34,471],[35,470],[36,287],[37,473],[24,464],[25,465],[26,463],[27,463],[28,467],[29,468],[31,467],[30,466]]),sa=c([[32,491],[33,490],[34,491],[35,490]]),ia=c([[32,490],[33,309],[34,490],[35,309]]),oa=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,483],[25,484],[26,482],[27,482],[28,486],[29,487],[31,486],[30,485]]),ga=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,484],[25,485],[26,483],[27,483],[28,487],[29,488],[31,487],[30,486]]),da=c([[32,492],[33,491],[34,492],[35,491],[36,309],[37,494],[24,485],[25,486],[26,484],[27,484],[28,488],[29,489],[31,488],[30,487]]),ka=c([[32,512],[33,511],[34,512],[35,511]]),ca=c([[32,511],[33,330],[34,511],[35,330]]),na=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,504],[25,505],[26,503],[27,503],[28,507],[29,508],[31,507],[30,506]]),ua=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,505],[25,506],[26,504],[27,504],[28,508],[29,509],[31,508],[30,507]]),pa=c([[32,513],[33,512],[34,513],[35,512],[36,330],[37,515],[24,506],[25,507],[26,505],[27,505],[28,509],[29,510],[31,509],[30,508]]),ba=c([[32,533],[33,532],[34,533],[35,532]]),Ta=c([[32,532],[33,352],[34,532],[35,352]]),wa=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,525],[25,526],[26,524],[27,524],[28,528],[29,529],[31,528],[30,527]]),Sa=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,526],[25,527],[26,525],[27,525],[28,529],[29,530],[31,529],[30,528]]),ya=c([[32,534],[33,533],[34,534],[35,533],[36,352],[37,536],[24,527],[25,528],[26,526],[27,526],[28,530],[29,531],[31,530],[30,529]]),ma=c([[32,198],[33,197],[34,198],[35,197]]),Ia=c([[32,197],[33,371],[34,197],[35,371]]),fa=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,546],[25,547],[26,545],[27,545],[28,549],[29,550],[31,549],[30,548]]),Ca=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,547],[25,548],[26,546],[27,546],[28,550],[29,551],[31,550],[30,549]]),Aa=c([[32,553],[33,198],[34,553],[35,198],[36,371],[37,555],[24,548],[25,549],[26,547],[27,547],[28,551],[29,552],[31,551],[30,550]]),Pa=c([[32,573],[33,572],[34,573],[35,572]]),xa=c([[32,572],[33,391],[34,572],[35,391]]),va=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,565],[25,566],[26,564],[27,564],[28,568],[29,569],[31,568],[30,567]]),Ba=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,566],[25,567],[26,565],[27,565],[28,569],[29,570],[31,569],[30,568]]),Ga=c([[32,574],[33,573],[34,574],[35,573],[36,391],[37,576],[24,567],[25,568],[26,566],[27,566],[28,570],[29,571],[31,570],[30,569]]),La=c([[32,594],[33,593],[34,594],[35,593]]),Ra=c([[32,593],[33,413],[34,593],[35,413]]),Oa=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,586],[25,587],[26,585],[27,585],[28,589],[29,590],[31,589],[30,588]]),ja=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,587],[25,588],[26,586],[27,586],[28,590],[29,591],[31,590],[30,589]]),Fa=c([[32,595],[33,594],[34,595],[35,594],[36,413],[37,597],[24,588],[25,589],[26,587],[27,587],[28,591],[29,592],[31,591],[30,590]]),Ha=c([[32,616],[33,615],[34,616],[35,615]]),Da=c([[32,615],[33,614],[34,615],[35,614]]),Ma=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,607],[25,608],[26,606],[27,606],[28,610],[29,611],[31,610],[30,609]]),Na=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,608],[25,609],[26,607],[27,607],[28,611],[29,612],[31,611],[30,610]]),qa=c([[32,617],[33,616],[34,617],[35,616],[36,614],[37,619],[24,609],[25,610],[26,608],[27,608],[28,612],[29,613],[31,612],[30,611]]),za=c([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,23],[26,17],[27,17],[28,15],[29,16],[30,14],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),Ea=c([[0,9],[1,16],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,161],[26,6],[27,6],[28,160],[29,159],[30,1],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ja=c([[0,16],[1,9],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,6],[26,161],[27,161],[28,160],[29,1],[30,159],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ka=c([[0,0],[1,1],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),Qa=c([[0,1],[1,0],[2,2],[3,3],[4,4],[5,5],[6,6],[7,7],[8,161],[9,1],[10,160],[11,159],[12,158],[13,157],[14,156],[15,155],[16,0],[17,154],[18,153],[19,162],[20,163],[21,164],[22,165],[23,166],[24,7],[25,6],[26,161],[27,161],[28,160],[29,1],[30,159],[31,160],[32,153],[33,154],[34,153],[35,154],[36,155],[37,163],[38,162]]),Ua=c([[0,1],[1,0],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,273],[9,272],[10,15],[11,271],[12,270],[13,269],[14,10],[15,9],[16,8],[17,268],[18,267],[19,262],[20,263],[21,264],[22,265],[23,266],[24,18],[25,23],[26,273],[27,273],[28,15],[29,272],[30,271],[31,15],[32,267],[33,268],[34,267],[35,268],[36,9],[37,263],[38,262]]),Va=c([[0,1],[1,0],[2,291],[3,292],[4,293],[5,294],[6,295],[7,290],[8,289],[9,288],[10,287],[11,286],[12,285],[13,284],[14,283],[15,282],[16,281],[17,280],[18,279],[19,274],[20,275],[21,276],[22,277],[23,278],[24,290],[25,295],[26,289],[27,289],[28,287],[29,288],[30,286],[31,287],[32,279],[33,280],[34,279],[35,280],[36,282],[37,275],[38,274]]),Wa=c([[0,1],[1,0],[2,313],[3,314],[4,315],[5,316],[6,317],[7,312],[8,311],[9,310],[10,309],[11,308],[12,307],[13,306],[14,305],[15,304],[16,303],[17,302],[18,301],[19,296],[20,297],[21,298],[22,299],[23,300],[24,312],[25,317],[26,311],[27,311],[28,309],[29,310],[30,308],[31,309],[32,301],[33,302],[34,301],[35,302],[36,304],[37,297],[38,296]]),Xa=c([[0,1],[1,0],[2,334],[3,335],[4,336],[5,337],[6,338],[7,333],[8,332],[9,331],[10,330],[11,329],[12,328],[13,327],[14,326],[15,325],[16,324],[17,323],[18,323],[19,318],[20,319],[21,320],[22,321],[23,322],[24,333],[25,338],[26,332],[27,332],[28,330],[29,331],[30,329],[31,330],[32,323],[33,323],[34,323],[35,323],[36,325],[37,319],[38,318]]),Ya=c([[0,1],[1,0],[2,356],[3,357],[4,358],[5,359],[6,360],[7,355],[8,354],[9,353],[10,352],[11,351],[12,350],[13,349],[14,348],[15,347],[16,346],[17,345],[18,344],[19,339],[20,340],[21,341],[22,342],[23,343],[24,355],[25,360],[26,354],[27,354],[28,352],[29,353],[30,351],[31,352],[32,344],[33,345],[34,344],[35,345],[36,347],[37,340],[38,339]]),Za=c([[0,1],[1,0],[2,373],[3,374],[4,375],[5,376],[6,377],[7,372],[8,58],[9,57],[10,371],[11,55],[12,54],[13,370],[14,52],[15,369],[16,368],[17,367],[18,366],[19,361],[20,362],[21,363],[22,364],[23,365],[24,372],[25,377],[26,58],[27,58],[28,371],[29,57],[30,55],[31,371],[32,366],[33,367],[34,366],[35,367],[36,369],[37,362],[38,361]]),$a=c([[0,1],[1,0],[2,395],[3,396],[4,397],[5,398],[6,399],[7,394],[8,393],[9,392],[10,391],[11,390],[12,389],[13,388],[14,387],[15,386],[16,385],[17,384],[18,383],[19,378],[20,379],[21,380],[22,381],[23,382],[24,394],[25,399],[26,393],[27,393],[28,391],[29,392],[30,390],[31,391],[32,383],[33,384],[34,383],[35,384],[36,386],[37,379],[38,378]]),lr=c([[0,1],[1,0],[2,417],[3,418],[4,419],[5,420],[6,421],[7,416],[8,415],[9,414],[10,413],[11,412],[12,411],[13,410],[14,409],[15,408],[16,407],[17,406],[18,405],[19,400],[20,401],[21,402],[22,403],[23,404],[24,416],[25,421],[26,415],[27,415],[28,413],[29,414],[30,412],[31,413],[32,405],[33,406],[34,405],[35,406],[36,408],[37,401],[38,400]]),ar=c([[0,1],[1,0],[2,439],[3,440],[4,441],[5,442],[6,443],[7,438],[8,437],[9,436],[10,435],[11,434],[12,433],[13,432],[14,431],[15,430],[16,429],[17,428],[18,427],[19,422],[20,423],[21,424],[22,425],[23,426],[24,438],[25,443],[26,437],[27,437],[28,435],[29,436],[30,434],[31,435],[32,427],[33,428],[34,427],[35,428],[36,430],[37,423],[38,422]]),rr=c([[0,9],[1,16],[2,19],[3,20],[4,21],[5,22],[6,23],[7,18],[8,17],[9,16],[10,15],[11,14],[12,13],[13,12],[14,11],[15,10],[16,9],[17,8],[18,7],[19,2],[20,3],[21,4],[22,5],[23,6],[24,18],[25,17],[26,23],[27,23],[28,15],[29,14],[30,16],[31,15],[32,7],[33,8],[34,7],[35,8],[36,10],[37,3],[38,2]]),_r=c([[0,9],[1,16],[2,451],[3,452],[4,453],[5,454],[6,455],[7,9],[8,450],[9,449],[10,273],[11,448],[12,447],[13,158],[14,446],[15,157],[16,445],[17,444],[18,18],[19,19],[20,20],[21,21],[22,22],[23,23],[24,9],[25,450],[26,455],[27,455],[28,273],[29,448],[30,449],[31,273],[32,18],[33,444],[34,18],[35,444],[36,157],[37,20],[38,19]]),hr=c([[0,9],[1,16],[2,472],[3,473],[4,474],[5,475],[6,476],[7,471],[8,470],[9,469],[10,287],[11,468],[12,467],[13,466],[14,465],[15,464],[16,463],[17,462],[18,461],[19,456],[20,457],[21,458],[22,459],[23,460],[24,471],[25,470],[26,476],[27,476],[28,287],[29,468],[30,469],[31,287],[32,461],[33,462],[34,461],[35,462],[36,464],[37,457],[38,456]]),er=c([[0,9],[1,16],[2,493],[3,494],[4,495],[5,496],[6,497],[7,492],[8,491],[9,490],[10,309],[11,489],[12,488],[13,487],[14,486],[15,485],[16,484],[17,483],[18,482],[19,477],[20,478],[21,479],[22,480],[23,481],[24,492],[25,491],[26,497],[27,497],[28,309],[29,489],[30,490],[31,309],[32,482],[33,483],[34,482],[35,483],[36,485],[37,478],[38,477]]),tr=c([[0,9],[1,16],[2,514],[3,515],[4,516],[5,517],[6,518],[7,513],[8,512],[9,511],[10,330],[11,510],[12,509],[13,508],[14,507],[15,506],[16,505],[17,504],[18,503],[19,498],[20,499],[21,500],[22,501],[23,502],[24,513],[25,512],[26,518],[27,518],[28,330],[29,510],[30,511],[31,330],[32,503],[33,504],[34,503],[35,504],[36,506],[37,499],[38,498]]),sr=c([[0,9],[1,16],[2,535],[3,536],[4,537],[5,538],[6,539],[7,534],[8,533],[9,532],[10,352],[11,531],[12,530],[13,529],[14,528],[15,527],[16,526],[17,525],[18,524],[19,519],[20,520],[21,521],[22,522],[23,523],[24,534],[25,533],[26,539],[27,539],[28,352],[29,531],[30,532],[31,352],[32,524],[33,525],[34,524],[35,525],[36,527],[37,520],[38,519]]),ir=c([[0,9],[1,16],[2,554],[3,555],[4,556],[5,557],[6,558],[7,553],[8,198],[9,197],[10,371],[11,552],[12,551],[13,550],[14,549],[15,548],[16,547],[17,546],[18,545],[19,540],[20,541],[21,542],[22,543],[23,544],[24,553],[25,198],[26,558],[27,558],[28,371],[29,552],[30,197],[31,371],[32,545],[33,546],[34,545],[35,546],[36,548],[37,541],[38,540]]),or=c([[0,9],[1,16],[2,575],[3,576],[4,577],[5,578],[6,579],[7,574],[8,573],[9,572],[10,391],[11,571],[12,570],[13,569],[14,568],[15,567],[16,566],[17,565],[18,564],[19,559],[20,560],[21,561],[22,562],[23,563],[24,574],[25,573],[26,579],[27,579],[28,391],[29,571],[30,572],[31,391],[32,564],[33,565],[34,564],[35,565],[36,567],[37,560],[38,559]]),gr=c([[0,9],[1,16],[2,596],[3,597],[4,598],[5,599],[6,600],[7,595],[8,594],[9,593],[10,413],[11,592],[12,591],[13,590],[14,589],[15,588],[16,587],[17,586],[18,585],[19,580],[20,581],[21,582],[22,583],[23,584],[24,595],[25,594],[26,600],[27,600],[28,413],[29,592],[30,593],[31,413],[32,585],[33,586],[34,585],[35,586],[36,588],[37,581],[38,580]]),dr=c([[0,9],[1,16],[2,618],[3,619],[4,620],[5,621],[6,622],[7,617],[8,616],[9,615],[10,614],[11,613],[12,612],[13,611],[14,610],[15,609],[16,608],[17,607],[18,606],[19,601],[20,602],[21,603],[22,604],[23,605],[24,617],[25,616],[26,622],[27,622],[28,614],[29,613],[30,615],[31,614],[32,606],[33,607],[34,606],[35,607],[36,609],[37,602],[38,601]]),kr={light:p,dark:b,light_accent:T,dark_accent:w,light_black:S,light_white:y,light_gray:I,light_blue:f,light_orange:C,light_red:A,light_yellow:P,light_green:x,light_purple:v,light_pink:B,light_tan:G,dark_black:L,dark_white:R,dark_gray:O,dark_blue:j,dark_orange:F,dark_red:H,dark_yellow:D,dark_green:M,dark_purple:N,dark_pink:q,dark_tan:z,light_alt1:E,light_white_alt1:E,dark_white_alt1:E,light_alt2:J,light_white_alt2:J,dark_white_alt2:J,light_surface1:K,light_white_surface1:K,light_ListItem:K,light_SelectTrigger:K,light_Card:K,light_Progress:K,light_TooltipArrow:K,light_SliderTrack:K,light_Input:K,light_TextArea:K,light_white_ListItem:K,light_white_SelectTrigger:K,light_white_Card:K,light_white_Progress:K,light_white_TooltipArrow:K,light_white_SliderTrack:K,light_white_Input:K,light_white_TextArea:K,light_surface2:Q,light_white_surface2:Q,light_Checkbox:Q,light_Switch:Q,light_TooltipContent:Q,light_RadioGroupItem:Q,light_white_Checkbox:Q,light_white_Switch:Q,light_white_TooltipContent:Q,light_white_RadioGroupItem:Q,light_surface3:U,light_white_surface3:U,light_Button:U,light_SliderTrackActive:U,light_white_Button:U,light_white_SliderTrackActive:U,dark_alt1:V,light_black_alt1:V,dark_black_alt1:V,dark_alt2:W,light_black_alt2:W,dark_black_alt2:W,dark_surface1:X,dark_black_surface1:X,dark_ListItem:X,dark_SelectTrigger:X,dark_Card:X,dark_Progress:X,dark_TooltipArrow:X,dark_SliderTrack:X,dark_Input:X,dark_TextArea:X,dark_black_ListItem:X,dark_black_SelectTrigger:X,dark_black_Card:X,dark_black_Progress:X,dark_black_TooltipArrow:X,dark_black_SliderTrack:X,dark_black_Input:X,dark_black_TextArea:X,dark_surface2:Y,dark_black_surface2:Y,dark_Checkbox:Y,dark_Switch:Y,dark_TooltipContent:Y,dark_RadioGroupItem:Y,dark_black_Checkbox:Y,dark_black_Switch:Y,dark_black_TooltipContent:Y,dark_black_RadioGroupItem:Y,dark_surface3:Z,dark_black_surface3:Z,dark_Button:Z,dark_SliderTrackActive:Z,dark_black_Button:Z,dark_black_SliderTrackActive:Z,light_black_surface1:$,light_accent_ListItem:$,light_accent_SelectTrigger:$,light_accent_Card:$,light_accent_Progress:$,light_accent_TooltipArrow:$,light_accent_SliderTrack:$,light_accent_Input:$,light_accent_TextArea:$,light_black_ListItem:$,light_black_SelectTrigger:$,light_black_Card:$,light_black_Progress:$,light_black_TooltipArrow:$,light_black_SliderTrack:$,light_black_Input:$,light_black_TextArea:$,light_black_surface2:ll,light_accent_Checkbox:ll,light_accent_Switch:ll,light_accent_TooltipContent:ll,light_accent_RadioGroupItem:ll,light_black_Checkbox:ll,light_black_Switch:ll,light_black_TooltipContent:ll,light_black_RadioGroupItem:ll,light_black_surface3:al,light_accent_Button:al,light_accent_SliderTrackActive:al,light_black_Button:al,light_black_SliderTrackActive:al,light_gray_alt1:rl,light_gray_alt2:_l,light_gray_surface1:hl,light_gray_ListItem:hl,light_gray_SelectTrigger:hl,light_gray_Card:hl,light_gray_Progress:hl,light_gray_TooltipArrow:hl,light_gray_SliderTrack:hl,light_gray_Input:hl,light_gray_TextArea:hl,light_gray_surface2:el,light_gray_Checkbox:el,light_gray_Switch:el,light_gray_TooltipContent:el,light_gray_RadioGroupItem:el,light_gray_surface3:tl,light_gray_Button:tl,light_gray_SliderTrackActive:tl,light_blue_alt1:sl,light_blue_alt2:il,light_blue_surface1:ol,light_blue_ListItem:ol,light_blue_SelectTrigger:ol,light_blue_Card:ol,light_blue_Progress:ol,light_blue_TooltipArrow:ol,light_blue_SliderTrack:ol,light_blue_Input:ol,light_blue_TextArea:ol,light_blue_surface2:gl,light_blue_Checkbox:gl,light_blue_Switch:gl,light_blue_TooltipContent:gl,light_blue_RadioGroupItem:gl,light_blue_surface3:dl,light_blue_Button:dl,light_blue_SliderTrackActive:dl,light_orange_alt1:kl,light_orange_alt2:cl,light_orange_surface1:nl,light_orange_ListItem:nl,light_orange_SelectTrigger:nl,light_orange_Card:nl,light_orange_Progress:nl,light_orange_TooltipArrow:nl,light_orange_SliderTrack:nl,light_orange_Input:nl,light_orange_TextArea:nl,light_orange_surface2:ul,light_orange_Checkbox:ul,light_orange_Switch:ul,light_orange_TooltipContent:ul,light_orange_RadioGroupItem:ul,light_orange_surface3:pl,light_orange_Button:pl,light_orange_SliderTrackActive:pl,light_red_alt1:bl,light_red_alt2:Tl,light_red_surface1:wl,light_red_ListItem:wl,light_red_SelectTrigger:wl,light_red_Card:wl,light_red_Progress:wl,light_red_TooltipArrow:wl,light_red_SliderTrack:wl,light_red_Input:wl,light_red_TextArea:wl,light_red_surface2:Sl,light_red_Checkbox:Sl,light_red_Switch:Sl,light_red_TooltipContent:Sl,light_red_RadioGroupItem:Sl,light_red_surface3:yl,light_red_Button:yl,light_red_SliderTrackActive:yl,light_yellow_alt1:ml,light_yellow_alt2:Il,light_yellow_surface1:fl,light_yellow_ListItem:fl,light_yellow_SelectTrigger:fl,light_yellow_Card:fl,light_yellow_Progress:fl,light_yellow_TooltipArrow:fl,light_yellow_SliderTrack:fl,light_yellow_Input:fl,light_yellow_TextArea:fl,light_yellow_surface2:Cl,light_yellow_Checkbox:Cl,light_yellow_Switch:Cl,light_yellow_TooltipContent:Cl,light_yellow_RadioGroupItem:Cl,light_yellow_surface3:Al,light_yellow_Button:Al,light_yellow_SliderTrackActive:Al,light_green_alt1:Pl,light_green_alt2:xl,light_green_surface1:vl,light_green_ListItem:vl,light_green_SelectTrigger:vl,light_green_Card:vl,light_green_Progress:vl,light_green_TooltipArrow:vl,light_green_SliderTrack:vl,light_green_Input:vl,light_green_TextArea:vl,light_green_surface2:Bl,light_green_Checkbox:Bl,light_green_Switch:Bl,light_green_TooltipContent:Bl,light_green_RadioGroupItem:Bl,light_green_surface3:Gl,light_green_Button:Gl,light_green_SliderTrackActive:Gl,light_purple_alt1:Ll,light_purple_alt2:Rl,light_purple_surface1:Ol,light_purple_ListItem:Ol,light_purple_SelectTrigger:Ol,light_purple_Card:Ol,light_purple_Progress:Ol,light_purple_TooltipArrow:Ol,light_purple_SliderTrack:Ol,light_purple_Input:Ol,light_purple_TextArea:Ol,light_purple_surface2:jl,light_purple_Checkbox:jl,light_purple_Switch:jl,light_purple_TooltipContent:jl,light_purple_RadioGroupItem:jl,light_purple_surface3:Fl,light_purple_Button:Fl,light_purple_SliderTrackActive:Fl,light_pink_alt1:Hl,light_pink_alt2:Dl,light_pink_surface1:Ml,light_pink_ListItem:Ml,light_pink_SelectTrigger:Ml,light_pink_Card:Ml,light_pink_Progress:Ml,light_pink_TooltipArrow:Ml,light_pink_SliderTrack:Ml,light_pink_Input:Ml,light_pink_TextArea:Ml,light_pink_surface2:Nl,light_pink_Checkbox:Nl,light_pink_Switch:Nl,light_pink_TooltipContent:Nl,light_pink_RadioGroupItem:Nl,light_pink_surface3:ql,light_pink_Button:ql,light_pink_SliderTrackActive:ql,light_tan_alt1:zl,light_tan_alt2:El,light_tan_surface1:Jl,light_tan_ListItem:Jl,light_tan_SelectTrigger:Jl,light_tan_Card:Jl,light_tan_Progress:Jl,light_tan_TooltipArrow:Jl,light_tan_SliderTrack:Jl,light_tan_Input:Jl,light_tan_TextArea:Jl,light_tan_surface2:Kl,light_tan_Checkbox:Kl,light_tan_Switch:Kl,light_tan_TooltipContent:Kl,light_tan_RadioGroupItem:Kl,light_tan_surface3:Ql,light_tan_Button:Ql,light_tan_SliderTrackActive:Ql,dark_white_surface1:Ul,dark_accent_ListItem:Ul,dark_accent_SelectTrigger:Ul,dark_accent_Card:Ul,dark_accent_Progress:Ul,dark_accent_TooltipArrow:Ul,dark_accent_SliderTrack:Ul,dark_accent_Input:Ul,dark_accent_TextArea:Ul,dark_white_ListItem:Ul,dark_white_SelectTrigger:Ul,dark_white_Card:Ul,dark_white_Progress:Ul,dark_white_TooltipArrow:Ul,dark_white_SliderTrack:Ul,dark_white_Input:Ul,dark_white_TextArea:Ul,dark_white_surface2:Vl,dark_accent_Checkbox:Vl,dark_accent_Switch:Vl,dark_accent_TooltipContent:Vl,dark_accent_RadioGroupItem:Vl,dark_white_Checkbox:Vl,dark_white_Switch:Vl,dark_white_TooltipContent:Vl,dark_white_RadioGroupItem:Vl,dark_white_surface3:Wl,dark_accent_Button:Wl,dark_accent_SliderTrackActive:Wl,dark_white_Button:Wl,dark_white_SliderTrackActive:Wl,dark_gray_alt1:Xl,dark_gray_alt2:Yl,dark_gray_surface1:Zl,dark_gray_ListItem:Zl,dark_gray_SelectTrigger:Zl,dark_gray_Card:Zl,dark_gray_Progress:Zl,dark_gray_TooltipArrow:Zl,dark_gray_SliderTrack:Zl,dark_gray_Input:Zl,dark_gray_TextArea:Zl,dark_gray_surface2:$l,dark_gray_Checkbox:$l,dark_gray_Switch:$l,dark_gray_TooltipContent:$l,dark_gray_RadioGroupItem:$l,dark_gray_surface3:la,dark_gray_Button:la,dark_gray_SliderTrackActive:la,dark_blue_alt1:aa,dark_blue_alt2:ra,dark_blue_surface1:ha,dark_blue_ListItem:ha,dark_blue_SelectTrigger:ha,dark_blue_Card:ha,dark_blue_Progress:ha,dark_blue_TooltipArrow:ha,dark_blue_SliderTrack:ha,dark_blue_Input:ha,dark_blue_TextArea:ha,dark_blue_surface2:ea,dark_blue_Checkbox:ea,dark_blue_Switch:ea,dark_blue_TooltipContent:ea,dark_blue_RadioGroupItem:ea,dark_blue_surface3:ta,dark_blue_Button:ta,dark_blue_SliderTrackActive:ta,dark_orange_alt1:sa,dark_orange_alt2:ia,dark_orange_surface1:oa,dark_orange_ListItem:oa,dark_orange_SelectTrigger:oa,dark_orange_Card:oa,dark_orange_Progress:oa,dark_orange_TooltipArrow:oa,dark_orange_SliderTrack:oa,dark_orange_Input:oa,dark_orange_TextArea:oa,dark_orange_surface2:ga,dark_orange_Checkbox:ga,dark_orange_Switch:ga,dark_orange_TooltipContent:ga,dark_orange_RadioGroupItem:ga,dark_orange_surface3:da,dark_orange_Button:da,dark_orange_SliderTrackActive:da,dark_red_alt1:ka,dark_red_alt2:ca,dark_red_surface1:na,dark_red_ListItem:na,dark_red_SelectTrigger:na,dark_red_Card:na,dark_red_Progress:na,dark_red_TooltipArrow:na,dark_red_SliderTrack:na,dark_red_Input:na,dark_red_TextArea:na,dark_red_surface2:ua,dark_red_Checkbox:ua,dark_red_Switch:ua,dark_red_TooltipContent:ua,dark_red_RadioGroupItem:ua,dark_red_surface3:pa,dark_red_Button:pa,dark_red_SliderTrackActive:pa,dark_yellow_alt1:ba,dark_yellow_alt2:Ta,dark_yellow_surface1:wa,dark_yellow_ListItem:wa,dark_yellow_SelectTrigger:wa,dark_yellow_Card:wa,dark_yellow_Progress:wa,dark_yellow_TooltipArrow:wa,dark_yellow_SliderTrack:wa,dark_yellow_Input:wa,dark_yellow_TextArea:wa,dark_yellow_surface2:Sa,dark_yellow_Checkbox:Sa,dark_yellow_Switch:Sa,dark_yellow_TooltipContent:Sa,dark_yellow_RadioGroupItem:Sa,dark_yellow_surface3:ya,dark_yellow_Button:ya,dark_yellow_SliderTrackActive:ya,dark_green_alt1:ma,dark_green_alt2:Ia,dark_green_surface1:fa,dark_green_ListItem:fa,dark_green_SelectTrigger:fa,dark_green_Card:fa,dark_green_Progress:fa,dark_green_TooltipArrow:fa,dark_green_SliderTrack:fa,dark_green_Input:fa,dark_green_TextArea:fa,dark_green_surface2:Ca,dark_green_Checkbox:Ca,dark_green_Switch:Ca,dark_green_TooltipContent:Ca,dark_green_RadioGroupItem:Ca,dark_green_surface3:Aa,dark_green_Button:Aa,dark_green_SliderTrackActive:Aa,dark_purple_alt1:Pa,dark_purple_alt2:xa,dark_purple_surface1:va,dark_purple_ListItem:va,dark_purple_SelectTrigger:va,dark_purple_Card:va,dark_purple_Progress:va,dark_purple_TooltipArrow:va,dark_purple_SliderTrack:va,dark_purple_Input:va,dark_purple_TextArea:va,dark_purple_surface2:Ba,dark_purple_Checkbox:Ba,dark_purple_Switch:Ba,dark_purple_TooltipContent:Ba,dark_purple_RadioGroupItem:Ba,dark_purple_surface3:Ga,dark_purple_Button:Ga,dark_purple_SliderTrackActive:Ga,dark_pink_alt1:La,dark_pink_alt2:Ra,dark_pink_surface1:Oa,dark_pink_ListItem:Oa,dark_pink_SelectTrigger:Oa,dark_pink_Card:Oa,dark_pink_Progress:Oa,dark_pink_TooltipArrow:Oa,dark_pink_SliderTrack:Oa,dark_pink_Input:Oa,dark_pink_TextArea:Oa,dark_pink_surface2:ja,dark_pink_Checkbox:ja,dark_pink_Switch:ja,dark_pink_TooltipContent:ja,dark_pink_RadioGroupItem:ja,dark_pink_surface3:Fa,dark_pink_Button:Fa,dark_pink_SliderTrackActive:Fa,dark_tan_alt1:Ha,dark_tan_alt2:Da,dark_tan_surface1:Ma,dark_tan_ListItem:Ma,dark_tan_SelectTrigger:Ma,dark_tan_Card:Ma,dark_tan_Progress:Ma,dark_tan_TooltipArrow:Ma,dark_tan_SliderTrack:Ma,dark_tan_Input:Ma,dark_tan_TextArea:Ma,dark_tan_surface2:Na,dark_tan_Checkbox:Na,dark_tan_Switch:Na,dark_tan_TooltipContent:Na,dark_tan_RadioGroupItem:Na,dark_tan_surface3:qa,dark_tan_Button:qa,dark_tan_SliderTrackActive:qa,light_SwitchThumb:za,light_SliderThumb:za,light_Tooltip:za,light_ProgressIndicator:za,light_white_SwitchThumb:za,light_white_SliderThumb:za,light_white_Tooltip:za,light_white_ProgressIndicator:za,dark_SwitchThumb:Ea,dark_SliderThumb:Ea,dark_Tooltip:Ea,dark_ProgressIndicator:Ea,dark_black_SwitchThumb:Ea,dark_black_SliderThumb:Ea,dark_black_Tooltip:Ea,dark_black_ProgressIndicator:Ea,light_accent_SwitchThumb:Ja,light_accent_SliderThumb:Ja,light_accent_Tooltip:Ja,light_accent_ProgressIndicator:Ja,dark_accent_SwitchThumb:Ka,dark_accent_SliderThumb:Ka,dark_accent_Tooltip:Ka,dark_accent_ProgressIndicator:Ka,light_black_SwitchThumb:Qa,light_black_SliderThumb:Qa,light_black_Tooltip:Qa,light_black_ProgressIndicator:Qa,light_gray_SwitchThumb:Ua,light_gray_SliderThumb:Ua,light_gray_Tooltip:Ua,light_gray_ProgressIndicator:Ua,light_blue_SwitchThumb:Va,light_blue_SliderThumb:Va,light_blue_Tooltip:Va,light_blue_ProgressIndicator:Va,light_orange_SwitchThumb:Wa,light_orange_SliderThumb:Wa,light_orange_Tooltip:Wa,light_orange_ProgressIndicator:Wa,light_red_SwitchThumb:Xa,light_red_SliderThumb:Xa,light_red_Tooltip:Xa,light_red_ProgressIndicator:Xa,light_yellow_SwitchThumb:Ya,light_yellow_SliderThumb:Ya,light_yellow_Tooltip:Ya,light_yellow_ProgressIndicator:Ya,light_green_SwitchThumb:Za,light_green_SliderThumb:Za,light_green_Tooltip:Za,light_green_ProgressIndicator:Za,light_purple_SwitchThumb:$a,light_purple_SliderThumb:$a,light_purple_Tooltip:$a,light_purple_ProgressIndicator:$a,light_pink_SwitchThumb:lr,light_pink_SliderThumb:lr,light_pink_Tooltip:lr,light_pink_ProgressIndicator:lr,light_tan_SwitchThumb:ar,light_tan_SliderThumb:ar,light_tan_Tooltip:ar,light_tan_ProgressIndicator:ar,dark_white_SwitchThumb:rr,dark_white_SliderThumb:rr,dark_white_Tooltip:rr,dark_white_ProgressIndicator:rr,dark_gray_SwitchThumb:_r,dark_gray_SliderThumb:_r,dark_gray_Tooltip:_r,dark_gray_ProgressIndicator:_r,dark_blue_SwitchThumb:hr,dark_blue_SliderThumb:hr,dark_blue_Tooltip:hr,dark_blue_ProgressIndicator:hr,dark_orange_SwitchThumb:er,dark_orange_SliderThumb:er,dark_orange_Tooltip:er,dark_orange_ProgressIndicator:er,dark_red_SwitchThumb:tr,dark_red_SliderThumb:tr,dark_red_Tooltip:tr,dark_red_ProgressIndicator:tr,dark_yellow_SwitchThumb:sr,dark_yellow_SliderThumb:sr,dark_yellow_Tooltip:sr,dark_yellow_ProgressIndicator:sr,dark_green_SwitchThumb:ir,dark_green_SliderThumb:ir,dark_green_Tooltip:ir,dark_green_ProgressIndicator:ir,dark_purple_SwitchThumb:or,dark_purple_SliderThumb:or,dark_purple_Tooltip:or,dark_purple_ProgressIndicator:or,dark_pink_SwitchThumb:gr,dark_pink_SliderThumb:gr,dark_pink_Tooltip:gr,dark_pink_ProgressIndicator:gr,dark_tan_SwitchThumb:dr,dark_tan_SliderThumb:dr,dark_tan_Tooltip:dr,dark_tan_ProgressIndicator:dr}},1815,[19]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,$=Object.prototype.hasOwnProperty,s=function(t,n,s,f){if(n&&"object"==typeof n||"function"==typeof n){var p=function(o){!$.call(t,o)&&o!==s&&u(t,o,{get:function(){return n[o]},enumerable:!(f=c(n,o))||f.enumerable})};for(var b of o(n))p(b)}return t},f={};!(function(t,n){for(var c in n)u(t,c,{get:n[c],enumerable:!0})})(f,{radius:function(){return v},size:function(){return p},space:function(){return j},spaces:function(){return b},spacesNegative:function(){return O},tokens:function(){return y},zIndex:function(){return l}}),m.exports=(t=f,s(u({},"__esModule",{value:!0}),t));var p={$0:0,"$0.25":2,"$0.5":4,"$0.75":8,$1:20,"$1.5":24,$2:28,"$2.5":32,$3:36,"$3.5":40,$4:44,$true:44,"$4.5":48,$5:52,$6:64,$7:74,$8:84,$9:94,$10:104,$11:124,$12:144,$13:164,$14:184,$15:204,$16:224,$17:224,$18:244,$19:264,$20:284},b=Object.entries(p).map(function(t){var u=n(t,2),c=u[0],o=u[1];return[c,(0,r(d[1]).sizeToSpace)(o)]}),O=b.slice(1).map(function(t){var u=n(t,2),c=u[0],o=u[1];return[`-${c.slice(1)}`,-o]}),j=Object.assign({},Object.fromEntries(b),Object.fromEntries(O)),l={0:0,1:100,2:200,3:300,4:400,5:500},v={0:0,1:3,2:5,3:7,4:9,true:9,5:10,6:16,7:19,8:22,9:26,10:34,11:42,12:50},y={radius:v,zIndex:l,space:j,size:p}},1816,[19,1817]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=r(d[0]),o=Object.defineProperty,u=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,f=Object.prototype.hasOwnProperty,s=function(t,n,s,b){if(n&&"object"==typeof n||"function"==typeof n){var p=function(c){!f.call(t,c)&&c!==s&&o(t,c,{get:function(){return n[c]},enumerable:!(b=u(n,c))||b.enumerable})};for(var j of c(n))p(j)}return t},b={};function p(t,o){return Object.fromEntries(Object.entries(t).map(function(t){var u=n(t,2),c=u[0],f=u[1];return[`${c}${o}`,f]}))}function j(t){return 0===t?0:2===t?.5:4===t?1:8===t?1.5:t<=16?Math.round(.333*t):Math.floor(.7*t-12)}function O(t){return Object.fromEntries(t)}function y(t){return Object.keys(t)}!(function(t,n){for(var u in n)o(t,u,{get:n[u],enumerable:!0})})(b,{objectFromEntries:function(){return O},objectKeys:function(){return y},postfixObjKeys:function(){return p},sizeToSpace:function(){return j}}),m.exports=(t=b,s(o({},"__esModule",{value:!0}),t))},1817,[19]); -__d(function(g,r,i,a,m,e,d){"use strict";var t,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,c=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,f=function(t,f,p,s){if(f&&"object"==typeof f||"function"==typeof f){var b=function(c){!u.call(t,c)&&c!==p&&n(t,c,{get:function(){return f[c]},enumerable:!(s=o(f,c))||s.enumerable})};for(var l of c(f))b(l)}return t},p={};!(function(t,o){for(var c in o)n(t,c,{get:o[c],enumerable:!0})})(p,{animations:function(){return r(d[0]).animationsReactNative}}),m.exports=(t=p,f(n({},"__esModule",{value:!0}),t))},1818,[1786]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.zIndex=e.themes=e.space=e.size=e.radius=e.lightTheme=e.flowColorTokens=e.darkTheme=e.colorTokens=void 0;var t={primaryLight:'#00B877',primaryDark:'#00EF8B',primary:'#00B877',primaryLight20:'rgba(0, 184, 119, 0.2)',primaryLight10:'rgba(0, 184, 119, 0.1)',primaryDark20:'rgba(0, 239, 139, 0.2)',primaryDark10:'rgba(0, 239, 139, 0.1)',surfaceLight1:'#FFFFFF',surfaceLight2:'#F2F2F7',surfaceLight3:'rgba(118, 118, 118, 0.5)',surfaceLight4:'rgba(0, 13, 7, 0.25)',surfaceDark1:'#000000',surfaceDarkDrawer:'#121212',surfaceDark2:'#1A1A1A',surfaceDark3:'rgba(255, 255, 255, 0.5)',surfaceDark4:'rgba(170, 170, 176, 0.25)',surfaceDark5:'#2a2a2a',textLight1:'#000000',textLight2:'#767676',textLight3:'rgba(0, 13, 7, 0.1)',textLight4:'#FFFFFF',textDark1:'#FFFFFF',textDark2:'#B3B3B3',textDark3:'rgba(255, 255, 255, 0.1)',textDark4:'#000D07',success:'#12B76A',warning:'#FDB022',error:'#F04438',success10:'rgba(18, 183, 106, 0.1)',warning10:'rgba(253, 176, 34, 0.1)',error10:'rgba(240, 68, 56, 0.1)',accentEVM:'#627EEA',accentEOA:'#FF8A00',white:'#ffffff',black:'#000000',light80:'rgba(255, 255, 255, 0.8)',light40:'rgba(255, 255, 255, 0.4)',light25:'rgba(255, 255, 255, 0.25)',light10:'rgba(255, 255, 255, 0.1)',light15:'rgba(255, 255, 255, 0.15)',light50:'rgba(255, 255, 255, 0.5)',light5:'rgba(255, 255, 255, 0.05)',lightBg1:'rgba(242, 242, 247, 1)',lightBorder1:'rgba(0, 0, 0, 0.1)',dark80:'rgba(0, 0, 0, 0.8)',dark40:'rgba(0, 0, 0, 0.4)',dark25:'rgba(0, 0, 0, 0.25)',dark10:'rgba(0, 0, 0, 0.1)',dark5:'rgba(0, 0, 0, 0.05)',darkBg1:'rgba(255, 255, 255, 0.1)',grayBg1:'#373737',darkBorder1:'rgba(255, 255, 255, 0.1)',light35:'rgba(255, 255, 255, 0.35)',shadowLight:'rgba(0, 0, 0, 0.1)',shadowLightHover:'rgba(0, 0, 0, 0.15)',shadowLightPress:'rgba(0, 0, 0, 0.2)',shadowLightFocus:'rgba(0, 184, 119, 0.3)',shadowDark:'rgba(0, 0, 0, 0.3)',shadowDarkHover:'rgba(0, 0, 0, 0.4)',shadowDarkPress:'rgba(0, 0, 0, 0.5)',shadowDarkFocus:'rgba(0, 184, 119, 0.3)'},o=[{light:t.surfaceLight1,dark:t.surfaceDark1},{light:t.surfaceLight2,dark:t.surfaceDark2},{light:t.surfaceLight3,dark:t.surfaceDark4},{light:t.surfaceLight4,dark:t.surfaceDark3},{light:t.textLight3,dark:t.textDark3},{light:t.textLight2,dark:t.textDark2},{light:t.textLight1,dark:t.textDark1},{light:t.lightBg1,dark:t.darkBg1},{light:t.lightBorder1,dark:t.darkBorder1},{light:t.textLight4,dark:t.textDark4},{light:t.surfaceLight1,dark:t.surfaceDarkDrawer},{light:t.black,dark:t.white},{light:t.white,dark:t.black},{light:t.dark5,dark:t.light5},{light:t.dark10,dark:t.light10},{light:t.primaryLight,dark:t.primaryDark},{light:t.primaryLight20,dark:t.primaryDark20},{light:t.primaryLight10,dark:t.primaryDark10},{light:t.shadowLight,dark:t.shadowDark},{light:t.shadowLightHover,dark:t.shadowDarkHover},{light:t.shadowLightPress,dark:t.shadowDarkPress},{light:t.shadowLightFocus,dark:t.shadowDarkFocus},{light:t.dark5,dark:t.light10},{light:t.dark10,dark:t.light15},{light:t.dark40,dark:t.light50}],s=e.size={$0:0,'$0.25':1,'$0.5':2,'$0.75':3,$1:4,'$1.5':6,$2:8,'$2.5':10,$3:12,'$3.5':14,$4:16,$true:16,'$4.25':17,'$4.5':18,$5:20,$6:24,$7:28,$7m:30,$8:32,$9:36,$10:40,$11:44,$12:48,$13:52,$14:56,$15:60,$16:64,$17:68,$18:72,$19:76,$20:80,$31:124,$32:128,$33:132,$34:136,$35:140,$36:144,$37:148,$38:152,$39:156,$40:160,$41:164,$42:168,$43:172,$44:176,$45:180,$46:184,$47:188,$48:192,$49:196,$50:200,$51:204,$52:208,$53:212,$54:216,$55:220,$56:224,$57:228,$58:232,$59:236,$60:240,$61:244,$62:248,'$84.75':339},h=(e.space=Object.assign({},s,{'$-0.25':-1,'$-0.5':-2,'$-0.75':-3,'$-1':-4,'$-1.5':-6,'$-2':-8,'$-2.5':-10,'$-3':-12,'$-3.5':-14,'$-4':-16,'$-4.5':-18,'$-5':-20,'$-6':-24,'$-7':-28,'$-8':-32,'$-9':-36,'$-10':-40,'$-11':-44,'$-12':-48,'$-13':-52,'$-14':-56,'$-15':-60,'$-16':-64,'$-17':-68,'$-18':-72,'$-19':-76,'$-20':-80}),e.zIndex={0:0,1:100,2:200,3:300,4:400,5:500},e.radius={0:0,1:4,2:8,3:12,4:14,true:16,5:20,6:24,6.75:27,7:28,8:32,9:36,10:40,11:44,12:48,13:54},(0,r(d[0]).createThemeBuilder)().addPalettes({light:o.map(function(t){return t.light}),dark:o.map(function(t){return t.dark})}).addTemplates({base:{background:0,backgroundHover:1,backgroundPress:2,backgroundFocus:17,backgroundStrong:1,background4:4,backgroundTransparent:'transparent',surface1:0,surface2:1,surface3:2,surface4:3,bg:0,bg1:7,bg2:1,bg3:2,bg4:3,bg5:11,bgDrawer:10,border1:8,borderColor:2,borderColorHover:3,borderColorPress:t.primary,borderColorFocus:t.primary,border:2,borderHover:3,borderFocus:t.primary,color:6,colorHover:6,colorPress:6,colorFocus:6,colorTransparent:'transparent',text1:6,text2:5,text3:4,text4:9,text:6,textSecondary:5,textTertiary:4,textMuted:5,placeholderColor:5,placeholder:5,outlineColor:t.primary,outline:t.primary,shadowColor:18,shadowColorHover:19,shadowColorPress:20,shadowColorFocus:21,shadow:18,shadowHover:19,shadowPress:20,shadowFocus:21,successColor:t.success,warningColor:t.warning,errorColor:t.error,success:t.success,warning:t.warning,error:t.error,success10:t.success10,warning10:t.warning10,error10:t.error10,primaryColor:15,primary20:16,primary10:17,primary:15,primaryLight:17,primaryStrong:15,white:t.white,black:t.black,accentEVM:t.accentEVM,accentEOA:t.accentEOA,light80:t.light80,light40:t.light40,light25:t.light25,light10:t.light10,light5:t.light5,dark80:t.dark80,dark40:t.dark40,dark25:t.dark25,dark10:t.dark10,dark5:t.dark5,bgGlass:22,borderGlass:23,iconGlass:24,subtleBg:13,subtleBg10:14,inverseBg:11,inverseText:12}}).addThemes({light:{template:'base',palette:'light'},dark:{template:'base',palette:'dark'}})),l=e.themes=h.build();e.lightTheme=l.light,e.darkTheme=l.dark,e.colorTokens={color:t},e.flowColorTokens=t},1819,[1791]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIAvatar=e.Avatar=function(t){var l,n=t.src,s=t.alt,c=t.size,b=void 0===c?40:c,h=t.fallback,u=t.bgColor,v=t.textColor,f=t.borderColor,j=t.borderWidth,x=t.borderRadius,p=t.style;return(0,o.jsx)(r(d[3]).YStack,{width:b,height:b,bg:u||'$bg3',items:"center",justify:"center",rounded:x||b/2,overflow:"hidden",position:"relative",borderColor:f,borderWidth:j,style:p,children:n?(0,o.jsx)(r(d[3]).Image,{src:(0,r(d[4]).convertedSVGURL)(n),alt:s,width:"100%",height:"100%",objectFit:"cover",borderRadius:x||b/2,position:"absolute"}):(0,o.jsx)(r(d[3]).Text,{color:v||'$text',fontSize:.5*b,fontWeight:"600",children:h||(null==s||null==(l=s[0])?void 0:l.toUpperCase())||'?'})})};t(r(d[1]));var o=r(d[2])},1820,[1,128,258,1460,2]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIButton=e.Button=function(t){var c,b,u,y,p=t.variant,h=void 0===p?'primary':p,v=t.size,$=void 0===v?'medium':v,S=t.loading,f=void 0!==S&&S,x=t.loadingText,k=t.fullWidth,j=void 0!==k&&k,C=t.children,W=t.icon,w=t.disabled,B=t.onPress,O=(0,o.default)(t,n),T={opacity:.8,scale:.98};switch($){case'small':u='$3';break;case'large':u='$14';break;case'medium':u='$6';break;default:u='$4'}switch(h){case'secondary':y={bg:'$bg2',color:'$text',hoverStyle:{bg:'$bg3'},pressStyle:T};break;case'inverse':y={bg:'$inverseBg',color:'$inverseText',hoverStyle:{opacity:.9,bg:'$inverseBg'},pressStyle:T};break;case'destructive':y={bg:'$error',color:'$white',hoverStyle:{opacity:.9},pressStyle:T};break;case'success':y={bg:'$success',color:'$white',hoverStyle:{opacity:.9},pressStyle:T};break;case'outline':y={bg:'transparent',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg1'},pressStyle:T};break;case'ghost':y={bg:'transparent',color:'$text',hoverStyle:{bg:'$bg1'},pressStyle:T};break;default:y={bg:'$primary',color:'$black',hoverStyle:{opacity:.9},pressStyle:T}}var z=Object.assign({},y,{pressStyle:Object.assign({},null==(c=y)?void 0:c.pressStyle,T,{bg:null==(b=y)?void 0:b.bg})}),P=null==z?void 0:z.color;return(0,s.jsx)(r(d[4]).Button,Object.assign({size:u,disabled:w||f,opacity:w&&!f?.5:1,width:j?'100%':void 0,onPress:B,animation:"quick",animateOnly:['transform','opacity']},{borderWidth:0,borderColor:'transparent',outlineWidth:0,outlineColor:'transparent',focusStyle:{outlineWidth:0,outlineColor:'transparent',borderColor:'transparent'}},z,O,{children:f?(0,s.jsxs)(r(d[4]).XStack,{items:"center",gap:"$2",children:[(0,s.jsx)(r(d[4]).Spinner,{size:"small",color:null!=P?P:'currentColor'}),x&&(0,s.jsx)(r(d[4]).Text,{color:null!=P?P:'currentColor',fontWeight:"600",children:x})]}):(0,s.jsxs)(r(d[4]).XStack,{items:"center",gap:"$2",children:[W&&l.default.cloneElement(W,{color:null!=P?P:'currentColor'}),'string'==typeof C?(0,s.jsx)(r(d[4]).Text,{color:null!=P?P:'currentColor',fontWeight:"600",children:C}):C]})}))};var o=t(r(d[1])),l=t(r(d[2])),s=r(d[3]),n=["variant","size","loading","loadingText","fullWidth","children","icon","disabled","onPress"]},1821,[1,207,128,258,1460]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UICard=e.Card=function(t){var s=t.variant,h=void 0===s?'default':s,l=t.children,c=(0,o.default)(t,u);return(0,n.jsx)(r(d[3]).Card,Object.assign({},(function(){switch(h){case'elevated':return{bg:'$bg',rounded:'$4',shadowColor:'$shadow',shadowOffset:{width:0,height:2},shadowOpacity:.1,shadowRadius:8,elevation:3};case'outlined':return{bg:'$bg',borderColor:'$border',borderWidth:1,rounded:'$4'};default:return{bg:'$bg',rounded:'$4'}}})(),c,{children:l}))};var o=t(r(d[1])),n=r(d[2]),u=["variant","children"]},1822,[1,207,258,1460]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.UIDivider=e.Divider=function(t){return(0,n.jsx)(r(d[1]).Separator,Object.assign({},t))};var n=r(d[0])},1823,[258,1824]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UISeparator=e.Separator=function(t){var v=t.variant,c=void 0===v?'default':v,f=(0,o.default)(t,u);return(0,n.jsx)(r(d[3]).Separator,Object.assign({borderColor:'strong'===c?'$textSecondary':'$dark10',borderWidth:1},f))};var o=t(r(d[1])),n=r(d[2]),u=["variant"]},1824,[1,207,258,1460]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIIconButton=e.IconButton=function(t){var b,p,y,u,$,h,v,f,S=t.icon,k=t.variant,x=void 0===k?'ghost':k,W=t.size,j=void 0===W?'medium':W,w=t.disabled,z=void 0!==w&&w,C=t.onPress,P=(0,o.default)(t,c),_=(0,r(d[4]).useTheme)();switch(j){case'small':u='$3',$=16,h=24,v='$1';break;case'large':u='$5',$=32,h=48,v='$2';break;default:u='$4',$=24,h=40,v='$1.5'}switch(x){case'secondary':f={bg:'$bg2',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg3'},pressStyle:{bg:'$bg4'}};break;case'destructive':f={bg:'$error',color:'$white',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;case'success':f={bg:'$success',color:'$white',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;case'outline':f={bg:'transparent',color:'$text',borderColor:'$border',borderWidth:1,hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2',borderColor:'$border',color:'$text'}};break;case'ghost':f={bg:'transparent',color:'$text',borderWidth:0,hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2',borderWidth:0}};break;case'primary':f={bg:'$primary',color:'$black',hoverStyle:{opacity:.9},pressStyle:{opacity:.8}};break;default:f={bg:'transparent',color:'$text',hoverStyle:{bg:'$bg1'},pressStyle:{bg:'$bg2'}}}return(0,l.jsx)(r(d[4]).Button,Object.assign({size:u,disabled:z,opacity:z?.5:1,onPress:C,circular:!0,padding:v,width:h,height:h,items:"center",justify:"center",borderWidth:0,unstyled:!1,flexShrink:0,hitSlop:{top:8,bottom:8,left:8,right:8},pressStyle:Object.assign({},f.pressStyle,{opacity:.7,transform:[{scale:.95}]})},f,P,{children:s.default.cloneElement(S,{size:S.props.size||$,color:null!=(b=null!=(p=n(S.props.color,_))?p:n(null==(y=f)?void 0:y.color,_))?b:'currentColor'})}))};var o=t(r(d[1])),s=t(r(d[2])),l=r(d[3]),c=["icon","variant","size","disabled","onPress"];function n(t,o){if(t){if('string'!=typeof t){var s=null==t?void 0:t.val;return'string'==typeof s?s:void 0}if(t.startsWith('$')){var l,c=t.slice(1),n=null==o||null==(l=o[c])?void 0:l.val;if('string'==typeof n)return n}return t}}},1825,[1,207,128,258,1460]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIInput=e.Input=void 0;var t=o(r(d[1])),l=o(r(d[2])),n=r(d[3]),c=["label","error","helperText"];(e.UIInput=e.Input=l.default.forwardRef(function(o,l){var p=o.label,u=o.error,$=o.helperText,f=(0,t.default)(o,c);return(0,n.jsxs)(r(d[4]).YStack,{space:"$2",children:[p&&(0,n.jsx)(r(d[4]).Text,{fontSize:14,fontWeight:"500",color:"$textSecondary",children:p}),(0,n.jsx)(r(d[4]).Input,Object.assign({ref:l,borderColor:u?'$error':'$border',borderWidth:1,rounded:"$3",bg:"transparent",p:"$3",height:52,fontSize:16,color:"$text",placeholderTextColor:"$placeholder",focusStyle:{borderColor:u?'$error':'$primary',borderWidth:2},hoverStyle:{borderColor:u?'$error':'$borderHover'}},f)),(u||$)&&(0,n.jsx)(r(d[4]).Text,{fontSize:12,color:u?'$error':'$textSecondary',children:u||$})]})})).displayName='Input'},1826,[1,207,128,258,1460]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.UISkeleton=_e.Skeleton=function(e){var o,s=e.width,l=void 0===s?'100%':s,p=e.height,f=void 0===p?20:p,c=e.borderRadius,v=void 0===c?4:c,h=e.animated,y=void 0===h||h,b=e.baseBgLight,w=e.baseBgDark,O=e.animationType,_=void 0===O?'pulse':O,j=e.pulseDuration,M=void 0===j?1e3:j,k=e.pulseMinOpacity,A=void 0===k?.6:k,D=e.pulseMaxOpacity,V=void 0===D?1:D,x=(0,i.default)(e,u),B=(0,t.useRef)(new n.Animated.Value(A)).current;(0,t.useEffect)(function(){if(y&&'pulse'===_){B.stopAnimation(),B.setValue(A);var e=n.Animated.loop(n.Animated.sequence([n.Animated.timing(B,{toValue:V,duration:M,easing:n.Easing.inOut(n.Easing.quad),useNativeDriver:!1}),n.Animated.timing(B,{toValue:A,duration:M,easing:n.Easing.inOut(n.Easing.quad),useNativeDriver:!1})]));return e.start(),function(){return e.stop()}}},[y,_,B,M,A,V]);var E=null!=(o=null!=b?b:w)?o:'$subtleBg10';if(y&&'pulse'===_)return(0,r.jsx)(n.Animated.View,{style:{opacity:B},children:(0,r.jsx)(_r(d[5]).View,Object.assign({width:l,height:f,rounded:v,bg:E,overflow:"hidden"},x))});return(0,r.jsx)(_r(d[5]).View,Object.assign({width:l,height:f,rounded:v,bg:E,animation:y?'lazy':void 0,animateOnly:['opacity'],opacity:y?.8:1,overflow:"hidden"},x))};var i=e(_r(d[1])),t=(function(e,i){if("function"==typeof WeakMap)var t=new WeakMap,n=new WeakMap;return(function(e,i){if(!i&&e&&e.__esModule)return e;var r,u,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=i?n:t){if(r.has(e))return r.get(e);r.set(e,o)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((u=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(u.get||u.set)?r(o,s,u):o[s]=e[s]);return o})(e,i)})(_r(d[2])),n=_r(d[3]),r=_r(d[4]),u=["width","height","borderRadius","animated","baseBgLight","baseBgDark","animationType","pulseDuration","pulseMinOpacity","pulseMaxOpacity"]},1827,[1,207,128,1828,258,1460]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={get registerCallableModule(){return r(d[0]).default},get AccessibilityInfo(){return r(d[1]).default},get ActivityIndicator(){return r(d[2]).default},get Button(){return r(d[3]).default},get DrawerLayoutAndroid(){return r(d[4]).default},get FlatList(){return r(d[5]).default},get Image(){return r(d[6]).default},get ImageBackground(){return r(d[7]).default},get InputAccessoryView(){return r(d[8]).default},get experimental_LayoutConformance(){return r(d[9]).default},get KeyboardAvoidingView(){return r(d[10]).default},get Modal(){return r(d[11]).default},get Pressable(){return r(d[12]).default},get ProgressBarAndroid(){return r(d[13]).default('progress-bar-android-moved',"ProgressBarAndroid has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/progress-bar-android' instead of 'react-native'. See https://github.com/react-native-progress-view/progress-bar-android"),r(d[14]).default},get RefreshControl(){return r(d[15]).default},get SafeAreaView(){return r(d[16]).default},get ScrollView(){return r(d[17]).default},get SectionList(){return r(d[18]).default},get StatusBar(){return r(d[19]).default},get Switch(){return r(d[20]).default},get Text(){return r(d[21]).default},get TextInput(){return r(d[22]).default},get Touchable(){return r(d[23]).default},get TouchableHighlight(){return r(d[24]).default},get TouchableNativeFeedback(){return r(d[25]).default},get TouchableOpacity(){return r(d[26]).default},get TouchableWithoutFeedback(){return r(d[27]).default},get View(){return r(d[28]).default},get VirtualizedList(){return r(d[29]).default},get VirtualizedSectionList(){return r(d[30]).default},get ActionSheetIOS(){return r(d[31]).default},get Alert(){return r(d[32]).default},get Animated(){return r(d[33]).default},get Appearance(){return r(d[34])},get AppRegistry(){return r(d[35]).default},get AppState(){return r(d[36]).default},get BackHandler(){return r(d[37]).default},get Clipboard(){return r(d[13]).default('clipboard-moved',"Clipboard has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-clipboard/clipboard' instead of 'react-native'. See https://github.com/react-native-clipboard/clipboard"),r(d[38]).default},get DeviceInfo(){return r(d[39]).default},get DevMenu(){return r(d[40]).default},get DevSettings(){return r(d[41]).default},get Dimensions(){return r(d[42]).default},get Easing(){return r(d[43]).default},get findNodeHandle(){return r(d[44]).findNodeHandle},get I18nManager(){return r(d[45]).default},get InteractionManager(){return r(d[46]).default},get Keyboard(){return r(d[47]).default},get LayoutAnimation(){return r(d[48]).default},get Linking(){return r(d[49]).default},get LogBox(){return r(d[50]).default},get NativeDialogManagerAndroid(){return r(d[51]).default},get NativeEventEmitter(){return r(d[52]).default},get Networking(){return r(d[53]).default},get PanResponder(){return r(d[54]).default},get PermissionsAndroid(){return r(d[55]).default},get PixelRatio(){return r(d[56]).default},get PushNotificationIOS(){return r(d[13]).default('pushNotificationIOS-moved',"PushNotificationIOS has been extracted from react-native core and will be removed in a future release. It can now be installed and imported from '@react-native-community/push-notification-ios' instead of 'react-native'. See https://github.com/react-native-push-notification/ios"),r(d[57]).default},get Settings(){return r(d[58]).default},get Share(){return r(d[59]).default},get StyleSheet(){return r(d[60]).default},get Systrace(){return r(d[61])},get ToastAndroid(){return r(d[62]).default},get TurboModuleRegistry(){return r(d[63])},get UIManager(){return r(d[64]).default},get unstable_batchedUpdates(){return r(d[44]).unstable_batchedUpdates},get useAnimatedValue(){return r(d[65]).default},get useColorScheme(){return r(d[66]).default},get useWindowDimensions(){return r(d[67]).default},get UTFSequence(){return r(d[68]).default},get Vibration(){return r(d[69]).default},get DeviceEventEmitter(){return r(d[70]).default},get DynamicColorIOS(){return r(d[71]).DynamicColorIOS},get NativeAppEventEmitter(){return r(d[72]).default},get NativeModules(){return r(d[73]).default},get Platform(){return r(d[74]).default},get PlatformColor(){return r(d[75]).PlatformColor},get processColor(){return r(d[76]).default},get requireNativeComponent(){return r(d[77]).default},get RootTagContext(){return r(d[78]).RootTagContext}}},1828,[1829,1835,2050,2058,2174,2118,2135,2175,2176,2183,2185,2186,2195,1935,2051,2144,2177,2149,2171,2197,2202,2059,2207,2210,2214,2071,2072,2215,2029,2216,2217,2218,2000,2073,2221,2014,2224,2037,2228,2231,2232,2234,1910,2096,1849,2192,2092,2155,2156,2237,2242,2004,1986,1974,2243,2245,1909,2248,2251,2254,2032,1832,2257,1841,1884,2258,2259,2180,2260,2261,1836,2264,2009,1842,1838,1883,1881,2056,2034]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(function(){if(!0===g.RN$Bridgeless)return function(t,l){'function'!=typeof l?g.RN$registerCallableModule(t,function(){return l}):g.RN$registerCallableModule(t,l)};var t=r(d[0]).default;return function(l,u){'function'!=typeof u?t.registerCallableModule(l,u):t.registerLazyCallableModule(l,u)}})();e.default=t},1829,[1830]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=new(r(d[0]).default);Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t});e.default=t},1830,[1831]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1])),u=t(r(d[2])),s=t(r(d[3])),n=(function(){function t(){(0,u.default)(this,t),this._lazyCallableModules={},this._queue=[[],[],[],0],this._successCallbacks=new Map,this._failureCallbacks=new Map,this._callID=0,this._lastFlush=0,this._eventLoopStartTime=Date.now(),this._reactNativeMicrotasksCallback=null,this.callFunctionReturnFlushedQueue=this.callFunctionReturnFlushedQueue.bind(this),this.flushedQueue=this.flushedQueue.bind(this),this.invokeCallbackAndReturnFlushedQueue=this.invokeCallbackAndReturnFlushedQueue.bind(this)}return(0,s.default)(t,[{key:"callFunctionReturnFlushedQueue",value:function(t,l,u){var s=this;return this.__guard(function(){s.__callFunction(t,l,u)}),this.flushedQueue()}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(t,l){var u=this;return this.__guard(function(){u.__invokeCallback(t,l)}),this.flushedQueue()}},{key:"flushedQueue",value:function(){var t=this;this.__guard(function(){t.__callReactNativeMicrotasks()});var l=this._queue;return this._queue=[[],[],[],this._callID],l[0].length?l:null}},{key:"getEventLoopRunningTime",value:function(){return Date.now()-this._eventLoopStartTime}},{key:"registerCallableModule",value:function(t,l){this._lazyCallableModules[t]=function(){return l}}},{key:"registerLazyCallableModule",value:function(t,l){var u,s=l;this._lazyCallableModules[t]=function(){return s&&(u=s(),s=null),u}}},{key:"getCallableModule",value:function(t){var l=this._lazyCallableModules[t];return l?l():null}},{key:"callNativeSyncHook",value:function(t,l,u,s,n){return this.processCallbacks(t,l,u,s,n),g.nativeCallSyncHook(t,l,u)}},{key:"processCallbacks",value:function(t,l,u,s,n){(s||n)&&(s&&u.push(this._callID<<1),n&&u.push(this._callID<<1|1),this._successCallbacks.set(this._callID,n),this._failureCallbacks.set(this._callID,s)),this._callID++}},{key:"enqueueNativeCall",value:function(t,l,u,s,n){this.processCallbacks(t,l,u,s,n),this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(u);var o=Date.now();if(g.nativeFlushQueueImmediate&&o-this._lastFlush>=5){var h=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=o,g.nativeFlushQueueImmediate(h)}r(d[4]).counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:u})}},{key:"createDebugLookup",value:function(t,l,u){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){r(d[5]).default.reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){r(d[4]).beginEvent('JSTimers.callReactNativeMicrotasks()');try{null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback()}finally{r(d[4]).endEvent()}}},{key:"__callFunction",value:function(t,l,u){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?r(d[4]).beginEvent(`${t}.${l}(${r(d[6]).default(u)})`):r(d[4]).beginEvent(`${t}.${l}(...)`);try{this.__spy&&this.__spy({type:0,module:t,method:l,args:u});var s=this.getCallableModule(t);if(!s){var n=Object.keys(this._lazyCallableModules),o=n.length,h=n.join(', '),c=!0===g.RN$Bridgeless?'true':'false';r(d[7])(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module has not been registered as callable. Bridgeless Mode: ${c}. Registered callable JavaScript modules (n = ${o}): ${h}.\n A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.`)}s[l]||r(d[7])(!1,`Failed to call into JavaScript module method ${t}.${l}(). Module exists, but the method is undefined.`),s[l].apply(s,u)}finally{r(d[4]).endEvent()}}},{key:"__invokeCallback",value:function(t,u){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var s=t>>>1,n=1&t?this._successCallbacks.get(s):this._failureCallbacks.get(s);try{if(!n)return;this._successCallbacks.delete(s),this._failureCallbacks.delete(s),n.apply(void 0,(0,l.default)(u))}finally{}}}],[{key:"spy",value:function(l){t.prototype.__spy=!0===l?function(t){console.log((0===t.type?'N->JS':'JS->N')+" : "+`${null!=t.module?t.module+'.':''}${t.method}`+`(${JSON.stringify(t.args)})`)}:!1===l?null:l}}])})();e.default=n},1831,[1,32,3,4,1832,1833,1834,39]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.beginAsyncEvent=function(o,f){var v=t;if(c()){t++;var u='function'==typeof o?o():o;g.nativeTraceBeginAsyncSection(n,u,v,f)}return v},e.beginEvent=function(t,o){if(c()){var f='function'==typeof t?t():t;g.nativeTraceBeginSection(n,f,o)}},e.counterEvent=function(t,o){if(c()){var f='function'==typeof t?t():t;g.nativeTraceCounter&&g.nativeTraceCounter(n,f,o)}},e.endAsyncEvent=function(t,o,f){if(c()){var v='function'==typeof t?t():t;g.nativeTraceEndAsyncSection(n,v,o,f)}},e.endEvent=function(t){c()&&g.nativeTraceEndSection(n,t)},e.isEnabled=c,e.setEnabled=function(n){};var n=131072,t=0;function c(){return g.nativeTraceIsTracing?g.nativeTraceIsTracing(n):Boolean(g.__RCTProfileIsProfiling)}},1832,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=g.ErrorUtils},1833,[]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createStringifySafeWithLimits=n,_e.default=void 0;var e=t(r(d[1]));function n(t){var n=t.maxDepth,f=void 0===n?Number.POSITIVE_INFINITY:n,u=t.maxStringLimit,o=void 0===u?Number.POSITIVE_INFINITY:u,l=t.maxArrayLimit,c=void 0===l?Number.POSITIVE_INFINITY:l,s=t.maxObjectKeysLimit,y=void 0===s?Number.POSITIVE_INFINITY:s,h=[];function I(t,n){for(;h.length&&this!==h[0];)h.shift();if('string'==typeof n){var u='...(truncated)...';return n.length>o+17?n.substring(0,o)+u:n}if('object'!=typeof n||null===n)return n;var l=n;if(Array.isArray(n))h.length>=f?l=`[ ... array with ${n.length} values ... ]`:n.length>c&&(l=n.slice(0,c).concat([`... extra ${n.length-c} values truncated ...`]));else{(0,e.default)('object'==typeof n,'This was already found earlier');var s=Object.keys(n);if(h.length>=f)l=`{ ... object with ${s.length} keys ... }`;else if(s.length>y){for(var I of(l={},s.slice(0,y)))l[I]=n[I];l['...(truncated keys)...']=s.length-y}}return h.unshift(l),l}return function(t){if(void 0===t)return'undefined';if(null===t)return'null';if('function'==typeof t)try{return t.toString()}catch(t){return'[function unknown]'}else{if(t instanceof Error)return t.name+': '+t.message;try{var e=JSON.stringify(t,I);return void 0===e?'["'+typeof t+'" failed to stringify]':e}catch(e){if('function'==typeof t.toString)try{return t.toString()}catch(t){}}}return'["'+typeof t+'" failed to stringify]'}}var f=n({maxDepth:10,maxStringLimit:100,maxArrayLimit:50,maxObjectKeysLimit:50});_e.default=f},1834,[1,39]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(r(d[1])),l=n(r(d[2])),u=n(r(d[3])),o=n(r(d[4])),s=n(r(d[5])),c='android'===l.default.OS?new Map([['change','touchExplorationDidChange'],['reduceMotionChanged','reduceMotionDidChange'],['highTextContrastChanged','highTextContrastDidChange'],['screenReaderChanged','touchExplorationDidChange'],['accessibilityServiceChanged','accessibilityServiceDidChange'],['invertColorsChanged','invertColorDidChange'],['grayscaleChanged','grayscaleModeDidChange']]):new Map([['announcementFinished','announcementFinished'],['boldTextChanged','boldTextChanged'],['change','screenReaderChanged'],['grayscaleChanged','grayscaleChanged'],['invertColorsChanged','invertColorsChanged'],['reduceMotionChanged','reduceMotionChanged'],['reduceTransparencyChanged','reduceTransparencyChanged'],['screenReaderChanged','screenReaderChanged'],['darkerSystemColorsChanged','darkerSystemColorsChanged']]),f={isBoldTextEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise(function(n,t){null!=s.default?s.default.getCurrentBoldTextState(n,t):t(null)})},isGrayscaleEnabled:function(){return'android'===l.default.OS?new Promise(function(n,t){null!=(null==o.default?void 0:o.default.isGrayscaleEnabled)?o.default.isGrayscaleEnabled(n):t(null)}):new Promise(function(n,t){null!=s.default?s.default.getCurrentGrayscaleState(n,t):t(null)})},isInvertColorsEnabled:function(){return'android'===l.default.OS?new Promise(function(n,t){null!=(null==o.default?void 0:o.default.isInvertColorsEnabled)?o.default.isInvertColorsEnabled(n):t(null)}):new Promise(function(n,t){null!=s.default?s.default.getCurrentInvertColorsState(n,t):t(null)})},isReduceMotionEnabled:function(){return new Promise(function(n,t){'android'===l.default.OS?null!=o.default?o.default.isReduceMotionEnabled(n):t(null):null!=s.default?s.default.getCurrentReduceMotionState(n,t):t(null)})},isHighTextContrastEnabled:function(){return new Promise(function(n,t){if('android'!==l.default.OS)return Promise.resolve(!1);null!=(null==o.default?void 0:o.default.isHighTextContrastEnabled)?o.default.isHighTextContrastEnabled(n):t(null)})},isDarkerSystemColorsEnabled:function(){return new Promise(function(n,t){if('android'===l.default.OS)return Promise.resolve(!1);null!=(null==s.default?void 0:s.default.getCurrentDarkerSystemColorsState)?s.default.getCurrentDarkerSystemColorsState(n,t):t(null)})},prefersCrossFadeTransitions:function(){return new Promise(function(n,t){if('android'===l.default.OS)return Promise.resolve(!1);null!=(null==s.default?void 0:s.default.getCurrentPrefersCrossFadeTransitionsState)?s.default.getCurrentPrefersCrossFadeTransitionsState(n,t):t(null)})},isReduceTransparencyEnabled:function(){return'android'===l.default.OS?Promise.resolve(!1):new Promise(function(n,t){null!=s.default?s.default.getCurrentReduceTransparencyState(n,t):t(null)})},isScreenReaderEnabled:function(){return new Promise(function(n,t){'android'===l.default.OS?null!=o.default?o.default.isTouchExplorationEnabled(n):t(null):null!=s.default?s.default.getCurrentVoiceOverState(n,t):t(null)})},isAccessibilityServiceEnabled:function(){return new Promise(function(n,t){'android'===l.default.OS&&null!=o.default&&null!=o.default.isAccessibilityServiceEnabled?o.default.isAccessibilityServiceEnabled(n):t(null)})},addEventListener:function(n,l){var u=c.get(n);return null==u?{remove:function(){}}:t.default.addListener(u,l)},setAccessibilityFocus:function(n){(0,u.default)(n,'focus')},sendAccessibilityEvent:function(n,t){'ios'===l.default.OS&&'click'===t||(0,r(d[6]).sendAccessibilityEvent)(n,t)},announceForAccessibility:function(n){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null==s.default||s.default.announceForAccessibility(n)},announceForAccessibilityWithOptions:function(n,t){'android'===l.default.OS?null==o.default||o.default.announceForAccessibility(n):null!=s.default&&s.default.announceForAccessibilityWithOptions?null==s.default||s.default.announceForAccessibilityWithOptions(n,t):null==s.default||s.default.announceForAccessibility(n)},getRecommendedTimeoutMillis:function(n){return'android'===l.default.OS?new Promise(function(t,l){null!=o.default&&o.default.getRecommendedTimeoutMillis?o.default.getRecommendedTimeoutMillis(n,t):t(n)}):Promise.resolve(n)}};e.default=f},1835,[1,1836,1838,1844,1847,1845,1849]); -__d(function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),r=t(_r(d[3])),u=t(_r(d[4])),o=t(_r(d[5])),c=t(_r(d[6]));function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var l=(function(t){function l(){return(0,e.default)(this,l),t=this,n=l,o=arguments,n=(0,u.default)(n),(0,r.default)(t,f()?Reflect.construct(n,o||[],(0,u.default)(t).constructor):n.apply(t,o));var t,n,o}return(0,c.default)(l,t),(0,n.default)(l,[{key:"emit",value:function(t){(0,_r(d[8]).beginEvent)(function(){return`RCTDeviceEventEmitter.emit#${t}`});for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1?u-1:0),s=1;s0?l[l.length-1]:null,c=l.length>1?l[l.length-2]:null,v='function'==typeof s,h='function'==typeof c;h&&r(d[2])(v,'Cannot have a non-function arg after a function arg.');var y=v?s:null,C=h?c:null,b=v+h,M=l.slice(0,l.length-b);if('sync'===o)return r(d[3]).default.callNativeSyncHook(n,t,M,C,y);r(d[3]).default.enqueueNativeCall(n,t,M,C,y)},u.type=o,u}function f(n,t){return-1!==n.indexOf(t)}function s(n,t){return Object.assign(t,n||{})}g.__fbGenNativeModule=o;var c={};if(g.nativeModuleProxy)c=g.nativeModuleProxy;else{var v=g.__fbBatchedBridgeConfig;r(d[2])(v,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var h=r(d[4]).default;(v.remoteModuleConfig||[]).forEach(function(n,t){var l=o(n,t);l&&(l.module?c[l.name]=l.module:h(c,l.name,{get:function(){return u(l.name,t)}}))})}e.default=c},1842,[1,19,39,1830,1843]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t,n,u){var l,f=u.get,o=!1!==u.enumerable,b=!1!==u.writable,c=!1;function s(u){l=u,c=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:b})}Object.defineProperty(t,n,{get:function(){return c||(c=!0,s(f())),l},set:s,configurable:!0,enumerable:o})}},1843,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));e.default=function(t,f){'focus'===f&&u.default&&u.default.setAccessibilityFocus(t)}},1844,[1,1845]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1845,[1846]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('AccessibilityManager')},1846,[1841]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1847,[1848]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('AccessibilityInfo')},1848,[1841]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.keys(r(d[0])).forEach(function(n){"default"!==n&&"__esModule"!==n&&(n in e&&e[n]===r(d[0])[n]||Object.defineProperty(e,n,{enumerable:!0,get:function(){return r(d[0])[n]}}))})},1849,[1850]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.dispatchCommand=function(n,t,o){return!0===g.RN$Bridgeless?r(d[0]).default.dispatchCommand(n,t,o):r(d[2]).default.dispatchCommand(n,t,o)},e.findHostInstance_DEPRECATED=function(n){return r(d[2]).default.findHostInstance_DEPRECATED(n)},e.findNodeHandle=function(n){return r(d[2]).default.findNodeHandle(n)},e.getNodeFromInternalInstanceHandle=function(n){return r(d[0]).default.getNodeFromInternalInstanceHandle(n)},e.getPublicInstanceFromInternalInstanceHandle=function(n){return r(d[0]).default.getPublicInstanceFromInternalInstanceHandle(n)},e.getPublicInstanceFromRootTag=function(n){return r(d[0]).default.getPublicInstanceFromRootTag(n)},e.isChildPublicInstance=function(n,t){return r(d[2]).default.isChildPublicInstance(n,t)},e.isProfilingRenderer=function(){return Boolean(!1)},e.renderElement=function(n){var t=n.element,o=n.rootTag,u=n.useFabric,c=n.useConcurrentRoot;u?r(d[0]).default.render(t,o,null,c,{onCaughtError:r(d[1]).onCaughtError,onUncaughtError:r(d[1]).onUncaughtError,onRecoverableError:r(d[1]).onRecoverableError}):r(d[2]).default.render(t,o,void 0,{onCaughtError:r(d[1]).onCaughtError,onUncaughtError:r(d[1]).onUncaughtError,onRecoverableError:r(d[1]).onRecoverableError})},e.sendAccessibilityEvent=function(n,t){return r(d[2]).default.sendAccessibilityEvent(n,t)},e.unmountComponentAtNodeAndRemoveContainer=function(n){var t=n;r(d[2]).default.unmountComponentAtNodeAndRemoveContainer(t)},e.unstable_batchedUpdates=function(n,t){return r(d[2]).default.unstable_batchedUpdates(n,t)}},1850,[1851,2047,2048]); -__d(function(g,r,i,a,m,e,d){'use strict';var t;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,t=r(d[0]),g.RN$stopSurface=t.stopSurface,!0!==g.RN$Bridgeless&&r(d[1]).BatchedBridge.registerCallableModule('ReactFabric',t);e.default=t},1851,[1852,2038]); -__d(function(e,n,t,l,r,a,i){"use strict";n(i[0]);var u=n(i[1]),o=Array.isArray,s=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,c=Symbol.for("react.element"),f=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),h=Symbol.for("react.strict_mode"),m=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),b=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),w=Symbol.for("react.memo"),P=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var E=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function C(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=R&&e[R]||e["@@iterator"])?e:null}var _,T,x=Object.assign;function N(e){if(void 0===_)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);_=n&&n[1]||"",T=-1)":-1--r||o[l]!==s[r]){var c="\n"+o[l].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=l&&0<=r);break}}}finally{L=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?N(t):""}function F(e){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return e=I(e.type,!1);case 11:return e=I(e.type.render,!1);case 1:return e=I(e.type,!0);default:return""}}function U(e){try{var n="";do{n+=F(e),e=e.return}while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var D=Symbol.for("react.client.reference");function j(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===D?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case y:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(n=e.displayName||null)?n:j(e.type)||"Memo";case P:n=e._payload,e=e._init;try{return j(e(n))}catch(e){}}return null}var A=!1,M=null,Q=null,H=null,O=null;function B(e,n,t){e.currentTarget=O(t);try{n(e)}catch(e){A||(A=!0,M=e)}e.currentTarget=null}function V(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(o(n))throw Error("Invalid `event`.");return e.currentTarget=n?O(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}function W(){return!0}function $(){return!1}function q(e,n,t,l){for(var r in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(r)&&((n=e[r])?this[r]=n(t):"target"===r?this.target=l:this[r]=t[r]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?W:$,this.isPropagationStopped=$,this}function Y(e,n,t,l){if(this.eventPool.length){var r=this.eventPool.pop();return this.call(r,e,n,t,l),r}return new this(e,n,t,l)}function X(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function G(e){e.getPooled=Y,e.eventPool=[],e.release=X}x(q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=W)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=W)},persist:function(){this.isPersistent=W},isPersistent:$,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$,this._dispatchInstances=this._dispatchListeners=null}}),q.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},q.extend=function(e){function n(){}function t(){return l.apply(this,arguments)}var l=this;n.prototype=l.prototype;var r=new n;return x(r,t.prototype),t.prototype=r,t.prototype.constructor=t,t.Interface=x({},l.Interface,e),t.extend=l.extend,G(t),t},G(q);var J=q.extend({touchHistory:function(){return null}});function K(e){return"topTouchStart"===e}function Z(e){return"topTouchMove"===e}var ee=["topTouchStart"],ne=["topTouchMove"],te=["topTouchCancel","topTouchEnd"],le=[],re={touchBank:le,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function ae(e){return e.timeStamp||e.timestamp}function ie(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function ue(e){var n=ie(e),t=le[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=ae(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=ae(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=ae(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:ae(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:ae(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:ae(e)},le[n]=t),re.mostRecentTimeStamp=ae(e)}function oe(e){var n=le[ie(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=ae(e),re.mostRecentTimeStamp=ae(e))}function se(e){var n=le[ie(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=ae(e),re.mostRecentTimeStamp=ae(e))}var ce,fe={instrument:function(e){ce=e},recordTouchTrack:function(e,n){if(null!=ce&&ce(e,n),Z(e))n.changedTouches.forEach(oe);else if(K(e))n.changedTouches.forEach(ue),re.numberActiveTouches=n.touches.length,1===re.numberActiveTouches&&(re.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(se),re.numberActiveTouches=n.touches.length,1===re.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!Ne[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var l in Ne[t]=n,t=n.eventTypes){var r=void 0,a=t[l];if(Le.hasOwnProperty(l))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+l+"`.");Le[l]=a;var i=a.phasedRegistrationNames;if(i){for(r in i)i.hasOwnProperty(r)&&xe(i[r],n);r=!0}else a.registrationName?(xe(a.registrationName,n),r=!0):r=!1;if(!r)throw Error("EventPluginRegistry: Failed to publish event `"+l+"` for plugin `"+e+"`.")}}}}function xe(e,n){if(Ie[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");Ie[e]=n}var Ne=[],Le={},Ie={};function Fe(e,n){if(null===(e=e.stateNode))return null;if(null===(e=Q(e)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");return e}var Ue=n(i[2]).ReactNativeViewConfigRegistry.customBubblingEventTypes,De=n(i[2]).ReactNativeViewConfigRegistry.customDirectEventTypes;function je(e,n,t){(n=Fe(e,t.dispatchConfig.phasedRegistrationNames[n]))&&(t._dispatchListeners=pe(t._dispatchListeners,n),t._dispatchInstances=pe(t._dispatchInstances,e))}function Ae(e,n,t,l){for(var r=[];e;){r.push(e);do{e=e.return}while(e&&5!==e.tag);e=e||null}for(e=r.length;0>>=0)?32:31-(pn(e)/hn|0)|0},pn=Math.log,hn=Math.LN2;var mn=128,gn=4194304;function vn(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function bn(e,n){var t=e.pendingLanes;if(0===t)return 0;var l=0,r=e.suspendedLanes,a=e.pingedLanes,i=e.warmLanes;e=0!==e.finishedLanes;var u=134217727&t;return 0!==u?0!==(t=u&~r)?l=vn(t):0!==(a&=u)?l=vn(a):e||0!==(i=u&~i)&&(l=vn(i)):0!==(u=t&~r)?l=vn(u):0!==a?l=vn(a):e||0!==(i=t&~i)&&(l=vn(i)),0===l?0:0!==n&&n!==l&&0===(n&r)&&((r=l&-l)>=(i=n&-n)||32===r&&4194176&i)?n:l}function yn(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function Sn(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function kn(){var e=mn;return!(4194176&(mn<<=1))&&(mn=128),e}function wn(){var e=gn;return!(62914560&(gn<<=1))&&(gn=4194304),e}function Pn(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function En(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zn(e,n,t,l,r,a){var i=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,o=e.expirationTimes,s=e.hiddenUpdates;for(t=i&~t;0Fn||(e.current=In[Fn],In[Fn]=null,Fn--)}function jn(e,n){Fn++,In[Fn]=e.current,e.current=n}var An={};var Mn="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},Qn=new WeakMap;function Hn(e,n){if("object"==typeof e&&null!==e){var t=Qn.get(e);return void 0!==t?t:(n={value:e,source:n,stack:U(n)},Qn.set(e,n),n)}return{value:e,source:n,stack:U(n)}}var On=Un(null),Bn=Un(null),Vn=Un(null),Wn=Un(null);function $n(e,n){jn(Vn,n),jn(Bn,e),jn(On,null),e=Uo,Dn(On),jn(On,e)}function qn(){Dn(On),Dn(Bn),Dn(Vn)}function Yn(e){null!==e.memoizedState&&jn(Wn,e);var n=On.current;n!=n&&(jn(Bn,e),jn(On,n))}function Xn(e){Bn.current===e&&(Dn(On),Dn(Bn)),Wn.current===e&&(Dn(Wn),Bo._currentValue2=null)}var Gn=null,Jn=[],Kn=0,Zn=0;function et(){for(var e=Kn,n=Zn=Kn=0;nd?(p=f,f=null):p=f.sibling;var h=g(r,f,u[d],o);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(r,f),i=a(h,i,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===u.length)return t(r,f),s;if(null===f){for(;dd?(p=f,f=null):p=f.sibling;var b=g(r,f,h.value,o);if(null===b){null===f&&(f=p);break}e&&f&&null===b.alternate&&n(r,f),i=a(b,i,d),null===c?s=b:c.sibling=b,c=b,f=p}if(h.done)return t(r,f),s;if(null===f){for(;!h.done;d++,h=u.next())null!==(h=m(r,h.value,o))&&(i=a(h,i,d),null===c?s=h:c.sibling=h,c=h);return s}for(f=l(f);!h.done;d++,h=u.next())null!==(h=v(f,r,d,h.value,o))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),i=a(h,i,d),null===c?s=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return n(r,e)}),s}function k(e,l,a,u){if("object"==typeof a&&null!==a&&a.type===p&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case f:e:{for(var s=a.key;null!==l;){if(l.key===s){if((s=a.type)===p){if(7===l.tag){t(e,l.sibling),(u=r(l,a.props.children)).return=e,e=u;break e}}else if(l.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===P&&Zt(s)===l.type){t(e,l.sibling),Jt(u=r(l,a.props),a),u.return=e,e=u;break e}t(e,l);break}n(e,l),l=l.sibling}a.type===p?((u=oo(a.props.children,e.mode,u,a.key)).return=e,e=u):(Jt(u=uo(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return i(e);case d:e:{for(s=a.key;null!==l;){if(l.key===s){if(4===l.tag&&l.stateNode.containerInfo===a.containerInfo&&l.stateNode.implementation===a.implementation){t(e,l.sibling),(u=r(l,a.children||[])).return=e,e=u;break e}t(e,l);break}n(e,l),l=l.sibling}(u=fo(a,e.mode,u)).return=e,e=u}return i(e);case P:return k(e,l,a=(s=a._init)(a._payload),u)}if(o(a))return y(e,l,a,u);if(C(a)){if("function"!=typeof(s=C(a)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");return S(e,l,a=s.call(a),u)}if("function"==typeof a.then)return k(e,l,Gt(a),u);if(a.$$typeof===b)return k(e,l,Ma(e,a),u);Kt(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a||"bigint"==typeof a?(a=""+a,null!==l&&6===l.tag?(t(e,l.sibling),(u=r(l,a)).return=e,e=u):(t(e,l),(u=co(a,e.mode,u)).return=e,e=u),i(e)):t(e,l)}return function(e,n,t,l){try{Xt=0;var r=k(e,n,t,l);return Yt=null,r}catch(n){if(n===Mt||!(1&e.mode)&&"object"==typeof n&&null!==n&&"function"==typeof n.then)throw n;var a=lo(29,n,null,e.mode);return a.lanes=l,a.return=e,a}}}var nl=el(!0),tl=el(!1),ll=Un(null),rl=Un(0);function al(e,n){jn(rl,e=tu),jn(ll,n),tu=e|n.baseLanes}function il(){jn(rl,tu),jn(ll,ll.current)}function ul(){tu=rl.current,Dn(ll),Dn(rl)}var ol=Un(null),sl=null;function cl(e){var n=e.alternate;jn(hl,1&hl.current),jn(ol,e),null===sl&&(null===n||null!==ll.current||null!==n.memoizedState)&&(sl=e)}function fl(e){if(22===e.tag){if(jn(hl,hl.current),jn(ol,e),null===sl){var n=e.alternate;null!==n&&null!==n.memoizedState&&(sl=e)}}else dl()}function dl(){jn(hl,hl.current),jn(ol,ol.current)}function pl(e){Dn(ol),sl===e&&(sl=null),Dn(hl)}var hl=Un(0);function ml(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||bo()||bo()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(128&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var gl=0,vl=null,bl=null,yl=null,Sl=!1,kl=!1,wl=!1,Pl=0,El=null,zl=0;function Rl(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function Cl(e,n){if(null===n)return!1;for(var t=0;ta?a:8;var i,u,o,c=s.T,f={};s.T=f,Lr(e,!1,n,t);try{var d=r(),p=s.S;if(null!==p&&p(f,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)Nr(e,n,(i=l,u=[],o={status:"pending",value:null,reason:null,then:function(e){u.push(e)}},d.then(function(){o.status="fulfilled",o.value=i;for(var e=0;epu&&(t.flags|=128,r=!0,ni(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ml(u))){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ei(t,e),ni(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return ti(t),null}else 2*n(i[3]).unstable_now()-a.renderingStartTime>pu&&536870912!==l&&(t.flags|=128,r=!0,ni(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[3]).unstable_now(),t.sibling=null,e=hl.current,jn(hl,r?1&e|2:1&e),t):(ti(t),null);case 22:case 23:return pl(t),ul(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r&&1&t.mode?!!(536870912&l)&&!(128&t.flags)&&(ti(t),6&t.subtreeFlags&&(t.flags|=8192)):ti(t),null!==(r=t.updateQueue)&&ei(t,r.retryQueue),r=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),l=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),null!==e&&Dn($a),null;case 24:return r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),La(Oa),ti(t),null;case 25:case 29:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function ri(e,n){switch(n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return La(Oa),qn(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return Xn(n),null;case 13:if(pl(n),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return Dn(hl),null;case 4:return qn(),null;case 10:return La(n.type),null;case 22:case 23:return pl(n),ul(),null!==e&&Dn($a),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return La(Oa),null;default:return null}}function ai(e,n){switch(n.tag){case 3:La(Oa),qn();break;case 26:case 27:case 5:Xn(n);break;case 4:qn();break;case 13:pl(n);break;case 19:Dn(hl);break;case 10:La(n.type);break;case 22:case 23:pl(n),ul(),null!==e&&Dn($a);break;case 24:La(Oa)}}function ii(e,n){try{var t=n.updateQueue,l=null!==t?t.lastEffect:null;if(null!==l){var r=l.next;t=r;do{if((t.tag&e)===e){l=void 0;var a=t.create,i=t.inst;l=a(),i.destroy=l}t=t.next}while(t!==r)}}catch(e){Gu(n,n.return,e)}}function ui(e,n,t){try{var l=n.updateQueue,r=null!==l?l.lastEffect:null;if(null!==r){var a=r.next;l=a;do{if((l.tag&e)===e){var i=l.inst,u=i.destroy;if(void 0!==u){i.destroy=void 0,r=n;var o=t;try{u()}catch(e){Gu(r,o,e)}}}l=l.next}while(l!==a)}}catch(e){Gu(n,n.return,e)}}function oi(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{Dt(n,t)}catch(n){Gu(e,e.return,n)}}}function si(e,n,t){t.props=$r(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){Gu(e,n,t)}}function ci(e,n){try{var t=e.ref;if(null!==t){var l=e.stateNode;switch(e.tag){case 26:case 27:case 5:var r=jo(l);break;default:r=l}"function"==typeof t?e.refCleanup=t(r):t.current=r}}catch(t){Gu(e,n,t)}}function fi(e,n){var t=e.ref,l=e.refCleanup;if(null!==t)if("function"==typeof l)try{l()}catch(t){Gu(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){Gu(e,n,t)}else t.current=null}function di(e){try{throw Error("The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue.")}catch(n){Gu(e,e.return,n)}}var pi=!1,hi=!1,mi="function"==typeof WeakSet?WeakSet:Set,gi=null,vi=!1;function bi(e,n){for(gi=n;null!==gi;)if(n=(e=gi).child,1028&e.subtreeFlags&&null!==n)n.return=e,gi=n;else for(;null!==gi;){var t=(e=gi).alternate;switch(n=e.flags,e.tag){case 0:case 11:case 15:case 3:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&n&&null!==t){n=void 0;var l=e,r=t.memoizedProps;t=t.memoizedState;var a=l.stateNode;try{var i=$r(l.type,r,(l.elementType,l.type));n=a.getSnapshotBeforeUpdate(i,t),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){Gu(l,l.return,e)}}break;default:if(1024&n)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(n=e.sibling)){n.return=e.return,gi=n;break}gi=e.return}return i=vi,vi=!1,i}function yi(e,n,t){var l=t.flags;switch(t.tag){case 0:case 11:case 15:_i(e,t),4&l&&ii(5,t);break;case 1:if(_i(e,t),4&l)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){Gu(t,t.return,e)}else{var r=$r(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(r,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Gu(t,t.return,e)}}64&l&&oi(t),512&l&&ci(t,t.return);break;case 3:if(_i(e,t),64&l&&null!==(l=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 27:case 5:e=jo(t.child.stateNode);break;case 1:e=t.child.stateNode}try{Dt(l,e)}catch(e){Gu(t,t.return,e)}}break;case 26:case 27:case 5:_i(e,t),null===n&&4&l&&di(t),512&l&&ci(t,t.return);break;case 12:case 13:default:_i(e,t);break;case 22:if(1&t.mode){if(!(r=null!==t.memoizedState||pi)){n=null!==n&&null!==n.memoizedState||hi;var a=pi,i=hi;pi=r,(hi=n)&&!i?xi(e,t,!!(8772&t.subtreeFlags)):_i(e,t),pi=a,hi=i}}else _i(e,t);512&l&&("manual"===t.memoizedProps.mode?ci(t,t.return):fi(t,t.return))}}function Si(e){var n=e.alternate;null!==n&&(e.alternate=null,Si(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ki(e,n,t){for(t=t.child;null!==t;)wi(e,n,t),t=t.sibling}function wi(e,n,t){if(sn&&"function"==typeof sn.onCommitFiberUnmount)try{sn.onCommitFiberUnmount(on,t)}catch(e){}switch(t.tag){case 26:case 27:case 5:hi||fi(t,n);case 6:ki(e,n,t);break;case 18:break;case 4:zo(),ki(e,n,t);break;case 0:case 11:case 14:case 15:hi||ui(2,t,n),hi||ui(4,t,n),ki(e,n,t);break;case 1:if(!hi){fi(t,n);var l=t.stateNode;"function"==typeof l.componentWillUnmount&&si(t,n,l)}ki(e,n,t);break;case 21:ki(e,n,t);break;case 22:hi||fi(t,n),1&t.mode?(hi=(l=hi)||null!==t.memoizedState,ki(e,n,t),hi=l):ki(e,n,t);break;default:ki(e,n,t)}}function Pi(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new mi),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new mi),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ei(e,n){var t=Pi(e);n.forEach(function(n){var l=no.bind(null,e,n);t.has(n)||(t.add(n),n.then(l,l))})}function zi(e,n){var t=n.deletions;if(null!==t)for(var l=0;lt?32:t,s.T=null,null===vu)var a=!1;else{t=Su,Su=null;var i=vu,u=bu;if(vu=null,bu=0,6&qi)throw Error("Cannot flush passive effects while already rendering.");var o=qi;if(qi|=4,Oi(i.current),Fi(i,i.current,u,t),qi=o,pt(0,!1),sn&&"function"==typeof sn.onPostCommitFiberRoot)try{sn.onPostCommitFiberRoot(on,i)}catch(e){}a=!0}return a}finally{Ao=r,s.T=l,qu(e,n)}}return!1}function Xu(e,n,t){n=Hn(t,n),null!==(e=Tt(e,n=Jr(e.stateNode,n,2),2))&&(En(e,2),dt(e))}function Gu(e,n,t){if(3===e.tag)Xu(e,e,t);else for(;null!==n;){if(3===n.tag){Xu(n,e,t);break}if(1===n.tag){var l=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof l.componentDidCatch&&(null===mu||!mu.has(l))){e=Hn(t,e),null!==(l=Tt(n,t=Kr(2),2))&&(Zr(t,l,n,e),En(l,2),dt(l));break}}n=n.return}}function Ju(e,n,t){var l=e.pingCache;if(null===l){l=e.pingCache=new $i;var r=new Set;l.set(n,r)}else void 0===(r=l.get(n))&&(r=new Set,l.set(n,r));r.has(t)||(nu=!0,r.add(t),e=Ku.bind(null,e,n,t),n.then(e,e))}function Ku(e,t,l){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Yi===e&&(Gi&l)===l&&(4===lu||3===lu&&(62914560&Gi)===Gi&&300>n(i[3]).unstable_now()-du?!(2&qi)&&Lu(e,0):iu|=l,ou===Gi&&(ou=0)),dt(e)}function Zu(e,n){0===n&&(n=1&e.mode?wn():2),null!==(e=lt(e,n))&&(En(e,n),dt(e))}function eo(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),Zu(e,t)}function no(e,n){var t=0;switch(e.tag){case 13:var l=e.stateNode,r=e.memoizedState;null!==r&&(t=r.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==l&&l.delete(n),Zu(e,t)}function to(e,n,t,l){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function lo(e,n,t,l){return new to(e,n,t,l)}function ro(e){return!(!(e=e.prototype)||!e.isReactComponent)}function ao(e,n){var t=e.alternate;return null===t?((t=lo(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=31457280&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function io(e,n){e.flags&=31457282;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function uo(e,n,t,l,r,a){var i=0;if(l=e,"function"==typeof e)ro(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case p:return oo(t.children,r,a,n);case h:i=8,1&(r|=8)&&(r|=16);break;case m:return(e=lo(12,t,n,2|r)).elementType=m,e.lanes=a,e;case S:return(e=lo(13,t,n,r)).elementType=S,e.lanes=a,e;case k:return(e=lo(19,t,n,r)).elementType=k,e.lanes=a,e;case E:return so(t,r,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case g:case b:i=10;break e;case v:i=9;break e;case y:i=11;break e;case w:i=14;break e;case P:i=16,l=null;break e}i=29,t=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null===e?"null":typeof e)+"."),l=null}return(n=lo(i,t,n,r)).elementType=e,n.type=l,n.lanes=a,n}function oo(e,n,t,l){return(e=lo(7,e,l,n)).lanes=t,e}function so(e,n,t,l){(e=lo(22,e,l,n)).elementType=E,e.lanes=t;var r={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=r._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(!(2&r._pendingVisibility)){var n=lt(e,2);null!==n&&(r._pendingVisibility|=2,zu(n,e,2))}},attach:function(){var e=r._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(2&r._pendingVisibility){var n=lt(e,2);null!==n&&(r._pendingVisibility&=-3,zu(n,e,2))}}};return e.stateNode=r,e}function co(e,n,t){return(e=lo(6,e,null,n)).lanes=t,e}function fo(e,n,t){return(n=lo(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function po(e,n,t,l,r,a,i,u){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Pn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0),this.hiddenUpdates=Pn(null),this.identifierPrefix=l,this.onUncaughtError=r,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function ho(e,n,t){var l=3=(0,i.default)(this,l)[l])return null;return this[t]}},{key:Symbol.iterator,value:function(){return(0,r(d[5]).createValueIterator)(this)}}])})()},1860,[1,3,4,45,46,1861]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createEntriesIterator=function*(t){for(var n=0;n=(0,l.default)(this,i)[i])return null;return this[t]}},{key:"namedItem",value:function(t){return null}},{key:Symbol.iterator,value:function(){return(0,r(d[5]).createValueIterator)(this)}}])})()},1862,[1,3,4,45,46,1861]); -__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createNodeList=function(t){return new f(t)},e.default=void 0;var u=t(r(d[1])),n=t(r(d[2])),i=t(r(d[3])),l=(0,t(r(d[4])).default)("length"),f=e.default=(function(){return(0,n.default)(function t(n){(0,u.default)(this,t),Object.defineProperty(this,l,{writable:!0,value:void 0});for(var f=0;f=(0,i.default)(this,l)[l])return null;return this[t]}},{key:"entries",value:function(){return(0,r(d[5]).createEntriesIterator)(this)}},{key:"forEach",value:function(t,u){for(var n=0;n<(0,i.default)(this,l)[l];n++)null==u?t(this[n],n,this):t.call(u,this[n],n,this)}},{key:"keys",value:function(){return(0,r(d[5]).createKeyIterator)(this)}},{key:"values",value:function(){return(0,r(d[5]).createValueIterator)(this)}},{key:Symbol.iterator,value:function(){return(0,r(d[5]).createValueIterator)(this)}}])})()},1863,[1,3,4,45,46,1861]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_e.getChildNodes=N;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),o=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,u,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,i)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((u=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(u.get||u.set)?o(i,l,u):i[l]=e[l]);return i})(e,t)})(_r(d[4])),u=e(_r(d[5]));var i,l=_e.default=(function(){function e(t,r){(0,n.default)(this,e),(0,_r(d[6]).setOwnerDocument)(this,r),(0,_r(d[6]).setInstanceHandle)(this,t)}return(0,r.default)(e,[{key:"childNodes",get:function(){var e=N(this);return(0,_r(d[7]).createNodeList)(e)}},{key:"firstChild",get:function(){var e=N(this);return 0===e.length?null:e[0]}},{key:"isConnected",get:function(){var e=(0,_r(d[6]).getNativeNodeReference)(this);return null!=e&&u.default.isConnected(e)}},{key:"lastChild",get:function(){var e=N(this);return 0===e.length?null:e[e.length-1]}},{key:"nextSibling",get:function(){var e=s(this),n=(0,t.default)(e,2),r=n[0],o=n[1];return o===r.length-1?null:r[o+1]}},{key:"nodeName",get:function(){throw new TypeError('`nodeName` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"nodeType",get:function(){throw new TypeError('`nodeType` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"nodeValue",get:function(){throw new TypeError('`nodeValue` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"ownerDocument",get:function(){return(0,_r(d[6]).getOwnerDocument)(this)}},{key:"parentElement",get:function(){var e=this.parentNode;return e instanceof c()?e:null}},{key:"parentNode",get:function(){var e,t=(0,_r(d[6]).getNativeNodeReference)(this);if(null==t)return null;var n=u.default.getParentNode(t);return null==n?null:null!=(e=(0,_r(d[6]).getPublicInstanceFromInstanceHandle)(n))?e:null}},{key:"previousSibling",get:function(){var e=s(this),n=(0,t.default)(e,2),r=n[0],o=n[1];return 0===o?null:r[o-1]}},{key:"textContent",get:function(){throw new TypeError('`textContent` is abstract and must be implemented in a subclass of `ReadOnlyNode`')}},{key:"compareDocumentPosition",value:function(t){if(t===this)return 0;var n=(0,_r(d[6]).getNativeNodeReference)(this),r=(0,_r(d[6]).getNativeNodeReference)(t);return null==n||null==r?e.DOCUMENT_POSITION_DISCONNECTED:u.default.compareDocumentPosition(n,r)}},{key:"contains",value:function(t){return t===this||0!==(this.compareDocumentPosition(t)&e.DOCUMENT_POSITION_CONTAINED_BY)}},{key:"getRootNode",value:function(){var e;if(o.enableDOMDocumentAPI())return this.isConnected&&null!=(e=this.ownerDocument)?e:this;for(var t=this,n=this.parentNode;null!=n;)t=n,n=n.parentNode;return t}},{key:"hasChildNodes",value:function(){return N(this).length>0}}])})();function N(e){var t=(0,_r(d[6]).getNativeNodeReference)(e);return null==t?[]:u.default.getChildNodes(t).map(function(e){return(0,_r(d[6]).getPublicInstanceFromInstanceHandle)(e)}).filter(Boolean)}function s(e){var t=e.parentNode;if(null==t)return[[e],0];var n=N(t),r=n.indexOf(e);if(-1===r)throw new TypeError("Missing node in parent's child node list");return[n,r]}function c(){return null==i&&(i=_r(d[8]).default),i}l.ELEMENT_NODE=1,l.ATTRIBUTE_NODE=2,l.TEXT_NODE=3,l.CDATA_SECTION_NODE=4,l.ENTITY_REFERENCE_NODE=5,l.ENTITY_NODE=6,l.PROCESSING_INSTRUCTION_NODE=7,l.COMMENT_NODE=8,l.DOCUMENT_NODE=9,l.DOCUMENT_TYPE_NODE=10,l.DOCUMENT_FRAGMENT_NODE=11,l.NOTATION_NODE=12,l.DOCUMENT_POSITION_DISCONNECTED=1,l.DOCUMENT_POSITION_PRECEDING=2,l.DOCUMENT_POSITION_FOLLOWING=4,l.DOCUMENT_POSITION_CONTAINS=8,l.DOCUMENT_POSITION_CONTAINED_BY=16,l.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32},1864,[1,19,3,4,1865,1868,1869,1863,1872]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useTurboModules=e.useTurboModuleInterop=e.useShadowNodeStateOnClone=e.useRefsForTextInputState=e.useRawPropsJsiValue=e.useOptimizedEventBatchingOnAndroid=e.useNativeViewConfigsInBridgelessMode=e.useFabricInterop=e.useEditTextStockAndroidFocusBehavior=e.useAlwaysAvailableJSErrorHandling=e.updateRuntimeShadowNodeReferencesOnCommit=e.traceTurboModulePromiseRejectionsOnAndroid=e.throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS=e.shouldUseSetNativePropsInFabric=e.shouldUseRemoveClippedSubviewsAsDefaultOnIOS=e.shouldUseAnimatedObjectForTransform=e.scheduleAnimatedCleanupInMicrotask=e.removeTurboModuleManagerDelegateMutex=e.override=e.lazyAnimationCallbacks=e.jsOnlyTestFlag=e.isLayoutAnimationEnabled=e.fuseboxNetworkInspectionEnabled=e.fuseboxEnabledRelease=e.fixVirtualizeListCollapseWindowSize=e.fixMountingCoordinatorReportedPendingTransactionsOnAndroid=e.fixMappingOfEventPrioritiesBetweenFabricAndReact=e.fixDifferentiatorEmittingUpdatesWithWrongParentTag=e.excludeYogaFromRawProps=e.enableViewRecyclingForView=e.enableViewRecyclingForText=e.enableViewRecycling=e.enableViewCulling=e.enableUIConsistency=e.enableSynchronousStateUpdates=e.enableReportEventPaintTime=e.enablePropsUpdateReconciliationAndroid=e.enablePreciseSchedulingForPremountItemsOnAndroid=e.enableNewBackgroundAndBorderDrawables=e.enableNativeCSSParsing=e.enableLongTaskAPI=e.enableLayoutAnimationsOnIOS=e.enableLayoutAnimationsOnAndroid=e.enableJSRuntimeGCOnMemoryPressureOnIOS=e.enableImagePrefetchingAndroid=e.enableIOSViewClipToPaddingBox=e.enableFabricRenderer=e.enableFabricLogs=e.enableEagerRootViewAttachment=e.enableDOMDocumentAPI=e.enableCppPropsIteratorSetter=e.enableBridgelessArchitecture=e.enableAnimatedClearImmediateFix=e.enableAccumulatedUpdatesInRawPropsAndroid=e.enableAccessToHostTreeInFabric=e.disableMountItemReorderingAndroid=e.disableInteractionManager=e.commonTestFlagWithoutNativeImplementation=e.commonTestFlag=e.avoidStateUpdateInAnimatedPropsMemo=e.animatedShouldUseSingleOp=e.animatedShouldDebounceQueueFlush=void 0;e.jsOnlyTestFlag=(0,r(d[0]).createJavaScriptFlagGetter)('jsOnlyTestFlag',!1),e.animatedShouldDebounceQueueFlush=(0,r(d[0]).createJavaScriptFlagGetter)('animatedShouldDebounceQueueFlush',!1),e.animatedShouldUseSingleOp=(0,r(d[0]).createJavaScriptFlagGetter)('animatedShouldUseSingleOp',!1),e.avoidStateUpdateInAnimatedPropsMemo=(0,r(d[0]).createJavaScriptFlagGetter)('avoidStateUpdateInAnimatedPropsMemo',!1),e.disableInteractionManager=(0,r(d[0]).createJavaScriptFlagGetter)('disableInteractionManager',!1),e.enableAccessToHostTreeInFabric=(0,r(d[0]).createJavaScriptFlagGetter)('enableAccessToHostTreeInFabric',!1),e.enableAnimatedClearImmediateFix=(0,r(d[0]).createJavaScriptFlagGetter)('enableAnimatedClearImmediateFix',!0),e.enableDOMDocumentAPI=(0,r(d[0]).createJavaScriptFlagGetter)('enableDOMDocumentAPI',!1),e.fixVirtualizeListCollapseWindowSize=(0,r(d[0]).createJavaScriptFlagGetter)('fixVirtualizeListCollapseWindowSize',!1),e.isLayoutAnimationEnabled=(0,r(d[0]).createJavaScriptFlagGetter)('isLayoutAnimationEnabled',!0),e.scheduleAnimatedCleanupInMicrotask=(0,r(d[0]).createJavaScriptFlagGetter)('scheduleAnimatedCleanupInMicrotask',!1),e.shouldUseAnimatedObjectForTransform=(0,r(d[0]).createJavaScriptFlagGetter)('shouldUseAnimatedObjectForTransform',!1),e.shouldUseRemoveClippedSubviewsAsDefaultOnIOS=(0,r(d[0]).createJavaScriptFlagGetter)('shouldUseRemoveClippedSubviewsAsDefaultOnIOS',!1),e.shouldUseSetNativePropsInFabric=(0,r(d[0]).createJavaScriptFlagGetter)('shouldUseSetNativePropsInFabric',!0),e.useRefsForTextInputState=(0,r(d[0]).createJavaScriptFlagGetter)('useRefsForTextInputState',!1),e.commonTestFlag=(0,r(d[0]).createNativeFlagGetter)('commonTestFlag',!1),e.commonTestFlagWithoutNativeImplementation=(0,r(d[0]).createNativeFlagGetter)('commonTestFlagWithoutNativeImplementation',!1),e.disableMountItemReorderingAndroid=(0,r(d[0]).createNativeFlagGetter)('disableMountItemReorderingAndroid',!1),e.enableAccumulatedUpdatesInRawPropsAndroid=(0,r(d[0]).createNativeFlagGetter)('enableAccumulatedUpdatesInRawPropsAndroid',!1),e.enableBridgelessArchitecture=(0,r(d[0]).createNativeFlagGetter)('enableBridgelessArchitecture',!1),e.enableCppPropsIteratorSetter=(0,r(d[0]).createNativeFlagGetter)('enableCppPropsIteratorSetter',!1),e.enableEagerRootViewAttachment=(0,r(d[0]).createNativeFlagGetter)('enableEagerRootViewAttachment',!1),e.enableFabricLogs=(0,r(d[0]).createNativeFlagGetter)('enableFabricLogs',!1),e.enableFabricRenderer=(0,r(d[0]).createNativeFlagGetter)('enableFabricRenderer',!1),e.enableIOSViewClipToPaddingBox=(0,r(d[0]).createNativeFlagGetter)('enableIOSViewClipToPaddingBox',!1),e.enableImagePrefetchingAndroid=(0,r(d[0]).createNativeFlagGetter)('enableImagePrefetchingAndroid',!1),e.enableJSRuntimeGCOnMemoryPressureOnIOS=(0,r(d[0]).createNativeFlagGetter)('enableJSRuntimeGCOnMemoryPressureOnIOS',!1),e.enableLayoutAnimationsOnAndroid=(0,r(d[0]).createNativeFlagGetter)('enableLayoutAnimationsOnAndroid',!1),e.enableLayoutAnimationsOnIOS=(0,r(d[0]).createNativeFlagGetter)('enableLayoutAnimationsOnIOS',!0),e.enableLongTaskAPI=(0,r(d[0]).createNativeFlagGetter)('enableLongTaskAPI',!1),e.enableNativeCSSParsing=(0,r(d[0]).createNativeFlagGetter)('enableNativeCSSParsing',!1),e.enableNewBackgroundAndBorderDrawables=(0,r(d[0]).createNativeFlagGetter)('enableNewBackgroundAndBorderDrawables',!1),e.enablePreciseSchedulingForPremountItemsOnAndroid=(0,r(d[0]).createNativeFlagGetter)('enablePreciseSchedulingForPremountItemsOnAndroid',!1),e.enablePropsUpdateReconciliationAndroid=(0,r(d[0]).createNativeFlagGetter)('enablePropsUpdateReconciliationAndroid',!1),e.enableReportEventPaintTime=(0,r(d[0]).createNativeFlagGetter)('enableReportEventPaintTime',!1),e.enableSynchronousStateUpdates=(0,r(d[0]).createNativeFlagGetter)('enableSynchronousStateUpdates',!1),e.enableUIConsistency=(0,r(d[0]).createNativeFlagGetter)('enableUIConsistency',!1),e.enableViewCulling=(0,r(d[0]).createNativeFlagGetter)('enableViewCulling',!1),e.enableViewRecycling=(0,r(d[0]).createNativeFlagGetter)('enableViewRecycling',!1),e.enableViewRecyclingForText=(0,r(d[0]).createNativeFlagGetter)('enableViewRecyclingForText',!0),e.enableViewRecyclingForView=(0,r(d[0]).createNativeFlagGetter)('enableViewRecyclingForView',!0),e.excludeYogaFromRawProps=(0,r(d[0]).createNativeFlagGetter)('excludeYogaFromRawProps',!1),e.fixDifferentiatorEmittingUpdatesWithWrongParentTag=(0,r(d[0]).createNativeFlagGetter)('fixDifferentiatorEmittingUpdatesWithWrongParentTag',!0),e.fixMappingOfEventPrioritiesBetweenFabricAndReact=(0,r(d[0]).createNativeFlagGetter)('fixMappingOfEventPrioritiesBetweenFabricAndReact',!1),e.fixMountingCoordinatorReportedPendingTransactionsOnAndroid=(0,r(d[0]).createNativeFlagGetter)('fixMountingCoordinatorReportedPendingTransactionsOnAndroid',!1),e.fuseboxEnabledRelease=(0,r(d[0]).createNativeFlagGetter)('fuseboxEnabledRelease',!1),e.fuseboxNetworkInspectionEnabled=(0,r(d[0]).createNativeFlagGetter)('fuseboxNetworkInspectionEnabled',!1),e.lazyAnimationCallbacks=(0,r(d[0]).createNativeFlagGetter)('lazyAnimationCallbacks',!1),e.removeTurboModuleManagerDelegateMutex=(0,r(d[0]).createNativeFlagGetter)('removeTurboModuleManagerDelegateMutex',!1),e.throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS=(0,r(d[0]).createNativeFlagGetter)('throwExceptionInsteadOfDeadlockOnTurboModuleSetupDuringSyncRenderIOS',!1),e.traceTurboModulePromiseRejectionsOnAndroid=(0,r(d[0]).createNativeFlagGetter)('traceTurboModulePromiseRejectionsOnAndroid',!1),e.updateRuntimeShadowNodeReferencesOnCommit=(0,r(d[0]).createNativeFlagGetter)('updateRuntimeShadowNodeReferencesOnCommit',!1),e.useAlwaysAvailableJSErrorHandling=(0,r(d[0]).createNativeFlagGetter)('useAlwaysAvailableJSErrorHandling',!1),e.useEditTextStockAndroidFocusBehavior=(0,r(d[0]).createNativeFlagGetter)('useEditTextStockAndroidFocusBehavior',!0),e.useFabricInterop=(0,r(d[0]).createNativeFlagGetter)('useFabricInterop',!1),e.useNativeViewConfigsInBridgelessMode=(0,r(d[0]).createNativeFlagGetter)('useNativeViewConfigsInBridgelessMode',!1),e.useOptimizedEventBatchingOnAndroid=(0,r(d[0]).createNativeFlagGetter)('useOptimizedEventBatchingOnAndroid',!1),e.useRawPropsJsiValue=(0,r(d[0]).createNativeFlagGetter)('useRawPropsJsiValue',!1),e.useShadowNodeStateOnClone=(0,r(d[0]).createNativeFlagGetter)('useShadowNodeStateOnClone',!1),e.useTurboModuleInterop=(0,r(d[0]).createNativeFlagGetter)('useTurboModuleInterop',!1),e.useTurboModules=(0,r(d[0]).createNativeFlagGetter)('useTurboModules',!1),e.override=r(d[0]).setOverrides},1865,[1866]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createJavaScriptFlagGetter=function(n,u){return o(n,function(){var o,c;return l.add(n),null==(o=t)||null==(c=o[n])?void 0:c.call(o,u)},u)},e.createNativeFlagGetter=function(n,t){return o(n,function(){var t;return f(n),null==u.default||null==(t=u.default[n])?void 0:t.call(u.default)},t)},e.getOverrides=function(){return t},e.setOverrides=function(n){if(null!=t)throw new Error('Feature flags cannot be overridden more than once');if(l.size>0){var u=Array.from(l).join(', ');throw new Error(`Feature flags were accessed before being overridden: ${u}`)}t=n};var t,u=n(r(d[1])),l=new Set;function o(n,t,u){var l;return function(){var n;null==l&&(l=null!=(n=t())?n:u);return l}}var c=new Set;function f(n){u.default||c.has(n)||(c.add(n),console.error(`Could not access feature flag '${n}' because native module method was not available`))}},1866,[1,1867]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0])).get('NativeReactNativeFeatureFlagsCxx');_e.default=e},1867,[1841]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,i)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((o=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(o.get||o.set)?u(i,f,o):i[f]=e[f]);return i})(e,t)})(_r(d[1])),n=e(_r(d[2]));var r=t.get('NativeDOMCxx'),u={compareDocumentPosition:function(e,t){return(0,n.default)(r).compareDocumentPosition(e,t)},getChildNodes:function(e){return(0,n.default)(r).getChildNodes(e)},getParentNode:function(e){return(0,n.default)(r).getParentNode(e)},isConnected:function(e){return(0,n.default)(r).isConnected(e)},getBorderWidth:function(e){return(0,n.default)(r).getBorderWidth(e)},getBoundingClientRect:function(e,t){return(0,n.default)(r).getBoundingClientRect(e,t)},getInnerSize:function(e){return(0,n.default)(r).getInnerSize(e)},getScrollPosition:function(e){return(0,n.default)(r).getScrollPosition(e)},getScrollSize:function(e){return(0,n.default)(r).getScrollSize(e)},getTagName:function(e){return(0,n.default)(r).getTagName(e)},getTextContent:function(e){return(0,n.default)(r).getTextContent(e)},hasPointerCapture:function(e,t){return(0,n.default)(r).hasPointerCapture(e,t)},releasePointerCapture:function(e,t){return(0,n.default)(r).releasePointerCapture(e,t)},setPointerCapture:function(e,t){return(0,n.default)(r).setPointerCapture(e,t)},getOffset:function(e){return(0,n.default)(r).getOffset(e)},linkRootNode:function(e,t){return(0,n.default)(null==r?void 0:r.linkRootNode)(e,t)},measure:function(e,t){return(0,n.default)(r).measure(e,t)},measureInWindow:function(e,t){return(0,n.default)(r).measureInWindow(e,t)},measureLayout:function(e,t,u,o){return(0,n.default)(r).measureLayout(e,t,u,o)}};_e.default=u},1868,[1,1841,78]); -__d(function(g,r,i,a,m,e,d){var n;function t(){return null==n&&(n=r(d[0])),n}Object.defineProperty(e,"__esModule",{value:!0}),e.getInstanceHandle=u,e.getNativeElementReference=function(n){var c=u(n);return t().getNodeFromInternalInstanceHandle(c)},e.getNativeNodeReference=function(n){var c=u(n);if((0,r(d[1]).isReactNativeDocumentInstanceHandle)(c))return(0,r(d[1]).getNativeNodeReferenceFromReactNativeDocumentInstanceHandle)(c);if((0,r(d[2]).isReactNativeDocumentElementInstanceHandle)(c))return(0,r(d[2]).getNativeElementReferenceFromReactNativeDocumentElementInstanceHandle)(c);return t().getNodeFromInternalInstanceHandle(c)},e.getNativeTextReference=function(n){var c=u(n);return t().getNodeFromInternalInstanceHandle(c)},e.getOwnerDocument=function(n){var t;return null!=(t=n[l])?t:null},e.getPublicInstanceFromInstanceHandle=function(n){if((0,r(d[1]).isReactNativeDocumentInstanceHandle)(n))return(0,r(d[1]).getPublicInstanceFromReactNativeDocumentInstanceHandle)(n);if((0,r(d[2]).isReactNativeDocumentElementInstanceHandle)(n))return(0,r(d[2]).getPublicInstanceFromReactNativeDocumentElementInstanceHandle)(n);return t().getPublicInstanceFromInternalInstanceHandle(n)},e.setInstanceHandle=function(n,t){n[c]=t},e.setOwnerDocument=function(n,t){n[l]=t};var c=Symbol('internalInstanceHandle'),l=Symbol('ownerDocument');function u(n){return n[c]}},1869,[1849,1870,1871]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createReactNativeDocumentInstanceHandle=function(e){return e},_e.getNativeNodeReferenceFromReactNativeDocumentInstanceHandle=function(e){return e},_e.getPublicInstanceFromReactNativeDocumentInstanceHandle=function(t){return e.getPublicInstanceFromRootTag(Number(t))},_e.isReactNativeDocumentInstanceHandle=function(e){return'number'==typeof e&&e%10==1};var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,c,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((c=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(c.get||c.set)?o(u,i,c):u[i]=e[i]);return u})(e,t)})(_r(d[0]))},1870,[1849]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createReactNativeDocumentElementInstanceHandle=function(){return new u},e.getNativeElementReferenceFromReactNativeDocumentElementInstanceHandle=function(n){return n.nativeElementReference},e.getPublicInstanceFromReactNativeDocumentElementInstanceHandle=function(n){return n.publicInstance},e.isReactNativeDocumentElementInstanceHandle=function(n){return n instanceof u},e.setNativeElementReferenceForReactNativeDocumentElementInstanceHandle=function(n,t){n.nativeElementReference=t},e.setPublicInstanceForReactNativeDocumentElementInstanceHandle=function(n,t){n.publicInstance=t};var t=n(r(d[1])),c=n(r(d[2])),u=(0,t.default)(function n(){(0,c.default)(this,n)})},1871,[1,4,3]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_e.getBoundingClientRect=h;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),l=e(_r(d[4])),u=e(_r(d[5])),i=e(_r(d[6])),o=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var l,u,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(l=t?r:n){if(l.has(e))return l.get(e);l.set(e,i)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((u=(l=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(u.get||u.set)?l(i,o,u):i[o]=e[o]);return i})(e,t)})(_r(d[7])),f=e(_r(d[8]));function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}var s=_e.default=(function(e){function i(){return(0,t.default)(this,i),e=this,n=i,u=arguments,n=(0,l.default)(n),(0,r.default)(e,c()?Reflect.construct(n,u||[],(0,l.default)(e).constructor):n.apply(e,u));var e,n,u}return(0,u.default)(i,e),(0,n.default)(i,[{key:"childElementCount",get:function(){return v(this).length}},{key:"children",get:function(){return(0,_r(d[9]).createHTMLCollection)(v(this))}},{key:"clientHeight",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getInnerSize(e)[1]:0}},{key:"clientLeft",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getBorderWidth(e)[3]:0}},{key:"clientTop",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getBorderWidth(e)[0]:0}},{key:"clientWidth",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getInnerSize(e)[0]:0}},{key:"firstElementChild",get:function(){var e=v(this);return 0===e.length?null:e[0]}},{key:"id",get:function(){var e,t,n,r=(0,_r(d[10]).getInstanceHandle)(this),l=null==r||null==(e=r.stateNode)||null==(e=e.canonical)?void 0:e.currentProps;return null!=(t=null!=(n=null==l?void 0:l.id)?n:null==l?void 0:l.nativeID)?t:''}},{key:"lastElementChild",get:function(){var e=v(this);return 0===e.length?null:e[e.length-1]}},{key:"nextElementSibling",get:function(){return(0,_r(d[11]).getElementSibling)(this,'next')}},{key:"nodeName",get:function(){return this.tagName}},{key:"nodeType",get:function(){return o.default.ELEMENT_NODE}},{key:"nodeValue",get:function(){return null},set:function(e){}},{key:"previousElementSibling",get:function(){return(0,_r(d[11]).getElementSibling)(this,'previous')}},{key:"scrollHeight",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getScrollSize(e)[1]:0}},{key:"scrollLeft",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getScrollPosition(e)[0]:0}},{key:"scrollTop",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getScrollPosition(e)[1]:0}},{key:"scrollWidth",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getScrollSize(e)[0]:0}},{key:"tagName",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getTagName(e):''}},{key:"textContent",get:function(){var e=(0,_r(d[10]).getNativeElementReference)(this);return null!=e?f.default.getTextContent(e):''}},{key:"getBoundingClientRect",value:function(){return h(this,{includeTransform:!0})}},{key:"hasPointerCapture",value:function(e){var t=(0,_r(d[10]).getNativeElementReference)(this);return null!=t&&f.default.hasPointerCapture(t,e)}},{key:"setPointerCapture",value:function(e){var t=(0,_r(d[10]).getNativeElementReference)(this);null!=t&&f.default.setPointerCapture(t,e)}},{key:"releasePointerCapture",value:function(e){var t=(0,_r(d[10]).getNativeElementReference)(this);null!=t&&f.default.releasePointerCapture(t,e)}}])})(o.default);function v(e){return(0,o.getChildNodes)(e).filter(function(e){return e instanceof s})}function h(e,t){var n=t.includeTransform,r=(0,_r(d[10]).getNativeElementReference)(e);if(null!=r){var l=f.default.getBoundingClientRect(r,n);return new i.default(l[0],l[1],l[2],l[3])}return new i.default(0,0,0,0)}},1872,[1,3,4,9,11,12,1858,1864,1868,1862,1869,1873]); -__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getElementSibling=function(l,u){var t,f=l.parentNode;if(null==f)return null;var o=(0,r(d[0]).getChildNodes)(f),v=o.indexOf(l);if(-1===v)return null;var c='next'===u?1:-1,_=v+c;null==n&&(n=r(d[1]).default);for(;null!=o[_]&&!(o[_]instanceof n);)_+=c;return null!=(t=o[_])?t:null}},1873,[1864,1872]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.createReactNativeDocument=function(e){var t=(0,r(d[11]).createReactNativeDocumentInstanceHandle)(e);return new E(e,t)},_e.default=void 0;var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),c=e(r(d[4])),l=e(r(d[5])),o=e(r(d[6])),f=e(r(d[7])),s=e(r(d[8]));function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var E=_e.default=(function(e){function o(e,n){var l,f,s,E;return(0,t.default)(this,o),f=this,s=o,E=[n,null],s=(0,c.default)(s),(l=(0,u.default)(f,v()?Reflect.construct(s,E||[],(0,c.default)(f).constructor):s.apply(f,E)))._documentElement=y(e,l),l}return(0,l.default)(o,e),(0,n.default)(o,[{key:"childElementCount",get:function(){return 1}},{key:"children",get:function(){return(0,r(d[9]).createHTMLCollection)([this.documentElement])}},{key:"documentElement",get:function(){return this._documentElement}},{key:"firstElementChild",get:function(){return this.documentElement}},{key:"lastElementChild",get:function(){return this.documentElement}},{key:"nodeName",get:function(){return'#document'}},{key:"nodeType",get:function(){return f.default.DOCUMENT_NODE}},{key:"nodeValue",get:function(){return null}},{key:"textContent",get:function(){return null}}])})(f.default);function y(e,t){var n=(0,r(d[10]).createReactNativeDocumentElementInstanceHandle)(),u=e,c=new o.default(u,null,n,t),l=s.default.linkRootNode(e,n);return(0,r(d[10]).setNativeElementReferenceForReactNativeDocumentElementInstanceHandle)(n,l),(0,r(d[10]).setPublicInstanceForReactNativeDocumentElementInstanceHandle)(n,c),c}},1874,[1,3,4,9,11,12,1875,1864,1868,1862,1871,1870]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),i=e(_r(d[5])),f=e(_r(d[6])),l=(e(_r(d[7])),(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,f)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?u(f,l,i):f[l]=e[l]);return f})(e,t)})(_r(d[8]))),o=e(_r(d[9])),c=e(_r(d[10]));function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var v=function(){},h=(function(e){function h(e,n,i,f){var l,o,c,v;return(0,t.default)(this,h),o=this,c=h,v=[i,f],c=(0,u.default)(c),(l=(0,r.default)(o,s()?Reflect.construct(c,v||[],(0,u.default)(o).constructor):c.apply(o,v))).__nativeTag=e,l.__internalInstanceHandle=i,l.__viewConfig=n,l}return(0,i.default)(h,e),(0,n.default)(h,[{key:"offsetHeight",get:function(){return Math.round((0,l.getBoundingClientRect)(this,{includeTransform:!1}).height)}},{key:"offsetLeft",get:function(){var e=(0,_r(d[11]).getNativeElementReference)(this);if(null!=e){var t=o.default.getOffset(e);return Math.round(t[2])}return 0}},{key:"offsetParent",get:function(){var e=(0,_r(d[11]).getNativeElementReference)(this);if(null!=e){var t=o.default.getOffset(e);if(null!=t[0]){var n=t[0];return(0,_r(d[11]).getPublicInstanceFromInstanceHandle)(n)}}return null}},{key:"offsetTop",get:function(){var e=(0,_r(d[11]).getNativeElementReference)(this);if(null!=e){var t=o.default.getOffset(e);return Math.round(t[1])}return 0}},{key:"offsetWidth",get:function(){return Math.round((0,l.getBoundingClientRect)(this,{includeTransform:!1}).width)}},{key:"blur",value:function(){f.default.blurTextInput(this)}},{key:"focus",value:function(){f.default.focusTextInput(this)}},{key:"measure",value:function(e){var t=(0,_r(d[11]).getNativeElementReference)(this);if(null!=t){var n=t;(0,c.default)((0,_r(d[12]).getFabricUIManager)()).measure(n,e)}}},{key:"measureInWindow",value:function(e){var t=(0,_r(d[11]).getNativeElementReference)(this);if(null!=t){var n=t;(0,c.default)((0,_r(d[12]).getFabricUIManager)()).measureInWindow(n,e)}}},{key:"measureLayout",value:function(e,t,n){if(e instanceof h){var r=(0,_r(d[11]).getNativeElementReference)(this),u=(0,_r(d[11]).getNativeElementReference)(e);if(null!=r&&null!=u){var i=r,f=u;(0,c.default)((0,_r(d[12]).getFabricUIManager)()).measureLayout(i,f,null!=n?n:v,null!=t?t:v)}}}},{key:"setNativeProps",value:function(e){var t=(0,_r(d[13]).create)(e,this.__viewConfig.validAttributes),n=(0,_r(d[11]).getNativeElementReference)(this);if(null!=n&&null!=t){var r=n;(0,c.default)((0,_r(d[12]).getFabricUIManager)()).setNativeProps(r,t)}}}])})(l.default);_e.default=(function(e){function t(e,t,n,r){(0,_r(d[11]).setOwnerDocument)(this,r),(0,_r(d[11]).setInstanceHandle)(this,n),this.__nativeTag=e,this.__internalInstanceHandle=n,this.__viewConfig=t}return t.prototype=e.prototype,t})(h)},1875,[1,3,4,9,11,12,1876,1921,1872,1868,78,1869,1886,1922]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=null,u=new Set;function t(u){n!==u&&null!=u&&(n=u)}function o(u){n===u&&null!=u&&(n=null)}var l={currentlyFocusedInput:function(){return n},focusInput:t,blurInput:o,currentlyFocusedField:function(){return r(d[0]).findNodeHandle(n)},focusField:function(n){},blurField:function(n){},focusTextInput:function(u){if('number'!=typeof u&&null!=u){var o;if(!(n!==u&&!1!==(null==(o=u.currentProps)?void 0:o.editable)))return;t(u),r(d[1]).Commands.focus(u)}},blurTextInput:function(u){'number'!=typeof u&&n===u&&null!=u&&(o(u),r(d[1]).Commands.blur(u))},registerInput:function(n){'number'!=typeof n&&u.add(n)},unregisterInput:function(n){'number'!=typeof n&&u.delete(n)},isTextInput:function(n){return'number'!=typeof n&&u.has(n)}};e.default=l},1876,[1849,1877]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,o,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,i)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((o=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(o.get||o.set)?u(i,f,o):i[f]=e[f]);return i})(e,t)})(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));_e.Commands=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});var u=_e.__INTERNAL_VIEW_CONFIG=Object.assign({uiViewClassName:'RCTSinglelineTextInputView'},r.default),o=t.get('RCTSinglelineTextInputView',function(){return u});_e.default=o},1877,[1,1878,1919,1920]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.get=f,_e.getWithFallback_DEPRECATED=function(e,t){if(null==n){if(c(e))return f(e,t)}else if(null!=n(e))return f(e,t);var i=function(e){return null};return i.displayName=`Fallback(${e})`,i},_e.setRuntimeConfigProvider=function(e){void 0===n&&(n=e)},_e.unstable_hasStaticViewConfig=function(e){var t;return!(null!=(t=null==n?void 0:n(e))?t:{native:!0}).native};var n,t=e(_r(d[1])),i=e(_r(d[2])),r=o(_r(d[3])),l=o(_r(d[4])),u=e(_r(d[5]));o(_r(d[6]));function o(e,n){if("function"==typeof WeakMap)var t=new WeakMap,i=new WeakMap;return(o=function(e,n){if(!n&&e&&e.__esModule)return e;var r,l,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(r=n?i:t){if(r.has(e))return r.get(e);r.set(e,u)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?r(u,o,l):u[o]=e[o]);return u})(e,n)}function f(e,i){return r.register(e,function(){var r,o,f,c,v=null!=(r=null==n?void 0:n(e))?r:{native:!g.RN$Bridgeless,verify:!1},s=v.native,p=v.verify;s?o=null!=(f=(0,t.default)(e))?f:(0,_r(d[7]).createViewConfig)(i()):o=null!=(c=(0,_r(d[7]).createViewConfig)(i()))?c:(0,t.default)(e);if((0,u.default)(null!=o,'NativeComponentRegistry.get: both static and native view config are missing for native component "%s".',e),p){var y=s?o:(0,t.default)(e);if(null==y)return o;var _=s?(0,_r(d[7]).createViewConfig)(i()):o,w=l.validate(e,y,_);'invalid'===w.type&&console.error(l.stringifyValidationResult(e,w))}return o}),e}function c(e){return(0,u.default)(null==n,'Unexpected invocation!'),null!=i.default.getViewManagerConfig(e)}},1878,[1,1879,1884,1913,1914,39,128,1915]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1]));function s(t){var n=r(d[2]).default.getConstants();n.ViewManagerNames||n.LazyViewManagersEnabled?t=u(t,r(d[4])(r(d[2]).default.getDefaultEventTypes)()):(t.bubblingEventTypes=u(t.bubblingEventTypes,n.genericBubblingEventTypes),t.directEventTypes=u(t.directEventTypes,n.genericDirectEventTypes))}function u(t,n){if(!n)return t;if(!t)return n;for(var s in n)if(n.hasOwnProperty(s)){var l=n[s];if(t.hasOwnProperty(s)){var c=t[s];'object'==typeof l&&'object'==typeof c&&(l=u(c,l))}t[s]=l}return t}function l(t){switch(t){case'CATransform3D':return r(d[5]).default;case'CGPoint':case'Point':return r(d[6]).default;case'CGSize':return r(d[7]).default;case'UIEdgeInsets':case'EdgeInsets':return r(d[8]).default}return null}function c(t){switch(t){case'CGColor':case'UIColor':case'Color':return r(d[9]).default;case'CGColorArray':case'UIColorArray':case'ColorArray':return r(d[10]).default;case'CGImage':case'UIImage':case'RCTImageSource':case'ImageSource':return r(d[11]).default;case'BoxShadowArray':case'BoxShadow':return n.default;case'FilterArray':case'Filter':return r(d[12]).default;case'BackgroundImage':return r(d[13]).default}return null}e.default=function(t){var n=r(d[2]).default.getViewManagerConfig(t);if(null==n)return null;var u=n.baseModuleName,o=n.bubblingEventTypes,f=n.directEventTypes,v=n.NativeProps;for(o=null!=o?o:{},f=null!=f?f:{};u;){var b=r(d[2]).default.getViewManagerConfig(u);b?(o=Object.assign({},b.bubblingEventTypes,o),f=Object.assign({},b.directEventTypes,f),v=Object.assign({},b.NativeProps,v),u=b.baseModuleName):u=null}var y={};for(var p in v){var C=v[p],E=l(C),T=c(C);y[p]=null==E?null==T||{process:T}:null==T?{diff:E}:{diff:E,process:T}}return y.style=r(d[3]).default,Object.assign(n,{uiViewClassName:t,validAttributes:y,bubblingEventTypes:o,directEventTypes:f}),s(n),n}},1879,[1,1880,1884,1892,78,1900,1901,1899,1902,1881,1903,1904,1895,1894]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var u=[];if(null==t)return u;var l='string'==typeof t?n(t.replace(/\n/g,' ')):t;for(var o of l){var c={offsetX:0,offsetY:0},p=void 0;for(var b in o)switch(b){case'offsetX':if(null==(p='string'==typeof o.offsetX?s(o.offsetX):o.offsetX))return[];c.offsetX=p;break;case'offsetY':if(null==(p='string'==typeof o.offsetY?s(o.offsetY):o.offsetY))return[];c.offsetY=p;break;case'spreadDistance':if(null==(p='string'==typeof o.spreadDistance?s(o.spreadDistance):o.spreadDistance))return[];c.spreadDistance=p;break;case'blurRadius':if(null==(p='string'==typeof o.blurRadius?s(o.blurRadius):o.blurRadius)||p<0)return[];c.blurRadius=p;break;case'color':var v=(0,f.default)(o.color);if(null==v)return[];c.color=v;break;case'inset':c.inset=o.inset}u.push(c)}return u};var f=t(r(d[1]));function n(t){var n=[];for(var s of t.split(/,(?![^()]*\))/).map(function(t){return t.trim()}).filter(function(t){return''!==t})){var u={offsetX:0,offsetY:0},l=void 0,o=void 0,c=!1,p=0,b=s.split(/\s+(?![^(]*\))/);for(var v of b){if(null==(0,f.default)(v))if('inset'!==v)switch(p){case 0:l=v,p++;break;case 1:if(c)return[];o=v,p++;break;case 2:if(c)return[];u.blurRadius=v,p++;break;case 3:if(c)return[];u.spreadDistance=v,p++;break;default:return[]}else{if(null!=u.inset)return[];null!=l&&(c=!0),u.inset=!0}else{if(null!=u.color)return[];null!=l&&(c=!0),u.color=v}}if(null==l||null==o)return[];u.offsetX=l,u.offsetY=o,n.push(u)}return n}function s(t){var f=/([+-]?\d*(\.\d+)?)([\w\W]+)?/g.exec(t);return!f||Number.isNaN(f[1])||null!=f[3]&&'px'!==f[3]||null==f[3]&&'0'!==f[1]?null:Number(f[1])}},1880,[1,1881]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){if(null==t)return t;var u=r(d[0]).default(t);if(null!=u){if('object'==typeof u){var l=(0,r(d[1]).processColorObject)(u);if(null!=l)return l}return'number'!=typeof u?null:u=(u<<24|u>>>8)>>>0}}},1881,[1882,1883]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=t(r(d[1]));e.default=function(t){if('object'==typeof t&&null!=t){var n=(0,r(d[2]).normalizeColorObject)(t);if(null!=n)return n}if('string'==typeof t||'number'==typeof t)return(0,f.default)(t)}},1882,[1,93,1883]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.PlatformColor=e.DynamicColorIOSPrivate=void 0;e.PlatformColor=function(){for(var t=arguments.length,n=new Array(t),o=0;o0)for(var S of y){if(!('number'==typeof S||'string'==typeof S&&S.endsWith('%')))return[];c.push({color:w,position:S})}else c.push({color:w,position:null})}}var k=u,A=null!=p.direction?p.direction.toLowerCase():null;if(null!=A)if(n.test(A)){var C=f(A);if(null==C)return[];k={type:'angle',value:C}}else{if(!o.test(A))return[];var L=s(A);if(null==L)return[];k=L}l=l.concat({type:'linearGradient',direction:k,colorStops:c})}return l};var l=t(r(d[1])),o=/^to\s+(?:top|bottom|left|right)(?:\s+(?:top|bottom|left|right))?/i,n=/^([+-]?\d*\.?\d+)(deg|grad|rad|turn)$/i,u={type:'angle',value:180};function i(t){for(var l,i=[],c=/linear-gradient\s*\(((?:\([^)]*\)|[^())])*)\)/gi;l=c.exec(t);){var h=l[1].split(','),v=u,y=h[0].trim().toLowerCase();if(n.test(y)){var b=f(y);if(null==b)return[];v={type:'angle',value:b},h.shift()}else if(o.test(y)){var w=s(y);if(null==w)return[];v=w,h.shift()}for(var S=[],k=h.join(',').split(/,(?![^(]*\))/),A=null,C=0;C=l)return n[c];return n[n.length-1]||1},e.setUrlCacheBreaker=function(n){t=n};var t,u=n(r(d[1]))},1908,[1,1909]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),n=t(r(d[2])),o=(function(){function t(){(0,u.default)(this,t)}return(0,n.default)(t,null,[{key:"get",value:function(){return r(d[3]).default.get('window').scale}},{key:"getFontScale",value:function(){return r(d[3]).default.get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(u){return Math.round(u*t.get())}},{key:"roundToNearestPixel",value:function(u){var n=t.get();return Math.round(u*n)/n}},{key:"startDetecting",value:function(){}}])})();e.default=o},1909,[1,3,4,1910]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n,l=t(r(d[1])),s=t(r(d[2])),c=t(r(d[3])),u=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6])),h=new u.default,w=!1,v=(function(){return(0,s.default)(function t(){(0,l.default)(this,t)},null,[{key:"get",value:function(t){return(0,f.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var l=t.screen,s=t.window,c=t.windowPhysicalPixels;c&&(s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale});var u=t.screenPhysicalPixels;u?l={width:u.width/u.scale,height:u.height/u.scale,scale:u.scale,fontScale:u.fontScale}:null==l&&(l=s),n={window:s,screen:l},w?h.emit('change',n):w=!0}},{key:"addEventListener",value:function(t,n){return(0,f.default)('change'===t,'Trying to subscribe to unknown event: "%s"',t),h.addListener(t,n)}}])})();c.default.addListener('didUpdateDimensions',function(t){v.set(t)}),v.set(o.default.getConstants().Dimensions);e.default=v},1910,[1,3,4,1836,1837,1911,39]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1911,[1912]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0])).getEnforcing('DeviceInfo'),t=null,n={getConstants:function(){return null==t&&(t=e.getConstants()),t}};_e.default=n},1912,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.customDirectEventTypes=e.customBubblingEventTypes=void 0,e.get=function(t){var o=s.get(t);if(null==o){var u=l.get(t);'function'!=typeof u&&(0,n.default)(!1,'View config getter callback for component `%s` must be a function (received `%s`).%s',t,null===u?'null':typeof u,'string'==typeof t[0]&&/[a-z]/.test(t[0])?' Make sure to start component names with a capital letter.':''),o=u(),(0,n.default)(o,'View config not found for component `%s`',t),c(o),s.set(t,o),l.set(t,null)}return o},e.register=function(t,o){return(0,n.default)(!l.has(t),'Tried to register two views with the same name %s',t),(0,n.default)('function'==typeof o,'View config getter callback for component `%s` must be a function (received `%s`)',t,null===o?'null':typeof o),l.set(t,o),t};var n=t(r(d[1])),o=e.customBubblingEventTypes={},u=e.customDirectEventTypes={},l=new Map,s=new Map;function c(t){var n=t.bubblingEventTypes,l=t.directEventTypes;if(null!=n)for(var s in n)null==o[s]&&(o[s]=n[s]);if(null!=l)for(var c in l)null==u[c]&&(u[c]=l[c])}},1913,[1,39]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.stringifyValidationResult=function(e,i){var n=i.differences;return[`StaticViewConfigValidator: Invalid static view config for '${e}'.`,''].concat((0,t.default)(n.map(function(e){var t=e.type,i=e.path;switch(t){case'missing':return`- '${i.join('.')}' is missing.`;case'unequal':return`- '${i.join('.')}' is the wrong value.`}})),['']).join('\n')},_e.validate=function(e,t,i){var r=[];if(n(r,[],{bubblingEventTypes:t.bubblingEventTypes,directEventTypes:t.directEventTypes,uiViewClassName:t.uiViewClassName,validAttributes:t.validAttributes},{bubblingEventTypes:i.bubblingEventTypes,directEventTypes:i.directEventTypes,uiViewClassName:i.uiViewClassName,validAttributes:i.validAttributes}),0===r.length)return{type:'valid'};return{type:'invalid',differences:r}};var t=e(_r(d[1])),i=(function(e,t){if("function"==typeof WeakMap)var i=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,u,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(r=t?n:i){if(r.has(e))return r.get(e);r.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((u=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(u.get||u.set)?r(s,l,u):s[l]=e[l]);return s})(e,t)})(_r(d[2]));function n(e,u,s,l){for(var o in s){var f=s[o];if(l.hasOwnProperty(o)){var c=l[o],p=r(f);if(null!=p){var v=r(c);if(null!=v){u.push(o),n(e,u,p,v),u.pop();continue}}f===c||i.enableNativeCSSParsing()||e.push({path:[].concat((0,t.default)(u),[o]),type:'unequal',nativeValue:f,staticValue:c})}else e.push({path:[].concat((0,t.default)(u),[o]),type:'missing',nativeValue:f})}}function r(e){return'object'!=typeof e||Array.isArray(e)?null:e}},1914,[1,32,1865]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var n=t(r(d[1]));function u(t,n){var u;return null==t||null==n?null!=(u=null!=t?t:n)?u:{}:Object.assign({},t,n)}},1915,[1,1916]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])).default;e.default=u},1916,[1,1917]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(n=t?r:o){if(n.has(e))return n.get(e);n.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?n(s,l,i):s[l]=e[l]);return s})(e,t)})(_r(d[1])),o=e(_r(d[2])),r=e(_r(d[3]));var n={topAccessibilityAction:{registrationName:'onAccessibilityAction'},topAccessibilityTap:{registrationName:'onAccessibilityTap'},topMagicTap:{registrationName:'onMagicTap'},topAccessibilityEscape:{registrationName:'onAccessibilityEscape'},topLayout:{registrationName:'onLayout'},onGestureHandlerEvent:(0,_r(d[4]).DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerEvent'}),onGestureHandlerStateChange:(0,_r(d[4]).DynamicallyInjectedByGestureHandler)({registrationName:'onGestureHandlerStateChange'})},i={accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityHint:!0,accessibilityLanguage:!0,accessibilityValue:!0,accessibilityViewIsModal:!0,accessibilityElementsHidden:!0,accessibilityIgnoresInvertColors:!0,accessibilityShowsLargeContentViewer:!0,accessibilityLargeContentTitle:!0,testID:!0,backgroundColor:{process:_r(d[5]).default},backfaceVisibility:!0,cursor:!0,opacity:!0,shadowColor:{process:_r(d[5]).default},shadowOffset:{diff:_r(d[6]).default},shadowOpacity:!0,shadowRadius:!0,needsOffscreenAlphaCompositing:!0,overflow:!0,shouldRasterizeIOS:!0,transform:{diff:_r(d[7]).default},transformOrigin:!0,accessibilityRole:!0,accessibilityState:!0,nativeID:!0,pointerEvents:!0,removeClippedSubviews:!0,role:!0,borderRadius:!0,borderColor:{process:_r(d[5]).default},borderBlockColor:{process:_r(d[5]).default},borderCurve:!0,borderWidth:!0,borderBlockWidth:!0,borderStyle:!0,hitSlop:{diff:_r(d[8]).default},collapsable:!0,collapsableChildren:!0,filter:!(null==o.default||!t.enableNativeCSSParsing())||{process:_r(d[9]).default},boxShadow:!(null==o.default||!t.enableNativeCSSParsing())||{process:_r(d[10]).default},mixBlendMode:!0,isolation:!0,borderTopWidth:!0,borderTopColor:{process:_r(d[5]).default},borderRightWidth:!0,borderRightColor:{process:_r(d[5]).default},borderBottomWidth:!0,borderBottomColor:{process:_r(d[5]).default},borderLeftWidth:!0,borderLeftColor:{process:_r(d[5]).default},borderStartWidth:!0,borderBlockStartWidth:!0,borderStartColor:{process:_r(d[5]).default},borderBlockStartColor:{process:_r(d[5]).default},borderEndWidth:!0,borderBlockEndWidth:!0,borderEndColor:{process:_r(d[5]).default},borderBlockEndColor:{process:_r(d[5]).default},borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,borderTopEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderBottomEndRadius:!0,borderEndEndRadius:!0,borderEndStartRadius:!0,borderStartEndRadius:!0,borderStartStartRadius:!0,display:!0,zIndex:!0,top:!0,right:!0,start:!0,end:!0,bottom:!0,left:!0,inset:!0,insetBlock:!0,insetBlockEnd:!0,insetBlockStart:!0,insetInline:!0,insetInlineEnd:!0,insetInlineStart:!0,width:!0,height:!0,minWidth:!0,maxWidth:!0,minHeight:!0,maxHeight:!0,margin:!0,marginBlock:!0,marginBlockEnd:!0,marginBlockStart:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginInline:!0,marginInlineEnd:!0,marginInlineStart:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,padding:!0,paddingBlock:!0,paddingBlockEnd:!0,paddingBlockStart:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingInline:!0,paddingInlineEnd:!0,paddingInlineStart:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,flex:!0,flexGrow:!0,rowGap:!0,columnGap:!0,gap:!0,flexShrink:!0,flexBasis:!0,flexDirection:!0,flexWrap:!0,justifyContent:!0,alignItems:!0,alignSelf:!0,alignContent:!0,position:!0,aspectRatio:!0,boxSizing:!0,direction:!0,style:r.default},s=(0,_r(d[4]).ConditionallyIgnoredEventHandlers)({onLayout:!0,onMagicTap:!0,onAccessibilityAction:!0,onAccessibilityEscape:!0,onAccessibilityTap:!0,onMoveShouldSetResponder:!0,onMoveShouldSetResponderCapture:!0,onStartShouldSetResponder:!0,onStartShouldSetResponderCapture:!0,onResponderGrant:!0,onResponderReject:!0,onResponderStart:!0,onResponderEnd:!0,onResponderRelease:!0,onResponderMove:!0,onResponderTerminate:!0,onResponderTerminationRequest:!0,onShouldBlockNativeResponder:!0,onTouchStart:!0,onTouchMove:!0,onTouchEnd:!0,onTouchCancel:!0,onClick:!0,onClickCapture:!0,onPointerUp:!0,onPointerDown:!0,onPointerCancel:!0,onPointerEnter:!0,onPointerMove:!0,onPointerLeave:!0,onPointerOver:!0,onPointerOut:!0,onGotPointerCapture:!0,onLostPointerCapture:!0}),l={bubblingEventTypes:{topPress:{phasedRegistrationNames:{bubbled:'onPress',captured:'onPressCapture'}},topChange:{phasedRegistrationNames:{bubbled:'onChange',captured:'onChangeCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topTouchStart:{phasedRegistrationNames:{bubbled:'onTouchStart',captured:'onTouchStartCapture'}},topTouchMove:{phasedRegistrationNames:{bubbled:'onTouchMove',captured:'onTouchMoveCapture'}},topTouchCancel:{phasedRegistrationNames:{bubbled:'onTouchCancel',captured:'onTouchCancelCapture'}},topTouchEnd:{phasedRegistrationNames:{bubbled:'onTouchEnd',captured:'onTouchEndCapture'}},topClick:{phasedRegistrationNames:{captured:'onClickCapture',bubbled:'onClick'}},topPointerCancel:{phasedRegistrationNames:{captured:'onPointerCancelCapture',bubbled:'onPointerCancel'}},topPointerDown:{phasedRegistrationNames:{captured:'onPointerDownCapture',bubbled:'onPointerDown'}},topPointerMove:{phasedRegistrationNames:{captured:'onPointerMoveCapture',bubbled:'onPointerMove'}},topPointerUp:{phasedRegistrationNames:{captured:'onPointerUpCapture',bubbled:'onPointerUp'}},topPointerEnter:{phasedRegistrationNames:{captured:'onPointerEnterCapture',bubbled:'onPointerEnter',skipBubbling:!0}},topPointerLeave:{phasedRegistrationNames:{captured:'onPointerLeaveCapture',bubbled:'onPointerLeave',skipBubbling:!0}},topPointerOver:{phasedRegistrationNames:{captured:'onPointerOverCapture',bubbled:'onPointerOver'}},topPointerOut:{phasedRegistrationNames:{captured:'onPointerOutCapture',bubbled:'onPointerOut'}},topGotPointerCapture:{phasedRegistrationNames:{captured:'onGotPointerCaptureCapture',bubbled:'onGotPointerCapture'}},topLostPointerCapture:{phasedRegistrationNames:{captured:'onLostPointerCaptureCapture',bubbled:'onLostPointerCapture'}}},directEventTypes:n,validAttributes:Object.assign({},i,s)};_e.default=l},1917,[1,1865,1867,1892,1918,1881,1899,1900,1902,1895,1880]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.ConditionallyIgnoredEventHandlers=function(n){if('ios'===t.default.OS)return n;return},e.DynamicallyInjectedByGestureHandler=function(n){return u.add(n),n},e.isIgnored=function(n){if('object'==typeof n&&null!=n)return u.has(n);return!1};var t=n(r(d[1])),u=new WeakSet},1918,[1,1838]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(n){var o={};return n.supportedCommands.forEach(function(n){o[n]=function(o){for(var t=arguments.length,u=new Array(t>1?t-1:0),f=1;f0;)y(n,f[t],o);else if(f&&u>0){var c=f;for(var l in i)if(i[l]){var s=c[l];if(void 0!==s){var p=o[l];if(p){if('function'==typeof s&&(s=!0),void 0===s&&(s=null),'object'!=typeof p)n[l]=s;else if('function'==typeof p.diff||'function'==typeof p.process){var v='function'==typeof p.process?p.process(s):s;n[l]=v}i[l]=!1,u--}}}}}function s(n,f,o,t){var i,u=f.length0&&n&&(y(n,s,c),i=null);for(var _ in f)void 0===o[_]&&(c=t[_])&&(n&&void 0!==n[_]||void 0!==(v=f[_])&&('object'!=typeof c||'function'==typeof c.diff||'function'==typeof c.process?((n||(n={}))[_]=null,i||(i={}),i[_]||(i[_]=!0,u++)):n=A(n,v,c)));return n}function b(n,f,o){return h(n,t,f,o)}function j(n,f,o){return h(n,f,t,o)}},1922,[1,1923,1924]); -__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function t(f){if(null!==f&&'object'==typeof f){if(!Array.isArray(f))return f;for(var i={},n=0,u=f.length;n2&&void 0!==arguments[2]?arguments[2]:-1,l='number'==typeof f?arguments.length>3?arguments[3]:void 0:f,c='number'==typeof f?f:-1;if(0===c)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var s=null==l?void 0:l.unsafelyIgnoreFunctions;return null==s&&(!n||!n.onDifferentFunctionsIgnored||l&&'unsafelyIgnoreFunctions'in l||n.onDifferentFunctionsIgnored(o.name,u.name),s=!0),!s}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var v=o.length;if(u.length!==v)return!0;for(var y=0;yn.length)throw new TypeError(`Failed to execute 'substringData' on 'CharacterData': The offset ${t} is greater than the node's length (${n.length}).`);var u=e<0||e>n.length?n.length:e;return n.slice(t,t+u)}}])})(f.default)},1925,[1,3,4,9,11,12,1864,1868,1873,1869]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),f=t(r(d[5])),c=t(r(d[6])),l=t(r(d[7]));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}_e.default=(function(t){function c(){return(0,e.default)(this,c),t=this,n=c,f=arguments,n=(0,o.default)(n),(0,u.default)(t,v()?Reflect.construct(n,f||[],(0,o.default)(t).constructor):n.apply(t,f));var t,n,f}return(0,f.default)(c,t),(0,n.default)(c,[{key:"nodeName",get:function(){return'#text'}},{key:"nodeType",get:function(){return l.default.TEXT_NODE}}])})(c.default)},1926,[1,3,4,9,11,12,1925,1864]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]),o=n(r(d[1]));n(r(d[2])).default?g.performance=new o.default:g.performance||(g.performance={mark:function(){},measure:function(){},now:function(){return(g.nativePerformanceNow||Date.now)()}})},1927,[1,1928,1931]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;t(r(d[1]));var n,u,l=t(r(d[2])),o=t(r(d[3])),f=t(r(d[4])),s=t(r(d[5])),c=t(r(d[6])),v=t(r(d[7])),y=null!=(n=null!=(u=null==v.default?void 0:v.default.now)?u:g.nativePerformanceNow)?n:function(){return Date.now()},p=['mark','measure'];e.default=(function(){return(0,f.default)(function t(){(0,o.default)(this,t),this.eventCounts=new(r(d[8]).EventCounts)},[{key:"memory",get:function(){if(null!=v.default&&v.default.getSimpleMemoryInfo){var t=v.default.getSimpleMemoryInfo();if(t.hasOwnProperty('hermes_heapSize')){var n=t.hermes_heapSize,u=t.hermes_allocatedBytes;return new s.default({jsHeapSizeLimit:null,totalJSHeapSize:n,usedJSHeapSize:u})}return new s.default}return new s.default}},{key:"rnStartupTiming",get:function(){if(null!=v.default&&v.default.getReactNativeStartupTiming){var t=v.default.getReactNativeStartupTiming(),n=t.startTime,u=t.endTime,l=t.initializeRuntimeStart,o=t.initializeRuntimeEnd,f=t.executeJavaScriptBundleEntryPointStart,s=t.executeJavaScriptBundleEntryPointEnd;return new c.default({startTime:n,endTime:u,initializeRuntimeStart:l,initializeRuntimeEnd:o,executeJavaScriptBundleEntryPointStart:f,executeJavaScriptBundleEntryPointEnd:s})}return new c.default}},{key:"mark",value:function(t,n){var u;return null!=v.default&&v.default.markWithResult?u=v.default.markWithResult(t,null==n?void 0:n.startTime):((0,r(d[9]).warnNoNativePerformance)(),u=performance.now()),new(r(d[10]).PerformanceMark)(t,{startTime:u,detail:null==n?void 0:n.detail})}},{key:"clearMarks",value:function(t){null!=v.default&&v.default.clearMarks?v.default.clearMarks(t):(0,r(d[9]).warnNoNativePerformance)()}},{key:"measure",value:function(t,n,u){var o,f,s,c,y=u,p=0,w=0;if('string'==typeof n)s=n,f={};else if(void 0!==n){var E;if(f=n,void 0!==u)throw new TypeError("Performance.measure: Can't have both options and endMark");if(void 0===f.start&&void 0===f.end)throw new TypeError('Performance.measure: Must have at least one of start/end specified in options');if(void 0!==f.start&&void 0!==f.end&&void 0!==f.duration)throw new TypeError("Performance.measure: Can't have both start/end and duration explicitly in options");'number'==typeof f.start?p=f.start:s=f.start,'number'==typeof f.end?w=f.end:y=f.end,c=null!=(E=f.duration)?E:c}var P=p,T=c;if(null!=v.default&&v.default.measureWithResult){var h=v.default.measureWithResult(t,p,w,c,s,y),N=(0,l.default)(h,2);P=N[0],T=N[1]}else(0,r(d[9]).warnNoNativePerformance)();var S=new(r(d[10]).PerformanceMeasure)(t,{startTime:P,duration:null!=T?T:0,detail:null==(o=f)?void 0:o.detail});return S}},{key:"clearMeasures",value:function(t){null!=v.default&&v.default.clearMeasures?null==v.default||v.default.clearMeasures(t):(0,r(d[9]).warnNoNativePerformance)()}},{key:"now",value:function(){return y()}},{key:"getEntries",value:function(){return null!=v.default&&v.default.getEntries?v.default.getEntries().map(r(d[11]).rawToPerformanceEntry):((0,r(d[9]).warnNoNativePerformance)(),[])}},{key:"getEntriesByType",value:function(t){return null==t||p.includes(t)?null!=v.default&&v.default.getEntriesByType?v.default.getEntriesByType((0,r(d[11]).performanceEntryTypeToRaw)(t)).map(r(d[11]).rawToPerformanceEntry):((0,r(d[9]).warnNoNativePerformance)(),[]):(console.warn('Deprecated API for given entry type.'),[])}},{key:"getEntriesByName",value:function(t,n){return null==n||p.includes(n)?null!=v.default&&v.default.getEntriesByName?v.default.getEntriesByName(t,null!=n?(0,r(d[11]).performanceEntryTypeToRaw)(n):void 0).map(r(d[11]).rawToPerformanceEntry):((0,r(d[9]).warnNoNativePerformance)(),[]):(console.warn('Deprecated API for given entry type.'),[])}}])})()},1928,[1,144,19,3,4,1929,1930,1931,1932,1934,1936,1937]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),l=t(r(d[2])),f=t(r(d[3])),n=t(r(d[4])),o=(0,n.default)("jsHeapSizeLimit"),s=(0,n.default)("totalJSHeapSize"),S=(0,n.default)("usedJSHeapSize");e.default=(function(){return(0,l.default)(function t(l){(0,u.default)(this,t),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,S,{writable:!0,value:void 0}),null!=l&&((0,f.default)(this,o)[o]=l.jsHeapSizeLimit,(0,f.default)(this,s)[s]=l.totalJSHeapSize,(0,f.default)(this,S)[S]=l.usedJSHeapSize)},[{key:"jsHeapSizeLimit",get:function(){return(0,f.default)(this,o)[o]}},{key:"totalJSHeapSize",get:function(){return(0,f.default)(this,s)[s]}},{key:"usedJSHeapSize",get:function(){return(0,f.default)(this,S)[S]}}])})()},1929,[1,3,4,45,46]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),f=t(r(d[4])),o=(0,f.default)("startTime"),c=(0,f.default)("endTime"),s=(0,f.default)("initializeRuntimeStart"),v=(0,f.default)("initializeRuntimeEnd"),h=(0,f.default)("executeJavaScriptBundleEntryPointStart"),y=(0,f.default)("executeJavaScriptBundleEntryPointEnd");e.default=(function(){return(0,u.default)(function t(u){(0,n.default)(this,t),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,c,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),null!=u&&((0,l.default)(this,o)[o]=u.startTime,(0,l.default)(this,c)[c]=u.endTime,(0,l.default)(this,s)[s]=u.initializeRuntimeStart,(0,l.default)(this,v)[v]=u.initializeRuntimeEnd,(0,l.default)(this,h)[h]=u.executeJavaScriptBundleEntryPointStart,(0,l.default)(this,y)[y]=u.executeJavaScriptBundleEntryPointEnd)},[{key:"startTime",get:function(){return(0,l.default)(this,o)[o]}},{key:"endTime",get:function(){return(0,l.default)(this,c)[c]}},{key:"initializeRuntimeStart",get:function(){return(0,l.default)(this,s)[s]}},{key:"initializeRuntimeEnd",get:function(){return(0,l.default)(this,v)[v]}},{key:"executeJavaScriptBundleEntryPointStart",get:function(){return(0,l.default)(this,h)[h]}},{key:"executeJavaScriptBundleEntryPointEnd",get:function(){return(0,l.default)(this,y)[y]}}])})()},1930,[1,3,4,45,46]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('NativePerformanceCxx')},1931,[1841]); -__d(function(g,_r,i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceEventTiming=_e.EventCounts=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),u=e(_r(d[3])),r=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),f=e(_r(d[7])),c=e(_r(d[8])),s=e(_r(d[9]));function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y,p=(0,c.default)("processingStart"),h=(0,c.default)("processingEnd"),k=(0,c.default)("interactionId");_e.PerformanceEventTiming=(function(e){function c(e){var n,o,l,s,y,E,b,O,P;return(0,t.default)(this,c),b=this,O=c,P=[{name:e.name,entryType:'event',startTime:null!=(n=e.startTime)?n:0,duration:null!=(o=e.duration)?o:0}],O=(0,r.default)(O),E=(0,u.default)(b,v()?Reflect.construct(O,P||[],(0,r.default)(b).constructor):O.apply(b,P)),Object.defineProperty(E,p,{writable:!0,value:void 0}),Object.defineProperty(E,h,{writable:!0,value:void 0}),Object.defineProperty(E,k,{writable:!0,value:void 0}),(0,f.default)(E,p)[p]=null!=(l=e.processingStart)?l:0,(0,f.default)(E,h)[h]=null!=(s=e.processingEnd)?s:0,(0,f.default)(E,k)[k]=null!=(y=e.interactionId)?y:0,E}return(0,l.default)(c,e),(0,n.default)(c,[{key:"processingStart",get:function(){return(0,f.default)(this,p)[p]}},{key:"processingEnd",get:function(){return(0,f.default)(this,h)[h]}},{key:"interactionId",get:function(){return(0,f.default)(this,k)[k]}},{key:"toJSON",value:function(){return Object.assign({},(e=c,t="toJSON",n=this,u=3,l=(0,o.default)((0,r.default)(1&u?e.prototype:e),t,n),2&u&&"function"==typeof l?function(e){return l.apply(n,e)}:l)([]),{processingStart:(0,f.default)(this,p)[p],processingEnd:(0,f.default)(this,h)[h],interactionId:(0,f.default)(this,k)[k]});var e,t,n,u,l}}])})(_r(d[10]).PerformanceEntry);function E(){var e;if(y)return y;if(!s.default||null==s.default||!s.default.getEventCounts)return(0,_r(d[11]).warnNoNativePerformance)(),y=new Map;var t=new Map(null!=(e=null==s.default.getEventCounts?void 0:s.default.getEventCounts())?e:[]);return y=t,g.queueMicrotask(function(){y=null}),t}_e.EventCounts=(function(){return(0,n.default)(function e(){(0,t.default)(this,e)},[{key:"size",get:function(){return E().size}},{key:"entries",value:function(){return E().entries()}},{key:"forEach",value:function(e){return E().forEach(e)}},{key:"get",value:function(e){return E().get(e)}},{key:"has",value:function(e){return E().has(e)}},{key:"keys",value:function(){return E().keys()}},{key:"values",value:function(){return E().values()}}])})()},1932,[1,3,4,9,11,42,12,45,46,1931,1933,1934]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.PerformanceEntry=void 0;var n=t(r(d[1])),u=t(r(d[2])),f=t(r(d[3])),l=t(r(d[4])),o=(0,l.default)("name"),s=(0,l.default)("entryType"),y=(0,l.default)("startTime"),h=(0,l.default)("duration");e.PerformanceEntry=(function(){return(0,u.default)(function t(u){(0,n.default)(this,t),Object.defineProperty(this,o,{writable:!0,value:void 0}),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,y,{writable:!0,value:void 0}),Object.defineProperty(this,h,{writable:!0,value:void 0}),(0,f.default)(this,o)[o]=u.name,(0,f.default)(this,s)[s]=u.entryType,(0,f.default)(this,y)[y]=u.startTime,(0,f.default)(this,h)[h]=u.duration},[{key:"name",get:function(){return(0,f.default)(this,o)[o]}},{key:"entryType",get:function(){return(0,f.default)(this,s)[s]}},{key:"startTime",get:function(){return(0,f.default)(this,y)[y]}},{key:"duration",get:function(){return(0,f.default)(this,h)[h]}},{key:"toJSON",value:function(){return{name:(0,f.default)(this,o)[o],entryType:(0,f.default)(this,s)[s],startTime:(0,f.default)(this,y)[y],duration:(0,f.default)(this,h)[h]}}}])})()},1933,[1,3,4,45,46]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.warnNoNativePerformance=function(){(0,o.default)('missing-native-performance','Missing native implementation of Performance')};var o=n(r(d[1]))},1934,[1,1935]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={};e.default=function(n,o){t[n]||(console.warn(o),t[n]=!0)}},1935,[]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PerformanceMeasure=_e.PerformanceMark=void 0;var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),f=e(r(d[5])),l=e(r(d[6])),c=e(r(d[7]));function s(e,t,n){return t=(0,o.default)(t),(0,u.default)(e,v()?Reflect.construct(t,n||[],(0,o.default)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=(0,c.default)("detail"),p=(_e.PerformanceMark=(function(e){function u(e,n){var o,f;return(0,t.default)(this,u),f=s(this,u,[{name:e,entryType:'mark',startTime:null!=(o=null==n?void 0:n.startTime)?o:performance.now(),duration:0}]),Object.defineProperty(f,y,{writable:!0,value:void 0}),n&&((0,l.default)(f,y)[y]=n.detail),f}return(0,f.default)(u,e),(0,n.default)(u,[{key:"detail",get:function(){return(0,l.default)(this,y)[y]}}])})(r(d[8]).PerformanceEntry),(0,c.default)("detail"));_e.PerformanceMeasure=(function(e){function u(e,n){var o;return(0,t.default)(this,u),o=s(this,u,[{name:e,entryType:'measure',startTime:n.startTime,duration:n.duration}]),Object.defineProperty(o,p,{writable:!0,value:void 0}),n&&((0,l.default)(o,p)[p]=n.detail),o}return(0,f.default)(u,e),(0,n.default)(u,[{key:"detail",get:function(){return(0,l.default)(this,p)[p]}}])})(r(d[8]).PerformanceEntry)},1936,[1,3,4,9,11,12,45,46,1933]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.RawPerformanceEntryTypeValues=void 0,e.performanceEntryTypeToRaw=function(t){switch(t){case'mark':return n.MARK;case'measure':return n.MEASURE;case'event':return n.EVENT;case'longtask':return n.LONGTASK;default:throw new TypeError(`performanceEntryTypeToRaw: unexpected performance entry type received: ${t}`)}},e.rawToPerformanceEntry=function(o){return o.entryType===n.EVENT?new(r(d[0]).PerformanceEventTiming)({name:o.name,startTime:o.startTime,duration:o.duration,processingStart:o.processingStart,processingEnd:o.processingEnd,interactionId:o.interactionId}):o.entryType===n.LONGTASK?new(r(d[1]).PerformanceLongTaskTiming)({name:o.name,entryType:t(o.entryType),startTime:o.startTime,duration:o.duration}):o.entryType===n.MARK?new(r(d[2]).PerformanceMark)(o.name,{startTime:o.startTime}):o.entryType===n.MEASURE?new(r(d[2]).PerformanceMeasure)(o.name,{startTime:o.startTime,duration:o.duration}):new(r(d[3]).PerformanceEntry)({name:o.name,entryType:t(o.entryType),startTime:o.startTime,duration:o.duration})},e.rawToPerformanceEntryType=t;var n=e.RawPerformanceEntryTypeValues={MARK:1,MEASURE:2,EVENT:3,LONGTASK:4};function t(t){switch(t){case n.MARK:return'mark';case n.MEASURE:return'measure';case n.EVENT:return'event';case n.LONGTASK:return'longtask';default:throw new TypeError(`rawToPerformanceEntryType: unexpected performance entry type received: ${t}`)}}},1937,[1932,1938,1936,1933]); -__d(function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.TaskAttributionTiming=_e.PerformanceLongTaskTiming=void 0;var n=t(_r(d[1])),e=t(_r(d[2])),r=t(_r(d[3])),u=t(_r(d[4])),o=t(_r(d[5])),f=t(_r(d[6]));function c(t,n,e){return n=(0,o.default)(n),(0,u.default)(t,l()?Reflect.construct(n,e||[],(0,o.default)(t).constructor):n.apply(t,e))}function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}_e.TaskAttributionTiming=(function(t){function n(){return(0,r.default)(this,n),c(this,n,arguments)}return(0,f.default)(n,t),(0,e.default)(n)})(_r(d[7]).PerformanceEntry);var s=Object.preventExtensions([]);_e.PerformanceLongTaskTiming=(function(t){function u(){return(0,r.default)(this,u),c(this,u,arguments)}return(0,f.default)(u,t),(0,e.default)(u,[{key:"attribution",get:function(){return s}},{key:"toJSON",value:function(){return Object.assign({},(t=u,e="toJSON",r=this,f=3,c=(0,n.default)((0,o.default)(1&f?t.prototype:t),e,r),2&f&&"function"==typeof c?function(t){return c.apply(r,t)}:c)([]),{attribution:this.attribution});var t,e,r,f,c}}])})(_r(d[7]).PerformanceEntry)},1938,[1,42,4,3,9,11,12,1933]); -__d(function(g,r,i,a,m,e,d){'use strict';var l;if(null!=(l=g)&&null!=(l=l.HermesInternal)&&null!=l.hasPromise&&l.hasPromise())g.Promise;else r(d[0]).polyfillGlobal('Promise',function(){return r(d[1]).default})},1939,[1857,1940]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1]));r(d[2]);e.default=u.default},1940,[1,157,159]); -__d(function(g,r,i,a,m,e,d){'use strict';if(!0===g.RN$Bridgeless)g.RN$enableMicrotasksInReact=!0,r(d[0]).polyfillGlobal('queueMicrotask',function(){return r(d[1]).default.queueMicrotask}),r(d[0]).polyfillGlobal('setImmediate',function(){return r(d[2]).setImmediate}),r(d[0]).polyfillGlobal('clearImmediate',function(){return r(d[2]).clearImmediate}),r(d[0]).polyfillGlobal('requestIdleCallback',function(){return r(d[3]).default.requestIdleCallback}),r(d[0]).polyfillGlobal('cancelIdleCallback',function(){return r(d[3]).default.cancelIdleCallback});else{var l=function(l){r(d[0]).polyfillGlobal(l,function(){return r(d[4]).default[l]})};l('setTimeout'),l('clearTimeout'),l('setInterval'),l('clearInterval'),l('requestAnimationFrame'),l('cancelAnimationFrame'),l('requestIdleCallback'),l('cancelIdleCallback'),r(d[0]).polyfillGlobal('queueMicrotask',function(){return r(d[5]).default}),r(d[0]).polyfillGlobal('setImmediate',function(){return r(d[4]).default.queueReactNativeMicrotask}),r(d[0]).polyfillGlobal('clearImmediate',function(){return r(d[4]).default.clearReactNativeMicrotask})}},1941,[1857,1942,1943,1944,1945,1948]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('NativeMicrotasksCxx')},1942,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.clearImmediate=function(t){n.add(t)},e.setImmediate=function(o){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;fv&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=o.indexOf(e);if(-1!==u){var f=l[u],s=i[u];if(s&&f){'setInterval'!==f&&b(u);try{'setTimeout'===f||'setInterval'===f||'queueReactNativeMicrotask'===f?s():'requestAnimationFrame'===f?s(g.performance.now()):'requestIdleCallback'===f?s({timeRemaining:function(){return Math.max(0,n-(g.performance.now()-t))},didTimeout:!!c}):console.error('Tried to call a callback with invalid type: '+f)}catch(e){h.push(e)}}else console.error('No callback found for timerID '+e)}}function w(){if(0===u.length)return!1;var e=u;u=[];for(var t=0;t0}function b(e){o[e]=null,i[e]=null,l[e]=null,c.push(e)}function N(e){if(null!=e){var t=o.indexOf(e);if(-1!==t){var n=l[t];b(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&R(e)}}}var I,M={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(f.splice(e,1),p(i,g.performance.now(),!0)),delete s[i],0===f.length&&y(!1)},n);s[i]=l}return i},cancelIdleCallback:function(e){N(e);var t=f.indexOf(e);-1!==t&&f.splice(t,1);var n=s[e];n&&(M.clearTimeout(n),delete s[e]),0===f.length&&y(!1)},clearTimeout:function(e){N(e)},clearInterval:function(e){N(e)},clearReactNativeMicrotask:function(e){N(e);var t=u.indexOf(e);-1!==t&&u.splice(t,1)},cancelAnimationFrame:function(e){N(e)},callTimers:function(e){r(d[2])(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),h.length=0;for(var t=0;t0){if(n>1)for(var i=1;i0){var t=f;f=[];for(var i=0;i-1}Object.defineProperty(e,"__esModule",{value:!0}),e.hasNativeConstructor=function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)},e.isNativeFunction=t},1956,[]); -__d(function(g,r,i,a,m,e,d){'use strict';r(d[0]).polyfillGlobal('XMLHttpRequest',function(){return r(d[1]).default}),r(d[0]).polyfillGlobal('FormData',function(){return r(d[2]).default}),r(d[0]).polyfillGlobal('fetch',function(){return r(d[3]).fetch}),r(d[0]).polyfillGlobal('Headers',function(){return r(d[3]).Headers}),r(d[0]).polyfillGlobal('Request',function(){return r(d[3]).Request}),r(d[0]).polyfillGlobal('Response',function(){return r(d[3]).Response}),r(d[0]).polyfillGlobal('WebSocket',function(){return r(d[4]).default}),r(d[0]).polyfillGlobal('Blob',function(){return r(d[5]).default}),r(d[0]).polyfillGlobal('File',function(){return r(d[6]).default}),r(d[0]).polyfillGlobal('FileReader',function(){return r(d[7]).default}),r(d[0]).polyfillGlobal('URL',function(){return r(d[8]).URL}),r(d[0]).polyfillGlobal('URLSearchParams',function(){return r(d[8]).URLSearchParams}),r(d[0]).polyfillGlobal('AbortController',function(){return r(d[9]).AbortController}),r(d[0]).polyfillGlobal('AbortSignal',function(){return r(d[9]).AbortSignal})},1957,[1857,1958,1976,1981,1982,1968,1991,1992,1997,224]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null==g.RN$useBuiltInEventTarget?void 0:g.RN$useBuiltInEventTarget();e.default=t?r(d[0]).default:r(d[1]).default},1958,[1959,1980]); -__d(function(g,_r,i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),s=e(_r(d[2])),r=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),h=e(_r(d[8])),l=e(_r(d[9])),p=e(_r(d[10]));function c(e,t,s){return t=(0,o.default)(t),(0,a.default)(e,_()?Reflect.construct(t,s||[],(0,o.default)(e).constructor):t.apply(e,s))}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(_=function(){return!!e})()}_r(d[11]).default.isAvailable&&_r(d[11]).default.addNetworkingHandler();var f={arraybuffer:'function'==typeof g.ArrayBuffer,blob:'function'==typeof g.Blob,document:!1,json:!0,text:!0,'':!0},v=(function(e){function t(){return(0,r.default)(this,t),c(this,t,arguments)}return(0,u.default)(t,e),(0,n.default)(t,[{key:"onload",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'load')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'load',e)}},{key:"onloadstart",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'loadstart')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'loadstart',e)}},{key:"onprogress",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'progress')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'progress',e)}},{key:"ontimeout",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'timeout')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'timeout',e)}},{key:"onerror",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'error')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'error',e)}},{key:"onabort",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'abort')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'abort',e)}},{key:"onloadend",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'loadend')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'loadend',e)}}])})(l.default),y=(function(e){function a(){var e;return(0,r.default)(this,a),(e=c(this,a)).UNSENT=0,e.OPENED=1,e.HEADERS_RECEIVED=2,e.LOADING=3,e.DONE=4,e.readyState=0,e.status=0,e.timeout=0,e.withCredentials=!0,e.upload=new v,e._aborted=!1,e._hasError=!1,e._method=null,e._perfKey=null,e._response='',e._url=null,e._timedOut=!1,e._trackingName=null,e._incrementalEvents=!1,e._startTime=null,e._performanceLogger=_r(d[13]).default,e._reset(),e}return(0,u.default)(a,e),(0,n.default)(a,[{key:"_reset",value:function(){this.readyState=this.UNSENT,this.responseHeaders=void 0,this.status=0,delete this.responseURL,this._requestId=null,this._cachedResponse=void 0,this._hasError=!1,this._headers={},this._response='',this._responseType='',this._sent=!1,this._lowerCaseResponseHeaders={},this._clearSubscriptions(),this._timedOut=!1}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");f.hasOwnProperty(e)?(_r(d[14])(f[e]||'document'===e,`The provided value '${e}' is unsupported in this environment.`),'blob'===e&&_r(d[14])(_r(d[11]).default.isAvailable,'Native module BlobModule is required for blob support'),this._responseType=e):console.warn(`The provided value '${e}' is not a valid 'responseType'.`)}},{key:"responseText",get:function(){if(''!==this._responseType&&'text'!==this._responseType)throw new Error(`The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '${this._responseType}'.`);return this.readyState<3?'':this._response}},{key:"response",get:function(){var e=this.responseType;if(''===e||'text'===e)return this.readyState<3||this._hasError?'':this._response;if(4!==this.readyState)return null;if(void 0!==this._cachedResponse)return this._cachedResponse;switch(e){case'document':default:this._cachedResponse=null;break;case'arraybuffer':this._cachedResponse=_r(d[15]).toByteArray(this._response).buffer;break;case'blob':if('object'==typeof this._response&&this._response)this._cachedResponse=_r(d[11]).default.createFromOptions(this._response);else{if(''!==this._response)throw new Error(`Invalid response for blob - expecting object, was ${typeof this._response}: ${this._response.trim()}`);this._cachedResponse=_r(d[11]).default.createFromParts([])}break;case'json':try{this._cachedResponse=JSON.parse(this._response)}catch(e){this._cachedResponse=null}}return this._cachedResponse}},{key:"__didCreateRequest",value:function(e){this._requestId=e,a._interceptor&&a._interceptor.requestSent(e,this._url||'',this._method||'GET',this._headers)}},{key:"__didUploadProgress",value:function(e,t,s){e===this._requestId&&(0,_r(d[16]).dispatchTrustedEvent)(this.upload,new p.default('progress',{lengthComputable:!0,loaded:t,total:s}))}},{key:"__didReceiveResponse",value:function(e,t,s,r){e===this._requestId&&(null!=this._perfKey&&this._performanceLogger.stopTimespan(this._perfKey),this.status=t,this.setResponseHeaders(s),this.setReadyState(this.HEADERS_RECEIVED),r||''===r?this.responseURL=r:delete this.responseURL,a._interceptor&&a._interceptor.responseReceived(e,r||this._url||'',t,s||{}))}},{key:"__didReceiveData",value:function(e,t){e===this._requestId&&(this._response=t,this._cachedResponse=void 0,this.setReadyState(this.LOADING),a._interceptor&&a._interceptor.dataReceived(e,t))}},{key:"__didReceiveIncrementalData",value:function(e,t,s,r){e===this._requestId&&(this._response?this._response+=t:this._response=t,a._profiling&&performance.mark('Track:XMLHttpRequest:Incremental Data: '+this._getMeasureURL()),a._interceptor&&a._interceptor.dataReceived(e,t),this.setReadyState(this.LOADING),this.__didReceiveDataProgress(e,s,r))}},{key:"__didReceiveDataProgress",value:function(e,t,s){e===this._requestId&&(0,_r(d[16]).dispatchTrustedEvent)(this,new p.default('progress',{lengthComputable:s>=0,loaded:t,total:s}))}},{key:"__didCompleteResponse",value:function(e,t,s){if(e===this._requestId){if(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),a._profiling&&null!=this._startTime){var r=this._startTime;performance.measure('Track:XMLHttpRequest:'+this._getMeasureURL(),{start:r,end:performance.now()})}t?a._interceptor&&a._interceptor.loadingFailed(e,t):a._interceptor&&a._interceptor.loadingFinished(e,this._response.length)}}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e&&e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders,s=new Map;for(var r of Object.keys(e)){var n=e[r],a=r.toLowerCase(),o=s.get(a);o?(o.headerValue+=', '+n,s.set(a,o)):s.set(a,{lowerHeaderName:a,upperHeaderName:r.toUpperCase(),headerValue:n})}return(0,t.default)(s.values()).sort(function(e,t){return e.upperHeaderNamet.upperHeaderName?1:0}).map(function(e){return e.lowerHeaderName+': '+e.headerValue}).join('\r\n')+'\r\n'}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var r=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(_r(d[17]).default.addListener('didSendNetworkData',function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[17]).default.addListener('didReceiveNetworkResponse',function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[17]).default.addListener('didReceiveNetworkData',function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[17]).default.addListener('didReceiveNetworkIncrementalData',function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[17]).default.addListener('didReceiveNetworkDataProgress',function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[17]).default.addListener('didCompleteNetworkResponse',function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))}));var n='text';'arraybuffer'===this._responseType&&(n='base64'),'blob'===this._responseType&&(n='blob');var a,o;o=null!=(a=s._trackingName)?a:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),s._startTime=performance.now(),_r(d[14])(s._method,'XMLHttpRequest method needs to be defined (%s).',o),_r(d[14])(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),_r(d[17]).default.sendRequest(s._method,s._trackingName,s._url,s._headers,e,n,r,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&_r(d[17]).default.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('readystatechange')),e===this.DONE&&(this._aborted?(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('abort')):this._hasError?this._timedOut?(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('timeout')):(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('error')):(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('load')),(0,_r(d[16]).dispatchTrustedEvent)(this,new h.default('loadend')))}},{key:"addEventListener",value:function(e,t){var r,n,u,h,l;'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(r=a,n="addEventListener",u=this,h=3,l=(0,s.default)((0,o.default)(1&h?r.prototype:r),n,u),2&h&&"function"==typeof l?function(e){return l.apply(u,e)}:l)([e,t])}},{key:"_getMeasureURL",value:function(){var e,t;return null!=(e=null!=(t=this._trackingName)?t:this._url)?e:"Unknown URL"}},{key:"onabort",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'abort')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'abort',e)}},{key:"onerror",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'error')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'error',e)}},{key:"onload",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'load')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'load',e)}},{key:"onloadstart",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'loadstart')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'loadstart',e)}},{key:"onprogress",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'progress')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'progress',e)}},{key:"ontimeout",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'timeout')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'timeout',e)}},{key:"onloadend",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'loadend')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'loadend',e)}},{key:"onreadystatechange",get:function(){return(0,_r(d[12]).getEventHandlerAttribute)(this,'readystatechange')},set:function(e){(0,_r(d[12]).setEventHandlerAttribute)(this,'readystatechange',e)}}],[{key:"__setInterceptor_DO_NOT_USE",value:function(e){a._interceptor=e}},{key:"enableProfiling",value:function(e){a._profiling=e}}])})(l.default);y.UNSENT=0,y.OPENED=1,y.HEADERS_RECEIVED=2,y.LOADING=3,y.DONE=4,y._interceptor=null,y._profiling=!1;_e.default=y},1959,[1,32,42,3,4,9,11,12,1960,1962,1964,1965,1970,1971,39,26,1963,1974]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),u=e.default=(function(){return(0,o.default)(function t(o,u){if((0,n.default)(this,t),this._defaultPrevented=!1,this._timeStamp=performance.now(),this[r(d[3]).COMPOSED_PATH_KEY]=[],this[r(d[3]).CURRENT_TARGET_KEY]=null,this[r(d[3]).EVENT_PHASE_KEY]=t.NONE,this[r(d[3]).IN_PASSIVE_LISTENER_FLAG_KEY]=!1,this[r(d[3]).IS_TRUSTED_KEY]=!1,this[r(d[3]).STOP_IMMEDIATE_PROPAGATION_FLAG_KEY]=!1,this[r(d[3]).STOP_PROPAGATION_FLAG_KEY]=!1,this[r(d[3]).TARGET_KEY]=null,arguments.length<1)throw new TypeError("Failed to construct 'Event': 1 argument required, but only 0 present.");var l=typeof u;if(null!=u&&'object'!==l&&'function'!==l)throw new TypeError("Failed to construct 'Event': The provided value is not of type 'EventInit'.");this._type=String(o),this._bubbles=Boolean(null==u?void 0:u.bubbles),this._cancelable=Boolean(null==u?void 0:u.cancelable),this._composed=Boolean(null==u?void 0:u.composed)},[{key:"bubbles",get:function(){return this._bubbles}},{key:"cancelable",get:function(){return this._cancelable}},{key:"composed",get:function(){return this._composed}},{key:"currentTarget",get:function(){return(0,r(d[3]).getCurrentTarget)(this)}},{key:"defaultPrevented",get:function(){return this._defaultPrevented}},{key:"eventPhase",get:function(){return(0,r(d[3]).getEventPhase)(this)}},{key:"isTrusted",get:function(){return(0,r(d[3]).getIsTrusted)(this)}},{key:"target",get:function(){return(0,r(d[3]).getTarget)(this)}},{key:"timeStamp",get:function(){return this._timeStamp}},{key:"type",get:function(){return this._type}},{key:"composedPath",value:function(){return(0,r(d[3]).getComposedPath)(this).slice()}},{key:"preventDefault",value:function(){this._cancelable&&((0,r(d[3]).getInPassiveListenerFlag)(this)?console.error(new Error('Unable to preventDefault inside passive event listener invocation.')):this._defaultPrevented=!0)}},{key:"stopImmediatePropagation",value:function(){(0,r(d[3]).setStopPropagationFlag)(this,!0),(0,r(d[3]).setStopImmediatePropagationFlag)(this,!0)}},{key:"stopPropagation",value:function(){(0,r(d[3]).setStopPropagationFlag)(this,!0)}}])})();Object.defineProperty(u,'NONE',{enumerable:!0,value:0}),Object.defineProperty(u.prototype,'NONE',{enumerable:!0,value:0}),Object.defineProperty(u,'CAPTURING_PHASE',{enumerable:!0,value:1}),Object.defineProperty(u.prototype,'CAPTURING_PHASE',{enumerable:!0,value:1}),Object.defineProperty(u,'AT_TARGET',{enumerable:!0,value:2}),Object.defineProperty(u.prototype,'AT_TARGET',{enumerable:!0,value:2}),Object.defineProperty(u,'BUBBLING_PHASE',{enumerable:!0,value:3}),Object.defineProperty(u.prototype,'BUBBLING_PHASE',{enumerable:!0,value:3})},1960,[1,3,4,1961]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.TARGET_KEY=e.STOP_PROPAGATION_FLAG_KEY=e.STOP_IMMEDIATE_PROPAGATION_FLAG_KEY=e.IS_TRUSTED_KEY=e.IN_PASSIVE_LISTENER_FLAG_KEY=e.EVENT_PHASE_KEY=e.CURRENT_TARGET_KEY=e.COMPOSED_PATH_KEY=void 0,e.getComposedPath=function(n){return n[t]},e.getCurrentTarget=function(t){return t[n]},e.getEventPhase=function(t){return t[o]},e.getInPassiveListenerFlag=function(t){return t[E]},e.getIsTrusted=function(t){return t[_]},e.getStopImmediatePropagationFlag=function(t){return t[T]},e.getStopPropagationFlag=function(t){return t[P]},e.getTarget=function(t){return t[u]},e.setComposedPath=function(n,o){n[t]=o},e.setCurrentTarget=function(t,o){t[n]=o},e.setEventPhase=function(t,n){t[o]=n},e.setInPassiveListenerFlag=function(t,n){t[E]=n},e.setIsTrusted=function(t,n){t[_]=n},e.setStopImmediatePropagationFlag=function(t,n){t[T]=n},e.setStopPropagationFlag=function(t,n){t[P]=n},e.setTarget=function(t,n){t[u]=n};var t=e.COMPOSED_PATH_KEY=Symbol('composedPath'),n=e.CURRENT_TARGET_KEY=Symbol('currentTarget'),o=e.EVENT_PHASE_KEY=Symbol('eventPhase'),E=e.IN_PASSIVE_LISTENER_FLAG_KEY=Symbol('inPassiveListenerFlag'),_=e.IS_TRUSTED_KEY=Symbol('isTrusted'),T=e.STOP_IMMEDIATE_PROPAGATION_FLAG_KEY=Symbol('stopPropagationFlag'),P=e.STOP_PROPAGATION_FLAG_KEY=Symbol('stopPropagationFlag'),u=e.TARGET_KEY=Symbol('target')},1961,[]); -__d(function(g,r,_i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3]));e.default=(function(){return(0,o.default)(function t(){(0,n.default)(this,t)},[{key:"addEventListener",value:function(t,n){var o,l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(arguments.length<2)throw new TypeError(`Failed to execute 'addEventListener' on 'EventTarget': 2 arguments required, but only ${arguments.length} present.`);if(null!=n){i(n,'addEventListener');var v,s,f,E,T=String(t);if(null==u||'object'!=typeof u&&'function'!=typeof u)v=Boolean(u),s=!1,f=!1,E=null;else if(v=Boolean(u.capture),s=null!=u.passive&&Boolean(u.passive),f=Boolean(u.once),void 0!==(E=u.signal)&&!(E instanceof AbortSignal))throw new TypeError("Failed to execute 'addEventListener' on 'EventTarget': Failed to read the 'signal' property from 'AddEventListenerOptions': Failed to convert value to 'AbortSignal'.");if(null==(o=E)||!o.aborted){var h=c(this,v),y=null==(l=h)?void 0:l.get(T);if(null==y)null==h&&p(this,v,h=new Map),y=new Map,h.set(T,y);else if(y.has(n))return;var b={callback:n,passive:s,once:f,removed:!1};y.set(n,b);var P=y;null!=E&&E.addEventListener('abort',function(){b.removed=!0,P.get(n)===b&&P.delete(n)},{once:!0})}}}},{key:"removeEventListener",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(arguments.length<2)throw new TypeError(`Failed to execute 'removeEventListener' on 'EventTarget': 2 arguments required, but only ${arguments.length} present.`);if(null!=n){i(n,'removeEventListener');var l=String(t),u=c(this,'boolean'==typeof o?o:Boolean(o.capture)),v=null==u?void 0:u.get(l);if(null!=v){var s=v.get(n);null!=s&&(s.removed=!0,v.delete(n))}}}},{key:"dispatchEvent",value:function(t){if(!(t instanceof l.default))throw new TypeError("Failed to execute 'dispatchEvent' on 'EventTarget': parameter 1 is not of type 'Event'.");if(h(t))throw new Error("Failed to execute 'dispatchEvent' on 'EventTarget': The event is already being dispatched.");return(0,r(d[4]).setIsTrusted)(t,!1),u(this,t),!t.defaultPrevented}},{key:r(d[5]).EVENT_TARGET_GET_THE_PARENT_KEY,value:function(){return null}},{key:r(d[5]).INTERNAL_DISPATCH_METHOD_KEY,value:function(t){u(this,t)}}])})();function i(t,n){if('function'!=typeof t&&'object'!=typeof t)throw new TypeError(`Failed to execute '${n}' on 'EventTarget': parameter 2 is not of type 'Object'.`)}function u(t,n){y(n,!0);var o=v(t,n);(0,r(d[4]).setComposedPath)(n,o),(0,r(d[4]).setTarget)(n,t);for(var i=o.length-1;i>=0&&!(0,r(d[4]).getStopPropagationFlag)(n);i--){var u=o[i];(0,r(d[4]).setEventPhase)(n,u===t?l.default.AT_TARGET:l.default.CAPTURING_PHASE),s(u,n,l.default.CAPTURING_PHASE)}for(var f of o){if((0,r(d[4]).getStopPropagationFlag)(n))break;if(!n.bubbles&&f!==t)break;(0,r(d[4]).setEventPhase)(n,f===t?l.default.AT_TARGET:l.default.BUBBLING_PHASE),s(f,n,l.default.BUBBLING_PHASE)}(0,r(d[4]).setEventPhase)(n,l.default.NONE),(0,r(d[4]).setCurrentTarget)(n,null),(0,r(d[4]).setComposedPath)(n,[]),y(n,!1),(0,r(d[4]).setStopImmediatePropagationFlag)(n,!1),(0,r(d[4]).setStopPropagationFlag)(n,!1)}function v(t,n){for(var o=[],l=t;null!=l;)o.push(l),l=l[r(d[5]).EVENT_TARGET_GET_THE_PARENT_KEY]();return o}function s(t,n,o){var i=c(t,o===l.default.CAPTURING_PHASE);(0,r(d[4]).setCurrentTarget)(n,t);var u=null==i?void 0:i.get(n.type);if(null!=u){var v=Array.from(u.values());for(var s of((0,r(d[4]).setCurrentTarget)(n,t),v))if(!s.removed){s.once&&t.removeEventListener(n.type,s.callback,o===l.default.CAPTURING_PHASE),s.passive&&(0,r(d[4]).setInPassiveListenerFlag)(n,!0);var f=g.event;g.event=n;var E=s.callback;try{'function'==typeof E?E.call(t,n):'function'==typeof E.handleEvent&&E.handleEvent(n)}catch(t){console.error(t)}if(s.passive&&(0,r(d[4]).setInPassiveListenerFlag)(n,!1),g.event=f,(0,r(d[4]).getStopImmediatePropagationFlag)(n))break}}}var f=Symbol('capturingListeners'),E=Symbol('bubblingListeners');function c(t,n){return n?t[f]:t[E]}function p(t,n,o){n?t[f]=o:t[E]=o}var T=Symbol('Event.dispatch');function h(t){return t[T]}function y(t,n){t[T]=n}},1962,[1,3,4,1960,1961,1963]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.INTERNAL_DISPATCH_METHOD_KEY=e.EVENT_TARGET_GET_THE_PARENT_KEY=void 0,e.dispatchTrustedEvent=function(T,_){return(0,r(d[0]).setIsTrusted)(_,!0),T[E](_)};e.EVENT_TARGET_GET_THE_PARENT_KEY=Symbol('EventTarget[get the parent]');var E=e.INTERNAL_DISPATCH_METHOD_KEY=Symbol('EventTarget[dispatch]')},1963,[1961]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),n=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6]));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}_e.default=(function(t){function f(t,l){var o,h,v,_;return(0,e.default)(this,f),h=this,v=f,_=[t,l],v=(0,n.default)(v),(o=(0,u.default)(h,c()?Reflect.construct(v,_||[],(0,n.default)(h).constructor):v.apply(h,_)))._lengthComputable=Boolean(null==l?void 0:l.lengthComputable),o._loaded=Number(null==l?void 0:l.loaded)||0,o._total=Number(null==l?void 0:l.total)||0,o}return(0,o.default)(f,t),(0,l.default)(f,[{key:"lengthComputable",get:function(){return this._lengthComputable}},{key:"loaded",get:function(){return this._loaded}},{key:"total",get:function(){return this._total}}])})(f.default)},1964,[1,3,4,9,11,12,1960]); -__d(function(g,_r,i,a,m,e,d){var t=_r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(_r(d[1])),r=t(_r(d[2])),o=t(_r(d[3])),u=t(_r(d[4]));var n=(function(){function t(){(0,l.default)(this,t)}return(0,r.default)(t,null,[{key:"createFromParts",value:function(l,r){(0,u.default)(o.default,'NativeBlobModule is available.');var n='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)}),f=l.map(function(t){if(t instanceof ArrayBuffer||ArrayBuffer.isView(t))throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof _r(d[5]).default?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),c=f.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(f,n),t.createFromOptions({blobId:n,offset:0,size:c,type:r?r.type:'',lastModified:r?r.lastModified:Date.now()})}},{key:"createFromOptions",value:function(t){return _r(d[6]).register(t.blobId),Object.assign(Object.create(_r(d[5]).default.prototype),{data:null==t.__collector?Object.assign({},t,{__collector:(l=t.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(l))}):t});var l}},{key:"release",value:function(t){(0,u.default)(o.default,'NativeBlobModule is available.'),_r(d[6]).unregister(t),_r(d[6]).has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,u.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,u.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,u.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,u.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}])})();n.isAvailable=!!o.default;e.default=n},1965,[1,3,4,1966,39,1968,1969]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1966,[1967]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,u,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,l)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((u=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(u.get||u.set)?o(l,f,u):l[f]=e[f]);return l})(e,t)})(_r(d[0])).get('BlobModule'),t=null,n=null;null!=e&&(n={getConstants:function(){return null==t&&(t=e.getConstants()),t},addNetworkingHandler:function(){e.addNetworkingHandler()},addWebSocketHandler:function(t){e.addWebSocketHandler(t)},removeWebSocketHandler:function(t){e.removeWebSocketHandler(t)},sendOverSocket:function(t,n){e.sendOverSocket(t,n)},createFromParts:function(t,n){e.createFromParts(t,n)},release:function(t){e.release(t)}});_e.default=n},1967,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),s=(function(){return(0,o.default)(function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;(0,n.default)(this,t);var l=r(d[3]).default;this.data=l.createFromParts(o,s).data},[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'',s=r(d[3]).default,l=this.data,u=l.offset,f=l.size;return'number'==typeof t&&(t>f&&(t=f),u+=t,f-=t,'number'==typeof n&&(n<0&&(n=this.size+n),n>this.size&&(n=this.size),f=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:f,type:o,__collector:this.data.__collector})}},{key:"close",value:function(){r(d[3]).default.release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}])})();e.default=s},1968,[1,3,4,1965]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.unregister=e.register=e.has=void 0;var t=new Map;e.register=function(n){var u=t.get(n);null!=u?t.set(n,u+1):t.set(n,1)},e.unregister=function(n){var u=t.get(n);null!=u&&(u<=1?t.delete(n):t.set(n,u-1))},e.has=function(n){return t.get(n)||!1}},1969,[]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.getEventHandlerAttribute=function(e,n){var l,u=null==(l=t(e))?void 0:l.get(n);return null!=u?u.handleEvent:null},_e.setEventHandlerAttribute=function(e,l,u){var v=t(e);if(null!=v){var o=v.get(l);o&&(e.removeEventListener(l,o),v.delete(l))}if(null!=u&&('function'==typeof u||'object'==typeof u)){var f={handleEvent:u};try{e.addEventListener(l,f),null==v&&n(e,v=new Map),v.set(l,f)}catch(e){}}null!=v&&0===v.size&&n(e,null)};var e=Symbol('eventHandlerAttributeMap');function t(t){return t[e]}function n(t,n){t[e]=n}},1970,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=(0,t(r(d[1])).default)();e.default=u},1971,[1,1972]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return new l},e.getCurrentTimestamp=void 0;var s,n=t(r(d[1])),o=t(r(d[2])),u=(t(r(d[3])),e.getCurrentTimestamp=null!=(s=g.nativeQPLTimestamp)?s:function(){return g.performance.now()}),l=(function(){return(0,o.default)(function t(){(0,n.default)(this,t),this._timespans={},this._extras={},this._points={},this._pointExtras={},this._closed=!1},[{key:"addTimespan",value:function(t,s,n,o,u){this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,endTime:n,totalTime:n-(s||0),startExtras:o,endExtras:u})}},{key:"append",value:function(t){this._timespans=Object.assign({},t.getTimespans(),this._timespans),this._extras=Object.assign({},t.getExtras(),this._extras),this._points=Object.assign({},t.getPoints(),this._points),this._pointExtras=Object.assign({},t.getPointExtras(),this._pointExtras)}},{key:"clear",value:function(){this._timespans={},this._extras={},this._points={}}},{key:"clearCompleted",value:function(){for(var t in this._timespans){var s;null!=(null==(s=this._timespans[t])?void 0:s.totalTime)&&delete this._timespans[t]}this._extras={},this._points={}}},{key:"close",value:function(){this._closed=!0}},{key:"currentTimestamp",value:function(){return u()}},{key:"getExtras",value:function(){return this._extras}},{key:"getPoints",value:function(){return this._points}},{key:"getPointExtras",value:function(){return this._pointExtras}},{key:"getTimespans",value:function(){return this._timespans}},{key:"hasTimespan",value:function(t){return!!this._timespans[t]}},{key:"isClosed",value:function(){return this._closed}},{key:"logEverything",value:function(){}},{key:"markPoint",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=s,n&&(this._pointExtras[t]=n))}},{key:"removeExtra",value:function(t){var s=this._extras[t];return delete this._extras[t],s}},{key:"setExtra",value:function(t,s){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=s)}},{key:"startTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n})}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var o=this._timespans[t];o&&null!=o.startTime&&null==o.endTime&&(o.endExtras=n,o.endTime=s,o.totalTime=o.endTime-(o.startTime||0))}}}])})()},1972,[1,3,4,1973]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){var t;return(t=console).log.apply(t,arguments)}},1973,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),s=t(r(d[3])),o={addListener:function(t,u,s){return n.default.addListener(t,u,s)},sendRequest:function(t,n,o,l,f,c,v,b,p,q){var R=(0,u.default)(f);s.default.sendRequest({method:t,url:o,data:Object.assign({},R,{trackingName:n}),headers:l,responseType:c,incrementalUpdates:v,timeout:b,withCredentials:q},p)},abortRequest:function(t){s.default.abortRequest(t)},clearCookies:function(t){s.default.clearCookies(t)}};e.default=o},1974,[1,1836,1975,1978]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){return'string'==typeof t?{string:t}:t instanceof r(d[0]).default?{blob:t.data}:t instanceof r(d[1]).default?{formData:t.getParts()}:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?{base64:r(d[2]).default(t)}:t}},1975,[1968,1976,1977]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),o=t(r(d[3]));var s=(function(){return(0,o.default)(function t(){(0,u.default)(this,t),this._parts=[]},[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getAll",value:function(t){return this._parts.filter(function(u){return(0,n.default)(u,1)[0]===t}).map(function(t){return(0,n.default)(t,2)[1]})}},{key:"getParts",value:function(){return this._parts.map(function(t){var u,o=(0,n.default)(t,2),s=o[0],f=o[1],p={'content-disposition':'form-data; name="'+s+'"'};return'object'==typeof f&&!Array.isArray(f)&&f?('string'==typeof f.name&&(p['content-disposition']+=`; filename="${u=f.name,encodeURIComponent(u.replace(/\//g,'_'))}"`),'string'==typeof f.type&&(p['content-type']=f.type),Object.assign({},f,{headers:p,fieldName:s})):{string:String(f),headers:p,fieldName:s}})}}])})();e.default=s},1976,[1,19,3,4]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array)return r(d[0]).fromByteArray(t);if(!ArrayBuffer.isView(t))throw new Error('data must be ArrayBuffer or typed array');var f=t,n=f.buffer,y=f.byteOffset,u=f.byteLength;return r(d[0]).fromByteArray(new Uint8Array(n,y,u))}},1977,[26]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1978,[1979]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('Networking')},1979,[1841]); -__d(function(g,_r,i,_a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),s=e(_r(d[2])),r=e(_r(d[3])),n=e(_r(d[4])),a=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),p=e(_r(d[8]));function h(e,t,s){return t=(0,o.default)(t),(0,a.default)(e,l()?Reflect.construct(t,s||[],(0,o.default)(e).constructor):t.apply(e,s))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}_r(d[9]).default.isAvailable&&_r(d[9]).default.addNetworkingHandler();var c={arraybuffer:'function'==typeof g.ArrayBuffer,blob:'function'==typeof g.Blob,document:!1,json:!0,text:!0,'':!0},_=['abort','error','load','loadstart','progress','timeout','loadend'],f=_.concat('readystatechange'),y=(function(e){function t(){return(0,n.default)(this,t),h(this,t,arguments)}return(0,u.default)(t,e),(0,r.default)(t)})(p.default.apply(void 0,_)),v=(function(e){function a(){var e;return(0,n.default)(this,a),(e=h(this,a)).UNSENT=0,e.OPENED=1,e.HEADERS_RECEIVED=2,e.LOADING=3,e.DONE=4,e.readyState=0,e.status=0,e.timeout=0,e.withCredentials=!0,e.upload=new y,e._aborted=!1,e._hasError=!1,e._method=null,e._perfKey=null,e._response='',e._url=null,e._timedOut=!1,e._trackingName=null,e._incrementalEvents=!1,e._startTime=null,e._performanceLogger=_r(d[10]).default,e._reset(),e}return(0,u.default)(a,e),(0,r.default)(a,[{key:"_reset",value:function(){this.readyState=this.UNSENT,this.responseHeaders=void 0,this.status=0,delete this.responseURL,this._requestId=null,this._cachedResponse=void 0,this._hasError=!1,this._headers={},this._response='',this._responseType='',this._sent=!1,this._lowerCaseResponseHeaders={},this._clearSubscriptions(),this._timedOut=!1}},{key:"responseType",get:function(){return this._responseType},set:function(e){if(this._sent)throw new Error("Failed to set the 'responseType' property on 'XMLHttpRequest': The response type cannot be set after the request has been sent.");c.hasOwnProperty(e)?(_r(d[11])(c[e]||'document'===e,`The provided value '${e}' is unsupported in this environment.`),'blob'===e&&_r(d[11])(_r(d[9]).default.isAvailable,'Native module BlobModule is required for blob support'),this._responseType=e):console.warn(`The provided value '${e}' is not a valid 'responseType'.`)}},{key:"responseText",get:function(){if(''!==this._responseType&&'text'!==this._responseType)throw new Error(`The 'responseText' property is only available if 'responseType' is set to '' or 'text', but it is '${this._responseType}'.`);return this.readyState<3?'':this._response}},{key:"response",get:function(){var e=this.responseType;if(''===e||'text'===e)return this.readyState<3||this._hasError?'':this._response;if(4!==this.readyState)return null;if(void 0!==this._cachedResponse)return this._cachedResponse;switch(e){case'document':default:this._cachedResponse=null;break;case'arraybuffer':this._cachedResponse=_r(d[12]).toByteArray(this._response).buffer;break;case'blob':if('object'==typeof this._response&&this._response)this._cachedResponse=_r(d[9]).default.createFromOptions(this._response);else{if(''!==this._response)throw new Error(`Invalid response for blob - expecting object, was ${typeof this._response}: ${this._response.trim()}`);this._cachedResponse=_r(d[9]).default.createFromParts([])}break;case'json':try{this._cachedResponse=JSON.parse(this._response)}catch(e){this._cachedResponse=null}}return this._cachedResponse}},{key:"__didCreateRequest",value:function(e){this._requestId=e,a._interceptor&&a._interceptor.requestSent(e,this._url||'',this._method||'GET',this._headers)}},{key:"__didUploadProgress",value:function(e,t,s){e===this._requestId&&this.upload.dispatchEvent({type:'progress',lengthComputable:!0,loaded:t,total:s})}},{key:"__didReceiveResponse",value:function(e,t,s,r){e===this._requestId&&(null!=this._perfKey&&this._performanceLogger.stopTimespan(this._perfKey),this.status=t,this.setResponseHeaders(s),this.setReadyState(this.HEADERS_RECEIVED),r||''===r?this.responseURL=r:delete this.responseURL,a._interceptor&&a._interceptor.responseReceived(e,r||this._url||'',t,s||{}))}},{key:"__didReceiveData",value:function(e,t){e===this._requestId&&(this._response=t,this._cachedResponse=void 0,this.setReadyState(this.LOADING),a._interceptor&&a._interceptor.dataReceived(e,t))}},{key:"__didReceiveIncrementalData",value:function(e,t,s,r){e===this._requestId&&(this._response?this._response+=t:this._response=t,a._profiling&&performance.mark('Track:XMLHttpRequest:Incremental Data: '+this._getMeasureURL()),a._interceptor&&a._interceptor.dataReceived(e,t),this.setReadyState(this.LOADING),this.__didReceiveDataProgress(e,s,r))}},{key:"__didReceiveDataProgress",value:function(e,t,s){e===this._requestId&&this.dispatchEvent({type:'progress',lengthComputable:s>=0,loaded:t,total:s})}},{key:"__didCompleteResponse",value:function(e,t,s){if(e===this._requestId){if(t&&(''!==this._responseType&&'text'!==this._responseType||(this._response=t),this._hasError=!0,s&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),a._profiling&&null!=this._startTime){var r=this._startTime;performance.measure('Track:XMLHttpRequest:'+this._getMeasureURL(),{start:r,end:performance.now()})}t?a._interceptor&&a._interceptor.loadingFailed(e,t):a._interceptor&&a._interceptor.loadingFinished(e,this._response.length)}}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(e){e&&e.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var e=this.responseHeaders,s=new Map;for(var r of Object.keys(e)){var n=e[r],a=r.toLowerCase(),o=s.get(a);o?(o.headerValue+=', '+n,s.set(a,o)):s.set(a,{lowerHeaderName:a,upperHeaderName:r.toUpperCase(),headerValue:n})}return(0,t.default)(s.values()).sort(function(e,t){return e.upperHeaderNamet.upperHeaderName?1:0}).map(function(e){return e.lowerHeaderName+': '+e.headerValue}).join('\r\n')+'\r\n'}},{key:"getResponseHeader",value:function(e){var t=this._lowerCaseResponseHeaders[e.toLowerCase()];return void 0!==t?t:null}},{key:"setRequestHeader",value:function(e,t){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[e.toLowerCase()]=String(t)}},{key:"setTrackingName",value:function(e){return this._trackingName=e,this}},{key:"setPerformanceLogger",value:function(e){return this._performanceLogger=e,this}},{key:"open",value:function(e,t,s){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==s&&!s)throw new Error('Synchronous http requests are not supported');if(!t)throw new Error('Cannot load an empty url');this._method=e.toUpperCase(),this._url=t,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(e){var s=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var r=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(_r(d[13]).default.addListener('didSendNetworkData',function(e){return s.__didUploadProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkResponse',function(e){return s.__didReceiveResponse.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkData',function(e){return s.__didReceiveData.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkIncrementalData',function(e){return s.__didReceiveIncrementalData.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[13]).default.addListener('didReceiveNetworkDataProgress',function(e){return s.__didReceiveDataProgress.apply(s,(0,t.default)(e))})),this._subscriptions.push(_r(d[13]).default.addListener('didCompleteNetworkResponse',function(e){return s.__didCompleteResponse.apply(s,(0,t.default)(e))}));var n='text';'arraybuffer'===this._responseType&&(n='base64'),'blob'===this._responseType&&(n='blob');var a,o;o=null!=(a=s._trackingName)?a:s._url,s._perfKey='network_XMLHttpRequest_'+String(o),s._performanceLogger.startTimespan(s._perfKey),s._startTime=performance.now(),_r(d[11])(s._method,'XMLHttpRequest method needs to be defined (%s).',o),_r(d[11])(s._url,'XMLHttpRequest URL needs to be defined (%s).',o),_r(d[13]).default.sendRequest(s._method,s._trackingName,s._url,s._headers,e,n,r,s.timeout,s.__didCreateRequest.bind(s),s.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&_r(d[13]).default.abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(e){this.responseHeaders=e||null;var t=e||{};this._lowerCaseResponseHeaders=Object.keys(t).reduce(function(e,s){return e[s.toLowerCase()]=t[s],e},{})}},{key:"setReadyState",value:function(e){this.readyState=e,this.dispatchEvent({type:'readystatechange'}),e===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(e,t){var r,n,u,p,h;'readystatechange'!==e&&'progress'!==e||(this._incrementalEvents=!0),(r=a,n="addEventListener",u=this,p=3,h=(0,s.default)((0,o.default)(1&p?r.prototype:r),n,u),2&p&&"function"==typeof h?function(e){return h.apply(u,e)}:h)([e,t])}},{key:"_getMeasureURL",value:function(){var e,t;return null!=(e=null!=(t=this._trackingName)?t:this._url)?e:"Unknown URL"}}],[{key:"__setInterceptor_DO_NOT_USE",value:function(e){a._interceptor=e}},{key:"enableProfiling",value:function(e){a._profiling=e}}])})(p.default.apply(void 0,(0,t.default)(f)));v.UNSENT=0,v.OPENED=1,v.HEADERS_RECEIVED=2,v.LOADING=3,v.DONE=4,v._interceptor=null,v._profiling=!1;_e.default=v},1980,[1,32,42,4,3,9,11,12,202,1965,1971,39,26,1974]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.fetch=e.Response=e.Request=e.Headers=void 0,r(d[0]);e.fetch=g.fetch,e.Headers=g.Headers,e.Request=g.Request,e.Response=g.Response},1981,[204]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null==g.RN$useBuiltInEventTarget?void 0:g.RN$useBuiltInEventTarget();e.default=t?r(d[0]).default:r(d[1]).default},1982,[1983,1989]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),l=e(r(d[6])),c=e(r(d[7])),f=e(r(d[8])),h=e(r(d[9])),b=e(r(d[10])),y=e(r(d[11])),v=e(r(d[12])),p=e(r(d[13])),E=e(r(d[14])),_=e(r(d[15])),k=e(r(d[16])),S=e(r(d[17])),I=e(r(d[18])),O=["headers"];function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(N=function(){return!!e})()}var w=0,A=(function(e){function f(e,o,l){var c,h,b,y;(0,n.default)(this,f),h=this,b=f,b=(0,u.default)(b),(c=(0,s.default)(h,N()?Reflect.construct(b,y||[],(0,u.default)(h).constructor):b.apply(h,y))).CONNECTING=0,c.OPEN=1,c.CLOSING=2,c.CLOSED=3,c.readyState=0,c.url=e,'string'==typeof o&&(o=[o]);var v=l||{},E=v.headers,S=void 0===E?{}:E,I=(0,t.default)(v,O);return I&&'string'==typeof I.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),S.origin=I.origin,delete I.origin),Object.keys(I).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(I).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(o)||(o=null),c._eventEmitter=new p.default('ios'!==_.default.OS?null:k.default),c._socketId=w++,c._registerEvents(),k.default.connect(e,o,{headers:S},c._socketId),c}return(0,l.default)(f,e),(0,o.default)(f,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,I.default)(v.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?v.default.addWebSocketHandler(this._socketId):v.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof y.default)return(0,I.default)(v.default.isAvailable,'Native module BlobModule is required for blob support'),void v.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');k.default.sendBinary((0,E.default)(e),this._socketId)}else k.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');k.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var n='number'==typeof e?e:1e3,o='string'==typeof t?t:'';k.default.close(n,o,this._socketId),v.default.isAvailable&&'blob'===this._binaryType&&v.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var n=t.data;switch(t.type){case'binary':n=S.default.toByteArray(t.data).buffer;break;case'blob':n=v.default.createFromOptions(t.data)}e.dispatchEvent(new h.default('message',{data:n}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new c.default('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new b.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new c.default('error')),e.dispatchEvent(new b.default('close',{code:1006,reason:t.message})),e._unregisterEvents(),e.close())})]}},{key:"onclose",get:function(){return(0,r(d[19]).getEventHandlerAttribute)(this,'close')},set:function(e){(0,r(d[19]).setEventHandlerAttribute)(this,'close',e)}},{key:"onerror",get:function(){return(0,r(d[19]).getEventHandlerAttribute)(this,'error')},set:function(e){(0,r(d[19]).setEventHandlerAttribute)(this,'error',e)}},{key:"onmessage",get:function(){return(0,r(d[19]).getEventHandlerAttribute)(this,'message')},set:function(e){(0,r(d[19]).setEventHandlerAttribute)(this,'message',e)}},{key:"onopen",get:function(){return(0,r(d[19]).getEventHandlerAttribute)(this,'open')},set:function(e){(0,r(d[19]).setEventHandlerAttribute)(this,'open',e)}}])})(f.default);A.CONNECTING=0,A.OPEN=1,A.CLOSING=2,A.CLOSED=3;_e.default=A},1983,[1,207,3,4,9,11,12,1960,1962,1984,1985,1968,1965,1986,1977,1838,1987,26,39,1970]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var n=t(r(d[1])),e=t(r(d[2])),u=t(r(d[3])),l=t(r(d[4])),o=t(r(d[5])),f=t(r(d[6]));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}_e.default=(function(t){function f(t,e){var o,v,s,_,y,h;return(0,n.default)(this,f),_=this,y=f,h=[t,e],y=(0,l.default)(y),(s=(0,u.default)(_,c()?Reflect.construct(y,h||[],(0,l.default)(_).constructor):y.apply(_,h)))._data=null==e?void 0:e.data,s._origin=String(null!=(o=null==e?void 0:e.origin)?o:''),s._lastEventId=String(null!=(v=null==e?void 0:e.lastEventId)?v:''),s}return(0,o.default)(f,t),(0,e.default)(f,[{key:"data",get:function(){return this._data}},{key:"origin",get:function(){return this._origin}},{key:"lastEventId",get:function(){return this._lastEventId}}])})(f.default)},1984,[1,3,4,9,11,12,1960]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),n=e(r(d[2])),o=e(r(d[3])),u=e(r(d[4])),l=e(r(d[5])),c=e(r(d[6]));function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}_e.default=(function(e){function c(e,n){var l,s,v,_;return(0,t.default)(this,c),s=this,v=c,_=[e,n],v=(0,u.default)(v),(l=(0,o.default)(s,f()?Reflect.construct(v,_||[],(0,u.default)(s).constructor):v.apply(s,_)))._wasClean=Boolean(null==n?void 0:n.wasClean),l._code=Number(null==n?void 0:n.code)||0,l._reason=null!=(null==n?void 0:n.reason)?String(n.reason):'',l}return(0,l.default)(c,e),(0,n.default)(c,[{key:"wasClean",get:function(){return this._wasClean}},{key:"code",get:function(){return this._code}},{key:"reason",get:function(){return this._reason}}])})(c.default)},1985,[1,3,4,9,11,12,1960]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),u=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5]));e.default=(function(){return(0,l.default)(function t(l){(0,n.default)(this,t),'ios'===u.default.OS&&(0,s.default)(null!=l,'`new NativeEventEmitter()` requires a non-null argument.');var o=!!l&&'function'==typeof l.addListener,v=!!l&&'function'==typeof l.removeListeners;l&&o&&v?this._nativeModule=l:null!=l&&(o||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))},[{key:"addListener",value:function(t,n,l){var u,s=this;null==(u=this._nativeModule)||u.addListener(t);var v=o.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),u=1;u0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(w).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(n)||(n=null),c._eventEmitter=new y.default('ios'!==b.default.OS?null:p.default),c._socketId=O++,c._registerEvents(),p.default.connect(e,n,{headers:N},c._socketId),c}return(0,l.default)(E,e),(0,n.default)(E,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?f.default.addWebSocketHandler(this._socketId):f.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof c.default)return(0,k.default)(f.default.isAvailable,'Native module BlobModule is required for blob support'),void f.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');p.default.sendBinary((0,h.default)(e),this._socketId)}else p.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');p.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var o='number'==typeof e?e:1e3,n='string'==typeof t?t:'';p.default.close(o,n,this._socketId),f.default.isAvailable&&'blob'===this._binaryType&&f.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var o=t.data;switch(t.type){case'binary':o=_.default.toByteArray(t.data).buffer;break;case'blob':o=f.default.createFromOptions(t.data)}e.dispatchEvent(new v.default('message',{data:o}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new v.default('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new v.default('error',{message:t.message})),e.dispatchEvent(new v.default('close',{code:1006,reason:t.message})),e._unregisterEvents(),e.close())})]}}])})(E.default.apply(void 0,['close','error','message','open']));N.CONNECTING=0,N.OPEN=1,N.CLOSING=2,N.CLOSED=3;_e.default=N},1989,[1,207,3,4,9,11,12,1968,1965,1986,1977,1838,1987,1990,26,202,39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=t(r(d[1])),s=t(r(d[2])),f=(0,u.default)(function t(u,f){(0,s.default)(this,t),this.type=u.toString(),Object.assign(this,f)});e.default=f},1990,[1,4,3]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),u=t(r(d[3])),l=t(r(d[4])),o=t(r(d[5]));function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(c=function(){return!!t})()}var f=(function(t){function f(t,n,o){var s,v,h,p;return(0,e.default)(this,f),r(d[7])(null!=t&&null!=n,'Failed to construct `File`: Must pass both `parts` and `name` arguments.'),v=this,h=f,p=[t,o],h=(0,l.default)(h),(s=(0,u.default)(v,c()?Reflect.construct(h,p||[],(0,l.default)(v).constructor):h.apply(v,p))).data.name=n,s}return(0,o.default)(f,t),(0,n.default)(f,[{key:"name",get:function(){return r(d[7])(null!=this.data.name,'Files must have a name set.'),this.data.name}},{key:"lastModified",get:function(){return this.data.lastModified||0}}])})(t(r(d[6])).default);_e.default=f},1991,[1,3,4,9,11,12,1968,39]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=null==g.RN$useBuiltInEventTarget?void 0:g.RN$useBuiltInEventTarget();e.default=t?r(d[0]).default:r(d[1]).default},1992,[1993,1996]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),u=t(r(d[4])),s=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7])),c=t(r(d[8]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var y=(function(t){function f(){var t,n,s,l;return(0,e.default)(this,f),n=this,s=f,s=(0,u.default)(s),(t=(0,o.default)(n,h()?Reflect.construct(s,l||[],(0,u.default)(n).constructor):s.apply(n,l))).EMPTY=0,t.LOADING=1,t.DONE=2,t._aborted=!1,t._reset(),t}return(0,s.default)(f,t),(0,n.default)(f,[{key:"_reset",value:function(){this._readyState=0,this._error=null,this._result=null}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent(new l.default('readystatechange')),2===t&&(this._aborted?this.dispatchEvent(new l.default('abort')):this._error?this.dispatchEvent(new l.default('error')):this.dispatchEvent(new l.default('load')),this.dispatchEvent(new l.default('loadend')))}},{key:"readAsArrayBuffer",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'");c.default.readAsDataURL(t.data).then(function(t){if(!e._aborted){var n=t.split(',')[1],o=(0,r(d[9]).toByteArray)(n);e._result=o.buffer,e._setReadyState(2)}},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"readAsDataURL",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");c.default.readAsDataURL(t.data).then(function(t){e._aborted||(e._result=t,e._setReadyState(2))},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"readAsText",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");c.default.readAsText(t.data,n).then(function(t){e._aborted||(e._result=t,e._setReadyState(2))},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"abort",value:function(){this._aborted=!0,0!==this._readyState&&2!==this._readyState&&(this._reset(),this._setReadyState(2)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}},{key:"onabort",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'abort')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'abort',t)}},{key:"onerror",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'error')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'error',t)}},{key:"onload",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'load')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'load',t)}},{key:"onloadstart",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'loadstart')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'loadstart',t)}},{key:"onloadend",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'loadend')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'loadend',t)}},{key:"onprogress",get:function(){return(0,r(d[10]).getEventHandlerAttribute)(this,'progress')},set:function(t){(0,r(d[10]).setEventHandlerAttribute)(this,'progress',t)}}])})(f.default);y.EMPTY=0,y.LOADING=1,y.DONE=2;_e.default=y},1993,[1,3,4,9,11,12,1960,1962,1994,26,1970]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},1994,[1995]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('FileReaderModule')},1995,[1841]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(r(d[1])),o=t(r(d[2])),n=t(r(d[3])),s=t(r(d[4])),u=t(r(d[5])),l=t(r(d[6])),f=t(r(d[7]));function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var _=(function(t){function f(){var t,o,u,l;return(0,e.default)(this,f),o=this,u=f,u=(0,s.default)(u),(t=(0,n.default)(o,y()?Reflect.construct(u,l||[],(0,s.default)(o).constructor):u.apply(o,l))).EMPTY=0,t.LOADING=1,t.DONE=2,t._aborted=!1,t._reset(),t}return(0,u.default)(f,t),(0,o.default)(f,[{key:"_reset",value:function(){this._readyState=0,this._error=null,this._result=null}},{key:"_setReadyState",value:function(t){this._readyState=t,this.dispatchEvent({type:'readystatechange'}),2===t&&(this._aborted?this.dispatchEvent({type:'abort'}):this._error?this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"readAsArrayBuffer",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsDataURL(t.data).then(function(t){if(!e._aborted){var o=t.split(',')[1],n=(0,r(d[8]).toByteArray)(o);e._result=n.buffer,e._setReadyState(2)}},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"readAsDataURL",value:function(t){var e=this;if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsDataURL' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsDataURL(t.data).then(function(t){e._aborted||(e._result=t,e._setReadyState(2))},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"readAsText",value:function(t){var e=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then(function(t){e._aborted||(e._result=t,e._setReadyState(2))},function(t){e._aborted||(e._error=t,e._setReadyState(2))})}},{key:"abort",value:function(){this._aborted=!0,0!==this._readyState&&2!==this._readyState&&(this._reset(),this._setReadyState(2)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}])})(f.default.apply(void 0,['abort','error','load','loadstart','loadend','progress']));_.EMPTY=0,_.LOADING=1,_.DONE=2;_e.default=_},1996,[1,3,4,9,11,12,1994,202,26]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URL=void 0,Object.defineProperty(e,"URLSearchParams",{enumerable:!0,get:function(){return r(d[1]).URLSearchParams}});var n=t(r(d[2])),s=t(r(d[3])),o=t(r(d[4])),u=null;if(o.default&&'string'==typeof o.default.getConstants().BLOB_URI_SCHEME){var f=o.default.getConstants();u=f.BLOB_URI_SCHEME+':','string'==typeof f.BLOB_URI_HOST&&(u+=`//${f.BLOB_URI_HOST}/`)}function h(t){return/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URL=(function(){return(0,s.default)(function t(s,o){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!o||h(s)){if(this._url=s,this._url.includes('#')){var f=this._url.split('#');f[0].split('://')[1].includes('/')||(this._url=f.join('/#'))}this._url.endsWith('/')||this._url.includes('?')||this._url.includes('#')||(this._url+='/')}else{if('string'==typeof o){if(!h(u=o))throw new TypeError(`Invalid base URL: ${u}`)}else u=o.toString();u.endsWith('/')&&(u=u.slice(0,u.length-1)),s.startsWith('/')||(s=`/${s}`),u.endsWith(s)&&(s=''),this._url=`${u}${s}`}},[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new URLSearchParams),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._searchParamsInstance.toString(),n=this._url.indexOf('?')>-1?'&':'?';return this._url+n+t}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return`${u}${t.data.blobId}?offset=${t.data.offset}&size=${t.size}`}},{key:"revokeObjectURL",value:function(t){}}])})()},1997,[1,1998,3,4,1966]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.URLSearchParams=void 0;var n=t(r(d[1])),o=t(r(d[2]));e.URLSearchParams=(function(){return(0,o.default)(function t(o){var s=this;(0,n.default)(this,t),this._searchParams=[],'object'==typeof o&&Object.keys(o).forEach(function(t){return s.append(t,o[t])})},[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:Symbol.iterator,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce(function(n,o,s){return n+encodeURIComponent(o[0])+'='+encodeURIComponent(o[1])+(s===t?'':'&')},'')}}])})()},1998,[1,3,4]); -__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).default.alert('Alert',''+t)})},1999,[2000]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=t(r(d[2])),l=t(r(d[3])),s=t(r(d[4])),u=(function(){function t(){(0,n.default)(this,t)}return(0,o.default)(t,null,[{key:"alert",value:function(n,o,s,u){if('ios'===l.default.OS)t.prompt(n,o,s,'default',void 0,void 0,u);else if('android'===l.default.OS){var f=r(d[5]).default;if(!f)return;var c=f.getConstants(),v={title:n||'',message:o||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=s?s.slice(0,3):[{text:"OK"}],y=p.pop(),b=p.pop(),P=p.pop();P&&(v.buttonNeutral=P.text||''),b&&(v.buttonNegative=b.text||''),y&&(v.buttonPositive=y.text||"OK");f.showAlert(v,function(t){return console.warn(t)},function(t,n){t===c.buttonClicked?n===c.buttonNeutral?P.onPress&&P.onPress():n===c.buttonNegative?b.onPress&&b.onPress():n===c.buttonPositive&&y.onPress&&y.onPress():t===c.dismissed&&u&&u.onDismiss&&u.onDismiss()})}}},{key:"prompt",value:function(t,n,o){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',f=arguments.length>4?arguments[4]:void 0,c=arguments.length>5?arguments[5]:void 0,v=arguments.length>6?arguments[6]:void 0;if('ios'===l.default.OS){var p,y,b,P=[],h=[];'function'==typeof o?P=[o]:Array.isArray(o)&&o.forEach(function(t,n){if(P[n]=t.onPress,'cancel'===t.style?p=String(n):'destructive'===t.style&&(y=String(n)),t.isPreferred&&(b=String(n)),t.text||n<(o||[]).length-1){var l={};l[n]=t.text||'',h.push(l)}}),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:h,type:u||void 0,defaultValue:f,cancelButtonKey:p,destructiveButtonKey:y,preferredButtonKey:b,keyboardType:c,userInterfaceStyle:(null==v?void 0:v.userInterfaceStyle)||void 0},function(t,n){var o=P[t];o&&o(n)})}}}])})();e.default=u},2000,[1,3,4,1838,2001,2004]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var l=t(r(d[1]));e.default={alertWithArgs:function(t,u){null!=l.default&&l.default.alertWithArgs(t,u)}}},2001,[1,2002]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2002,[2003]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('AlertManager')},2003,[1841]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2004,[2005]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('DialogManagerAndroid')},2005,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t?g.navigator={product:'ReactNative'}:r(d[0]).polyfillObjectProperty(t,'product',function(){return'ReactNative'})},2006,[1857]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1]));(0,t.default)('Systrace',function(){return r(d[2])}),!0!==g.RN$Bridgeless&&(0,t.default)('JSTimers',function(){return r(d[3]).default}),(0,t.default)('RCTLog',function(){return r(d[4]).default}),(0,t.default)('RCTDeviceEventEmitter',function(){return r(d[5]).default}),(0,t.default)('RCTNativeAppEventEmitter',function(){return r(d[6]).default}),(0,t.default)('GlobalPerformanceLogger',function(){return r(d[7]).default}),(0,t.default)('HMRClient',function(){return r(d[8]).default})},2007,[1,1829,1832,1945,2008,1836,2009,1971,2010]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,l={logIfNoNativeHook:function(o){for(var t=arguments.length,f=new Array(t>1?t-1:0),v=1;v1?f-1:0),c=1;c)":-1--l||o[r]!==s[l]){var c="\n"+o[r].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}}while(1<=r&&0<=l);break}}}finally{L=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?N(t):""}function U(e){switch(e.tag){case 26:case 27:case 5:return N(e.type);case 16:return N("Lazy");case 13:return N("Suspense");case 19:return N("SuspenseList");case 0:case 15:return e=I(e.type,!1);case 11:return e=I(e.type.render,!1);case 1:return e=I(e.type,!0);default:return""}}function F(e){try{var n="";do{n+=U(e),e=e.return}while(e);return n}catch(e){return"\nError generating stack: "+e.message+"\n"+e.stack}}var M=Symbol.for("react.client.reference");function D(e){if(null==e)return null;if("function"==typeof e)return e.$$typeof===M?null:e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case p:return"Fragment";case d:return"Portal";case m:return"Profiler";case h:return"StrictMode";case S:return"Suspense";case k:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case b:return(e.displayName||"Context")+".Provider";case v:return(e._context.displayName||"Context")+".Consumer";case y:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case w:return null!==(n=e.displayName||null)?n:D(e.type)||"Memo";case E:n=e._payload,e=e._init;try{return D(e(n))}catch(e){}}return null}var A=!1,j=null,Q=null,V=null,H=null;function O(e,n,t){e.currentTarget=H(t);try{n(e)}catch(e){A||(A=!0,j=e)}e.currentTarget=null}function B(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(o(n))throw Error("Invalid `event`.");return e.currentTarget=n?H(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}function W(){return!0}function $(){return!1}function q(e,n,t,r){for(var l in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(l)&&((n=e[l])?this[l]=n(t):"target"===l?this.target=r:this[l]=t[l]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?W:$,this.isPropagationStopped=$,this}function Y(e,n,t,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,n,t,r),l}return new this(e,n,t,r)}function X(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function G(e){e.getPooled=Y,e.eventPool=[],e.release=X}R(q.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=W)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=W)},persist:function(){this.isPersistent=W},isPersistent:$,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$,this._dispatchInstances=this._dispatchListeners=null}}),q.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},q.extend=function(e){function n(){}function t(){return r.apply(this,arguments)}var r=this;n.prototype=r.prototype;var l=new n;return R(l,t.prototype),t.prototype=l,t.prototype.constructor=t,t.Interface=R({},r.Interface,e),t.extend=r.extend,G(t),t},G(q);var J=q.extend({touchHistory:function(){return null}});function K(e){return"topTouchStart"===e}function Z(e){return"topTouchMove"===e}var ee=["topTouchStart"],ne=["topTouchMove"],te=["topTouchCancel","topTouchEnd"],re=[],le={touchBank:re,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function ae(e){return e.timeStamp||e.timestamp}function ie(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function ue(e){var n=ie(e),t=re[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=ae(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=ae(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=ae(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:ae(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:ae(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:ae(e)},re[n]=t),le.mostRecentTimeStamp=ae(e)}function oe(e){var n=re[ie(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=ae(e),le.mostRecentTimeStamp=ae(e))}function se(e){var n=re[ie(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=ae(e),le.mostRecentTimeStamp=ae(e))}var ce,fe={instrument:function(e){ce=e},recordTouchTrack:function(e,n){if(null!=ce&&ce(e,n),Z(e))n.changedTouches.forEach(oe);else if(K(e))n.changedTouches.forEach(ue),le.numberActiveTouches=n.touches.length,1===le.numberActiveTouches&&(le.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(se),le.numberActiveTouches=n.touches.length,1===le.numberActiveTouches))for(e=0;e=t)throw Error("EventPluginRegistry: Cannot inject event plugins that do not exist in the plugin ordering, `"+e+"`.");if(!Ne[t]){if(!n.extractEvents)throw Error("EventPluginRegistry: Event plugins must implement an `extractEvents` method, but `"+e+"` does not.");for(var r in Ne[t]=n,t=n.eventTypes){var l=void 0,a=t[r];if(Le.hasOwnProperty(r))throw Error("EventPluginRegistry: More than one plugin attempted to publish the same event name, `"+r+"`.");Le[r]=a;var i=a.phasedRegistrationNames;if(i){for(l in i)i.hasOwnProperty(l)&&Re(i[l],n);l=!0}else a.registrationName?(Re(a.registrationName,n),l=!0):l=!1;if(!l)throw Error("EventPluginRegistry: Failed to publish event `"+r+"` for plugin `"+e+"`.")}}}}function Re(e,n){if(Ie[e])throw Error("EventPluginRegistry: More than one plugin attempted to publish the same registration name, `"+e+"`.");Ie[e]=n}var Ne=[],Le={},Ie={};function Ue(e,n){if(null===(e=e.stateNode))return null;if(null===(e=Q(e)))return null;if((e=e[n])&&"function"!=typeof e)throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof e+"` type.");return e}var Fe=n(i[2]).ReactNativeViewConfigRegistry.customBubblingEventTypes,Me=n(i[2]).ReactNativeViewConfigRegistry.customDirectEventTypes;function De(e,n,t){(n=Ue(e,t.dispatchConfig.phasedRegistrationNames[n]))&&(t._dispatchListeners=pe(t._dispatchListeners,n),t._dispatchInstances=pe(t._dispatchInstances,e))}function Ae(e,n,t,r){for(var l=[];e;){l.push(e);do{e=e.return}while(e&&5!==e.tag);e=e||null}for(e=l.length;0i||(a=i),en(a,e,l)}}}),Q=function(e){return $e.get(e._nativeTag)||null},V=qe,H=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&null!=e.canonical&&(n=e.canonical.nativeTag,e=e.canonical.publicInstance),!n)throw Error("All native instances should have a tag.");return e},_e.injection.injectGlobalResponderHandler({onChange:function(e,t,r){null!==t?n(i[2]).UIManager.setJSResponder(t.stateNode._nativeTag,r):n(i[2]).UIManager.clearJSResponder()}});var an={},un=null,on=0,sn={unsafelyIgnoreFunctions:!0};function cn(e,t){return"object"!=typeof t||null===t||n(i[2]).deepDiffer(e,t,sn)}function fn(e,n,t){if(o(n))for(var r=n.length;r--&&0>>=0)?32:31-(En(e)/Pn|0)|0},En=Math.log,Pn=Math.LN2;var Tn=128,_n=4194304;function zn(e){var n=42&e;if(0!==n)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194176&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,i=e.warmLanes;e=0!==e.finishedLanes;var u=134217727&t;return 0!==u?0!==(t=u&~l)?r=zn(t):0!==(a&=u)?r=zn(a):e||0!==(i=u&~i)&&(r=zn(i)):0!==(u=t&~l)?r=zn(u):0!==a?r=zn(a):e||0!==(i=t&~i)&&(r=zn(i)),0===r?0:0!==n&&n!==r&&0===(n&l)&&((l=r&-r)>=(i=n&-n)||32===l&&4194176&i)?n:r}function xn(e,n){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)}function Rn(e,n){switch(e){case 1:case 2:case 4:case 8:return n+250;case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;default:return-1}}function Nn(){var e=Tn;return!(4194176&(Tn<<=1))&&(Tn=128),e}function Ln(){var e=_n;return!(62914560&(_n<<=1))&&(_n=4194304),e}function In(e){for(var n=[],t=0;31>t;t++)n.push(e);return n}function Un(e,n){e.pendingLanes|=n,268435456!==n&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Fn(e,n,t,r,l,a){var i=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var u=e.entanglements,o=e.expirationTimes,s=e.hiddenUpdates;for(t=i&~t;0et||(e.current=Zn[et],Zn[et]=null,et--)}function rt(e,n){et++,Zn[et]=e.current,e.current=n}var lt={};var at="function"==typeof Object.is?Object.is:function(e,n){return e===n&&(0!==e||1/e==1/n)||e!=e&&n!=n},it=new WeakMap;function ut(e,n){if("object"==typeof e&&null!==e){var t=it.get(e);return void 0!==t?t:(n={value:e,source:n,stack:F(n)},it.set(e,n),n)}return{value:e,source:n,stack:F(n)}}var ot=nt(null),st=nt(null),ct=nt(null),ft=nt(null);function dt(e,n){rt(ct,n),rt(st,e),rt(ot,null),tt(ot),rt(ot,{isInAParentText:!1})}function pt(){tt(ot),tt(st),tt(ct)}function ht(e){null!==e.memoizedState&&rt(ft,e);var n=ot.current,t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(rt(st,e),rt(ot,t))}function mt(e){st.current===e&&(tt(ot),tt(st)),ft.current===e&&(tt(ft),Kn._currentValue=null)}var gt=null,vt=[],bt=0,yt=0;function St(){for(var e=bt,n=yt=bt=0;nd?(p=f,f=null):p=f.sibling;var h=g(l,f,u[d],o);if(null===h){null===f&&(f=p);break}e&&f&&null===h.alternate&&n(l,f),i=a(h,i,d),null===c?s=h:c.sibling=h,c=h,f=p}if(d===u.length)return t(l,f),s;if(null===f){for(;dd?(p=f,f=null):p=f.sibling;var b=g(l,f,h.value,o);if(null===b){null===f&&(f=p);break}e&&f&&null===b.alternate&&n(l,f),i=a(b,i,d),null===c?s=b:c.sibling=b,c=b,f=p}if(h.done)return t(l,f),s;if(null===f){for(;!h.done;d++,h=u.next())null!==(h=m(l,h.value,o))&&(i=a(h,i,d),null===c?s=h:c.sibling=h,c=h);return s}for(f=r(f);!h.done;d++,h=u.next())null!==(h=v(f,l,d,h.value,o))&&(e&&null!==h.alternate&&f.delete(null===h.key?d:h.key),i=a(h,i,d),null===c?s=h:c.sibling=h,c=h);return e&&f.forEach(function(e){return n(l,e)}),s}function k(e,r,a,u){if("object"==typeof a&&null!==a&&a.type===p&&null===a.key&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case f:e:{for(var s=a.key;null!==r;){if(r.key===s){if((s=a.type)===p){if(7===r.tag){t(e,r.sibling),(u=l(r,a.props.children)).return=e,e=u;break e}}else if(r.elementType===s||"object"==typeof s&&null!==s&&s.$$typeof===E&&yr(s)===r.type){t(e,r.sibling),vr(u=l(r,a.props),a),u.return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}a.type===p?((u=Ro(a.props.children,e.mode,u,a.key)).return=e,e=u):(vr(u=xo(a.type,a.key,a.props,null,e.mode,u),a),u.return=e,e=u)}return i(e);case d:e:{for(s=a.key;null!==r;){if(r.key===s){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(u=l(r,a.children||[])).return=e,e=u;break e}t(e,r);break}n(e,r),r=r.sibling}(u=Io(a,e.mode,u)).return=e,e=u}return i(e);case E:return k(e,r,a=(s=a._init)(a._payload),u)}if(o(a))return y(e,r,a,u);if(z(a)){if("function"!=typeof(s=z(a)))throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");return S(e,r,a=s.call(a),u)}if("function"==typeof a.then)return k(e,r,gr(a),u);if(a.$$typeof===b)return k(e,r,ai(e,a),u);br(e,a)}return"string"==typeof a&&""!==a||"number"==typeof a||"bigint"==typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(u=l(r,a)).return=e,e=u):(t(e,r),(u=Lo(a,e.mode,u)).return=e,e=u),i(e)):t(e,r)}return function(e,n,t,r){try{mr=0;var l=k(e,n,t,r);return hr=null,l}catch(n){if(n===ar||!(1&e.mode)&&"object"==typeof n&&null!==n&&"function"==typeof n.then)throw n;var a=To(29,n,null,e.mode);return a.lanes=r,a.return=e,a}}}var kr=Sr(!0),wr=Sr(!1),Er=nt(null),Pr=nt(0);function Tr(e,n){rt(Pr,e=Eu),rt(Er,n),Eu=e|n.baseLanes}function _r(){rt(Pr,Eu),rt(Er,Er.current)}function zr(){Eu=Pr.current,tt(Er),tt(Pr)}var Cr=nt(null),xr=null;function Rr(e){var n=e.alternate;rt(Ur,1&Ur.current),rt(Cr,e),null===xr&&(null===n||null!==Er.current||null!==n.memoizedState)&&(xr=e)}function Nr(e){if(22===e.tag){if(rt(Ur,Ur.current),rt(Cr,e),null===xr){var n=e.alternate;null!==n&&null!==n.memoizedState&&(xr=e)}}else Lr()}function Lr(){rt(Ur,Ur.current),rt(Cr,Cr.current)}function Ir(e){tt(Cr),xr===e&&(xr=null),tt(Ur)}var Ur=nt(0);function Fr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Qn()||Qn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(128&n.flags)return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Mr=0,Dr=null,Ar=null,jr=null,Qr=!1,Vr=!1,Hr=!1,Or=0,Br=null,Wr=0;function $r(){throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.")}function qr(e,n){if(null===n)return!1;for(var t=0;ta?a:8;var i,u,o,c=s.T,f={};s.T=f,Kl(e,!1,n,t);try{var d=l(),p=s.S;if(null!==p&&p(f,d),null!==d&&"object"==typeof d&&"function"==typeof d.then)Jl(e,n,(i=r,u=[],o={status:"pending",value:null,reason:null,then:function(e){u.push(e)}},d.then(function(){o.status="fulfilled",o.value=i;for(var e=0;e component.");r=Wn(),n(i[2]).UIManager.createView(r,"RCTRawText",e,{text:l}),We.set(r,t),t.stateNode=r}return bi(t),null;case 13:if(l=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(null!==l&&null!==l.dehydrated){if(null===e)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");!(128&t.flags)&&(t.memoizedState=null),t.flags|=4,bi(t),a=!1}else null!==gt&&(Yu(gt),gt=null),a=!0;if(!a)return 256&t.flags?(Ir(t),t):(Ir(t),null)}return Ir(t),128&t.flags?(t.lanes=r,t):(r=null!==l,e=null!==e&&null!==e.memoizedState,r&&(a=null,null!==(l=t.child).alternate&&null!==l.alternate.memoizedState&&null!==l.alternate.memoizedState.cachePool&&(a=l.alternate.memoizedState.cachePool.pool),u=null,null!==l.memoizedState&&null!==l.memoizedState.cachePool&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)),r!==e&&r&&(t.child.flags|=8192),gi(t,t.updateQueue),bi(t),null);case 4:return pt(),bi(t),null;case 10:return Ka(t.type),bi(t),null;case 19:if(tt(Ur),null===(a=t.memoizedState))return bi(t),null;if(l=!!(128&t.flags),null===(u=a.rendering))if(l)vi(a,!1);else{if(0!==Pu||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(u=Fr(e))){for(t.flags|=128,vi(a,!1),e=u.updateQueue,t.updateQueue=e,gi(t,e),t.subtreeFlags=0,e=r,r=t.child;null!==r;)Co(r,e),r=r.sibling;return rt(Ur,1&Ur.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[3]).unstable_now()>Uu&&(t.flags|=128,l=!0,vi(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=Fr(u))){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,gi(t,e),vi(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return bi(t),null}else 2*n(i[3]).unstable_now()-a.renderingStartTime>Uu&&536870912!==r&&(t.flags|=128,l=!0,vi(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[3]).unstable_now(),t.sibling=null,e=Ur.current,rt(Ur,l?1&e|2:1&e),t):(bi(t),null);case 22:case 23:return Ir(t),zr(),l=null!==t.memoizedState,null!==e?null!==e.memoizedState!==l&&(t.flags|=8192):l&&(t.flags|=8192),l&&1&t.mode?!!(536870912&r)&&!(128&t.flags)&&(bi(t),6&t.subtreeFlags&&(t.flags|=8192)):bi(t),null!==(r=t.updateQueue)&&gi(t,r.retryQueue),r=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(r=e.memoizedState.cachePool.pool),l=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(l=t.memoizedState.cachePool.pool),l!==r&&(t.flags|=2048),null!==e&&tt(di),null;case 24:return r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ka(oi),bi(t),null;case 25:case 29:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Si(e,n){switch(n.tag){case 1:return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 3:return Ka(oi),pt(),65536&(e=n.flags)&&!(128&e)?(n.flags=-65537&e|128,n):null;case 26:case 27:case 5:return mt(n),null;case 13:if(Ir(n),null!==(e=n.memoizedState)&&null!==e.dehydrated&&null===n.alternate)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");return 65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 19:return tt(Ur),null;case 4:return pt(),null;case 10:return Ka(n.type),null;case 22:case 23:return Ir(n),zr(),null!==e&&tt(di),65536&(e=n.flags)?(n.flags=-65537&e|128,n):null;case 24:return Ka(oi),null;default:return null}}function ki(e,n){switch(n.tag){case 3:Ka(oi),pt();break;case 26:case 27:case 5:mt(n);break;case 4:pt();break;case 13:Ir(n);break;case 19:tt(Ur);break;case 10:Ka(n.type);break;case 22:case 23:Ir(n),zr(),null!==e&&tt(di);break;case 24:Ka(oi)}}function wi(e,n){try{var t=n.updateQueue,r=null!==t?t.lastEffect:null;if(null!==r){var l=r.next;t=l;do{if((t.tag&e)===e){r=void 0;var a=t.create,i=t.inst;r=a(),i.destroy=r}t=t.next}while(t!==l)}}catch(e){bo(n,n.return,e)}}function Ei(e,n,t){try{var r=n.updateQueue,l=null!==r?r.lastEffect:null;if(null!==l){var a=l.next;r=a;do{if((r.tag&e)===e){var i=r.inst,u=i.destroy;if(void 0!==u){i.destroy=void 0,l=n;var o=t;try{u()}catch(e){bo(l,o,e)}}}r=r.next}while(r!==a)}}catch(e){bo(n,n.return,e)}}function Pi(e){var n=e.updateQueue;if(null!==n){var t=e.stateNode;try{tr(n,t)}catch(n){bo(e,e.return,n)}}}function Ti(e,n,t){t.props=da(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(t){bo(e,n,t)}}function _i(e,n){try{var t=e.ref;if(null!==t){var r=e.stateNode;switch(e.tag){case 26:case 27:case 5:var l=Yn(r);break;default:l=r}"function"==typeof t?e.refCleanup=t(l):t.current=l}}catch(t){bo(e,n,t)}}function zi(e,n){var t=e.ref,r=e.refCleanup;if(null!==t)if("function"==typeof r)try{r()}catch(t){bo(e,n,t)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"==typeof t)try{t(null)}catch(t){bo(e,n,t)}else t.current=null}function Ci(e){return 5===e.tag||3===e.tag||4===e.tag}function xi(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Ci(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function Ri(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){if("number"==typeof r)throw Error("Container does not support insertBefore operation")}else n(i[2]).UIManager.setChildren(r,["number"==typeof e?e:e._nativeTag]);else if(4!==l&&null!==(e=e.child))for(Ri(e,t,r),e=e.sibling;null!==e;)Ri(e,t,r),e=e.sibling}function Ni(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){var a=(l=r._children).indexOf(e);0<=a?(l.splice(a,1),t=l.indexOf(t),l.splice(t,0,e),n(i[2]).UIManager.manageChildren(r._nativeTag,[a],[t],[],[],[])):(t=l.indexOf(t),l.splice(t,0,e),n(i[2]).UIManager.manageChildren(r._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[t],[]))}else t="number"==typeof e?e:e._nativeTag,0<=(a=(l=r._children).indexOf(e))?(l.splice(a,1),l.push(e),n(i[2]).UIManager.manageChildren(r._nativeTag,[a],[l.length-1],[],[],[])):(l.push(e),n(i[2]).UIManager.manageChildren(r._nativeTag,[],[],[t],[l.length-1],[]));else if(4!==l&&null!==(e=e.child))for(Ni(e,t,r),e=e.sibling;null!==e;)Ni(e,t,r),e=e.sibling}var Li=!1,Ii=!1,Ui="function"==typeof WeakSet?WeakSet:Set,Fi=null,Mi=!1;function Di(e,n){for(Fi=n;null!==Fi;)if(n=(e=Fi).child,1028&e.subtreeFlags&&null!==n)n.return=e,Fi=n;else for(;null!==Fi;){var t=(e=Fi).alternate;switch(n=e.flags,e.tag){case 0:case 11:case 15:case 3:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(1024&n&&null!==t){n=void 0;var r=e,l=t.memoizedProps;t=t.memoizedState;var a=r.stateNode;try{var i=da(r.type,l,(r.elementType,r.type));n=a.getSnapshotBeforeUpdate(i,t),a.__reactInternalSnapshotBeforeUpdate=n}catch(e){bo(r,r.return,e)}}break;default:if(1024&n)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(null!==(n=e.sibling)){n.return=e.return,Fi=n;break}Fi=e.return}return i=Mi,Mi=!1,i}function Ai(e,n,t){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Xi(e,t),4&r&&wi(5,t);break;case 1:if(Xi(e,t),4&r)if(e=t.stateNode,null===n)try{e.componentDidMount()}catch(e){bo(t,t.return,e)}else{var l=da(t.type,n.memoizedProps);n=n.memoizedState;try{e.componentDidUpdate(l,n,e.__reactInternalSnapshotBeforeUpdate)}catch(e){bo(t,t.return,e)}}64&r&&Pi(t),512&r&&_i(t,t.return);break;case 3:if(Xi(e,t),64&r&&null!==(r=t.updateQueue)){if(e=null,null!==t.child)switch(t.child.tag){case 27:case 5:e=Yn(t.child.stateNode);break;case 1:e=t.child.stateNode}try{tr(r,e)}catch(e){bo(t,t.return,e)}}break;case 26:case 27:case 5:Xi(e,t),512&r&&_i(t,t.return);break;case 12:case 13:default:Xi(e,t);break;case 22:if(1&t.mode){if(!(l=null!==t.memoizedState||Li)){n=null!==n&&null!==n.memoizedState||Ii;var a=Li,i=Ii;Li=l,(Ii=n)&&!i?Ji(e,t,!!(8772&t.subtreeFlags)):Xi(e,t),Li=a,Ii=i}}else Xi(e,t);512&r&&("manual"===t.memoizedProps.mode?_i(t,t.return):zi(t,t.return))}}function ji(e){var n=e.alternate;null!==n&&(e.alternate=null,ji(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Qi=null,Vi=!1;function Hi(e,n,t){for(t=t.child;null!==t;)Oi(e,n,t),t=t.sibling}function Oi(e,t,r){if(yn&&"function"==typeof yn.onCommitFiberUnmount)try{yn.onCommitFiberUnmount(bn,r)}catch(e){}switch(r.tag){case 26:case 27:case 5:Ii||zi(r,t);case 6:var l=Qi,a=Vi;if(Qi=null,Hi(e,t,r),Vi=a,null!==(Qi=l))if(Vi)try{e=Qi,$n(r.stateNode),n(i[2]).UIManager.manageChildren(e,[],[],[],[],[0])}catch(e){bo(r,t,e)}else try{e=Qi;var u=r.stateNode;$n(u);var o=e._children,s=o.indexOf(u);o.splice(s,1),n(i[2]).UIManager.manageChildren(e._nativeTag,[],[],[],[],[s])}catch(e){bo(r,t,e)}break;case 18:null!==Qi&&Qn();break;case 4:u=Qi,o=Vi,Qi=r.stateNode.containerInfo,Vi=!0,Hi(e,t,r),Qi=u,Vi=o;break;case 0:case 11:case 14:case 15:Ii||Ei(2,r,t),Ii||Ei(4,r,t),Hi(e,t,r);break;case 1:Ii||(zi(r,t),"function"==typeof(u=r.stateNode).componentWillUnmount&&Ti(r,t,u)),Hi(e,t,r);break;case 21:Hi(e,t,r);break;case 22:Ii||zi(r,t),1&r.mode?(Ii=(u=Ii)||null!==r.memoizedState,Hi(e,t,r),Ii=u):Hi(e,t,r);break;default:Hi(e,t,r)}}function Bi(e){switch(e.tag){case 13:case 19:var n=e.stateNode;return null===n&&(n=e.stateNode=new Ui),n;case 22:return null===(n=(e=e.stateNode)._retryCache)&&(n=e._retryCache=new Ui),n;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Wi(e,n){var t=Bi(e);n.forEach(function(n){var r=Eo.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}function $i(e,n){var t=n.deletions;if(null!==t)for(var r=0;rt?32:t,s.T=null,null===Au)var a=!1;else{t=Vu,Vu=null;var i=Au,u=ju;if(Au=null,ju=0,6&hu)throw Error("Cannot flush passive effects while already rendering.");var o=hu;if(hu|=4,su(i.current),nu(i,i.current,u,t),hu=o,It(0,!1),yn&&"function"==typeof yn.onPostCommitFiberRoot)try{yn.onPostCommitFiberRoot(bn,i)}catch(e){}a=!0}return a}finally{Jn=l,s.T=r,mo(e,n)}}return!1}function vo(e,n,t){n=ut(t,n),null!==(e=Xt(e,n=va(e.stateNode,n,2),2))&&(Un(e,2),Lt(e))}function bo(e,n,t){if(3===e.tag)vo(e,e,t);else for(;null!==n;){if(3===n.tag){vo(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Mu||!Mu.has(r))){e=ut(t,e),null!==(r=Xt(n,t=ba(2),2))&&(ya(t,r,n,e),Un(r,2),Lt(r));break}}n=n.return}}function yo(e,n,t){var r=e.pingCache;if(null===r){r=e.pingCache=new pu;var l=new Set;r.set(n,l)}else void 0===(l=r.get(n))&&(l=new Set,r.set(n,l));l.has(t)||(wu=!0,l.add(t),e=So.bind(null,e,n,t),n.then(e,e))}function So(e,t,r){var l=e.pingCache;null!==l&&l.delete(t),e.pingedLanes|=e.suspendedLanes&r,e.warmLanes&=~r,mu===e&&(vu&r)===r&&(4===Pu||3===Pu&&(62914560&vu)===vu&&300>n(i[3]).unstable_now()-Iu?!(2&hu)&&Zu(e,0):zu|=r,xu===vu&&(xu=0)),Lt(e)}function ko(e,n){0===n&&(n=1&e.mode?Ln():2),null!==(e=Et(e,n))&&(Un(e,n),Lt(e))}function wo(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane),ko(e,t)}function Eo(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}null!==r&&r.delete(n),ko(e,t)}function Po(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function To(e,n,t,r){return new Po(e,n,t,r)}function _o(e){return!(!(e=e.prototype)||!e.isReactComponent)}function zo(e,n){var t=e.alternate;return null===t?((t=To(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=31457280&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Co(e,n){e.flags&=31457282;var t=e.alternate;return null===t?(e.childLanes=0,e.lanes=n,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,n=t.dependencies,e.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext}),e}function xo(e,n,t,r,l,a){var i=0;if(r=e,"function"==typeof e)_o(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case p:return Ro(t.children,l,a,n);case h:i=8,1&(l|=8)&&(l|=16);break;case m:return(e=To(12,t,n,2|l)).elementType=m,e.lanes=a,e;case S:return(e=To(13,t,n,l)).elementType=S,e.lanes=a,e;case k:return(e=To(19,t,n,l)).elementType=k,e.lanes=a,e;case P:return No(t,l,a,n);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case g:case b:i=10;break e;case v:i=9;break e;case y:i=11;break e;case w:i=14;break e;case E:i=16,r=null;break e}i=29,t=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null===e?"null":typeof e)+"."),r=null}return(n=To(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ro(e,n,t,r){return(e=To(7,e,r,n)).lanes=t,e}function No(e,n,t,r){(e=To(22,e,r,n)).elementType=P,e.lanes=t;var l={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(!(2&l._pendingVisibility)){var n=Et(e,2);null!==n&&(l._pendingVisibility|=2,$u(n,e,2))}},attach:function(){var e=l._current;if(null===e)throw Error("Calling Offscreen.detach before instance handle has been set.");if(2&l._pendingVisibility){var n=Et(e,2);null!==n&&(l._pendingVisibility&=-3,$u(n,e,2))}}};return e.stateNode=l,e}function Lo(e,n,t){return(e=To(6,e,null,n)).lanes=t,e}function Io(e,n,t){return(n=To(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function Uo(e,n,t,r,l,a,i,u){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=In(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=In(0),this.hiddenUpdates=In(null),this.identifierPrefix=r,this.onUncaughtError=l,this.onCaughtError=a,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=u,this.incompleteTransitions=new Map}function Fo(e,n,t){var r=3=0||(le=0);var oe=J,re=(0,l.default)(te);if(null!=re){var ie=null;'number'==typeof re.fontWeight&&((ie=ie||{}).fontWeight=re.fontWeight.toString()),null!=re.userSelect&&(oe=h[re.userSelect],(ie=ie||{}).userSelect=void 0),null!=re.verticalAlign&&((ie=ie||{}).textAlignVertical=S[re.verticalAlign],ie.verticalAlign=void 0),null!=ie&&(te=[te,ie])}var ae=null!=_?_:C;if((0,u.useContext)(i.default))return ne?(0,p.jsx)(P,{ref:n,textProps:Object.assign({},X,{accessibilityLabel:Y,accessibilityState:Z,nativeID:ae,numberOfLines:le,selectable:oe,selectionColor:se,style:te,disabled:w,children:I}),textPressabilityProps:{onLongPress:D,onPress:G,onPressIn:H,onPressOut:A,onResponderGrant:W,onResponderMove:N,onResponderRelease:z,onResponderTerminate:F,onResponderTerminationRequest:V,onStartShouldSetResponder:B,pressRetentionOffset:E,suppressHighlighting:Q}}):(0,p.jsx)(_r(d[11]).NativeVirtualText,Object.assign({},X,{accessibilityLabel:Y,accessibilityState:Z,nativeID:ae,numberOfLines:le,ref:n,selectable:oe,selectionColor:se,style:te,disabled:w,children:I}));ee!==$&&(null!=ee&&!1!==ee||null!=$&&!1!==$)&&(Z=Object.assign({},Z,{disabled:ee}));var ue=r.default.select({ios:!1!==c,android:null==c?null!=G||null!=D:c,default:c}),de=null;if(de=ne?(0,p.jsx)(y,{ref:n,textProps:Object.assign({},X,{accessibilityLabel:Y,accessibilityState:Z,accessible:ue,allowFontScaling:!1!==v,disabled:ee,ellipsizeMode:null!=k?k:'tail',nativeID:ae,numberOfLines:le,selectable:oe,selectionColor:se,style:te,children:I}),textPressabilityProps:{onLongPress:D,onPress:G,onPressIn:H,onPressOut:A,onResponderGrant:W,onResponderMove:N,onResponderRelease:z,onResponderTerminate:F,onResponderTerminationRequest:V,onStartShouldSetResponder:B,pressRetentionOffset:E,suppressHighlighting:Q}}):(0,p.jsx)(_r(d[11]).NativeText,Object.assign({},X,{accessibilityLabel:Y,accessibilityState:Z,accessible:ue,allowFontScaling:!1!==v,disabled:ee,ellipsizeMode:null!=k?k:'tail',nativeID:ae,numberOfLines:le,ref:n,selectable:oe,selectionColor:se,style:te,children:I})),null==I)return de;if(Array.isArray(I)&&I.length<=3){var ce=!1;for(var pe of I)if(null!=pe&&'object'==typeof pe){ce=!0;break}if(!ce)return de}else if('object'!=typeof I)return de;return(0,p.jsx)(i.default.Provider,{value:!0,children:de})});function v(e){var s=e.onLongPress,l=e.onPress,o=e.onPressIn,i=e.onPressOut,c=e.onResponderGrant,p=e.onResponderMove,f=e.onResponderRelease,b=e.onResponderTerminate,R=e.onResponderTerminationRequest,v=e.onStartShouldSetResponder,P=e.pressRetentionOffset,y=e.suppressHighlighting,h=(0,u.useState)(!1),S=(0,n.default)(h,2),O=S[0],x=S[1],j=(0,u.useMemo)(function(){var e=o,n=i;return'ios'===r.default.OS&&(e=function(e){x(null==y||!y),null==o||o(e)},n=function(e){x(!1),null==i||i(e)}),{disabled:!1,pressRectOffset:P,onLongPress:s,onPress:l,onPressIn:e,onPressOut:n}},[P,s,l,o,i,y]),M=(0,t.default)(j),T=(0,u.useMemo)(function(){return null==M?null:{onResponderGrant:function(e){M.onResponderGrant(e),null!=c&&c(e)},onResponderMove:function(e){M.onResponderMove(e),null!=p&&p(e)},onResponderRelease:function(e){M.onResponderRelease(e),null!=f&&f(e)},onResponderTerminate:function(e){M.onResponderTerminate(e),null!=b&&b(e)},onClick:M.onClick,onResponderTerminationRequest:null!=R?R:M.onResponderTerminationRequest,onStartShouldSetResponder:null!=v?v:M.onStartShouldSetResponder}},[M,c,p,f,b,R,v]);return(0,u.useMemo)(function(){return[O,T]},[O,T])}R.displayName='Text';var P=c.forwardRef(function(e,s){var t=e.textProps,l=v(e.textPressabilityProps),o=(0,n.default)(l,2),r=o[0],i=o[1];return(0,p.jsx)(_r(d[11]).NativeVirtualText,Object.assign({},t,i,{isHighlighted:r,isPressable:!0,ref:s}))}),y=c.forwardRef(function(e,s){var t=e.textProps,l=v(e.textPressabilityProps),o=(0,n.default)(l,2),r=o[0],i=o[1];return(0,p.jsx)(_r(d[11]).NativeText,Object.assign({},t,i,{isHighlighted:r,isPressable:!0,ref:s}))}),h={auto:!0,text:!0,none:!1,contain:!0,all:!0},S={auto:'auto',top:'top',bottom:'bottom',middle:'center'};_e.default=R},2059,[1,19,207,2060,2061,1923,1881,1838,2030,128,258,2070]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.PressabilityDebugView=function(e){return null},_e.isEnabled=function(){return!1},_e.setEnabled=function(e){};e(_r(d[1])),e(_r(d[2])),(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var o,u,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,f)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((u=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(u.get||u.set)?o(f,i,u):f[i]=e[i])})(e,t)})(_r(d[3])),_r(d[4])},2060,[1,2029,1882,128,258]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=(0,l.useRef)(null);null!=n&&null==t.current&&(t.current=new u.default(n));var f=t.current;return(0,l.useEffect)(function(){null!=n&&null!=f&&f.configure(n)},[n,f]),(0,l.useEffect)(function(){if(null!=f)return function(){f.reset()}},[f]),null==f?null:f.getEventHandlers()};var u=n(r(d[1])),l=r(d[2])},2061,[1,2062,128]); -__d(function(g,r,i,a,m,e,d){var E=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=E(r(d[1])),n=E(r(d[2])),R=E(r(d[3])),_=E(r(d[4])),o=E(r(d[5])),l=E(r(d[6])),u=E(r(d[7])),s=E(r(d[8])),S=Object.freeze({NOT_RESPONDER:{DELAY:'ERROR',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'ERROR',RESPONDER_TERMINATED:'ERROR',ENTER_PRESS_RECT:'ERROR',LEAVE_PRESS_RECT:'ERROR',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_IN:{DELAY:'RESPONDER_ACTIVE_PRESS_IN',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:'RESPONDER_ACTIVE_PRESS_OUT',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_INACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'RESPONDER_ACTIVE_LONG_PRESS_IN'},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:'ERROR',RESPONDER_GRANT:'ERROR',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_IN',LEAVE_PRESS_RECT:'RESPONDER_ACTIVE_LONG_PRESS_OUT',LONG_PRESS_DETECTED:'ERROR'},ERROR:{DELAY:'NOT_RESPONDER',RESPONDER_GRANT:'RESPONDER_INACTIVE_PRESS_IN',RESPONDER_RELEASE:'NOT_RESPONDER',RESPONDER_TERMINATED:'NOT_RESPONDER',ENTER_PRESS_RECT:'NOT_RESPONDER',LEAVE_PRESS_RECT:'NOT_RESPONDER',LONG_PRESS_DETECTED:'NOT_RESPONDER'}}),T=function(E){return'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},O=function(E){return'RESPONDER_ACTIVE_PRESS_OUT'===E||'RESPONDER_ACTIVE_PRESS_IN'===E},P=function(E){return'RESPONDER_INACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_PRESS_IN'===E||'RESPONDER_ACTIVE_LONG_PRESS_IN'===E},c=function(E){return'RESPONDER_TERMINATED'===E||'RESPONDER_RELEASE'===E},N=30,D=20,v=20,h=20,f=10;e.default=(function(){return(0,n.default)(function E(n){var R=this;(0,t.default)(this,E),this._eventHandlers=null,this._hoverInDelayTimeout=null,this._hoverOutDelayTimeout=null,this._isHovered=!1,this._longPressDelayTimeout=null,this._pressDelayTimeout=null,this._pressOutDelayTimeout=null,this._responderID=null,this._responderRegion=null,this._touchState='NOT_RESPONDER',this._measureCallback=function(E,t,n,_,o,l){(E||t||n||_||o||l)&&(R._responderRegion={bottom:l+_,left:o,right:o+n,top:l})},this.configure(n)},[{key:"configure",value:function(E){this._config=E}},{key:"reset",value:function(){this._cancelHoverInDelayTimeout(),this._cancelHoverOutDelayTimeout(),this._cancelLongPressDelayTimeout(),this._cancelPressDelayTimeout(),this._cancelPressOutDelayTimeout(),this._config=Object.freeze({})}},{key:"getEventHandlers",value:function(){return null==this._eventHandlers&&(this._eventHandlers=this._createEventHandlers()),this._eventHandlers}},{key:"_createEventHandlers",value:function(){var E=this,t={onBlur:function(t){var n=E._config.onBlur;null!=n&&n(t)},onFocus:function(t){var n=E._config.onFocus;null!=n&&n(t)}},n={onStartShouldSetResponder:function(){var t;return null==(t=!E._config.disabled)||t},onResponderGrant:function(t){t.persist(),E._cancelPressOutDelayTimeout(),E._responderID=t.currentTarget,E._touchState='NOT_RESPONDER',E._receiveSignal('RESPONDER_GRANT',t);var n=I(E._config.delayPressIn);n>0?E._pressDelayTimeout=setTimeout(function(){E._receiveSignal('DELAY',t)},n):E._receiveSignal('DELAY',t);var R=I(E._config.delayLongPress,10,500-n);return E._longPressDelayTimeout=setTimeout(function(){E._handleLongPress(t)},R+n),!0===E._config.blockNativeResponder},onResponderMove:function(t){var n=E._config.onPressMove;null!=n&&n(t);var R=E._responderRegion;if(null!=R){var _=A(t);if(null==_)return E._cancelLongPressDelayTimeout(),void E._receiveSignal('LEAVE_PRESS_RECT',t);if(null!=E._touchActivatePosition){var o=E._touchActivatePosition.pageX-_.pageX,l=E._touchActivatePosition.pageY-_.pageY;Math.hypot(o,l)>f&&E._cancelLongPressDelayTimeout()}E._isTouchWithinResponderRegion(_,R)?E._receiveSignal('ENTER_PRESS_RECT',t):(E._cancelLongPressDelayTimeout(),E._receiveSignal('LEAVE_PRESS_RECT',t))}},onResponderRelease:function(t){E._receiveSignal('RESPONDER_RELEASE',t)},onResponderTerminate:function(t){E._receiveSignal('RESPONDER_TERMINATED',t)},onResponderTerminationRequest:function(){var t=E._config.cancelable;return null==t||t},onClick:function(t){var n;if(null==t||null==(n=t.nativeEvent)||null==n.hasOwnProperty||!n.hasOwnProperty('pointerType'))if((null==t?void 0:t.currentTarget)===(null==t?void 0:t.target)){var R=E._config,_=R.onPress,o=R.disabled;null!=_&&!0!==o&&_(t)}else null==t||t.stopPropagation()}};if(_.default.shouldPressibilityUseW3CPointerEventsForHover()){var R={onPointerEnter:void 0,onPointerLeave:void 0},o=this._config,u=o.onHoverIn,s=o.onHoverOut;return null!=u&&(R.onPointerEnter=function(t){if(E._isHovered=!0,E._cancelHoverOutDelayTimeout(),null!=u){var n=I(E._config.delayHoverIn);n>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){u(y(t))},n)):u(y(t))}}),null!=s&&(R.onPointerLeave=function(t){if(E._isHovered&&(E._isHovered=!1,E._cancelHoverInDelayTimeout(),null!=s)){var n=I(E._config.delayHoverOut);n>0?(t.persist(),E._hoverOutDelayTimeout=setTimeout(function(){s(y(t))},n)):s(y(t))}}),Object.assign({},t,n,R)}var S='ios'===l.default.OS||'android'===l.default.OS?null:{onMouseEnter:function(t){if((0,r(d[9]).isHoverEnabled)()){E._isHovered=!0,E._cancelHoverOutDelayTimeout();var n=E._config.onHoverIn;if(null!=n){var R=I(E._config.delayHoverIn);R>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){n(t)},R)):n(t)}}},onMouseLeave:function(t){if(E._isHovered){E._isHovered=!1,E._cancelHoverInDelayTimeout();var n=E._config.onHoverOut;if(null!=n){var R=I(E._config.delayHoverOut);R>0?(t.persist(),E._hoverInDelayTimeout=setTimeout(function(){n(t)},R)):n(t)}}}};return Object.assign({},t,n,S)}},{key:"_receiveSignal",value:function(E,t){var n;null!=t.nativeEvent.timestamp&&u.default.emitEvent(function(){return{signal:E,nativeTimestamp:t.nativeEvent.timestamp}});var R=this._touchState,_=null==(n=S[R])?void 0:n[E];null==this._responderID&&'RESPONDER_RELEASE'===E||((0,s.default)(null!=_&&'ERROR'!==_,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',E,R,'number'==typeof this._responderID?this._responderID:'<>'),R!==_&&(this._performTransitionSideEffects(R,_,E,t),this._touchState=_))}},{key:"_performTransitionSideEffects",value:function(E,t,n,_){c(n)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var o='NOT_RESPONDER'===E&&'RESPONDER_INACTIVE_PRESS_IN'===t,u=!O(E)&&O(t);if((o||u)&&this._measureResponderRegion(),P(E)&&'LONG_PRESS_DETECTED'===n){var s=this._config.onLongPress;null!=s&&s(_)}var S=T(E),N=T(t);if(!S&&N?this._activate(_):S&&!N&&this._deactivate(_),P(E)&&'RESPONDER_RELEASE'===n){N||S||(this._activate(_),this._deactivate(_));var D=this._config,v=D.onLongPress,h=D.onPress,f=D.android_disableSound;if(null!=h)null!=v&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===E||('android'===l.default.OS&&!0!==f&&R.default.playTouchSound(),h(_))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(E){var t=this._config.onPressIn,n=A(E),R=n.pageX,_=n.pageY;this._touchActivatePosition={pageX:R,pageY:_},this._touchActivateTime=Date.now(),null!=t&&t(E)}},{key:"_deactivate",value:function(E){var t=this._config.onPressOut;if(null!=t){var n,R=I(this._config.minPressDuration,0,130),_=Date.now()-(null!=(n=this._touchActivateTime)?n:0),o=Math.max(R-_,I(this._config.delayPressOut));o>0?(E.persist(),this._pressOutDelayTimeout=setTimeout(function(){t(E)},o)):t(E)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?o.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(E,t){var n,R,_,o,l=(0,r(d[10]).normalizeRect)(this._config.hitSlop),u=(0,r(d[10]).normalizeRect)(this._config.pressRectOffset),s=t.bottom,S=t.left,T=t.right,O=t.top;return null!=l&&(null!=l.bottom&&(s+=l.bottom),null!=l.left&&(S-=l.left),null!=l.right&&(T+=l.right),null!=l.top&&(O-=l.top)),s+=null!=(n=null==u?void 0:u.bottom)?n:N,S-=null!=(R=null==u?void 0:u.left)?R:D,T+=null!=(_=null==u?void 0:u.right)?_:v,O-=null!=(o=null==u?void 0:u.top)?o:h,E.pageX>S&&E.pageXO&&E.pageY1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(t,null!=E?E:n)}var A=function(E){var t=E.nativeEvent,n=t.changedTouches,R=t.touches;return null!=R&&R.length>0?R[0]:null!=n&&n.length>0?n[0]:E.nativeEvent};function y(E){var t=E.nativeEvent,n=t.clientX,R=t.clientY;return Object.assign({},E,{nativeEvent:{clientX:n,clientY:R,pageX:n,pageY:R,timestamp:E.timeStamp}})}},2062,[1,3,4,2063,2066,1884,1838,2067,39,2068,2069]); -__d(function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=u(r(d[1])),l={playTouchSound:function(){o.default&&o.default.playTouchSound()}};e.default=l},2063,[1,2064]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2064,[2065]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('SoundManager')},2065,[1841]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={shouldEmitW3CPointerEvents:function(){return!1},shouldPressibilityUseW3CPointerEventsForHover:function(){return!1}}},2066,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),s=t(r(d[2])),u=new((function(){return(0,s.default)(function t(){(0,n.default)(this,t),this._listeners=[]},[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach(function(t){return t(n)})}}}])})());e.default=u},2067,[1,3,4]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return o};var t=n(r(d[1])),o=!1;if('web'===t.default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var u=0,c=function(){u=Date.now(),o&&(o=!1)};document.addEventListener('touchstart',c,!0),document.addEventListener('touchmove',c,!0),document.addEventListener('mousemove',function(){o||Date.now()-u<1e3||(o=!0)},!0)}},2068,[1,1838]); -__d(function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}},2069,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var n=t(r(d[1])),l=t(r(d[2])),o={validAttributes:{isHighlighted:!0,isPressable:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,dynamicTypeRamp:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0,lineBreakStrategyIOS:!0},directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'},u={validAttributes:{isHighlighted:!0,isPressable:!0,maxFontSizeMultiplier:!0},uiViewClassName:'RCTVirtualText'},s=e.NativeText=(0,l.default)('RCTText',function(){return(0,r(d[3]).createViewConfig)(o)});e.NativeVirtualText=g.RN$Bridgeless||n.default.hasViewManagerConfig('RCTVirtualText')?(0,l.default)('RCTVirtualText',function(){return(0,r(d[3]).createViewConfig)(u)}):s},2070,[1,1884,2057,1915]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var s=e(_r(d[1])),t=e(_r(d[2])),i=e(_r(d[3])),o=e(_r(d[4])),n=e(_r(d[5])),r=e(_r(d[6])),l=(e(_r(d[7])),e(_r(d[8]))),p=e(_r(d[9])),c=e(_r(d[10])),u=e(_r(d[11])),h=(function(e,s){if("function"==typeof WeakMap)var t=new WeakMap,i=new WeakMap;return(function(e,s){if(!s&&e&&e.__esModule)return e;var o,n,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(o=s?i:t){if(o.has(e))return o.get(e);o.set(e,r)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((n=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(n.get||n.set)?o(r,l,n):r[l]=e[l]);return r})(e,s)})(_r(d[12])),b=(_r(d[13]),["onBlur","onFocus"]);function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var y=(function(e){function p(){var e,s,i,r;(0,t.default)(this,p);for(var c=arguments.length,u=new Array(c),h=0;h1&&void 0!==arguments[1]?arguments[1]:{},i=n.iterations,r=void 0===i?-1:i,o=n.resetBeforeIteration,a=void 0===o||o,u=!1,s=0;return{start:function(n){var i=function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};u||s===r||!1===o.finished?n&&n(o):(s++,a&&t.reset(),t.start(i,-1===r))};t&&0!==r?t._isUsingNativeDriver()?t._startNativeLoop(r):i():n&&n({finished:!0})},stop:function(){u=!0,t.stop()},reset:function(){s=0,u=!1,t.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return t._isUsingNativeDriver()}}},event:function(t,n){var i=new(_r(d[17]).AnimatedEvent)(t,n);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:o.default,attachNativeEvent:_r(d[17]).attachNativeEvent,forkEvent:function(t,n){return t?t instanceof _r(d[17]).AnimatedEvent?(t.__addListener(n),t):function(){'function'==typeof t&&t.apply(void 0,arguments),n.apply(void 0,arguments)}:n},unforkEvent:function(t,n){t&&t instanceof _r(d[17]).AnimatedEvent&&t.__removeListener(n)},Event:_r(d[17]).AnimatedEvent}},2075,[1,2076,2099,2102,2103,2109,2100,2110,2111,2095,2112,2113,2085,2114,2115,2091,2098,2090]); -__d(function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),o=t(_r(d[3])),r=t(_r(d[4])),l=t(_r(d[5])),u=t(_r(d[6])),s=t(_r(d[7]));function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}function c(t,e,n,o){var u=(0,l.default)((0,r.default)(1&o?t.prototype:t),e,n);return 2&o&&"function"==typeof u?function(t){return u.apply(n,t)}:u}_e.default=(function(t){function l(t){var n,u,s,c,_;return(0,e.default)(this,l),s=this,c=l,_=[t],c=(0,r.default)(c),(u=(0,o.default)(s,f()?Reflect.construct(c,_||[],(0,r.default)(s).constructor):c.apply(s,_)))._deceleration=null!=(n=t.deceleration)?n:.998,u._velocity=t.velocity,u._platformConfig=t.platformConfig,u}return(0,u.default)(l,t),(0,n.default)(l,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations,platformConfig:this._platformConfig,debugID:this.__getDebugID()}}},{key:"start",value:function(t,e,n,o,r){var u=this;c(l,"start",this,3)([t,e,n,o,r]),this._lastValue=t,this._fromValue=t,this._onUpdate=e,this._startTime=Date.now(),this.__startAnimationIfNative(r)||(this._animationFrame=requestAnimationFrame(function(){return u.onUpdate()}))}},{key:"onUpdate",value:function(){var t=Date.now(),e=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(e),Math.abs(this._lastValue-e)<.1?this.__notifyAnimationEnd({finished:!0}):(this._lastValue=e,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){c(l,"stop",this,3)([]),null!=this._animationFrame&&g.cancelAnimationFrame(this._animationFrame),this.__notifyAnimationEnd({finished:!1})}}])})(s.default)},2076,[1,3,4,9,11,42,12,2077]); -__d(function(g,_r,_i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),i=t(_r(d[2])),n=t(_r(d[3])),r=t(_r(d[4])),o=t(_r(d[5])),u=t(_r(d[6])),f=((function(t,e){if("function"==typeof WeakMap)var i=new WeakMap,n=new WeakMap;(function(t,e){if(!e&&t&&t.__esModule)return t;var r,o,u={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return u;if(r=e?n:i){if(r.has(t))return r.get(t);r.set(t,u)}for(var f in t)"default"!==f&&{}.hasOwnProperty.call(t,f)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,f))&&(o.get||o.set)?r(u,f,o):u[f]=t[f])})(t,e)})(_r(d[7])),t(_r(d[8])));var l=1,s=(0,o.default)("nativeID"),v=(0,o.default)("onEnd"),_=(0,o.default)("useNativeDriver");_e.default=(function(){return(0,n.default)(function t(e){var n,o;(0,i.default)(this,t),Object.defineProperty(this,s,{writable:!0,value:void 0}),Object.defineProperty(this,v,{writable:!0,value:void 0}),Object.defineProperty(this,_,{writable:!0,value:void 0}),(0,r.default)(this,_)[_]=u.default.shouldUseNativeDriver(e),this.__active=!1,this.__isInteraction=null!=(n=e.isInteraction)?n:!(0,r.default)(this,_)[_],this.__isLooping=e.isLooping,this.__iterations=null!=(o=e.iterations)?o:1},[{key:"start",value:function(t,e,i,n,o){if(!(0,r.default)(this,_)[_]&&!0===o.__isNative)throw new Error("Attempting to run JS driven animation on animated node that has been moved to \"native\" earlier by starting an animation with `useNativeDriver: true`");(0,r.default)(this,v)[v]=i,this.__active=!0}},{key:"stop",value:function(){if(null!=(0,r.default)(this,s)[s]){var t=(0,r.default)(this,s)[s],e=`${t}:stopAnimation`;try{u.default.API.setWaitingForIdentifier(e),u.default.API.stopAnimation(t)}finally{u.default.API.unsetWaitingForIdentifier(e)}}this.__active=!1}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__findAnimatedPropsNodes",value:function(t){var i=[];if(t instanceof f.default)return i.push(t),i;for(var n of t.__getChildren())i.push.apply(i,(0,e.default)(this.__findAnimatedPropsNodes(n)));return i}},{key:"__startAnimationIfNative",value:function(t){var e=this;if(!(0,r.default)(this,_)[_])return!1;var i=`${l}:startAnimation`;l+=1,u.default.API.setWaitingForIdentifier(i);try{var n=this.__getNativeAnimationConfig();return t.__makeNative(n.platformConfig),(0,r.default)(this,s)[s]=u.default.generateNewAnimationId(),u.default.API.startAnimatingNode((0,r.default)(this,s)[s],t.__getNativeTag(),n,function(i){e.__notifyAnimationEnd(i);var n=i.value;if(null!=n){if(t.__onAnimatedValueUpdateReceived(n),!0===e.__isLooping)return;e.__findAnimatedPropsNodes(t).forEach(function(t){return t.update()})}}),!0}catch(t){throw t}finally{u.default.API.unsetWaitingForIdentifier(i)}}},{key:"__notifyAnimationEnd",value:function(t){var e=(0,r.default)(this,v)[v];null!=e&&((0,r.default)(this,v)[v]=null,e(t))}},{key:"__getDebugID",value:function(){}}])})()},2077,[1,32,3,4,45,46,2078,1865,2084]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),i=e(_r(d[3])),o=e(_r(d[4])),u=e(_r(d[5])),r=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,u,r={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return r;if(o=t?i:n){if(o.has(e))return o.get(e);o.set(e,r)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((u=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(u.get||u.set)?o(r,l,u):r[l]=e[l]);return r})(e,t)})(_r(d[6])),l=e(_r(d[7])),s=e(_r(d[8]));var f,c=null!=t.default?t.default:n.default,A=1,v=1,N=new Set,p=!1,h=[],V=[],O='android'===u.default.OS&&null!=(null==c?void 0:c.queueAndExecuteBatchedOperations)&&r.animatedShouldUseSingleOp(),w=null,b={},y={},T=null,D=null;var F=(function(){var e=['createAnimatedNode','updateAnimatedNodeConfig','getValue','startListeningToAnimatedNodeValue','stopListeningToAnimatedNodeValue','connectAnimatedNodes','disconnectAnimatedNodes','startAnimatingNode','stopAnimation','setAnimatedNodeValue','setAnimatedNodeOffset','flattenAnimatedNodeOffset','extractAnimatedNodeOffset','connectAnimatedNodeToView','disconnectAnimatedNodeFromView','restoreDefaultValues','dropAnimatedNode','addAnimatedEventToView','removeAnimatedEventFromView','addListener','removeListener'],t={};if(O)for(var n=function(){var n=i+1;t[e[i]]=function(){for(var e=arguments.length,t=new Array(e),i=0;i0}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this.__callListeners(t)}},{key:"__callListeners",value:function(t){var n={value:t};(0,l.default)(this,h)[h].forEach(function(t){t(n)})}},{key:"__getNativeTag",value:function(){var t=this.__nativeTag;if(null==t){null==v||v(),(0,f.default)(this.__isNative,'Attempt to get native tag from node not marked as "native"'),t=_.default.generateNewNodeTag(),this.__nativeTag=t;var n=this.__getNativeConfig();this._platformConfig&&(n.platformConfig=this._platformConfig),_.default.API.createAnimatedNode(t,n)}return t}},{key:"__getNativeConfig",value:function(){throw new Error('This JS animated node type cannot be used as native animated node')}},{key:"__getPlatformConfig",value:function(){return this._platformConfig}},{key:"__setPlatformConfig",value:function(t){this._platformConfig=t}},{key:"toJSON",value:function(){return this.__getValue()}},{key:"__getDebugID",value:function(){}}])})()},2085,[1,3,4,45,46,2078,39]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0,_e.isPlainObject=y;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=e(_r(d[4])),i=e(_r(d[5])),f=e(_r(d[6])),o=e(_r(d[7])),l=e(_r(d[8])),c=e(_r(d[9])),_=e(_r(d[10])),v=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,i,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,f)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((i=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(i.get||i.set)?u(f,o,i):f[o]=e[o]);return f})(e,t)})(_r(d[11]));function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}function h(e,t,n,r){var f=(0,i.default)((0,u.default)(1&r?e.prototype:e),t,n);return 2&r&&"function"==typeof f?function(e){return f.apply(n,e)}:f}function y(e){return null!==e&&'object'==typeof e&&Object.getPrototypeOf(e).isPrototypeOf(Object)&&!v.isValidElement(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(n>=5)return t;if(e instanceof c.default)t.push(e);else if(Array.isArray(e))for(var r=0,u=e.length;r2&&void 0!==arguments[2]?arguments[2]:0;if(n>=5)return e;if(e instanceof c.default)return t(e);if(Array.isArray(e))return e.map(function(e){return b(e,t,n+1)});if(y(e)){for(var r={},u=Object.keys(e),i=0,f=u.length;i0)for(var _=0;_0&&(0,f.default)(this,T)[T]()}},{key:"addListener",value:function(t){var e=k(l,"addListener",this,3)([t]);return(0,f.default)(this,V)[V]++,this.__isNative&&(0,f.default)(this,T)[T](),e}},{key:"removeListener",value:function(t){var e;(k(l,"removeListener",this,3)([t]),(0,f.default)(this,V)[V]--,this.__isNative&&0===(0,f.default)(this,V)[V])&&(null==(e=(0,f.default)(this,A)[A])||e.remove())}},{key:"removeAllListeners",value:function(){var t;(k(l,"removeAllListeners",this,3)([]),(0,f.default)(this,V)[V]=0,this.__isNative)&&(null==(t=(0,f.default)(this,A)[A])||t.remove())}},{key:"setValue",value:function(t){var e,n,u=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(e=this.__getNativeTag().toString(),n=function(){return y.setAnimatedNodeValue(u.__getNativeTag(),t)},y.setWaitingForIdentifier(e),n(),y.unsetWaitingForIdentifier(e))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&y.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&y.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&y.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&(this.__isNative?y.getValue(this.__getNativeTag(),t):t(this.__getValue()))}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&y.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"__onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new h.default(this,t)}},{key:"animate",value:function(t,e){var n=this,u=null;t.__isInteraction&&(u=v.default.createInteractionHandle());var s=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){n._updateValue(t,!0)},function(t){n._animation=null,null!==u&&v.default.clearInteractionHandle(u),e&&e(t)},s,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t,this._tracking&&this._tracking.update()}},{key:"_updateValue",value:function(t,e){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._value=t,e&&N(this),this.__callListeners(this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset,debugID:this.__getDebugID()}}}])})(c.default);function b(){var t=this;if(null==(0,f.default)(this,A)[A]){var e=this.__getNativeTag();y.startListeningToAnimatedNodeValue(e);var n=_.default.nativeEventEmitter.addListener('onAnimatedValueUpdate',function(n){n.tag===e&&t.__onAnimatedValueUpdateReceived(n.value)});(0,f.default)(this,A)[A]={remove:function(){null!=(0,f.default)(t,A)[A]&&((0,f.default)(t,A)[A]=null,n.remove(),y.stopListeningToAnimatedNodeValue(e))}}}}},2091,[1,3,4,9,11,42,12,45,46,2078,2092,2095,2087]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,u)}for(var c in e)"default"!==c&&{}.hasOwnProperty.call(e,c)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,c))&&(o.get||o.set)?i(u,c,o):u[c]=e[c]);return u})(e,t)})(_r(d[1]));var n=new(e(_r(d[2])).default),r={Events:{interactionStart:'interactionStart',interactionComplete:'interactionComplete'},runAfterInteractions:function(e){var t=[],n=new Promise(function(n){p(),e&&t.push(e),t.push({run:n,name:'resolve '+(e&&e.name||'?')}),c.enqueueTasks(t)});return{then:n.then.bind(n),cancel:function(){c.cancelTasks(t)}}},createInteractionHandle:function(){p();var e=++s;return o.add(e),e},clearInteractionHandle:function(e){_r(d[3])(!!e,'InteractionManager: Must provide a handle to clear.'),p(),o.delete(e),u.add(e)},addListener:n.addListener.bind(n),setDeadline:function(e){l=e}},i=new Set,o=new Set,u=new Set,c=new(_r(d[4]).default)({onMoreTasks:p}),f=0,s=0,l=-1;function p(){f||(f=l>0?setTimeout(v,0):setImmediate(v))}function v(){f=0;var e=i.size;o.forEach(function(e){return i.add(e)}),u.forEach(function(e){return i.delete(e)});var t=i.size;if(0!==e&&0===t?n.emit(h.Events.interactionComplete):0===e&&0!==t&&n.emit(h.Events.interactionStart),0===t)for(;c.hasTasksToProcess();)if(c.processNext(),l>0&&_r(d[5]).default.getEventLoopRunningTime()>=l){p();break}o.clear(),u.clear()}var h=t.disableInteractionManager()?_r(d[6]).default:r;_e.default=h},2092,[1,1865,1837,39,2093,1830,2094]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(r(d[1])),u=e(r(d[2])),s=(function(){return(0,u.default)(function e(u){var s=u.onMoreTasks;(0,t.default)(this,e),this._onMoreTasks=s,this._queueStack=[{tasks:[],popable:!1}]},[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return Object.assign({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(r(d[3])('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then(function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){setTimeout(function(){throw t.message=`TaskQueue: Error resolving Promise in task ${e.name}: ${t.message}`,t},0)})}}])})();_e.default=s},2093,[1,3,4,39]); -__d(function(g,r,i,a,m,e,d){function n(n){setTimeout(function(){throw n},0)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={Events:{interactionStart:'interactionStart',interactionComplete:'interactionComplete'},runAfterInteractions:function(t){var o,c=new Promise(function(c){o=setImmediate(function(){if('object'==typeof t&&null!==t)if('function'==typeof t.gen)t.gen().then(c,n);else if('function'==typeof t.run)try{t.run(),c()}catch(t){n(t)}else n(new TypeError(`Task "${t.name}" missing gen or run.`));else if('function'==typeof t)try{t(),c()}catch(t){n(t)}else n(new TypeError('Invalid task of type: '+typeof t))})});return{then:c.then.bind(c),cancel:function(){clearImmediate(o)}}},createInteractionHandle:function(){return-1},clearInteractionHandle:function(n){r(d[0])(!!n,'InteractionManager: Must provide a handle to clear.')},addListener:function(){return{remove:function(){}}},setDeadline:function(n){}};e.default=t},2094,[39]); -__d(function(_g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),n=t(_r(d[2])),a=t(_r(d[3])),o=t(_r(d[4])),r=t(_r(d[5])),u=t(_r(d[6])),i=t(_r(d[7])),l=t(_r(d[8])),f=t(_r(d[9])),p=t(_r(d[10])),c=t(_r(d[11])),s=t(_r(d[12]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function _(t,e,n,a){var u=(0,r.default)((0,o.default)(1&a?t.prototype:t),e,n);return 2&a&&"function"==typeof u?function(t){return u.apply(n,t)}:u}function g(t){var e=t.outputRange,n=t.inputRange,a=t.easing||p.default.linear,o='extend';void 0!==t.extrapolateLeft?o=t.extrapolateLeft:void 0!==t.extrapolate&&(o=t.extrapolate);var r='extend';return void 0!==t.extrapolateRight?r=t.extrapolateRight:void 0!==t.extrapolate&&(r=t.extrapolate),function(t){(0,s.default)('number'==typeof t,'Cannot interpolation an input which is not a number');var u=b(t,n);return v(t,n[u],n[u+1],e[u],e[u+1],a,o,r)}}function v(t,e,n,a,o,r,u,i){var l=t;if(ln){if('identity'===i)return l;'clamp'===i&&(l=n)}return a===o?a:e===n?t<=e?a:o:(e===-1/0?l=-l:n===1/0?l-=e:l=(l-e)/(n-e),l=r(l),a===-1/0?l=-l:o===1/0?l+=a:l=l*(o-a)+a,l)}var y=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function x(t){var e=(0,l.default)(t);if((0,s.default)(null==e||'object'!=typeof e,'PlatformColors are not supported'),'number'==typeof e)return{isColor:!0,components:[(4278190080&(e=e||0))>>>24,(16711680&e)>>>16,(65280&e)>>>8,(255&e)/255]};for(var n,a=[],o=0;null!=(n=y.exec(t));)n.index>o&&a.push(t.substring(o,n.index)),a.push(parseFloat(n[0])),o=n.index+n[0].length;return(0,s.default)(a.length>0,'outputRange must contain color or value with numeric component'),o=2,'Bad output range');var e=t.outputRange.map(x),n=e[0].isColor,a=e.map(function(t){return n?t.components:t.components.filter(function(t){return'number'==typeof t})}),o=a[0].map(function(e,n){return g(Object.assign({},t,{outputRange:a.map(function(t){return t[n]})}))});return n?function(t){var e=o.map(function(e,n){var a=e(t);return n<3?Math.round(a):Math.round(1e3*a)/1e3});return`rgba(${e[0]}, ${e[1]}, ${e[2]}, ${e[3]})`}:function(t){var n=o.map(function(e){return e(t)}),a=0;return e[0].components.map(function(t){return'number'==typeof t?n[a++]:t}).join('')}}function b(t,e){var n;for(n=1;n=t);++n);return n-1}_e.default=(function(t){function r(t,n){var u,i,l,f;return(0,e.default)(this,r),i=this,l=r,f=[n],l=(0,o.default)(l),(u=(0,a.default)(i,h()?Reflect.construct(l,f||[],(0,o.default)(i).constructor):l.apply(i,f)))._parent=t,u._config=n,u}return(0,u.default)(r,t),(0,n.default)(r,[{key:"_getInterpolation",value:function(){if(!this._interpolation){var t=this._config;t.outputRange&&'string'==typeof t.outputRange[0]?this._interpolation=R(t):this._interpolation=g(t)}return this._interpolation}},{key:"__makeNative",value:function(t){this._parent.__makeNative(t),_(r,"__makeNative",this,3)([t])}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return(0,s.default)('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._getInterpolation()(t)}},{key:"interpolate",value:function(t){return new r(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this),_(r,"__attach",this,3)([])}},{key:"__detach",value:function(){this._parent.__removeChild(this),_(r,"__detach",this,3)([])}},{key:"__getNativeConfig",value:function(){var t=this._config.outputRange,e=null;return'string'==typeof t[0]&&(t=t.map(function(t){var n=(0,f.default)(t);return'number'==typeof n?(e='color',n):i.default.transformDataType(t)})),{inputRange:this._config.inputRange,outputRange:t,outputType:e,extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation',debugID:this.__getDebugID()}}}])})(c.default)},2095,[1,3,4,9,11,42,12,2078,1882,1881,2096,2087,39]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={step0:function(n){return n>0?1:0},step1:function(n){return n>=1?1:0},linear:function(n){return n},ease:function(u){return n||(n=t.bezier(.42,0,1,1)),n(u)},quad:function(n){return n*n},cubic:function(n){return n*n*n},poly:function(n){return function(t){return Math.pow(t,n)}},sin:function(n){return 1-Math.cos(n*Math.PI/2)},circle:function(n){return 1-Math.sqrt(1-n*n)},exp:function(n){return Math.pow(2,10*(n-1))},elastic:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(t){return 1-Math.pow(Math.cos(t*Math.PI/2),3)*Math.cos(t*n)}},back:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(t){return t*t*((n+1)*t-n)}},bounce:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var t=n-.5454545454545454;return 7.5625*t*t+.75}if(n<.9090909090909091){var u=n-.8181818181818182;return 7.5625*u*u+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375},bezier:function(n,t,u,o){return(0,r(d[0]).default)(n,t,u,o)},in:function(n){return n},out:function(n){return function(t){return 1-n(1-t)}},inOut:function(n){return function(t){return t<.5?n(2*t)/2:1-n(2*(1-t))/2}}};e.default=t},2096,[2097]); -__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n,u,o,v){if(!(n>=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var l=c?new Float32Array(f):new Array(f);if(n!==u||o!==v)for(var s=0;s=t?_(u,v,n,o):0===s?v:b(u,f,f+i,n,o)}return function(t){return n===u&&o===v?t:0===t?0:1===t?1:w(h(t),u,v)}};var n=4,t=.001,u=1e-7,o=10,f=11,i=.1,c='function'==typeof Float32Array;function v(n,t){return 1-3*t+3*n}function l(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((v(t,u)*n+l(t,u))*n+s(t))*n}function y(n,t,u){return 3*v(t,u)*n*n+2*l(t,u)*n+s(t)}function b(n,t,f,i,c){var v,l,s=0,y=t,b=f;do{(v=w(l=y+(b-y)/2,i,c)-n)>0?b=l:y=l}while(Math.abs(v)>u&&++s0,'Stiffness value must be greater than 0'),(0,f.default)(p._damping>0,'Damping value must be greater than 0'),(0,f.default)(p._mass>0,'Mass value must be greater than 0'),p}return(0,l.default)(o,t),(0,e.default)(o,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations,platformConfig:this._platformConfig,debugID:this.__getDebugID()}}},{key:"start",value:function(t,i,e,s,n){var l=this;if(_(o,"start",this,3)([t,i,e,s,n]),this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=i,this._lastTime=Date.now(),this._frameTime=0,s instanceof o){var r=s.getInternalState();this._lastPosition=r.lastPosition,this._lastVelocity=r.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=r.lastTime}var h=function(){l.__startAnimationIfNative(n)||l.onUpdate()};this._delay?this._timeout=setTimeout(h,this._delay):h()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var i=(t-this._lastTime)/1e3;this._frameTime+=i;var e=this._damping,s=this._mass,n=this._stiffness,o=-this._initialVelocity,l=e/(2*Math.sqrt(n*s)),r=Math.sqrt(n/s),h=r*Math.sqrt(1-l*l),f=this._toValue-this._startPosition,u=0,_=0,m=this._frameTime;if(l<1){var c=Math.exp(-l*r*m);u=this._toValue-c*((o+l*r*f)/h*Math.sin(h*m)+f*Math.cos(h*m)),_=l*r*c*(Math.sin(h*m)*(o+l*r*f)/h+f*Math.cos(h*m))-c*(Math.cos(h*m)*(o+l*r*f)-h*f*Math.sin(h*m))}else{var p=Math.exp(-r*m);u=this._toValue-p*(f+(o+r*f)*m),_=p*(o*(m*r-1)+m*f*(r*r))}if(this._lastTime=t,this._lastPosition=u,this._lastVelocity=_,this._onUpdate(u),this.__active){var v=!1;this._overshootClamping&&0!==this._stiffness&&(v=this._startPositionthis._toValue:u>>24,g:(16711680&e)>>>16,b:(65280&e)>>>8,a:(255&e)/255}}return null}function b(t){return t&&'number'==typeof t.r&&'number'==typeof t.g&&'number'==typeof t.b&&'number'==typeof t.a}function p(t){return t&&t.r instanceof f.default&&t.g instanceof f.default&&t.b instanceof f.default&&t.a instanceof f.default}_e.default=(function(t){function s(t,i){var r,l,u,o;(0,e.default)(this,s),l=this,u=s,o=[i],u=(0,n.default)(u),(r=(0,a.default)(l,_()?Reflect.construct(u,o||[],(0,n.default)(l).constructor):u.apply(l,o)))._suspendCallbacks=0;var h=null!=t?t:v;if(p(h)){var c=h;r.r=c.r,r.g=c.g,r.b=c.b,r.a=c.a}else{var y,k=null!=(y=g(h))?y:v,C=v;b(k)?C=k:r.nativeColor=k,r.r=new f.default(C.r),r.g=new f.default(C.g),r.b=new f.default(C.b),r.a=new f.default(C.a)}return null!=i&&i.useNativeDriver&&r.__makeNative(),r}return(0,r.default)(s,t),(0,i.default)(s,[{key:"setValue",value:function(t){var e,i=this,a=!1;if(this.__isNative){var n=this.__getNativeTag();c.setWaitingForIdentifier(n.toString())}var s=null!=(e=g(t))?e:v;if(this._withSuspendedCallbacks(function(){if(b(s)){var t=s;i.r.setValue(t.r),i.g.setValue(t.g),i.b.setValue(t.b),i.a.setValue(t.a),null!=i.nativeColor&&(i.nativeColor=null,a=!0)}else{var e=s;i.nativeColor!==e&&(i.nativeColor=e,a=!0)}}),this.__isNative){var r=this.__getNativeTag();a&&c.updateAnimatedNodeConfig(r,this.__getNativeConfig()),c.unsetWaitingForIdentifier(r.toString())}else(0,f.flushValue)(this);this.__callListeners(this.__getValue())}},{key:"setOffset",value:function(t){this.r.setOffset(t.r),this.g.setOffset(t.g),this.b.setOffset(t.b),this.a.setOffset(t.a)}},{key:"flattenOffset",value:function(){this.r.flattenOffset(),this.g.flattenOffset(),this.b.flattenOffset(),this.a.flattenOffset()}},{key:"extractOffset",value:function(){this.r.extractOffset(),this.g.extractOffset(),this.b.extractOffset(),this.a.extractOffset()}},{key:"stopAnimation",value:function(t){this.r.stopAnimation(),this.g.stopAnimation(),this.b.stopAnimation(),this.a.stopAnimation(),t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.r.resetAnimation(),this.g.resetAnimation(),this.b.resetAnimation(),this.a.resetAnimation(),t&&t(this.__getValue())}},{key:"__getValue",value:function(){return null!=this.nativeColor?this.nativeColor:`rgba(${this.r.__getValue()}, ${this.g.__getValue()}, ${this.b.__getValue()}, ${this.a.__getValue()})`}},{key:"__attach",value:function(){this.r.__addChild(this),this.g.__addChild(this),this.b.__addChild(this),this.a.__addChild(this),h(s,"__attach",this,3)([])}},{key:"__detach",value:function(){this.r.__removeChild(this),this.g.__removeChild(this),this.b.__removeChild(this),this.a.__removeChild(this),h(s,"__detach",this,3)([])}},{key:"_withSuspendedCallbacks",value:function(t){this._suspendCallbacks++,t(),this._suspendCallbacks--}},{key:"__callListeners",value:function(t){0===this._suspendCallbacks&&h(s,"__callListeners",this,3)([t])}},{key:"__makeNative",value:function(t){this.r.__makeNative(t),this.g.__makeNative(t),this.b.__makeNative(t),this.a.__makeNative(t),h(s,"__makeNative",this,3)([t])}},{key:"__getNativeConfig",value:function(){return{type:'color',r:this.r.__getNativeTag(),g:this.g.__getNativeTag(),b:this.b.__getNativeTag(),a:this.a.__getNativeTag(),nativeColor:this.nativeColor,debugID:this.__getDebugID()}}}])})(o.default)},2100,[1,3,4,9,11,42,12,2078,1882,2091,2087,1883]); -__d(function(g,r,i,a,m,e,d){'use strict';function n(n){return 3.62*(n-30)+194}function t(n){return 3*(n-8)+25}Object.defineProperty(e,"__esModule",{value:!0}),e.fromBouncinessAndSpeed=function(o,u){function f(n,t,o){return(n-t)/(o-t)}function c(n,t,o){return t+n*(o-t)}function s(n,t,o){return n*o+(1-n)*t}function p(n){return 44e-6*Math.pow(n,3)-.006*Math.pow(n,2)+.36*n+2}function M(n){return 45e-8*Math.pow(n,3)-332e-6*Math.pow(n,2)+.1078*n+5.84}var h=f(o/1.7,0,20);h=c(h,0,.8);var w=c(f(u/1.7,0,20),.5,200),v=(_=h,O=w,l=O<=18?(b=O,7e-4*Math.pow(b,3)-.031*Math.pow(b,2)+.64*b+1.28):O>18&&O<=44?p(O):M(O),A=.01,s(2*_-_*_,l,A));var _,l,A;var O,b;return{stiffness:n(w),damping:t(v)}},e.fromOrigamiTensionAndFriction=function(o,u){return{stiffness:n(o),damping:t(u)}}},2101,[]); -__d(function(g,_r,i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;t(_r(d[1]));var n,e=t(_r(d[2])),o=t(_r(d[3])),u=t(_r(d[4])),r=t(_r(d[5])),s=t(_r(d[6])),_=t(_r(d[7])),f=(t(_r(d[8])),t(_r(d[9])));function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}function h(t,n,e,o){var u=(0,s.default)((0,r.default)(1&o?t.prototype:t),n,e);return 2&o&&"function"==typeof u?function(t){return u.apply(e,t)}:u}function c(){if(!n){var t=_r(d[10]).default;n=t.inOut(t.ease)}return n}_e.default=(function(t){function n(t){var o,s,_,f,h,p,v;return(0,e.default)(this,n),h=this,p=n,v=[t],p=(0,r.default)(p),(f=(0,u.default)(h,l()?Reflect.construct(p,v||[],(0,r.default)(h).constructor):p.apply(h,v)))._toValue=t.toValue,f._easing=null!=(o=t.easing)?o:c(),f._duration=null!=(s=t.duration)?s:500,f._delay=null!=(_=t.delay)?_:0,f._platformConfig=t.platformConfig,f}return(0,_.default)(n,t),(0,o.default)(n,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],n=Math.round(this._duration/16.666666666666668),e=0;e=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__notifyAnimationEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){h(n,"stop",this,3)([]),clearTimeout(this._timeout),null!=this._animationFrame&&g.cancelAnimationFrame(this._animationFrame),this.__notifyAnimationEnd({finished:!1})}}])})(f.default)},2102,[1,144,3,4,9,11,42,12,2100,2077,2096]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){return i(e,null)},_e.unstable_createAnimatedComponentWithAllowlist=i;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),u=(e(_r(d[4])),e(_r(d[5]))),o=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,o,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,l)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((o=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(o.get||o.set)?u(l,f,o):l[f]=e[f]);return l})(e,t)})(_r(d[6])),l=o,f=_r(d[7]);function i(e,i){var s=(0,n.default)(i),c=l.forwardRef(function(n,l){var i=s(n),c=(0,t.default)(i,2),p=c[0],y=c[1],_=(0,u.default)(y,l),v=p.passthroughAnimatedPropExplicitValues,b=p.style,j=null==v?void 0:v.style,w=(0,o.useMemo)(function(){return(0,r.default)(b,j)},[j,b]);return(0,f.jsx)(e,Object.assign({},p,v,{style:w,ref:_}))});return c.displayName=`Animated(${e.displayName||'Anonymous'})`,c}},2103,[1,19,2104,2033,2029,2108,128,258]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e){var r=(0,_r(d[9]).createAnimatedPropsMemoHook)(e);return function(s){var h=(0,l.useReducer)(function(e){return e+1},0),N=(0,t.default)(h,2)[1],P=(0,l.useRef)(null),y=(0,l.useRef)(null),R=r(function(){return new n.default(s,function(){return null==P.current?void 0:P.current()},e)},s),I=i.shouldUseSetNativePropsInFabric();(0,l.useEffect)(function(){o.default.API.flushQueue();var e=null;return R.__isNative&&(e=o.default.nativeEventEmitter.addListener('onUserDrivenAnimationEnded',function(e){R.update()})),function(){var t;null==(t=e)||t.remove()}}),(i.scheduleAnimatedCleanupInMicrotask()?_:v)(R);var S=(0,l.useCallback)(function(e){R.setNativeView(e),P.current=function(){var t=b(e);if(R.__isNative)t&&N();else{if('object'!=typeof e||'function'!=typeof(null==e?void 0:e.setNativeProps))return N();if(!t)return e.setNativeProps(R.__getAnimatedValue());if(!I)return N();e.setNativeProps(R.__getAnimatedValue()),null!=y.current&&clearTimeout(y.current),y.current=setTimeout(function(){y.current=null,N()},48)}};var n=p(e),r=[],u=[];for(var i in s){var o=s[i];o instanceof _r(d[10]).AnimatedEvent&&o.__isNative&&(o.__attach(n,i),r.push([i,o]),f(o,u))}return function(){for(var e of(P.current=null,r)){var i=(0,t.default)(e,2),o=i[0];i[1].__detach(n,o)}for(var l of u){var c=l.propValue,f=l.listenerId;c.removeListener(f)}}},[R,I,s]),A=(0,u.default)(S);return[c(R,s),A]}};var t=e(_r(d[1])),n=(e(_r(d[2])),e(_r(d[3]))),r=e(_r(d[4])),u=e(_r(d[5])),i=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?u(o,l,i):o[l]=e[l]);return o})(e,t)})(_r(d[6])),o=e(_r(d[7])),l=_r(d[8]);function c(e,t){return Object.assign({},e.__getValueWithStaticProps(t),{collapsable:!1})}function f(e,t){if(e instanceof r.default){var n=e.addListener(function(){});t.push({propValue:e,listenerId:n})}else if(Array.isArray(e))for(var u of e)f(u,t);else e instanceof Object&&s(e,t)}function s(e,t){for(var n in e){f(e[n],t)}}function v(e){var t=(0,l.useRef)(null),n=(0,l.useRef)(!1);(0,l.useInsertionEffect)(function(){return n.current=!1,function(){n.current=!0}},[]),(0,l.useInsertionEffect)(function(){if(e.__attach(),null!=t.current){var r=t.current;r.__restoreDefaultValues(),r.__detach(),t.current=null}return function(){n.current?e.__detach():t.current=e}},[e])}function _(e){var t=(0,l.useRef)(!1);(0,l.useInsertionEffect)(function(){return t.current=!0,e.__attach(),function(){t.current=!1,queueMicrotask(function(){t.current&&e.__restoreDefaultValues(),e.__detach()})}},[e])}function p(e){return'object'==typeof e&&'function'==typeof(null==e?void 0:e.getScrollableNode)?e.getScrollableNode():e}function b(e){var t;return(0,_r(d[11]).isPublicInstance)(e)||(0,_r(d[11]).isPublicInstance)(null==e||null==e.getNativeScrollRef?void 0:e.getNativeScrollRef())||(0,_r(d[11]).isPublicInstance)(null==e||null==e.getScrollResponder||null==(t=e.getScrollResponder())||null==t.getNativeScrollRef?void 0:t.getNativeScrollRef())}},2104,[1,19,2085,2084,2091,2105,1865,2078,128,2106,2090,2107]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){var t=(0,u.useRef)(void 0);return(0,u.useCallback)(function(u){t.current&&(t.current(),t.current=void 0),null!=u&&(t.current=n(u))},[n])};var u=r(d[0])},2105,[128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.areCompositeKeysEqual=v,_e.createAnimatedPropsMemoHook=function(e){return function(e,n){return(l.avoidStateUpdateInAnimatedPropsMemo()?r:t)(e,n)};function r(r,n){var t=(0,o.useMemo)(function(){return f(n,e)},[n]),u=(0,o.useRef)(),l=u.current,i=null!=l&&v(l.compositeKey,t,e)?l:{compositeKey:t,node:r()};return(0,o.useInsertionEffect)(function(){u.current=i},[i]),i.node}function t(r,t){var u=(0,o.useMemo)(function(){return f(t,e)},[t]),l=(0,o.useState)(function(){return{allowlist:e,compositeKey:u,value:r()}}),i=(0,n.default)(l,2),s=i[0],c=i[1];return s.allowlist===e&&v(s.compositeKey,u)||c({allowlist:e,compositeKey:u,value:r()}),s.value}},_e.createCompositeKeyForProps=f;var r,n=e(_r(d[1])),t=e(_r(d[2])),u=e(_r(d[3])),l=(function(e,r){if("function"==typeof WeakMap)var n=new WeakMap,t=new WeakMap;return(function(e,r){if(!r&&e&&e.__esModule)return e;var u,l,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(u=r?t:n){if(u.has(e))return u.get(e);u.set(e,i)}for(var o in e)"default"!==o&&{}.hasOwnProperty.call(e,o)&&((l=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,o))&&(l.get||l.set)?u(i,o,l):i[o]=e[o]);return i})(e,r)})(_r(d[4])),i=e(_r(d[5])),o=_r(d[6]);function f(e,r){for(var n=null,l=Object.keys(e),i=0,o=l.length;i1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return E},event:n.default.event,createAnimatedComponent:u.default,attachNativeEvent:r(d[8]).attachNativeEvent,forkEvent:n.default.forkEvent,unforkEvent:n.default.unforkEvent,Event:r(d[8]).AnimatedEvent}},2116,[1,2075,2103,2100,2095,2085,2091,2098,2090]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,f=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(n=t?f:r){if(n.has(e))return n.get(e);n.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(u,i,o):u[i]=e[i])})(e,t)})(_r(d[3]));_e.default=(0,r.default)(t.default)},2117,[1,2118,2103,128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),i=e(_r(d[3])),r=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),s=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,i=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,o,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(r=t?i:n){if(r.has(e))return r.get(e);r.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((o=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(o.get||o.set)?r(l,s,o):l[s]=e[s]);return l})(e,t)})(_r(d[7])),u=e(_r(d[8])),f=e(_r(d[9])),c=e(_r(d[10])),p=e(_r(d[11])),h=_r(d[12]),v=["numColumns","columnWrapperStyle","removeClippedSubviews","strictMode"];function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(C=function(){return!!e})()}var y=f.default.VirtualizedList,b=f.default.keyExtractor;function _(e){return null!=e?e:1}function w(e){return'number'==typeof Object(e).length}var I=(function(e){function f(e){var t,i,l,s;return(0,n.default)(this,f),i=this,l=f,s=[e],l=(0,o.default)(l),(t=(0,r.default)(i,C()?Reflect.construct(l,s||[],(0,o.default)(i).constructor):l.apply(i,s)))._virtualizedListPairs=[],t._captureRef=function(e){t._listRef=e},t._getItem=function(e,n){var i=_(t.props.numColumns);if(i>1){for(var r=[],o=0;o1?Math.ceil(e.length/n):e.length}return 0},t._keyExtractor=function(e,n){var i,r=_(t.props.numColumns),o=null!=(i=t.props.keyExtractor)?i:b;return r>1?(_r(d[13])(Array.isArray(e),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",r),e.map(function(e,t){return o(e,n*r+t)}).join(':')):o(e,n)},t._renderer=function(e,t,n,i,r){var o=_(i),l=function(n){return e?(0,h.jsx)(e,Object.assign({},n)):t?t(n):null},s=function(e){if(o>1){var t=e.item,i=e.index;return _r(d[13])(Array.isArray(t),'Expected array of items with numColumns > 1'),(0,h.jsx)(u.default,{style:_r(d[14]).default.compose(k.row,n),children:t.map(function(t,n){var r=l({item:t,index:i*o+n,separators:e.separators});return null!=r?(0,h.jsx)(p.default.Fragment,{children:r},n):null})})}return l(e)};return e?{ListItemComponent:s}:{renderItem:s}},t._memoizedRenderer=(0,c.default)(t._renderer),t._checkProps(t.props),t.props.viewabilityConfigCallbackPairs?t._virtualizedListPairs=t.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityConfig:e.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(e.onViewableItemsChanged)}}):t.props.onViewableItemsChanged&&t._virtualizedListPairs.push({viewabilityConfig:t.props.viewabilityConfig,onViewableItemsChanged:t._createOnViewableItemsChanged(function(){var e;return _r(d[13])(t.props.onViewableItemsChanged,"Changing the nullability of onViewableItemsChanged is not supported. Once a function or null is supplied that cannot be changed."),(e=t.props).onViewableItemsChanged.apply(e,arguments)})}),t}return(0,l.default)(f,e),(0,i.default)(f,[{key:"scrollToEnd",value:function(e){this._listRef&&this._listRef.scrollToEnd(e)}},{key:"scrollToIndex",value:function(e){this._listRef&&this._listRef.scrollToIndex(e)}},{key:"scrollToItem",value:function(e){this._listRef&&this._listRef.scrollToItem(e)}},{key:"scrollToOffset",value:function(e){this._listRef&&this._listRef.scrollToOffset(e)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(e){this._listRef&&this._listRef.setNativeProps(e)}},{key:"componentDidUpdate",value:function(e){_r(d[13])(e.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),_r(d[13])(null==e.onViewableItemsChanged==(null==this.props.onViewableItemsChanged),'Changing onViewableItemsChanged nullability on the fly is not supported'),_r(d[13])(!_r(d[15]).default(e.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),_r(d[13])(e.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(e){var t=e.getItem,n=e.getItemCount,i=e.horizontal,r=e.columnWrapperStyle,o=e.onViewableItemsChanged,l=e.viewabilityConfigCallbackPairs,s=_(this.props.numColumns);_r(d[13])(!t&&!n,'FlatList does not support custom data formats.'),s>1?_r(d[13])(!i,'numColumns does not support horizontal.'):_r(d[13])(!r,'columnWrapperStyle not supported for single column lists'),_r(d[13])(!(o&&l),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(e,t){var n,i=_(this.props.numColumns),r=null!=(n=this.props.keyExtractor)?n:b;t.item.forEach(function(n,o){_r(d[13])(null!=t.index,'Missing index!');var l=t.index*i+o;e.push(Object.assign({},t,{item:n,key:r(n,l),index:l}))})}},{key:"_createOnViewableItemsChanged",value:function(e){var t=this;return function(n){var i=_(t.props.numColumns);if(e)if(i>1){var r=[],o=[];n.viewableItems.forEach(function(e){return t._pushMultiColumnViewable(o,e)}),n.changed.forEach(function(e){return t._pushMultiColumnViewable(r,e)}),e({viewableItems:o,changed:r})}else e(n)}}},{key:"render",value:function(){var e,n=this.props,i=n.numColumns,r=n.columnWrapperStyle,o=n.removeClippedSubviews,l=n.strictMode,u=void 0!==l&&l,f=(0,t.default)(n,v),c=u?this._memoizedRenderer:this._renderer;return(0,h.jsx)(y,Object.assign({},f,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(e=o,s.shouldUseRemoveClippedSubviewsAsDefaultOnIOS()?null==e||e:null!=e&&e)},c(this.props.ListItemComponent,this.props.renderItem,r,i,this.props.extraData)))}}])})(p.default.PureComponent),k=_r(d[14]).default.create({row:{flexDirection:'row'}});_e.default=I},2118,[1,207,3,4,9,11,12,1865,2029,2119,364,128,258,39,2032,1924]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={keyExtractor:r(d[0]).keyExtractor,get VirtualizedList(){return r(d[1]).default},get VirtualizedSectionList(){return r(d[2]).default},get VirtualizedListContextResetter(){return r(d[3]).VirtualizedListContextResetter},get ViewabilityHelper(){return r(d[4]).default},get FillRateHelper(){return r(d[5]).default}}},2119,[2120,2121,2133,2130,2128,2125]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.computeWindowedRenderLimits=function(t,f,o,l,s,u){var c=t.getItemCount(t.data);if(0===c)return{first:0,last:-1};var v=u.offset,p=u.velocity,h=u.visibleLength,M=u.zoomScale,y=void 0===M?1:M,b=Math.max(0,v),w=b+h,x=(o-1)*h,_=p>1?'after':p<-1?'before':'none',k=Math.max(0,b-.5*x),O=Math.max(0,w+.5*x);if(s.getCellMetricsApprox(c-1,t).offset*y=S);){var E=A>=f,I=void 0,R=void 0;r.fixVirtualizeListCollapseWindowSize()?(I=L<=l.first,R=P>=l.last):(I=L<=l.first||L>l.last,R=P>=l.last||PW&&(!E||!I),D=P=L&&L>=0&&P=W&&P<=S&&L<=z.first&&P>=z.last))throw new Error('Bad window calculation '+JSON.stringify({first:L,last:P,itemCount:c,overscanFirst:W,overscanLast:S,visible:z}));return{first:L,last:P}},_e.elementsThatOverlapOffsets=n,_e.keyExtractor=function(t,e){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(e)},_e.newRangeCount=i;var e=t(_r(d[1])),r=(function(t,e){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(t,e){if(!e&&t&&t.__esModule)return t;var i,f,o={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return o;if(i=e?n:r){if(i.has(t))return i.get(t);i.set(t,o)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((f=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(f.get||f.set)?i(o,l,f):o[l]=t[l]);return o})(t,e)})(_r(d[2]));function n(t,e,r){for(var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,i=e.getItemCount(e.data),f=[],o=0;oh)){f[o]=c;break}s=c+1}}return f}function i(t,e){return e.last-e.first+1-Math.max(0,1+Math.min(e.last,t.last)-Math.max(e.first,t.first))}},2120,[1,19,1865]); -__d(function(g,_r,_i2,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),i=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),r=e(_r(d[5])),s=e(_r(d[6])),l=e(_r(d[7])),c=e(_r(d[8])),u=e(_r(d[9])),h=e(_r(d[10])),f=e(_r(d[11])),p=e(_r(d[12])),_=e(_r(d[13])),v=e(_r(d[14])),y=e(_r(d[15])),C=e(_r(d[16])),S=e(_r(d[17])),L=e(_r(d[18])),M=(function(e,t){if("function"==typeof WeakMap)var i=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,r,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(o=t?n:i){if(o.has(e))return o.get(e);o.set(e,s)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((r=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(r.get||r.set)?o(s,l,r):s[l]=e[l]);return s})(e,t)})(_r(d[19])),b=_r(d[20]),I=_r(d[21]),R=["onContentSizeChange"];function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(w=function(){return!!e})()}var x=!1,k='';function T(e,t){return e*t/2}var V=(function(e){function v(e){var t,i,r,c,u,C;if((0,o.default)(this,v),c=this,u=v,C=[e],u=(0,l.default)(u),(r=(0,s.default)(c,w()?Reflect.construct(u,C||[],(0,l.default)(c).constructor):u.apply(c,C)))._getScrollMetrics=function(){return r._scrollMetrics},r._getOutermostParentListRef=function(){return r._isNestedWithSameOrientation()?r.context.getOutermostParentListRef():r},r._registerAsNestedChild=function(e){r._nestedChildLists.add(e.ref,e.cellKey),r._hasInteracted&&e.ref.recordInteraction()},r._unregisterAsNestedChild=function(e){r._nestedChildLists.remove(e.ref)},r._onUpdateSeparators=function(e,t){e.forEach(function(e){var i=null!=e&&r._cellRefs[e];i&&i.updateSeparatorProps(t)})},r._getSpacerKey=function(e){return e?'height':'width'},r._cellRefs={},r._listMetrics=new _.default,r._footerLength=0,r._hasTriggeredInitialScrollToIndex=!1,r._hasInteracted=!1,r._hasMore=!1,r._hasWarned={},r._headerLength=0,r._hiPriInProgress=!1,r._indicesToKeys=new Map,r._lastFocusedCellKey=null,r._nestedChildLists=new f.default,r._offsetFromParentVirtualizedList=0,r._pendingViewabilityUpdate=!1,r._prevParentOffset=0,r._scrollMetrics={dOffset:0,dt:10,offset:0,timestamp:0,velocity:0,visibleLength:0,zoomScale:1},r._scrollRef=null,r._sentStartForContentLength=0,r._sentEndForContentLength=0,r._updateCellsToRenderTimeoutID=null,r._viewabilityTuples=[],r._captureScrollRef=function(e){r._scrollRef=e},r._defaultRenderScrollComponent=function(e){var t,i=e.onRefresh;if(r._isNestedWithSameOrientation()){e.onContentSizeChange;var o=(0,n.default)(e,R);return(0,I.jsx)(b.View,Object.assign({},o))}return i?((0,S.default)('boolean'==typeof e.refreshing,'`refreshing` prop must be set as a boolean in order to use `onRefresh`, but got `'+JSON.stringify(null!=(t=e.refreshing)?t:'undefined')+'`'),(0,I.jsx)(b.ScrollView,Object.assign({},e,{refreshControl:null==e.refreshControl?(0,I.jsx)(b.RefreshControl,{refreshing:e.refreshing,onRefresh:i,progressViewOffset:e.progressViewOffset}):e.refreshControl}))):(0,I.jsx)(b.ScrollView,Object.assign({},e))},r._onCellLayout=function(e,t,i){r._listMetrics.notifyCellLayout({cellIndex:i,cellKey:t,layout:e.nativeEvent.layout,orientation:r._orientation()})&&r._scheduleCellsToRenderUpdate(),r._triggerRemeasureForChildListsInCell(t),r._computeBlankness(),r._updateViewableItems(r.props,r.state.cellsAroundViewport)},r._onCellFocusCapture=function(e){r._lastFocusedCellKey=e,r._updateCellsToRender()},r._onCellUnmount=function(e){delete r._cellRefs[e],r._listMetrics.notifyCellUnmounted(e)},r._onLayout=function(e){r._isNestedWithSameOrientation()?r.measureLayoutRelativeToContainingList():r._scrollMetrics.visibleLength=r._selectLength(e.nativeEvent.layout),r.props.onLayout&&r.props.onLayout(e),r._scheduleCellsToRenderUpdate(),r._maybeCallOnEdgeReached()},r._onLayoutEmpty=function(e){r.props.onLayout&&r.props.onLayout(e)},r._onLayoutFooter=function(e){r._triggerRemeasureForChildListsInCell(r._getFooterCellKey()),r._footerLength=r._selectLength(e.nativeEvent.layout)},r._onLayoutHeader=function(e){r._headerLength=r._selectLength(e.nativeEvent.layout)},r._onContentSizeChange=function(e,t){r._listMetrics.notifyListContentLayout({layout:{width:e,height:t},orientation:r._orientation()}),r._maybeScrollToInitialScrollIndex(e,t),r.props.onContentSizeChange&&r.props.onContentSizeChange(e,t),r._scheduleCellsToRenderUpdate(),r._maybeCallOnEdgeReached()},r._convertParentScrollMetrics=function(e){var t=e.offset-r._offsetFromParentVirtualizedList,i=e.visibleLength,n=t-r._scrollMetrics.offset;return{visibleLength:i,contentLength:r._listMetrics.getContentLength(),offset:t,dOffset:n}},r._onScroll=function(e){r._nestedChildLists.forEach(function(t){t._onScroll(e)}),r.props.onScroll&&r.props.onScroll(e);var t=e.timeStamp,i=r._selectLength(e.nativeEvent.layoutMeasurement),n=r._selectLength(e.nativeEvent.contentSize),o=r._offsetFromScrollEvent(e),s=o-r._scrollMetrics.offset;if(r._isNestedWithSameOrientation()){if(0===r._listMetrics.getContentLength())return;var l=r._convertParentScrollMetrics({visibleLength:i,offset:o});i=l.visibleLength,n=l.contentLength,o=l.offset,s=l.dOffset}var c=r._scrollMetrics.timestamp?Math.max(1,t-r._scrollMetrics.timestamp):1,u=s/c;c>500&&r._scrollMetrics.dt>500&&n>5*i&&!r._hasWarned.perf&&((0,h.default)("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:c,prevDt:r._scrollMetrics.dt,contentLength:n}),r._hasWarned.perf=!0);var f=e.nativeEvent.zoomScale<0?1:e.nativeEvent.zoomScale;r._scrollMetrics={dt:c,dOffset:s,offset:o,timestamp:t,velocity:u,visibleLength:i,zoomScale:f},r.state.pendingScrollUpdateCount>0&&r.setState(function(e){return{pendingScrollUpdateCount:e.pendingScrollUpdateCount-1}}),r._updateViewableItems(r.props,r.state.cellsAroundViewport),r.props&&(r._maybeCallOnEdgeReached(),0!==u&&r._fillRateHelper.activate(),r._computeBlankness(),r._scheduleCellsToRenderUpdate())},r._onScrollBeginDrag=function(e){r._nestedChildLists.forEach(function(t){t._onScrollBeginDrag(e)}),r._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),r._hasInteracted=!0,r.props.onScrollBeginDrag&&r.props.onScrollBeginDrag(e)},r._onScrollEndDrag=function(e){r._nestedChildLists.forEach(function(t){t._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(r._scrollMetrics.velocity=r._selectOffset(t)),r._computeBlankness(),r.props.onScrollEndDrag&&r.props.onScrollEndDrag(e)},r._onMomentumScrollBegin=function(e){r._nestedChildLists.forEach(function(t){t._onMomentumScrollBegin(e)}),r.props.onMomentumScrollBegin&&r.props.onMomentumScrollBegin(e)},r._onMomentumScrollEnd=function(e){r._nestedChildLists.forEach(function(t){t._onMomentumScrollEnd(e)}),r._scrollMetrics.velocity=0,r._computeBlankness(),r.props.onMomentumScrollEnd&&r.props.onMomentumScrollEnd(e)},r._updateCellsToRender=function(){r._updateViewableItems(r.props,r.state.cellsAroundViewport),r.setState(function(e,t){var i=r._adjustCellsAroundViewport(t,e.cellsAroundViewport,e.pendingScrollUpdateCount),n=v._createRenderMask(t,i,r._getNonViewportRenderRegions(t));return i.first===e.cellsAroundViewport.first&&i.last===e.cellsAroundViewport.last&&n.equals(e.renderMask)?null:{cellsAroundViewport:i,renderMask:n}})},r._createViewToken=function(e,t,i){var n=i.data,o=(0,i.getItem)(n,e);return{index:e,item:o,key:v._keyExtractor(o,e,i),isViewable:t}},r._getNonViewportRenderRegions=function(e){if(!r._lastFocusedCellKey||!r._cellRefs[r._lastFocusedCellKey])return[];var t=r._cellRefs[r._lastFocusedCellKey].props.index,i=e.getItemCount(e.data);if(t>=i||v._getItemKey(e,t)!==r._lastFocusedCellKey)return[];for(var n=t,o=0,s=n-1;s>=0&&oT?v._getItemKey(r.props,T):null,pendingScrollUpdateCount:null!=r.props.initialScrollIndex&&r.props.initialScrollIndex>0?1:0},r}return(0,c.default)(v,e),(0,r.default)(v,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,i=this.props.getItemCount(this.props.data)-1;if(!(i<0)){var n=this._listMetrics.getCellMetricsApprox(i,this.props),o=Math.max(0,n.offset+n.length+this._footerLength-this._scrollMetrics.visibleLength);this.scrollToOffset({animated:t,offset:o})}}},{key:"scrollToIndex",value:function(e){var t=this.props,i=t.data,n=t.getItemCount,o=t.getItemLayout,r=t.onScrollToIndexFailed,s=e.animated,l=e.index,c=e.viewOffset,u=e.viewPosition;if((0,S.default)(l>=0,`scrollToIndex out of range: requested index ${l} but minimum is 0`),(0,S.default)(n(i)>=1,`scrollToIndex out of range: item length ${n(i)} but minimum is 1`),(0,S.default)(lthis._listMetrics.getHighestMeasuredCellIndex())return(0,S.default)(!!r,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void r({averageItemLength:this._listMetrics.getAverageCellLength(),highestMeasuredFrameIndex:this._listMetrics.getHighestMeasuredCellIndex(),index:l});var h=this._listMetrics.getCellMetricsApprox(Math.floor(l),this.props),f=Math.max(0,this._listMetrics.getCellOffsetApprox(l,this.props)-(u||0)*(this._scrollMetrics.visibleLength-h.length))-(c||0);this.scrollToOffset({offset:f,animated:s})}},{key:"scrollToItem",value:function(e){for(var t=e.item,i=this.props,n=i.data,o=i.getItem,r=(0,i.getItemCount)(n),s=0;s0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),(0,S.default)(n,'VirtualizedList: The "getItemCount" prop must be provided');var s=n(o);null==r||this._hasTriggeredInitialScrollToIndex||!(r<0||s>0&&r>=s)||this._hasWarned.initialScrollIndex||(console.warn(`initialScrollIndex "${r}" is not valid (list has ${s} items)`),this._hasWarned.initialScrollIndex=!0)}},{key:"_adjustCellsAroundViewport",value:function(e,t,i){var n,o=e.data,r=e.getItemCount,s=(0,_r(d[22]).onEndReachedThresholdOrDefault)(e.onEndReachedThreshold),l=this._scrollMetrics,c=l.offset,u=l.visibleLength,h=this._listMetrics.getContentLength(),f=h-u-c;if(u<=0||h<=0)return t.last>=r(o)?v._constrainToItemCount(t,e):t;if(e.disableVirtualization){var p=f0)return t.last>=r(o)?v._constrainToItemCount(t,e):t;n=(0,_r(d[23]).computeWindowedRenderLimits)(e,(0,_r(d[22]).maxToRenderPerBatchOrDefault)(e.maxToRenderPerBatch),(0,_r(d[22]).windowSizeOrDefault)(e.windowSize),t,this._listMetrics,this._scrollMetrics),(0,S.default)(n.last0){var _=this._findFirstChildWithMore(n.first,n.last);n.last=null!=_?_:n.last}return n}},{key:"_findFirstChildWithMore",value:function(e,t){for(var i=e;i<=t;i++){var n=this._indicesToKeys.get(i);if(null!=n&&this._nestedChildLists.anyInCell(n,function(e){return e.hasMore()}))return i}return null}},{key:"componentDidMount",value:function(){this._isNestedWithSameOrientation()&&this.context.registerAsNestedChild({ref:this,cellKey:this.context.cellKey})}},{key:"componentWillUnmount",value:function(){this._isNestedWithSameOrientation()&&this.context.unregisterAsNestedChild({ref:this}),clearTimeout(this._updateCellsToRenderTimeoutID),this._viewabilityTuples.forEach(function(e){e.viewabilityHelper.dispose()}),this._fillRateHelper.deactivateAndFlush()}},{key:"_pushCells",value:function(e,t,i,n,o,r){var s,l=this,c=this.props,u=c.CellRendererComponent,h=c.ItemSeparatorComponent,f=c.ListHeaderComponent,p=c.ListItemComponent,_=c.data,y=c.debug,S=c.getItem,L=c.getItemCount,M=c.getItemLayout,b=c.horizontal,R=c.renderItem,w=f?1:0,x=L(_)-1;o=Math.min(x,o);for(var k=function(){var n=S(_,T),o=v._keyExtractor(n,T,l.props);l._indicesToKeys.set(T,o),i.has(T+w)&&t.push(e.length);var c=null==M||y||l._fillRateHelper.enabled();e.push((0,I.jsx)(C.default,Object.assign({CellRendererComponent:u,ItemSeparatorComponent:T0){x=!1,k='';var L=this._getSpacerKey(!h),R=this.state.renderMask.enumerateRegions(),w=R[R.length-1],T=null!=w&&w.isSpacer?w:null;for(var V of R)if(V.isSpacer){if(this.props.disableVirtualization)continue;var E=V===T&&!this.props.getItemLayout?(0,u.default)(V.first-1,V.last,this._listMetrics.getHighestMeasuredCellIndex()):V.last,z=this._listMetrics.getCellMetricsApprox(V.first,this.props),P=this._listMetrics.getCellMetricsApprox(E,this.props),F=P.offset+P.length-z.offset;p.push((0,I.jsx)(b.View,{style:(0,i.default)({},L,F)},`$spacer-${V.first}`))}else this._pushCells(p,v,_,V.first,V.last,f);!this._hasWarned.keys&&x&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",k),this._hasWarned.keys=!0)}if(r){var D=M.isValidElement(r)?r:(0,I.jsx)(r,{});p.push((0,I.jsx)(_r(d[24]).VirtualizedListCellContextProvider,{cellKey:this._getFooterCellKey(),children:(0,I.jsx)(b.View,{onLayout:this._onLayoutFooter,style:b.StyleSheet.compose(f,this.props.ListFooterComponentStyle),children:D})},"$footer"))}var A=Object.assign({},this.props,{onContentSizeChange:this._onContentSizeChange,onLayout:this._onLayout,onScroll:this._onScroll,onScrollBeginDrag:this._onScrollBeginDrag,onScrollEndDrag:this._onScrollEndDrag,onMomentumScrollBegin:this._onMomentumScrollBegin,onMomentumScrollEnd:this._onMomentumScrollEnd,scrollEventThrottle:null!=(e=this.props.scrollEventThrottle)?e:1e-4,invertStickyHeaders:void 0!==this.props.invertStickyHeaders?this.props.invertStickyHeaders:this.props.inverted,stickyHeaderIndices:v,style:f?[f,this.props.style]:this.props.style,isInvertedVirtualizedList:this.props.inverted,maintainVisibleContentPosition:null!=this.props.maintainVisibleContentPosition?Object.assign({},this.props.maintainVisibleContentPosition,{minIndexForVisible:this.props.maintainVisibleContentPosition.minIndexForVisible+(this.props.ListHeaderComponent?1:0)}):void 0});this._hasMore=this.state.cellsAroundViewport.last0)){var l=this._scrollMetrics,c=l.visibleLength,u=l.offset,h=u,f=this._listMetrics.getContentLength()-c-u;h<.001&&(h=0),f<.001&&(f=0);var p=h<=(null!=o?o*c:2),_=f<=(null!=s?s*c:2);r&&this.state.cellsAroundViewport.last===i(t)-1&&_&&this._listMetrics.getContentLength()!==this._sentEndForContentLength&&(this._sentEndForContentLength=this._listMetrics.getContentLength(),r({distanceFromEnd:f})),null!=n&&0===this.state.cellsAroundViewport.first&&p&&this._listMetrics.getContentLength()!==this._sentStartForContentLength&&(this._sentStartForContentLength=this._listMetrics.getContentLength(),n({distanceFromStart:h})),p||(this._sentStartForContentLength=0),_||(this._sentEndForContentLength=0)}}},{key:"_maybeScrollToInitialScrollIndex",value:function(e,t){e>0&&t>0&&null!=this.props.initialScrollIndex&&this.props.initialScrollIndex>0&&!this._hasTriggeredInitialScrollToIndex&&(null==this.props.contentOffset&&(this.props.initialScrollIndex0||null!=this.props.getItemLayout)&&this._shouldRenderWithPriority()&&!this._hiPriInProgress)return this._hiPriInProgress=!0,null!=this._updateCellsToRenderTimeoutID&&(clearTimeout(this._updateCellsToRenderTimeoutID),this._updateCellsToRenderTimeoutID=null),void this._updateCellsToRender();null==this._updateCellsToRenderTimeoutID&&(this._updateCellsToRenderTimeoutID=setTimeout(function(){t._updateCellsToRenderTimeoutID=null,t._updateCellsToRender()},null!=(e=this.props.updateCellsBatchingPeriod)?e:50))}},{key:"_shouldRenderWithPriority",value:function(){var e=this.state.cellsAroundViewport,t=e.first,i=e.last,n=this._scrollMetrics,o=n.offset,r=n.visibleLength,s=n.velocity,l=this.props.getItemCount(this.props.data),c=!1,u=(0,_r(d[22]).onStartReachedThresholdOrDefault)(this.props.onStartReachedThreshold),h=(0,_r(d[22]).onEndReachedThresholdOrDefault)(this.props.onEndReachedThreshold);if(t>0){var f=o-this._listMetrics.getCellMetricsApprox(t,this.props).offset;c=f<0||s<-2&&f=0&&i2&&p0||this._viewabilityTuples.forEach(function(n){n.viewabilityHelper.onUpdate(e,i._scrollMetrics.offset,i._scrollMetrics.visibleLength,i._listMetrics,i._createViewToken,n.onViewableItemsChanged,t)})}}],[{key:"_findItemIndexWithKey",value:function(e,t,i){var n=e.getItemCount(e.data);if(null!=i&&i>=0&&i=0&&i.last>=i.first-1&&i.last0){var s=[i].concat((0,t.default)(null!=n?n:[]));for(var l of s)r.addCells(l);if(null==e.initialScrollIndex||e.initialScrollIndex<=0){var c=v._initialRenderRegion(e);r.addCells(c)}var u=new Set(e.stickyHeaderIndices);v._ensureClosestStickyHeader(e,u,r,i.first)}return r}},{key:"_initialRenderRegion",value:function(e){var t,i=e.getItemCount(e.data),n=Math.max(0,Math.min(i-1,Math.floor(null!=(t=e.initialScrollIndex)?t:0)));return{first:n,last:Math.min(i,n+(0,_r(d[22]).initialNumToRenderOrDefault)(e.initialNumToRender))-1}}},{key:"_ensureClosestStickyHeader",value:function(e,t,i,n){for(var o=e.ListHeaderComponent?1:0,r=n-1;r>=0;r--)if(t.has(r+o)){i.addCells({first:r,last:r});break}}},{key:"getDerivedStateFromProps",value:function(e,t){var i,n,o=e.getItemCount(e.data);if(o===t.renderMask.numCells())return t;var r=null,s=t.firstVisibleItemKey,l=null!=(i=null==(n=e.maintainVisibleContentPosition)?void 0:n.minIndexForVisible)?i:0,c=e.getItemCount(e.data)>l?v._getItemKey(e,l):null;if(null!=e.maintainVisibleContentPosition&&null!=s&&null!=c)if(c!==s){var u=o-t.renderMask.numCells()+l,h=v._findItemIndexWithKey(e,s,u);r=null!=h?h-l:null}else r=null;var f=v._constrainToItemCount(null!=r?{first:t.cellsAroundViewport.first+r,last:t.cellsAroundViewport.last+r}:t.cellsAroundViewport,e);return{cellsAroundViewport:f,renderMask:v._createRenderMask(e,f),firstVisibleItemKey:c,pendingScrollUpdateCount:null!=r?t.pendingScrollUpdateCount+1:t.pendingScrollUpdateCount}}},{key:"_constrainToItemCount",value:function(e,t){var i=t.getItemCount(t.data)-1,n=(0,_r(d[22]).maxToRenderPerBatchOrDefault)(t.maxToRenderPerBatch),o=Math.max(0,i-n);return{first:(0,u.default)(0,e.first,o),last:Math.min(i,e.last)}}},{key:"_keyExtractor",value:function(e,t,i){if(null!=i.keyExtractor)return i.keyExtractor(e,t);var n=(0,_r(d[23]).keyExtractor)(e,t);return n===String(t)&&(x=!0,e.type&&e.type.displayName&&(k=e.type.displayName)),n}}])})(v.default);V.contextType=_r(d[24]).VirtualizedListContext;var O=b.StyleSheet.create({verticallyInverted:'android'===b.Platform.OS?{transform:[{scale:-1}]}:{transform:[{scaleY:-1}]},horizontallyInverted:{transform:[{scaleX:-1}]},debug:{flex:1},debugOverlayBase:{position:'absolute',top:0,right:0},debugOverlay:{bottom:0,width:20,borderColor:'blue',borderWidth:1},debugOverlayFrame:{left:0,backgroundColor:'orange'},debugOverlayFrameLast:{left:0,borderColor:'green',borderWidth:2},debugOverlayFrameVis:{left:0,borderColor:'red',borderWidth:2}});_e.default=V},2121,[1,32,18,207,3,4,9,11,12,2122,2123,2124,2125,2126,2127,2128,2129,39,78,128,1828,258,2131,2120,2130,2132]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(t,u,n){return un?n:u}},2122,[]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){var t;return(t=console).log.apply(t,arguments)}},2123,[]); -__d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=l(r(d[1])),t=l(r(d[2])),o=l(r(d[3]));e.default=(function(){return(0,t.default)(function l(){(0,n.default)(this,l),this._cellKeyToChildren=new Map,this._childrenToCellKey=new Map},[{key:"add",value:function(l,n){var t;(0,o.default)(!this._childrenToCellKey.has(l),'Trying to add already present child list');var h=null!=(t=this._cellKeyToChildren.get(n))?t:new Set;h.add(l),this._cellKeyToChildren.set(n,h),this._childrenToCellKey.set(l,n)}},{key:"remove",value:function(l){var n=this._childrenToCellKey.get(l);(0,o.default)(null!=n,'Trying to remove non-present child list'),this._childrenToCellKey.delete(l);var t=this._cellKeyToChildren.get(n);(0,o.default)(t,'_cellKeyToChildren should contain cellKey'),t.delete(l),0===t.size&&this._cellKeyToChildren.delete(n)}},{key:"forEach",value:function(l){for(var n of this._cellKeyToChildren.values())for(var t of n)l(t)}},{key:"forEachInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)n(h)}},{key:"anyInCell",value:function(l,n){var t,o=null!=(t=this._cellKeyToChildren.get(l))?t:[];for(var h of o)if(n(h))return!0;return!1}},{key:"size",value:function(){return this._childrenToCellKey.size}}])})()},2124,[1,3,4,39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=t(r(d[1])),n=t(r(d[2])),l=(t(r(d[3])),(0,s.default)(function t(){(0,n.default)(this,t),this.any_blank_count=0,this.any_blank_ms=0,this.any_blank_speed_sum=0,this.mostly_blank_count=0,this.mostly_blank_ms=0,this.pixels_blank=0,this.pixels_sampled=0,this.pixels_scrolled=0,this.total_time_spent=0,this.sample_count=0})),_=[],o=10,h=null,u=(function(){return(0,s.default)(function t(s){(0,n.default)(this,t),this._anyBlankStartTime=null,this._enabled=!1,this._info=new l,this._mostlyBlankStartTime=null,this._samplesStartTime=null,this._listMetrics=s,this._enabled=(h||0)>Math.random(),this._resetData()},[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=s.last,v=this._listMetrics.getCellMetrics(b,t);b>=s.first&&(!v||!v.isMounted);)v=this._listMetrics.getCellMetrics(b,t),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=S,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new l,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===h&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),_.push(t),{remove:function(){_=_.filter(function(s){return t!==s})}}}},{key:"setSampleRate",value:function(t){h=t}},{key:"setMinSampleCount",value:function(t){o=t}}])})();e.default=u},2125,[1,4,3,2126]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),l=t(r(d[2])),s=t(r(d[3]));e.default=(function(){return(0,l.default)(function t(){(0,n.default)(this,t),this._averageCellLength=0,this._cellMetrics=new Map,this._highestMeasuredCellIndex=0,this._measuredCellsLength=0,this._measuredCellsCount=0,this._orientation={horizontal:!1,rtl:!1}},[{key:"notifyCellLayout",value:function(t){var n=t.cellIndex,l=t.cellKey,s=t.orientation,o=t.layout;this._invalidateIfOrientationChanged(s);var h={index:n,length:this._selectLength(o),isMounted:!0,offset:this.flowRelativeOffset(o)},u=this._cellMetrics.get(l);if(u&&h.offset===u.offset&&h.length===u.length)return u.isMounted=!0,!1;if(u){var f=h.length-u.length;this._measuredCellsLength+=f}else this._measuredCellsLength+=h.length,this._measuredCellsCount+=1;return this._averageCellLength=this._measuredCellsLength/this._measuredCellsCount,this._cellMetrics.set(l,h),this._highestMeasuredCellIndex=Math.max(this._highestMeasuredCellIndex,n),!0}},{key:"notifyCellUnmounted",value:function(t){var n=this._cellMetrics.get(t);n&&(n.isMounted=!1)}},{key:"notifyListContentLayout",value:function(t){var n=t.orientation,l=t.layout;this._invalidateIfOrientationChanged(n),this._contentLength=this._selectLength(l)}},{key:"getAverageCellLength",value:function(){return this._averageCellLength}},{key:"getHighestMeasuredCellIndex",value:function(){return this._highestMeasuredCellIndex}},{key:"getCellMetricsApprox",value:function(t,n){var l=this.getCellMetrics(t,n);if(l&&l.index===t)return l;var o,h=this.getHighestMeasuredCellIndex();if(h=0&&t=0&&t0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};(0,s.default)(this,t),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=n},[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,s,l,o){var c=t.getItemCount(t.data),h=this._config,f=h.itemVisiblePercentThreshold,v=h.viewAreaCoveragePercentThreshold,_=null!=v,w=_?v:f;r(d[5])(null!=w&&null!=f!=(null!=v),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===c)return b;var I=-1,y=o||{first:0,last:c-1},p=y.first,M=y.last;if(M>=c)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:o,itemCount:c})),[];for(var C=p;C<=M;C++){var T=l.getCellMetrics(C,t);if(T){var k=Math.floor(T.offset-n),V=Math.floor(k+T.length);if(k0)I=C,u(_,w,k,V,s,T.length)&&b.push(C);else if(I>=0)break}}return b}},{key:"onUpdate",value:function(t,n,s,l,o,u,c){var h=this,f=t.getItemCount(t.data);if((!this._config.waitForInteraction||this._hasInteracted)&&0!==f&&l.getCellMetrics(0,t)){var v=[];if(f&&(v=this.computeViewableItems(t,n,s,l,c)),this._viewableIndices.length!==v.length||!this._viewableIndices.every(function(t,n){return t===v[n]}))if(this._viewableIndices=v,this._config.minimumViewTime){var _=setTimeout(function(){h._timers.delete(_),h._onUpdateSync(t,v,u,o)},this._config.minimumViewTime);this._timers.add(_)}else this._onUpdateSync(t,v,u,o)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(t,s,l,o){var u=this;s=s.filter(function(t){return u._viewableIndices.includes(t)});var c=this._viewableItems,h=new Map(s.map(function(n){var s=o(n,!0,t);return[s.key,s]})),f=[];for(var v of h){var _=(0,n.default)(v,2),w=_[0],b=_[1];c.has(w)||f.push(b)}for(var I of c){var y=(0,n.default)(I,2),p=y[0],M=y[1];h.has(p)||f.push(Object.assign({},M,{isViewable:!1}))}f.length>0&&(this._viewableItems=h,l({viewableItems:Array.from(h.values()),changed:f,viewabilityConfig:this._config}))}}])})());function u(t,n,s,l,o,u){if(h(s,l,o))return!0;var f=c(s,l,o);return 100*(t?f/o:f/u)>=n}function c(t,n,s){var l=Math.min(n,s)-Math.max(t,0);return Math.max(0,l)}function h(t,n,s){return t>=0&&n<=s&&n>t}e.default=o},2128,[1,19,3,4,2126,39]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),o=e(_r(d[3])),n=e(_r(d[4])),l=e(_r(d[5])),s=e(_r(d[6])),i=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,l,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(n=t?o:r){if(n.has(e))return n.get(e);n.set(e,s)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(l.get||l.set)?n(s,i,l):s[i]=e[i]);return s})(e,t)})(_r(d[7])),p=_r(d[8]),u=_r(d[9]);function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(c=function(){return!!e})()}_e.default=(function(e){function h(){var e,r,l,s;(0,t.default)(this,h);for(var i=arguments.length,p=new Array(i),u=0;u=0,'CellRenderMask must contain a non-negative number os cells'),this._numCells=t,this._regions=0===t?[]:[{first:0,last:t-1,isSpacer:!0}]},[{key:"enumerateRegions",value:function(){return this._regions}},{key:"addCells",value:function(s){var l;if((0,f.default)(s.first>=0&&s.first=-1&&s.last=s.first-1,'CellRenderMask.addCells called with invalid cell range'),!(s.lastS.last&&(v.isSpacer?k.push({first:S.last+1,last:v.last,isSpacer:!0}):S.last=v.last);var y=[].concat(C,[S],k),R=p-c+1;(l=this._regions).splice.apply(l,[c,R].concat((0,t.default)(y)))}}}},{key:"numCells",value:function(){return this._numCells}},{key:"equals",value:function(s){return this._numCells===s._numCells&&this._regions.length===s._regions.length&&this._regions.every(function(t,i){return t.first===s._regions[i].first&&t.last===s._regions[i].last&&t.isSpacer===s._regions[i].isSpacer})}},{key:"_findRegion",value:function(s){for(var t=0,i=this._regions.length-1;t<=i;){var l=Math.floor((t+i)/2),n=this._regions[l];if(s>=n.first&&s<=n.last)return[n,l];sn.last&&(t=l+1)}(0,f.default)(!1,`A region was not found containing cellIdx ${s}`)}}])})()},2132,[1,32,19,3,4,39]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),l=e(_r(d[6])),s=e(_r(d[7])),u=e(_r(d[8])),c=e(_r(d[9])),p=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(i=t?r:n){if(i.has(e))return i.get(e);i.set(e,l)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(o.get||o.set)?i(l,s,o):l[s]=e[s]);return l})(e,t)})(_r(d[10])),f=_r(d[11]),h=["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"];function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var S=(function(e){function t(){var e,n,i,s;(0,r.default)(this,t);for(var u=arguments.length,p=new Array(u),h=0;h0&&this.props.stickySectionHeadersEnabled)r+=i.__getListMetrics().getCellMetricsApprox(t-e.itemIndex,i.props).length;var o=Object.assign({},e,{viewOffset:r,index:t});this._listRef.scrollToIndex(o)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){var e=this,t=this.props,r=(t.ItemSeparatorComponent,t.SectionSeparatorComponent,t.renderItem,t.renderSectionFooter,t.renderSectionHeader,t.sections,t.stickySectionHeadersEnabled,(0,n.default)(t,h)),i=this.props.ListHeaderComponent?1:0,o=this.props.stickySectionHeadersEnabled?[]:void 0,l=0;for(var s of this.props.sections)null!=o&&o.push(l+i),l+=2,l+=this.props.getItemCount(s.data);var c=this._renderItem(l);return(0,f.jsx)(u.default,Object.assign({},r,{keyExtractor:this._keyExtractor,stickyHeaderIndices:o,renderItem:c,data:this.props.sections,getItem:function(t,n){return e._getItem(e.props,t,n)},getItemCount:function(){return l},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(c)+1))return-1===t?{section:u,key:p+':header',index:null,header:!0,trailingSection:l[s+1]}:t===i(c)?{section:u,key:p+':footer',index:null,header:!1,trailingSection:l[s+1]}:{section:u,key:p+':'+(u.keyExtractor||o||_r(d[12]).keyExtractor)(r(c,t),t),index:t,leadingItem:r(c,t-1),leadingSection:l[s-1],trailingItem:r(c,t+1),trailingSection:l[s+1]};t-=i(c)+1}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,l=t.index===this.props.getItemCount(t.section.data)-1;return i&&l?i:!r||l||o?null:r}}])})(p.PureComponent);function _(e){var n=e.LeadingSeparatorComponent,r=e.SeparatorComponent,i=e.cellKey,o=e.prevCellKey,l=e.setSelfHighlightCallback,s=e.updateHighlightFor,u=e.setSelfUpdatePropsCallback,c=e.updatePropsFor,h=e.item,v=e.index,S=e.section,_=e.inverted,I=p.useState(!1),y=(0,t.default)(I,2),x=y[0],b=y[1],k=p.useState(!1),C=(0,t.default)(k,2),H=C[0],E=C[1],w=p.useState({leadingItem:e.leadingItem,leadingSection:e.leadingSection,section:e.section,trailingItem:e.item,trailingSection:e.trailingSection}),P=(0,t.default)(w,2),j=P[0],F=P[1],O=p.useState({leadingItem:e.item,leadingSection:e.leadingSection,section:e.section,trailingItem:e.trailingItem,trailingSection:e.trailingSection}),M=(0,t.default)(O,2),R=M[0],V=M[1];p.useEffect(function(){return l(i,E),u(i,V),function(){u(i,null),l(i,null)}},[i,l,V,u]);var L={highlight:function(){b(!0),E(!0),null!=o&&s(o,!0)},unhighlight:function(){b(!1),E(!1),null!=o&&s(o,!1)},updateProps:function(e,t){'leading'===e?null!=n?F(Object.assign({},j,t)):null!=o&&c(o,Object.assign({},j,t)):'trailing'===e&&null!=r&&V(Object.assign({},R,t))}},U=e.renderItem({item:h,index:v,section:S,separators:L}),B=null!=n&&(0,f.jsx)(n,Object.assign({highlighted:x},j)),K=null!=r&&(0,f.jsx)(r,Object.assign({highlighted:H},R)),T=B||K,W=!1===_?B:K,A=!1===_?K:B;return(0,f.jsxs)(f.Fragment,{children:[T?W:null,U,T?A:null]})}_e.default=S},2133,[1,19,207,3,4,9,11,12,2121,39,128,258,2120]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,f=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(n=t?f:r){if(n.has(e))return n.get(e);n.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(u,i,o):u[i]=e[i])})(e,t)})(_r(d[3]));_e.default=(0,r.default)(t.default)},2134,[1,2135,2103,128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),i=e(_r(d[2])),n=e(_r(d[3])),r=e(_r(d[4])),l=e(_r(d[5])),o=e(_r(d[6])),u=e(_r(d[7])),c=e(_r(d[8])),s=e(_r(d[9])),f=(function(e,t){if("function"==typeof WeakMap)var i=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,l,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:i){if(r.has(e))return r.get(e);r.set(e,o)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((l=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(l.get||l.set)?r(o,u,l):o[u]=e[u]);return o})(e,t)})(_r(d[10])),h=_r(d[11]),p=["aria-busy","aria-checked","aria-disabled","aria-expanded","aria-selected","src"];function b(){return(b=(0,i.default)(function*(e){return c.default.queryCache(e)})).apply(this,arguments)}var v=f.forwardRef(function(e,i){var n,l,c,s,f,b,v,y,w,M=(0,_r(d[13]).getImageSourcesFromImageProps)(e)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(M))y=[I.base,e.style],w=M;else{var S,_;''===M.uri&&console.warn('source.uri should not be an empty string');var z=null!=(S=M.width)?S:e.width,W=null!=(_=M.height)?_:e.height;y=[{width:z,height:W},I.base,e.style],w=[M]}var j=(0,r.default)(y),k=(0,_r(d[14]).convertObjectFitToResizeMode)(null==j?void 0:j.objectFit)||e.resizeMode||(null==j?void 0:j.resizeMode)||'cover',C=null!=(n=e.tintColor)?n:null==j?void 0:j.tintColor;if(null!=e.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');var O=e['aria-busy'],x=e['aria-checked'],F=e['aria-disabled'],P=e['aria-expanded'],A=e['aria-selected'],R=(e.src,(0,t.default)(e,p)),T={busy:null!=O?O:null==(l=e.accessibilityState)?void 0:l.busy,checked:null!=x?x:null==(c=e.accessibilityState)?void 0:c.checked,disabled:null!=F?F:null==(s=e.accessibilityState)?void 0:s.disabled,expanded:null!=P?P:null==(f=e.accessibilityState)?void 0:f.expanded,selected:null!=A?A:null==(b=e.accessibilityState)?void 0:b.selected},q=null!=(v=e['aria-label'])?v:e.accessibilityLabel,D=(0,_r(d[15]).useWrapRefWithImageAttachedCallbacks)(i);return(0,h.jsx)(o.default.Consumer,{children:function(t){return(0,h.jsx)(u.default,Object.assign({accessibilityState:T},R,{accessible:void 0!==e.alt||e.accessible,accessibilityLabel:null!=q?q:e.alt,ref:D,style:y,resizeMode:k,tintColor:C,source:w,internal_analyticTag:t}))}})}),y=(0,_r(d[15]).unstable_getImageComponentDecorator)();null!=y&&(v=y(v));var w=v;w.displayName='Image',w.getSize=function(e,t,i){var r=c.default.getSize(e).then(function(e){var t=(0,n.default)(e,2);return{width:t[0],height:t[1]}});if('function'!=typeof t)return r;r.then(function(e){return t(e.width,e.height)}).catch(i||function(){console.warn('Failed to get size for image: '+e)})},w.getSizeWithHeaders=function(e,t,i,n){var r=c.default.getSizeWithHeaders(e,t);if('function'!=typeof i)return r;r.then(function(e){return i(e.width,e.height)}).catch(n||function(){console.warn('Failed to get size for image: '+e)})},w.prefetch=function(e){return c.default.prefetchImage(e)},w.prefetchWithMetadata=function(e,t,i){return c.default.prefetchImageWithMetadata?c.default.prefetchImageWithMetadata(e,t,null!=i?i:(0,_r(d[12]).createRootTag)(0)):c.default.prefetchImage(e)},w.queryCache=function(e){return b.apply(this,arguments)},w.resolveAssetSource=s.default;var I=l.default.create({base:{overflow:'hidden'}});_e.default=w},2135,[1,207,367,19,1923,2032,2136,2137,2138,1904,128,258,2034,2140,2141,2142]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0])).createContext(null);_e.default=e},2136,[128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var o=(function(e,o){if("function"==typeof WeakMap)var r=new WeakMap,t=new WeakMap;return(function(e,o){if(!o&&e&&e.__esModule)return e;var n,i,s={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return s;if(n=o?t:r){if(n.has(e))return n.get(e);n.set(e,s)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(i.get||i.set)?n(s,u,i):s[u]=e[u]);return s})(e,o)})(_r(d[1])),r=e(_r(d[2])),t=e(_r(d[3]));_e.Commands=(0,r.default)({supportedCommands:['setIsVisible_EXPERIMENTAL']});var n=_e.__INTERNAL_VIEW_CONFIG='android'===t.default.OS?{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,defaultSource:!0,internal_analyticTag:!0,resizeMethod:!0,resizeMode:!0,resizeMultiplier:!0,tintColor:{process:_r(d[4]).default},borderBottomLeftRadius:!0,borderTopLeftRadius:!0,src:!0,source:!0,borderRadius:!0,headers:!0,shouldNotifyLoadEvents:!0,overlayColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},accessible:!0,progressiveRenderingEnabled:!0,fadeDuration:!0,borderBottomRightRadius:!0,borderTopRightRadius:!0,loadingIndicatorSrc:!0}}:{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:Object.assign({blurRadius:!0,capInsets:{diff:_r(d[5]).default},defaultSource:{process:_r(d[6]).default},internal_analyticTag:!0,resizeMode:!0,source:!0,tintColor:{process:_r(d[4]).default}},(0,_r(d[7]).ConditionallyIgnoredEventHandlers)({onLoadStart:!0,onLoad:!0,onLoadEnd:!0,onProgress:!0,onError:!0,onPartialLoad:!0}))},i=o.get('RCTImageView',function(){return n});_e.default=i},2137,[1,1878,1919,1838,1881,1902,1904,1918]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2138,[2139]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('ImageLoader')},2139,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.getImageSourcesFromImageProps=function(s){var o,n=(0,l.default)(s.source),u=s.crossOrigin,c=s.referrerPolicy,h=s.src,f=s.srcSet,p=s.width,v=s.height,w={};'use-credentials'===u&&(w['Access-Control-Allow-Credentials']='true');null!=c&&(w['Referrer-Policy']=c);if(null!=f){var x=[],P=f.split(', '),y=!0;P.forEach(function(s){var l=s.split(' '),o=(0,t.default)(l,2),n=o[0],u=o[1],c=void 0===u?'1x':u;if(c.endsWith('x')){var h=parseInt(c.split('x')[0],10);isNaN(h)||(y=1!==h&&y,x.push({headers:w,scale:h,uri:n,width:p,height:v}))}else console.warn('The provided format for scale is not supported yet. Please use scales like 1x, 2x, etc.')}),y&&null!=h&&x.push({headers:w,scale:1,uri:h,width:p,height:v}),0===x.length&&console.warn('The provided value for srcSet is not valid.'),o=x}else o=null!=h?[{uri:h,headers:w,width:p,height:v}]:n;return o};var t=s(r(d[1])),l=s(r(d[2]))},2140,[1,19,1904]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.convertObjectFitToResizeMode=function(o){return null!=o?n[o]:void 0};var n={contain:'contain',cover:'cover',fill:'stretch','scale-down':'contain',none:'none'}},2141,[]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.unstable_getImageComponentDecorator=function(){return t},_e.unstable_registerImageAttachedCallback=function(e){u.add(e)},_e.unstable_setImageComponentDecorator=function(e){t=e},_e.unstable_unregisterImageAttachedCallback=function(e){u.delete(e)},_e.useWrapRefWithImageAttachedCallbacks=function(e){var t=(0,r.useRef)([]),o=(0,r.useRef)(null);null==o.current&&(o.current=function(e){null==e?t.current.length>0&&(t.current.forEach(function(e){return e()}),t.current=[]):u.forEach(function(n){var r=n(e);null!=r&&t.current.push(r)})});return(0,n.default)(e,o.current)};var t,n=e(_r(d[1])),r=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,o,c={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return c;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,c)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((o=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(o.get||o.set)?u(c,f,o):c[f]=e[f]);return c})(e,t)})(_r(d[2]));var u=new Set},2142,[1,2108,128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=(e(_r(d[2])),e(_r(d[3]))),o=e(_r(d[4])),n=e(_r(d[5])),l=e(_r(d[6])),f=e(_r(d[7])),s=e(_r(d[8])),u=e(_r(d[9])),i=e(_r(d[10])),c=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,o=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,l,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(n=t?o:r){if(n.has(e))return n.get(e);n.set(e,f)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(l.get||l.set)?n(f,s,l):f[s]=e[s]);return f})(e,t)})(_r(d[11])),p=c,y=_r(d[12]);var j=p.forwardRef(function(e,t){return'android'===f.default.OS&&null!=e.refreshControl&&null!=e.style?(0,y.jsx)(v,Object.assign({scrollEventThrottle:1e-4},e,{ref:t,refreshControl:e.refreshControl})):(0,y.jsx)(h,Object.assign({scrollEventThrottle:1e-4},e,{ref:t}))}),v=p.forwardRef(function(e,f){var u=(0,c.useMemo)(function(){var t=(0,n.default)((0,o.default)(e.style)),r=t.outer,l=t.inner;return{intermediatePropsForRefreshControl:{style:r},intermediatePropsForScrollView:Object.assign({},e,{style:l})}},[e]),j=u.intermediatePropsForRefreshControl,v=u.intermediatePropsForScrollView,h=(0,i.default)(j),O=(0,t.default)(h,2),_=O[0],b=O[1],w=p.cloneElement(e.refreshControl,Object.assign({},_,{ref:b})),P=(0,i.default)(v),C=(0,t.default)(P,2),M=C[0],F=C[1],R=(0,s.default)(F,f);return(0,y.jsx)(r.default,Object.assign({},M,{ref:R,refreshControl:w,style:l.default.compose(M.style,_.style)}))}),h=(0,u.default)(r.default);_e.default=j},2143,[1,19,2144,2149,1923,2153,2032,1838,2108,2103,2169,128,258]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),o=e(_r(d[4])),s=e(_r(d[5])),i=e(_r(d[6])),f=(p(_r(d[7])),p(_r(d[8]))),u=e(_r(d[9])),l=_r(d[10]),c=["enabled","colors","progressBackgroundColor","size"];function p(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(p=function(e,t){if(!t&&e&&e.__esModule)return e;var o,s,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,i)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((s=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(s.get||s.set)?o(i,f,s):i[f]=e[f]);return i})(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}var v=(function(e){function u(){var e,t,n,i;(0,r.default)(this,u);for(var f=arguments.length,l=new Array(f),c=0;c0&&(this._scrollAnimatedValueAttachment=s.default.attachNativeEvent(this.getNativeScrollRef(),'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,n){n?this._stickyHeaderRefs.set(e,n):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,n,o){var t=this.props.stickyHeaderIndices;if(t){var r=V.Children.toArray(this.props.children);if(o===this._getKeyForIndex(e,r)){var l=n.nativeEvent.layout.y;this._headerLayoutYs.set(o,l);var i=t.indexOf(e),s=t[i-1];if(null!=s){var c=this._stickyHeaderRefs.get(this._getKeyForIndex(s,r));c&&c.setNextHeaderY&&c.setNextHeaderY(l)}}}}},{key:"render",value:function(){var e=this,o=!0===this.props.horizontal,t=o?_r(d[28]).HScrollViewNativeComponent:_r(d[29]).VScrollViewNativeComponent,r=o?_r(d[28]).HScrollContentViewNativeComponent:_r(d[29]).VScrollContentViewNativeComponent,l=[o&&x.contentContainerHorizontal,this.props.contentContainerStyle],i=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},s=this.props.stickyHeaderIndices,c=this.props.children;c=V.Children.toArray(c),null!=s&&s.length>0&&(c=c.map(function(n,o){var t=n?s.indexOf(o):-1;if(t>-1){var r=n.key,l=s[t+1],i=e.props.StickyHeaderComponent||k.default;return(0,E.jsx)(i,{ref:function(n){return e._setStickyHeaderRef(r,n)},nextHeaderLayoutY:e._headerLayoutYs.get(e._getKeyForIndex(l,c)),onLayout:function(n){return e._onStickyHeaderLayout(o,n,r)},scrollAnimatedValue:e._scrollAnimatedValue,inverted:e.props.invertStickyHeaders,hiddenOnScroll:e.props.stickyHeaderHiddenOnScroll,scrollViewHeight:e.state.layoutHeight,children:n},r)}return n})),c=(0,E.jsx)(w.default.Provider,{value:o?w.HORIZONTAL:w.VERTICAL,children:c});var u=Array.isArray(s)&&s.length>0,y=null!=this.props.maintainVisibleContentPosition||'android'===_.default.OS&&null!=this.props.snapToAlignment,S=(0,E.jsx)(r,Object.assign({},i,{ref:this._innerView.getForwardingRef(this.props.innerViewRef),style:l,removeClippedSubviews:('android'!==_.default.OS||!u)&&this.props.removeClippedSubviews,collapsable:!1,collapsableChildren:!y,children:c})),b=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,v=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,T=o?x.baseHorizontal:x.baseVertical,H=this.props,I=H.experimental_endDraggingSensitivityMultiplier,M=(0,n.default)(H,D),K=Object.assign({},M,{alwaysBounceHorizontal:b,alwaysBounceVertical:v,style:f.default.compose(T,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,endDraggingSensitivityMultiplier:I,scrollEventThrottle:u?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:_.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),O=this.props.decelerationRate;null!=O&&(K.decelerationRate=(0,R.default)(O));var A=this.props.refreshControl,C=this._scrollView.getForwardingRef(this.props.scrollViewRef);if(null!=A){if('ios'===_.default.OS)return(0,E.jsxs)(t,Object.assign({},K,{ref:C,children:[A,S]}));if('android'===_.default.OS){var N=(0,h.default)((0,p.default)(K.style)),B=N.outer,W=N.inner;return V.cloneElement(A,{style:f.default.compose(T,B)},(0,E.jsx)(t,Object.assign({},K,{style:f.default.compose(T,W),ref:C,children:S})))}}return(0,E.jsx)(t,Object.assign({},K,{ref:C,children:S}))}}])})(V.Component);A.Context=w.default;var x=f.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function C(e){var n={getForwardingRef:(0,I.default)(function(o){return function(t){var r=null==t?null:e(t);n.nativeInstance=t,n.publicInstance=r,null!=o&&('function'==typeof o?o(r):o.current=r)}}),nativeInstance:null,publicInstance:null};return n}var N=V.forwardRef(function(e,n){return null==n?(0,E.jsx)(A,Object.assign({},e)):(0,E.jsx)(A,Object.assign({},e,{scrollViewRef:n}))});N.displayName='ScrollView',N.Context=w.default;_e.default=N},2149,[1,207,3,4,9,11,12,2075,2150,1884,1923,2153,2032,1910,2154,1838,2155,1876,2159,2160,2161,2162,39,364,78,128,258,1849,2163,2168]); -__d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(r(d[1])),u={setGlobalOptions:function(l){void 0!==l.debug&&r(d[2])(t.default,'Trying to debug FrameRateLogger without the native module!'),null==t.default||t.default.setGlobalOptions({debug:!!l.debug})},setContext:function(l){null==t.default||t.default.setContext(l)},beginScroll:function(){null==t.default||t.default.beginScroll()},endScroll:function(){null==t.default||t.default.endScroll()}};e.default=u},2150,[1,2151,39]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2151,[2152]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('FrameRateLogger')},2152,[1841]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var c=null,t=null;if(null!=s)for(var n of(c={},t={},Object.keys(s)))switch(n){case'margin':case'marginHorizontal':case'marginVertical':case'marginBottom':case'marginTop':case'marginLeft':case'marginRight':case'flex':case'flexGrow':case'flexShrink':case'flexBasis':case'alignSelf':case'height':case'minHeight':case'maxHeight':case'width':case'minWidth':case'maxWidth':case'position':case'left':case'right':case'bottom':case'top':case'transform':case'transformOrigin':case'rowGap':case'columnGap':case'gap':c[n]=s[n];break;default:t[n]=s[n]}return{outer:c,inner:t}}},2153,[]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default=function(){r(d[0]).default.blurTextInput(r(d[0]).default.currentlyFocusedInput())}},2154,[1876]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),u=t(r(d[2])),l=t(r(d[3])),o=t(r(d[4])),s=t(r(d[5])),f=t(r(d[6])),c=t(r(d[7])),y=(function(){return(0,u.default)(function t(){var u=this;(0,n.default)(this,t),this._emitter=new l.default('ios'!==f.default.OS?null:c.default),this.addListener('keyboardDidShow',function(t){u._currentlyShowing=t}),this.addListener('keyboardDidHide',function(t){u._currentlyShowing=null})},[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,s.default)()}},{key:"isVisible",value:function(){return!!this._currentlyShowing}},{key:"metrics",value:function(){var t;return null==(t=this._currentlyShowing)?void 0:t.endCoordinates}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&o.default.configureNext({duration:n,update:{duration:n,type:null!=u&&o.default.Types[u]||'keyboard'}})}}])})();e.default=new y},2155,[1,3,4,1986,2156,2154,1838,2157]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var n=(function(e,n){if("function"==typeof WeakMap)var t=new WeakMap,i=new WeakMap;return(function(e,n){if(!n&&e&&e.__esModule)return e;var r,u,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=n?i:t){if(r.has(e))return r.get(e);r.set(e,o)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((u=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(u.get||u.set)?r(o,l,u):o[l]=e[l]);return o})(e,n)})(_r(d[1])),t=e(_r(d[2]));var i=n.isLayoutAnimationEnabled();function r(e,n,r){var u;if(!t.default.isDisableAnimations&&i){var o,l=!1,s=function(){l||(l=!0,clearTimeout(c),null==n||n())},c=setTimeout(s,(null!=(u=e.duration)?u:0)+17),p=(0,_r(d[3]).getFabricUIManager)();if(null!=p&&p.configureNextLayoutAnimation)null==(o=g)||null==(o=o.nativeFabricUIManager)||o.configureNextLayoutAnimation(e,s,null!=r?r:function(){});else null!=_r(d[4]).default&&_r(d[4]).default.configureNextLayoutAnimation&&_r(d[4]).default.configureNextLayoutAnimation(e,null!=s?s:function(){},null!=r?r:function(){})}}function u(e,n,t){return{duration:e,create:{type:n,property:t},update:{type:n},delete:{type:n,property:t}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},l={configureNext:r,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:r.bind(null,o.easeInEaseOut),linear:r.bind(null,o.linear),spring:r.bind(null,o.spring),setEnabled:function(e){}};_e.default=l},2156,[1,1865,1838,1886,1884]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2157,[2158]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('KeyboardObserver')},2158,[1841]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1]));e.default=function(t){return'normal'===t?o.default.select({ios:.998,android:.985}):'fast'===t?o.default.select({ios:.99,android:.9}):t}},2159,[1,1838]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1]));!(function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,r=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var n,f,l={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return l;if(n=t?r:o){if(n.has(e))return n.get(e);n.set(e,l)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((f=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(f.get||f.set)?n(l,u,f):l[u]=e[u])})(e,t)})(_r(d[2]));_e.default=(0,t.default)({supportedCommands:['flashScrollIndicators','scrollTo','scrollToEnd','zoomToRect']})},2160,[1,1919,128]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.VERTICAL=_e.HORIZONTAL=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0])).createContext(null);_e.default=e,_e.HORIZONTAL=Object.freeze({horizontal:!0}),_e.VERTICAL=Object.freeze({horizontal:!1})},2161,[128]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),u=e(_r(d[2])),n=e(_r(d[3])),r=e(_r(d[4])),l=e(_r(d[5])),o=(function(e,t){if("function"==typeof WeakMap)var u=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var r,l,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(r=t?n:u){if(r.has(e))return r.get(e);r.set(e,o)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((l=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(l.get||l.set)?r(o,i,l):o[i]=e[i]);return o})(e,t)})(_r(d[6])),i=o,f=_r(d[7]);var s=i.forwardRef(function(e,n){var s=e.inverted,c=e.scrollViewHeight,v=e.hiddenOnScroll,h=e.scrollAnimatedValue,y=e.nextHeaderLayoutY,R=(0,o.useState)(!1),_=(0,t.default)(R,2),L=_[0],S=_[1],b=(0,o.useState)(0),w=(0,t.default)(b,2),x=w[0],O=w[1],E=(0,o.useState)(0),M=(0,t.default)(E,2),P=M[0],j=M[1],k=(0,o.useState)(null),C=(0,t.default)(k,2),I=C[0],V=C[1],Y=(0,o.useState)(y),D=(0,t.default)(Y,2),H=D[0],T=D[1],W=(0,o.useState)(!1),A=(0,t.default)(W,2),z=A[0],N=A[1],q=(0,o.useCallback)(function(e){null!=e&&(e.setNextHeaderY=T,N((0,_r(d[8]).isPublicInstance)(e)))},[]),B=(0,l.default)(q,n),F=(0,o.useMemo)(function(){return!0===v?u.default.diffClamp(h.interpolate({extrapolateLeft:'clamp',inputRange:[x,x+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-P,0):null},[h,P,x,v]),G=(0,o.useState)(function(){var e=h.interpolate({inputRange:[-1,0],outputRange:[0,0]});return null!=F?u.default.add(e,F):e}),J=(0,t.default)(G,2),K=J[0],Q=J[1],U=(0,o.useRef)(!0),X=(0,o.useRef)(null);(0,o.useEffect)(function(){0!==I&&null!=I&&(U.current=!1)},[I]);var Z=(0,o.useCallback)(function(e){var t=e.value,u='android'===r.default.OS?15:64;0!==t||U.current?(null!=X.current&&clearTimeout(X.current),X.current=setTimeout(function(){return V(t)},u)):U.current=!0},[]);(0,o.useEffect)(function(){var e=[-1,0],t=[0,0];if(L)if(!0===s){if(null!=c){var n=x+P-c;if(n>0){e.push(n),t.push(0),e.push(n+1),t.push(1);var r=(H||0)-P-c;r>n&&(e.push(r,r+1),t.push(r-n,r-n))}}}else{e.push(x),t.push(0);var l=(H||0)-P;l>=x?(e.push(l,l+1),t.push(l-x,l-x)):(e.push(x+1),t.push(1))}var o,i=h.interpolate({inputRange:e,outputRange:t});return null!=F&&(i=u.default.add(i,F)),z&&(o=i.addListener(Z)),Q(i),function(){o&&i.removeListener(o),null!=X.current&&clearTimeout(X.current)}},[H,L,P,x,c,h,s,F,Z,z]);var $=i.Children.only(e.children),ee=z&&null!=I?{style:{transform:[{translateY:I}]}}:null;return(0,f.jsx)(u.default.View,{collapsable:!1,nativeID:e.nativeID,onLayout:function(t){O(t.nativeEvent.layout.y),j(t.nativeEvent.layout.height),S(!0),e.onLayout(t);var u=i.Children.only(e.children);u.props.onLayout&&u.props.onLayout(t)},ref:B,style:[$.props.style,p.header,{transform:[{translateY:K}]}],passthroughAnimatedPropExplicitValues:ee,children:i.cloneElement($,{style:p.fill,onLayout:void 0})})}),p=n.default.create({header:{zIndex:10},fill:{flex:1}});_e.default=s},2162,[1,19,2073,2032,1838,2108,128,258,2107]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.HScrollViewNativeComponent=e.HScrollContentViewNativeComponent=void 0;var o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),f=t(r(d[5]));e.HScrollViewNativeComponent='android'===u.default.OS?o.default:l.default,e.HScrollContentViewNativeComponent='android'===u.default.OS?f.default:n.default},2163,[1,2164,2165,2166,1838,2167]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,o){if("function"==typeof WeakMap)var r=new WeakMap,t=new WeakMap;return(function(e,o){if(!o&&e&&e.__esModule)return e;var n,l,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(n=o?t:r){if(n.has(e))return n.get(e);n.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((l=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(l.get||l.set)?n(i,s,l):i[s]=e[s]);return i})(e,o)})(_r(d[0]));var o=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidHorizontalScrollView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{decelerationRate:!0,disableIntervalMomentum:!0,maintainVisibleContentPosition:!0,endFillColor:{process:_r(d[1]).default},fadingEdgeLength:!0,nestedScrollEnabled:!0,overScrollMode:!0,pagingEnabled:!0,persistentScrollbar:!0,horizontal:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollPerfTag:!0,sendMomentumEvents:!0,showsHorizontalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToStart:!0,snapToOffsets:!0,contentOffset:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderRadius:!0,borderStyle:!0,borderRightColor:{process:_r(d[1]).default},borderColor:{process:_r(d[1]).default},borderBottomColor:{process:_r(d[1]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[1]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[1]).default},pointerEvents:!0}},r=e.get('AndroidHorizontalScrollView',function(){return o});_e.default=r},2164,[1878,1881]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,u)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(i.get||i.set)?o(u,f,i):u[f]=e[f]);return u})(e,t)})(_r(d[0]));var t=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'RCTScrollContentView',bubblingEventTypes:{},directEventTypes:{},validAttributes:{}},n=e.get('RCTScrollContentView',function(){return t});_e.default=n},2165,[1878]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=void 0;var o=(function(e,o){if("function"==typeof WeakMap)var t=new WeakMap,n=new WeakMap;return(function(e,o){if(!o&&e&&e.__esModule)return e;var r,l,i={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return i;if(r=o?n:t){if(r.has(e))return r.get(e);r.set(e,i)}for(var s in e)"default"!==s&&{}.hasOwnProperty.call(e,s)&&((l=(r=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,s))&&(l.get||l.set)?r(i,s,l):i[s]=e[s]);return i})(e,o)})(_r(d[1])),t=e(_r(d[2]));var n=_e.__INTERNAL_VIEW_CONFIG='android'===t.default.OS?{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'}},validAttributes:{contentOffset:{diff:_r(d[3]).default},decelerationRate:!0,disableIntervalMomentum:!0,maintainVisibleContentPosition:!0,pagingEnabled:!0,scrollEnabled:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,sendMomentumEvents:!0,borderRadius:!0,nestedScrollEnabled:!0,scrollEventThrottle:!0,borderStyle:!0,borderRightColor:{process:_r(d[4]).default},borderColor:{process:_r(d[4]).default},borderBottomColor:{process:_r(d[4]).default},persistentScrollbar:!0,horizontal:!0,endFillColor:{process:_r(d[4]).default},fadingEdgeLength:!0,overScrollMode:!0,borderTopLeftRadius:!0,scrollPerfTag:!0,borderTopColor:{process:_r(d[4]).default},removeClippedSubviews:!0,borderTopRightRadius:!0,borderLeftColor:{process:_r(d[4]).default},pointerEvents:!0,isInvertedVirtualizedList:!0}}:{uiViewClassName:'RCTScrollView',bubblingEventTypes:{},directEventTypes:{topMomentumScrollBegin:{registrationName:'onMomentumScrollBegin'},topMomentumScrollEnd:{registrationName:'onMomentumScrollEnd'},topScroll:{registrationName:'onScroll'},topScrollBeginDrag:{registrationName:'onScrollBeginDrag'},topScrollEndDrag:{registrationName:'onScrollEndDrag'},topScrollToTop:{registrationName:'onScrollToTop'}},validAttributes:Object.assign({alwaysBounceHorizontal:!0,alwaysBounceVertical:!0,automaticallyAdjustContentInsets:!0,automaticallyAdjustKeyboardInsets:!0,automaticallyAdjustsScrollIndicatorInsets:!0,bounces:!0,bouncesZoom:!0,canCancelContentTouches:!0,centerContent:!0,contentInset:{diff:_r(d[5]).default},contentOffset:{diff:_r(d[3]).default},contentInsetAdjustmentBehavior:!0,decelerationRate:!0,endDraggingSensitivityMultiplier:!0,directionalLockEnabled:!0,disableIntervalMomentum:!0,indicatorStyle:!0,inverted:!0,keyboardDismissMode:!0,maintainVisibleContentPosition:!0,maximumZoomScale:!0,minimumZoomScale:!0,pagingEnabled:!0,pinchGestureEnabled:!0,scrollEnabled:!0,scrollEventThrottle:!0,scrollIndicatorInsets:{diff:_r(d[5]).default},scrollToOverflowEnabled:!0,scrollsToTop:!0,showsHorizontalScrollIndicator:!0,showsVerticalScrollIndicator:!0,snapToAlignment:!0,snapToEnd:!0,snapToInterval:!0,snapToOffsets:!0,snapToStart:!0,verticalScrollIndicatorInsets:{diff:_r(d[5]).default},zoomScale:!0},(0,_r(d[6]).ConditionallyIgnoredEventHandlers)({onScrollBeginDrag:!0,onMomentumScrollEnd:!0,onScrollEndDrag:!0,onMomentumScrollBegin:!0,onScrollToTop:!0,onScroll:!0}))},r=o.get('RCTScrollView',function(){return n});_e.default=r},2166,[1,1878,1838,1901,1881,1902,1918]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var o=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:"AndroidHorizontalScrollContentView",validAttributes:{removeClippedSubviews:!0}};e.default=r(d[2]).get('AndroidHorizontalScrollContentView',function(){return o})},2167,[1,2055,1878]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.VScrollViewNativeComponent=e.VScrollContentViewNativeComponent=void 0;var t=o(r(d[1])),n=o(r(d[2])),l=o(r(d[3])),v=o(r(d[4]));e.VScrollViewNativeComponent=n.default,e.VScrollContentViewNativeComponent='android'===v.default.OS?l.default:t.default},2168,[1,2165,2166,2029,1838]); -__d(function(g,r,i,a,m,e,d){var l=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var u=l(r(d[1]));e.default=(0,u.default)(null)},2169,[1,2104]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2]));!(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,f=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(n=t?f:r){if(n.has(e))return n.get(e);n.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?n(u,i,o):u[i]=e[i])})(e,t)})(_r(d[3]));_e.default=(0,r.default)(t.default)},2170,[1,2171,2103,128]); -__d(function(g,_r,_i,a,m,_e,d){'use strict';var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),r=e(_r(d[2])),n=e(_r(d[3])),i=e(_r(d[4])),o=e(_r(d[5])),f=e(_r(d[6])),u=e(_r(d[7])),s=e(_r(d[8])),l=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var i,o,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(i=t?n:r){if(i.has(e))return i.get(e);i.set(e,f)}for(var u in e)"default"!==u&&{}.hasOwnProperty.call(e,u)&&((o=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,u))&&(o.get||o.set)?i(f,u,o):f[u]=e[u]);return f})(e,t)})(_r(d[9])),c=_r(d[10]),p=["stickySectionHeadersEnabled"];function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var _=s.default.VirtualizedSectionList;_e.default=(function(e){function s(){var e,t,n,f;(0,r.default)(this,s);for(var u=arguments.length,l=new Array(u),c=0;c is only supported on iOS.'),null)}},2176,[1,2177,2032,1838,2180,2181,128,258]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=e(_r(d[1])),f=e(_r(d[2]));!(function(e,t){if("function"==typeof WeakMap)var f=new WeakMap,r=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var n,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(n=t?r:f){if(n.has(e))return n.get(e);n.set(e,u)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((o=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(o.get||o.set)?n(u,l,o):u[l]=e[l])})(e,t)})(_r(d[3]));var r=t.default.select({ios:_r(d[4]).default,default:f.default});_e.default=r},2177,[1,1838,2029,128,2178]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2178,[2179]); -__d(function(g,r,i,a,m,e,d){var _=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;_(r(d[1]));var t=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:"RCTSafeAreaView",validAttributes:{}};e.default=r(d[2]).get('RCTSafeAreaView',function(){return t})},2179,[1,2055,1878]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,f.useState)(function(){return u.default.get('window')}),o=(0,n.default)(t,2),c=o[0],l=o[1];return(0,f.useEffect)(function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var n=u.default.addEventListener('change',t);return t({window:u.default.get('window')}),function(){n.remove()}},[c]),c};var n=t(r(d[1])),u=t(r(d[2])),f=r(d[3])},2180,[1,19,1910,128]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2181,[2182]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var u=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:"RCTInputAccessoryView",validAttributes:{backgroundColor:{process:r(d[2]).default}}};e.default=r(d[3]).get('RCTInputAccessoryView',function(){return u})},2182,[1,2055,1881,1878]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t,n=e(_r(d[1])),r=e(_r(d[2])),o=((function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;(function(e,t){if(!t&&e&&e.__esModule)return e;var o,i,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,u)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((i=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(i.get||i.set)?o(u,f,i):u[f]=e[f])})(e,t)})(_r(d[3])),_r(d[4]));var i=null!=(null==(t=g)?void 0:t.nativeFabricUIManager);_e.default=i?function(e){return(0,o.jsx)(r.default,Object.assign({},e,{style:u.container}))}:function(e){return e.children};var u=n.default.create({container:{display:'contents'}})},2183,[1,2032,2184,128,258]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,u,f={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return f;if(o=t?r:n){if(o.has(e))return o.get(e);o.set(e,f)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((u=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(u.get||u.set)?o(f,i,u):f[i]=e[i]);return f})(e,t)})(_r(d[0])).get('LayoutConformance',function(){return{uiViewClassName:'LayoutConformance',validAttributes:{mode:!0}}});_e.default=e},2184,[1878]); -__d(function(g,_r,_i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),o=t(_r(d[2])),n=t(_r(d[3])),i=t(_r(d[4])),r=t(_r(d[5])),s=t(_r(d[6])),u=t(_r(d[7])),l=t(_r(d[8])),f=t(_r(d[9])),c=t(_r(d[10])),h=t(_r(d[11])),y=t(_r(d[12])),p=t(_r(d[13])),_=(function(t,e){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return(function(t,e){if(!e&&t&&t.__esModule)return t;var i,r,s={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return s;if(i=e?n:o){if(i.has(t))return i.get(t);i.set(t,s)}for(var u in t)"default"!==u&&{}.hasOwnProperty.call(t,u)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,u))&&(r.get||r.set)?i(s,u,r):s[u]=t[u]);return s})(t,e)})(_r(d[14])),b=_r(d[15]),v=["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style","onLayout"];function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}var L=(function(t){function L(t){var e,i,u,f;return(0,n.default)(this,L),i=this,u=L,f=[t],u=(0,s.default)(u),(e=(0,r.default)(i,k()?Reflect.construct(u,f||[],(0,s.default)(i).constructor):u.apply(i,f)))._frame=null,e._keyboardEvent=null,e._subscriptions=[],e._initialFrameHeight=0,e._bottom=0,e._onKeyboardChange=function(t){e._keyboardEvent=t,e._updateBottomIfNecessary()},e._onKeyboardHide=function(t){e._keyboardEvent=null,e._updateBottomIfNecessary()},e._onLayout=(function(){var t=(0,o.default)(function*(t){t.persist();var o=e._frame;e._frame=t.nativeEvent.layout,e._initialFrameHeight||(e._initialFrameHeight=e._frame.height),o&&o.height===e._frame.height||(yield e._updateBottomIfNecessary()),e.props.onLayout&&e.props.onLayout(t)});return function(e){return t.apply(this,arguments)}})(),e._setBottom=function(t){var o,n=null==(o=e.props.enabled)||o;e._bottom=t,n&&e.setState({bottom:t})},e._updateBottomIfNecessary=(0,o.default)(function*(){var t;if(null!=e._keyboardEvent){var o=e._keyboardEvent,n=o.duration,i=o.easing,r=o.endCoordinates,s=yield e._relativeKeyboardHeight(r);if(e._bottom!==s)e._setBottom(s),(null==(t=e.props.enabled)||t)&&n&&i&&l.default.configureNext({duration:n>10?n:10,update:{duration:n>10?n:10,type:l.default.Types[i]||'keyboard'}})}else e._setBottom(0)}),e.state={bottom:0},e.viewRef=_.createRef(),e}return(0,u.default)(L,t),(0,i.default)(L,[{key:"_relativeKeyboardHeight",value:(O=(0,o.default)(function*(t){var e,o=this._frame;if(!o||!t)return 0;if('ios'===c.default.OS&&0===t.screenY&&(yield h.default.prefersCrossFadeTransitions()))return 0;var n=t.screenY-(null!=(e=this.props.keyboardVerticalOffset)?e:0);return'height'===this.props.behavior?Math.max(this.state.bottom+o.y+o.height-n,0):Math.max(o.y+o.height-n,0)}),function(t){return O.apply(this,arguments)})},{key:"componentDidUpdate",value:function(t,e){var o;(null==(o=this.props.enabled)||o)&&this._bottom!==e.bottom&&this.setState({bottom:this._bottom})}},{key:"componentDidMount",value:function(){p.default.isVisible()||(this._keyboardEvent=null,this._setBottom(0)),'ios'===c.default.OS?this._subscriptions=[p.default.addListener('keyboardWillHide',this._onKeyboardHide),p.default.addListener('keyboardWillShow',this._onKeyboardChange)]:this._subscriptions=[p.default.addListener('keyboardDidHide',this._onKeyboardChange),p.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(t){t.remove()})}},{key:"render",value:function(){var t=this.props,o=t.behavior,n=t.children,i=t.contentContainerStyle,r=t.enabled,s=void 0===r||r,u=(t.keyboardVerticalOffset,t.style),l=(t.onLayout,(0,e.default)(t,v)),c=!0===s?this.state.bottom:0;switch(o){case'height':var h;return null!=this._frame&&this.state.bottom>0&&(h={height:this._initialFrameHeight-c,flex:0}),(0,b.jsx)(y.default,Object.assign({ref:this.viewRef,style:f.default.compose(u,h),onLayout:this._onLayout},l,{children:n}));case'position':return(0,b.jsx)(y.default,Object.assign({ref:this.viewRef,style:u,onLayout:this._onLayout},l,{children:(0,b.jsx)(y.default,{style:f.default.compose(i,{bottom:c}),children:n})}));case'padding':return(0,b.jsx)(y.default,Object.assign({ref:this.viewRef,style:f.default.compose(u,{paddingBottom:c}),onLayout:this._onLayout},l,{children:n}));default:return(0,b.jsx)(y.default,Object.assign({ref:this.viewRef,onLayout:this._onLayout,style:u},l,{children:n}))}}}]);var O})(_.Component);_e.default=L},2185,[1,207,367,3,4,9,11,12,2156,2032,1838,1835,2029,2155,128,258]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t,n=e(r(d[1])),s=e(r(d[2])),o=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),p=e(r(d[6])),c=e(r(d[7])),h=e(r(d[8])),f=e(r(d[9])),v=e(r(d[10])),S=e(r(d[11])),y=e(r(d[12])),b=r(d[13]);function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(R=function(){return!!e})()}var _=S.default.VirtualizedListContextResetter,C=null!=f.default?new c.default(f.default):null,D=0,w=(function(e){function t(e){var n,o,p,c;return(0,s.default)(this,t),o=this,p=t,c=[e],p=(0,u.default)(p),(n=(0,l.default)(o,R()?Reflect.construct(p,c||[],(0,u.default)(o).constructor):p.apply(o,c)))._identifier=D++,n.state={isRendered:!0===e.visible},n}return(0,p.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){var e=this;C&&(this._eventSubscription=C.addListener('modalDismissed',function(t){e.setState({isRendered:!1},function(){t.modalID===e._identifier&&e.props.onDismiss&&e.props.onDismiss()})}))}},{key:"componentWillUnmount",value:function(){this.setState({isRendered:!1}),this._eventSubscription&&this._eventSubscription.remove()}},{key:"componentDidUpdate",value:function(e){!1===e.visible&&!0===this.props.visible&&this.setState({isRendered:!0})}},{key:"_shouldShowModal",value:function(){return!0===this.props.visible||!0===this.state.isRendered}},{key:"render",value:function(){var e,t=this;if(!this._shouldShowModal())return null;var n={backgroundColor:!0===this.props.transparent?'transparent':null!=(e=this.props.backdropColor)?e:'white'},s=this.props.animationType||'none',o=this.props.presentationStyle;o||(o='fullScreen',!0===this.props.transparent&&(o='overFullScreen'));var l=this.props.children;return(0,b.jsx)(v.default,{animationType:s,presentationStyle:o,transparent:this.props.transparent,hardwareAccelerated:this.props.hardwareAccelerated,onRequestClose:this.props.onRequestClose,onShow:this.props.onShow,onDismiss:function(){t.setState({isRendered:!1},function(){t.props.onDismiss&&t.props.onDismiss()})},visible:this.props.visible,statusBarTranslucent:this.props.statusBarTranslucent,navigationBarTranslucent:this.props.navigationBarTranslucent,identifier:this._identifier,style:T.modal,onStartShouldSetResponder:this._shouldSetResponder,supportedOrientations:this.props.supportedOrientations,onOrientationChange:this.props.onOrientationChange,testID:this.props.testID,children:(0,b.jsx)(_,{children:(0,b.jsx)(r(d[14]).default.Context.Provider,{value:null,children:(0,b.jsx)(r(d[15]).default,{style:[T.container,n],collapsable:!1,children:l})})})})}},{key:"_shouldSetResponder",value:function(){return!0}}])})(y.default.Component);w.defaultProps={visible:!0,hardwareAccelerated:!1},w.contextType=r(d[16]).RootTagContext;var x=r(d[17]).default.getConstants().isRTL?'right':'left',T=r(d[18]).default.create({modal:{position:'absolute'},container:(0,n.default)((0,n.default)((0,n.default)({},x,0),"top",0),"flex",1)}),k=null!=(t=h.default.unstable_Modal)?t:w;_e.default=k},2186,[1,18,3,4,9,11,12,1986,2187,2188,2190,2119,128,258,2149,2029,2034,2192,2032]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_Modal:null}},2187,[]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2188,[2189]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('ModalManager')},2189,[1841]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2190,[2191]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.__INTERNAL_VIEW_CONFIG=void 0;t(r(d[1]));var n=e.__INTERNAL_VIEW_CONFIG={uiViewClassName:"RCTModalHostView",directEventTypes:{topRequestClose:{registrationName:"onRequestClose"},topShow:{registrationName:"onShow"},topDismiss:{registrationName:"onDismiss"},topOrientationChange:{registrationName:"onOrientationChange"}},validAttributes:Object.assign({animationType:!0,presentationStyle:!0,transparent:!0,statusBarTranslucent:!0,navigationBarTranslucent:!0,hardwareAccelerated:!0,visible:!0,animated:!0,supportedOrientations:!0,identifier:!0},r(d[2]).ConditionallyIgnoredEventHandlers({onRequestClose:!0,onShow:!0,onDismiss:!0,onOrientationChange:!0}))};e.default=r(d[3]).get('RCTModalHostView',function(){return n})},2191,[1,2055,1918,1878]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),f=(function(){if(n.default){var t=n.default.getConstants();return{isRTL:t.isRTL,doLeftAndRightSwapInRTL:t.doLeftAndRightSwapInRTL,localeIdentifier:t.localeIdentifier}}return{isRTL:!1,doLeftAndRightSwapInRTL:!0}})();e.default={getConstants:function(){return f},allowRTL:function(t){n.default&&n.default.allowRTL(t)},forceRTL:function(t){n.default&&n.default.forceRTL(t)},swapLeftAndRightInRTL:function(t){n.default&&n.default.swapLeftAndRightInRTL(t)},isRTL:f.isRTL,doLeftAndRightSwapInRTL:f.doLeftAndRightSwapInRTL}},2192,[1,2193]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2193,[2194]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var f,o,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(f=t?n:r){if(f.has(e))return f.get(e);f.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((o=(f=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(o.get||o.set)?f(u,i,o):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('I18nManager')},2194,[1841]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var l=e(_r(d[1])),n=e(_r(d[2])),s=e(_r(d[3])),i=e(_r(d[4])),t=e(_r(d[5])),o=e(_r(d[6])),r=(function(e,l){if("function"==typeof WeakMap)var n=new WeakMap,s=new WeakMap;return(function(e,l){if(!l&&e&&e.__esModule)return e;var i,t,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(i=l?s:n){if(i.has(e))return i.get(e);i.set(e,o)}for(var r in e)"default"!==r&&{}.hasOwnProperty.call(e,r)&&((t=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,r))&&(t.get||t.set)?i(o,r,t):o[r]=e[r]);return o})(e,l)})(_r(d[7])),u=r,c=_r(d[8]),f=["accessible","accessibilityState","aria-live","android_disableSound","android_ripple","aria-busy","aria-checked","aria-disabled","aria-expanded","aria-label","aria-selected","cancelable","children","delayHoverIn","delayHoverOut","delayLongPress","disabled","focusable","hitSlop","onHoverIn","onHoverOut","onLongPress","onPress","onPressIn","onPressOut","pressRetentionOffset","style","testOnly_pressed","unstable_pressDelay"];function b(e){var n=(0,r.useState)(!1),s=(0,l.default)(n,2);return[s[0]||e,s[1]]}var y=u.memo(u.forwardRef(function(e,u){var y,v,p,P,O,_,h,I,H,w=e.accessible,x=e.accessibilityState,S=e['aria-live'],L=e.android_disableSound,M=e.android_ripple,j=e['aria-busy'],k=e['aria-checked'],R=e['aria-disabled'],V=e['aria-expanded'],D=e['aria-label'],W=e['aria-selected'],N=e.cancelable,q=e.children,z=e.delayHoverIn,A=e.delayHoverOut,B=e.delayLongPress,C=e.disabled,E=e.focusable,F=e.hitSlop,G=e.onHoverIn,J=e.onHoverOut,K=e.onLongPress,Q=e.onPress,T=e.onPressIn,U=e.onPressOut,X=e.pressRetentionOffset,Y=e.style,Z=e.testOnly_pressed,$=e.unstable_pressDelay,ee=(0,n.default)(e,f),le=(0,r.useRef)(null),ae=(0,i.default)(u,le),ne=(0,o.default)(M,le),se=b(!0===Z),ie=(0,l.default)(se,2),te=ie[0],oe=ie[1],re='function'==typeof q||'function'==typeof Y,ue={busy:null!=j?j:null==x?void 0:x.busy,checked:null!=k?k:null==x?void 0:x.checked,disabled:null!=R?R:null==x?void 0:x.disabled,expanded:null!=V?V:null==x?void 0:x.expanded,selected:null!=W?W:null==x?void 0:x.selected};ue=null!=C?Object.assign({},ue,{disabled:C}):ue;var de={max:null!=(y=e['aria-valuemax'])?y:null==(v=e.accessibilityValue)?void 0:v.max,min:null!=(p=e['aria-valuemin'])?p:null==(P=e.accessibilityValue)?void 0:P.min,now:null!=(O=e['aria-valuenow'])?O:null==(_=e.accessibilityValue)?void 0:_.now,text:null!=(h=e['aria-valuetext'])?h:null==(I=e.accessibilityValue)?void 0:I.text},ce='off'===S?'none':null!=S?S:e.accessibilityLiveRegion,fe=null!=D?D:e.accessibilityLabel,be=Object.assign({},ee,null==ne?void 0:ne.viewProps,{accessible:!1!==w,accessibilityViewIsModal:null!=(H=ee['aria-modal'])?H:ee.accessibilityViewIsModal,accessibilityLiveRegion:ce,accessibilityLabel:fe,accessibilityState:ue,focusable:!1!==E,accessibilityValue:de,hitSlop:F}),ye=(0,r.useMemo)(function(){return{cancelable:N,disabled:C,hitSlop:F,pressRectOffset:X,android_disableSound:L,delayHoverIn:z,delayHoverOut:A,delayLongPress:B,delayPressIn:$,onHoverIn:G,onHoverOut:J,onLongPress:K,onPress:Q,onPressIn:function(e){null!=ne&&ne.onPressIn(e),re&&oe(!0),null!=T&&T(e)},onPressMove:null==ne?void 0:ne.onPressMove,onPressOut:function(e){null!=ne&&ne.onPressOut(e),re&&oe(!1),null!=U&&U(e)}}},[L,ne,N,z,A,B,C,F,G,J,K,Q,T,U,X,oe,re,$]),ve=(0,s.default)(ye);return(0,c.jsxs)(t.default,Object.assign({},be,ve,{ref:ae,style:'function'==typeof Y?Y({pressed:te}):Y,collapsable:!1,children:['function'==typeof q?q({pressed:te}):q,null]}))}));y.displayName='Pressable';_e.default=y},2195,[1,19,207,2061,2108,2029,2196,128,258]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(e,l){var u=null!=e?e:{},i=u.color,s=u.borderless,f=u.radius,c=u.foreground;return(0,o.useMemo)(function(){if('android'===r.default.OS&&(null!=i||null!=s||null!=f)){var e=(0,n.default)(i);(0,t.default)(null==e||'number'==typeof e,'Unexpected color given for Ripple color');var o={type:'RippleAndroid',color:e,borderless:!0===s,rippleRadius:f};return{viewProps:!0===c?{nativeForegroundAndroid:o}:{nativeBackgroundAndroid:o},onPressIn:function(e){var n,r,t=l.current;null!=t&&(_r(d[6]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0),_r(d[6]).Commands.setPressed(t,!0))},onPressMove:function(e){var n,r,t=l.current;null!=t&&_r(d[6]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0)},onPressOut:function(e){var n=l.current;null!=n&&_r(d[6]).Commands.setPressed(n,!1)}}}return null},[s,i,c,f,l])};var n=e(_r(d[1])),r=e(_r(d[2])),t=(e(_r(d[3])),e(_r(d[4]))),o=(function(e,n){if("function"==typeof WeakMap)var r=new WeakMap,t=new WeakMap;return(function(e,n){if(!n&&e&&e.__esModule)return e;var o,l,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=n?t:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((l=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(l.get||l.set)?o(u,i,l):u[i]=e[i]);return u})(e,n)})(_r(d[5]))},2196,[1,1881,1838,2029,39,128,2031]); -__d(function(g,_r,_i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,n,l=t(_r(d[1])),r=t(_r(d[2])),u=t(_r(d[3])),o=t(_r(d[4])),i=t(_r(d[5])),c=t(_r(d[6])),s=t(_r(d[7])),f=t(_r(d[8])),p=t(_r(d[9])),v=t(_r(d[10]));function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function k(t){var e,n,l=null!=(e=t.animated)&&e,r=null!=(n=t.showHideTransition)?n:'fade';return{backgroundColor:null!=t.backgroundColor?{value:t.backgroundColor,animated:l}:null,barStyle:null!=t.barStyle?{value:t.barStyle,animated:l}:null,translucent:t.translucent,hidden:null!=t.hidden?{value:t.hidden,animated:l,transition:r}:null,networkActivityIndicatorVisible:t.networkActivityIndicatorVisible}}var S=(function(t){function e(){var t,n,r,i;(0,l.default)(this,e);for(var c=arguments.length,s=new Array(c),f=0;f1&&(Ve=(0,I.jsx)(b.default,{children:Ve}));var Ke={selectionColor:U,selectionHandleColor:void 0===Y?U:Y,cursorColor:void 0===G?U:G};pe=(0,I.jsx)(t,Object.assign({ref:ie},q,Ke,Fe,{accessibilityState:Ie,accessibilityLabelledBy:He,accessible:be,autoCapitalize:De,submitBehavior:re,caretHidden:Oe,children:Ve,disableFullscreenUI:e.disableFullscreenUI,focusable:void 0!==W?!W:ye,mostRecentEventCount:te,nativeID:null!=V?V:e.nativeID,numberOfLines:null!=(Me=e.rows)?Me:e.numberOfLines,onBlur:fe,onChange:de,onFocus:ce,onScroll:me,onSelectionChange:se,placeholder:ze,style:je,text:X,textBreakStrategy:e.textBreakStrategy}))}return(0,I.jsx)(y.default.Provider,{value:!0,children:pe})}var B={enter:'default',done:'done',go:'go',next:'next',previous:'previous',search:'search',send:'send'},P={none:'default',text:'default',decimal:'decimal-pad',numeric:'number-pad',tel:'phone-pad',search:'ios'===h.default.OS?'web-search':'default',email:'email-address',url:'url'},M={'address-line1':'postal-address-region','address-line2':'postal-address-locality',bday:'birthdate-full','bday-day':'birthdate-day','bday-month':'birthdate-month','bday-year':'birthdate-year','cc-csc':'cc-csc','cc-exp':'cc-exp','cc-exp-month':'cc-exp-month','cc-exp-year':'cc-exp-year','cc-number':'cc-number',country:'postal-address-country','current-password':'password',email:'email','honorific-prefix':'name-prefix','honorific-suffix':'name-suffix',name:'name','additional-name':'name-middle','family-name':'name-family','given-name':'name-given','new-password':'password-new',off:'off','one-time-code':'sms-otp','postal-code':'postal-code',sex:'gender','street-address':'street-address',tel:'tel','tel-country-code':'tel-country-code','tel-national':'tel-national',username:'username'},D={'address-line1':'streetAddressLine1','address-line2':'streetAddressLine2',bday:'birthdate','bday-day':'birthdateDay','bday-month':'birthdateMonth','bday-year':'birthdateYear','cc-csc':'creditCardSecurityCode','cc-exp-month':'creditCardExpirationMonth','cc-exp-year':'creditCardExpirationYear','cc-exp':'creditCardExpiration','cc-given-name':'creditCardGivenName','cc-additional-name':'creditCardMiddleName','cc-family-name':'creditCardFamilyName','cc-name':'creditCardName','cc-number':'creditCardNumber','cc-type':'creditCardType','current-password':'password',country:'countryName',email:'emailAddress',name:'name','additional-name':'middleName','family-name':'familyName','given-name':'givenName',nickname:'nickname','honorific-prefix':'namePrefix','honorific-suffix':'nameSuffix','new-password':'newPassword',off:'none','one-time-code':'oneTimeCode',organization:'organizationName','organization-title':'jobTitle','postal-code':'postalCode','street-address':'fullStreetAddress',tel:'telephoneNumber',url:'URL',username:'username'},_=O.forwardRef(function(e,t){var n,l=e.allowFontScaling,o=void 0===l||l,r=e.rejectResponderTermination,u=void 0===r||r,s=e.underlineColorAndroid,c=void 0===s?'transparent':s,f=e.autoComplete,p=e.textContentType,v=e.readOnly,b=e.editable,y=e.enterKeyHint,C=e.returnKeyType,x=e.inputMode,S=e.showSoftInputOnFocus,T=e.keyboardType,w=(0,i.default)(e,j);return(0,I.jsx)(k,Object.assign({allowFontScaling:o,rejectResponderTermination:u,underlineColorAndroid:c,editable:void 0!==v?!v:b,returnKeyType:y?B[y]:C,keyboardType:x?P[x]:T,showSoftInputOnFocus:null==x?S:'none'!==x,autoComplete:'android'===h.default.OS?null!=(n=M[f])?n:f:void 0,textContentType:null!=p?p:'ios'===h.default.OS&&f&&f in D?D[f]:p},w,{forwardedRef:t}))});_.displayName='TextInput',_.State={currentlyFocusedInput:x.default.currentlyFocusedInput,currentlyFocusedField:x.default.currentlyFocusedField,focusTextInput:x.default.focusTextInput,blurTextInput:x.default.blurTextInput};var H=v.default.create({multilineDefault:{paddingTop:5}}),z={auto:'auto',top:'top',bottom:'bottom',middle:'center'};_e.default=_},2207,[1,207,19,1865,2061,1923,2032,2059,2030,1838,2108,1876,39,78,128,258,2208,1877,2209]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var o=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var n,i,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(n=t?r:o){if(n.has(e))return n.get(e);n.set(e,u)}for(var l in e)"default"!==l&&{}.hasOwnProperty.call(e,l)&&((i=(n=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,l))&&(i.get||i.set)?n(u,l,i):u[l]=e[l]);return u})(e,t)})(_r(d[1])),o=e(_r(d[2]));_e.Commands=(0,o.default)({supportedCommands:['focus','blur','setTextAndSelection']});var r=_e.__INTERNAL_VIEW_CONFIG={uiViewClassName:'AndroidTextInput',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}}},directEventTypes:{topScroll:{registrationName:'onScroll'}},validAttributes:{maxFontSizeMultiplier:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,autoFocus:!0,placeholder:!0,inlineImagePadding:!0,contextMenuHidden:!0,textShadowColor:{process:_r(d[3]).default},maxLength:!0,selectTextOnFocus:!0,textShadowRadius:!0,underlineColorAndroid:{process:_r(d[3]).default},textDecorationLine:!0,submitBehavior:!0,textAlignVertical:!0,fontStyle:!0,textShadowOffset:!0,selectionColor:{process:_r(d[3]).default},selectionHandleColor:{process:_r(d[3]).default},placeholderTextColor:{process:_r(d[3]).default},importantForAutofill:!0,lineHeight:!0,textTransform:!0,returnKeyType:!0,keyboardType:!0,multiline:!0,color:{process:_r(d[3]).default},autoComplete:!0,numberOfLines:!0,letterSpacing:!0,returnKeyLabel:!0,fontSize:!0,onKeyPress:!0,cursorColor:{process:_r(d[3]).default},text:!0,showSoftInputOnFocus:!0,textAlign:!0,autoCapitalize:!0,autoCorrect:!0,caretHidden:!0,secureTextEntry:!0,textBreakStrategy:!0,onScroll:!0,onContentSizeChange:!0,disableFullscreenUI:!0,includeFontPadding:!0,fontWeight:!0,fontFamily:!0,allowFontScaling:!0,onSelectionChange:!0,mostRecentEventCount:!0,inlineImageLeft:!0,editable:!0,fontVariant:!0,borderBottomRightRadius:!0,borderBottomColor:{process:_r(d[3]).default},borderRadius:!0,borderRightColor:{process:_r(d[3]).default},borderColor:{process:_r(d[3]).default},borderTopRightRadius:!0,borderStyle:!0,borderBottomLeftRadius:!0,borderLeftColor:{process:_r(d[3]).default},borderTopLeftRadius:!0,borderTopColor:{process:_r(d[3]).default}}},n=t.get('AndroidTextInput',function(){return r});_e.default=n},2208,[1,1878,1919,1881]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.__INTERNAL_VIEW_CONFIG=_e.Commands=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var n=new WeakMap,r=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var u,i,o={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return o;if(u=t?r:n){if(u.has(e))return u.get(e);u.set(e,o)}for(var f in e)"default"!==f&&{}.hasOwnProperty.call(e,f)&&((i=(u=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,f))&&(i.get||i.set)?u(o,f,i):o[f]=e[f]);return o})(e,t)})(_r(d[1])),n=e(_r(d[2])),r=e(_r(d[3]));_e.Commands=(0,n.default)({supportedCommands:['focus','blur','setTextAndSelection']});var u=_e.__INTERNAL_VIEW_CONFIG=Object.assign({uiViewClassName:'RCTMultilineTextInputView'},r.default,{validAttributes:Object.assign({},r.default.validAttributes,{dataDetectorTypes:!0})}),i=t.get('RCTMultilineTextInputView',function(){return u});_e.default=i},2209,[1,1878,1919,1920]); -__d(function(g,_r,_i,a,m,_e,d){var t=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=t(_r(d[1])),i=t(_r(d[2])),o=t(_r(d[3])),s=t(_r(d[4])),E=t(_r(d[5])),n=t(_r(d[6]));(function(t,e){if("function"==typeof WeakMap)var i=new WeakMap,o=new WeakMap;(function(t,e){if(!e&&t&&t.__esModule)return t;var s,E,n={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return n;if(s=e?o:i){if(s.has(t))return s.get(t);s.set(t,n)}for(var l in t)"default"!==l&&{}.hasOwnProperty.call(t,l)&&((E=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,l))&&(E.get||E.set)?s(n,l,E):n[l]=t[l])})(t,e)})(_r(d[7])),_r(d[8]);var l=function(t){var e=t.touches,i=t.changedTouches,o=e&&e.length>0,s=i&&i.length>0;return!o&&s?i[0]:o?e[0]:t},h='NOT_RESPONDER',u='RESPONDER_INACTIVE_PRESS_IN',R='RESPONDER_INACTIVE_PRESS_OUT',r='RESPONDER_ACTIVE_PRESS_IN',_='RESPONDER_ACTIVE_PRESS_OUT',S='RESPONDER_ACTIVE_LONG_PRESS_IN',c='RESPONDER_ACTIVE_LONG_PRESS_OUT',T='ERROR',P={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},D=Object.assign({},P,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),N=Object.assign({},P,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),O=Object.assign({},P,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),p='DELAY',A='RESPONDER_GRANT',f='RESPONDER_RELEASE',b='RESPONDER_TERMINATED',I='ENTER_PRESS_RECT',L='LEAVE_PRESS_RECT',v='LONG_PRESS_DETECTED',y={NOT_RESPONDER:{DELAY:T,RESPONDER_GRANT:u,RESPONDER_RELEASE:T,RESPONDER_TERMINATED:T,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_IN:{DELAY:r,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:_,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:R,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:r,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:S},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:r,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:S},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:S,LEAVE_PRESS_RECT:c,LONG_PRESS_DETECTED:T},error:{DELAY:h,RESPONDER_GRANT:u,RESPONDER_RELEASE:h,RESPONDER_TERMINATED:h,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:h,LONG_PRESS_DETECTED:h}},C={componentDidMount:function(){o.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=h,this.state.touchable.responderID=e,this._receiveSignal(A,t);var i=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(i=isNaN(i)?130:i)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),i):this._handleDelay(t);var o=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;o=isNaN(o)?370:o,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),o+i)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(f,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(b,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,i=this.state.touchable.dimensionsOnActivate,o=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},s=o.left,E=o.top,n=o.right,h=o.bottom,R=this.touchableGetHitSlop?this.touchableGetHitSlop():null;R&&(s+=R.left||0,E+=R.top||0,n+=R.right||0,h+=R.bottom||0);var r=l(t.nativeEvent),_=r&&r.pageX,S=r&&r.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(_,S,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(_>e.left-s&&S>e.top-E&&_>`");o!==s&&(this._performSideEffectsForTransition(o,s,t,e),this.state.touchable.touchState=s)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===r||t===S},_savePressInLocation:function(t){var e=l(t.nativeEvent),i=e&&e.pageX,o=e&&e.pageY,s=e&&e.locationX,E=e&&e.locationY;this.pressInLocation={pageX:i,pageY:o,locationX:s,locationY:E}},_getDistanceBetweenPoints:function(t,e,i,o){var s=t-i,E=e-o;return Math.sqrt(s*s+E*E)},_performSideEffectsForTransition:function(t,e,i,E){var n=this._isHighlight(t),l=this._isHighlight(e);(i===b||i===f)&&this._cancelLongPressDelayTimeout();var R=t===h&&e===u,r=!D[t]&&D[e];if((R||r)&&this._remeasureMetricsOnActivation(),N[t]&&i===v&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),l&&!n?this._startHighlight(E):!l&&n&&this._endHighlight(E),N[t]&&i===f){var _=!!this.props.onLongPress,S=O[t]&&(!_||!this.touchableLongPressCancelsPress());(!O[t]||S)&&this.touchableHandlePress&&(l||n||(this._startHighlight(E),this._endHighlight(E)),'android'!==o.default.OS||this.props.touchSoundDisabled||s.default.playTouchSound(),this.touchableHandlePress(E))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){e.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},G=(C.touchableHandleFocus,C.touchableHandleBlur,(0,e.default)(C,["touchableHandleFocus","touchableHandleBlur"]));C.withoutDefaultFocusAndBlur=G;var V={Mixin:C,renderDebugView:function(t){t.color,t.hitSlop;return null}};_e.default=V},2210,[1,207,1884,1838,2063,2211,2213,128,258]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),u=o.default.twoArgumentPooler;function l(t,o){this.width=t,this.height=o}l.prototype.destructor=function(){this.width=null,this.height=null},l.getPooledFromElement=function(t){return l.getPooled(t.offsetWidth,t.offsetHeight)},o.default.addPoolingTo(l,u);e.default=l},2211,[1,2212]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(r(d[1])),t=function(n){var o=this;if(o.instancePool.length){var t=o.instancePool.pop();return o.call(t,n),t}return new o(n)},l=function(n){var t=this;(0,o.default)(n instanceof t,'Trying to release an instance into a pool of a different type.'),n.destructor(),t.instancePool.lengthi&&(f+=u&&o?v.currentPageX:u&&!o?v.currentPageY:!u&&o?v.previousPageX:v.previousPageY,s=1);else for(var h=0;h=i){f+=u&&o?l.currentPageX:u&&!o?l.currentPageY:!u&&o?l.previousPageX:l.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};e.default=n},2244,[]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var E=o(r(d[1])),n=o(r(d[2])),s=o(r(d[3])),A=(o(r(d[4])),o(r(d[5])),o(r(d[6])),Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'})),_=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',READ_VOICEMAIL:'com.android.voicemail.permission.READ_VOICEMAIL',WRITE_VOICEMAIL:'com.android.voicemail.permission.WRITE_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',BODY_SENSORS_BACKGROUND:'android.permission.BODY_SENSORS_BACKGROUND',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',READ_MEDIA_IMAGES:'android.permission.READ_MEDIA_IMAGES',READ_MEDIA_VIDEO:'android.permission.READ_MEDIA_VIDEO',READ_MEDIA_AUDIO:'android.permission.READ_MEDIA_AUDIO',READ_MEDIA_VISUAL_USER_SELECTED:'android.permission.READ_MEDIA_VISUAL_USER_SELECTED',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE',ACCESS_MEDIA_LOCATION:'android.permission.ACCESS_MEDIA_LOCATION',ACCEPT_HANDOVER:'android.permission.ACCEPT_HANDOVER',ACTIVITY_RECOGNITION:'android.permission.ACTIVITY_RECOGNITION',ANSWER_PHONE_CALLS:'android.permission.ANSWER_PHONE_CALLS',READ_PHONE_NUMBERS:'android.permission.READ_PHONE_NUMBERS',UWB_RANGING:'android.permission.UWB_RANGING',POST_NOTIFICATIONS:'android.permission.POST_NOTIFICATIONS',NEARBY_WIFI_DEVICES:'android.permission.NEARBY_WIFI_DEVICES'}),O=(function(){return(0,s.default)(function o(){(0,n.default)(this,o),this.PERMISSIONS=_,this.RESULTS=A},[{key:"checkPermission",value:function(o){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"check",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"requestPermission",value:(O=(0,E.default)(function*(o,E){return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}),function(o,E){return O.apply(this,arguments)})},{key:"request",value:(o=(0,E.default)(function*(o,E){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(this.RESULTS.DENIED)}),function(E,n){return o.apply(this,arguments)})},{key:"requestMultiple",value:function(o){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]);var o,O})(),S=new O;e.default=S},2245,[1,367,3,4,2004,2246,39]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2246,[2247]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('PermissionsAndroid')},2247,[1841]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=t(r(d[1])),n=t(r(d[2])),l=t(r(d[3])),u=t(r(d[4])),c=t(r(d[5])),f=t(r(d[6])),s=new l.default('ios'!==u.default.OS?null:c.default),v=new Map,h=(function(){function t(n){var l=this;(0,o.default)(this,t),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=n.remote,this._isRemote&&(this._notificationId=n.notificationId),n.remote?Object.keys(n).forEach(function(t){var o=n[t];'aps'===t?(l._alert=o.alert,l._sound=o.sound,l._badgeCount=o.badge,l._category=o.category,l._contentAvailable=o['content-available'],l._threadID=o['thread-id']):l._data[t]=o}):(this._badgeCount=n.applicationIconBadgeNumber,this._sound=n.soundName,this._alert=n.alertBody,this._data=n.userInfo,this._category=n.category)}return(0,n.default)(t,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(o,n){var l;(0,f.default)('notification'===o||'register'===o||'registrationError'===o||'localNotification'===o,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===o?l=s.addListener("remoteNotificationReceived",function(o){n(new t(o))}):'localNotification'===o?l=s.addListener("localNotificationReceived",function(o){n(new t(o))}):'register'===o?l=s.addListener("remoteNotificationsRegistered",function(t){n(t.deviceToken)}):'registrationError'===o&&(l=s.addListener("remoteNotificationRegistrationError",function(t){n(t)})),v.set(o,l)}},{key:"removeEventListener",value:function(t){(0,f.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var o=v.get(t);o&&(o.remove(),v.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,f.default)('function'==typeof t,'Must provide a valid callback'),(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getInitialNotification().then(function(o){return o&&new t(o)})}},{key:"getAuthorizationStatus",value:function(t){(0,f.default)(c.default,'PushNotificationManager is not available.'),c.default.getAuthorizationStatus(t)}}])})();h.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'};e.default=h},2248,[1,3,4,1986,1838,2249,39]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2249,[2250]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('PushNotificationManager')},2250,[1841]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var s=t(r(d[1])),n=t(r(d[2])),c=t(r(d[3])),l=[],u={_settings:n.default&&n.default.getConstants().settings,get:function(t){return this._settings[t]},set:function(t){this._settings=Object.assign(this._settings,t),n.default.setValues(t)},watchKeys:function(t,s){'string'==typeof t&&(t=[t]),(0,c.default)(Array.isArray(t),'keys should be a string or array of strings');var n=l.length;return l.push({keys:t,callback:s}),n},clearWatch:function(t){t1&&void 0!==arguments[1]?arguments[1]:{};return r(d[5])('object'==typeof t&&null!==t,'Content to share must be a valid object'),r(d[5])('string'==typeof t.url||'string'==typeof t.message,'At least one of URL or message is required'),r(d[5])('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise(function(n,u){var c=r(d[6]).default(o.tintColor);r(d[5])(null==c||'number'==typeof c,'Unexpected color given for options.tintColor'),r(d[5])(s.default,'NativeActionSheetManager is not registered on iOS, but it should be.'),s.default.showShareActionSheetWithOptions({message:'string'==typeof t.message?t.message:void 0,url:'string'==typeof t.url?t.url:void 0,subject:o.subject,tintColor:'number'==typeof c?c:void 0,anchor:'number'==typeof o.anchor?o.anchor:void 0,excludedActivityTypes:o.excludedActivityTypes},function(t){return u(t)},function(t,o){n(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})})})}}])})());u.sharedAction='sharedAction',u.dismissedAction='dismissedAction';e.default=u},2254,[1,3,4,2219,2255,39,1881]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2255,[2256]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.get('ShareModule')},2256,[1841]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o={SHORT:0,LONG:0,TOP:0,BOTTOM:0,CENTER:0,show:function(o,t){console.warn('ToastAndroid is not supported on this platform.')},showWithGravity:function(o,t,n){console.warn('ToastAndroid is not supported on this platform.')},showWithGravityAndOffset:function(o,t,n,s,f){console.warn('ToastAndroid is not supported on this platform.')}};e.default=o},2257,[]); -__d(function(g,r,i,a,m,e,d){var u=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,l){var c=(0,t.useRef)(null);null==c.current&&(c.current=new n.default.Value(u,l));return c.current};var n=u(r(d[1])),t=r(d[2])},2258,[1,2073,128]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return(0,n.useSyncExternalStore)(t,r(d[1]).getColorScheme)};var n=r(d[0]),t=function(n){var t=(0,r(d[1]).addChangeListener)(n);return function(){return t.remove()}}},2259,[128,2221]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var A=r(d[0]).default({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NEWLINE:"\n",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});e.default=A},2260,[2040]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=t(r(d[1])),o=!1,u=0;function f(t){var f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o||(o=!0,0===t[0]&&(n.default.vibrate(400),t=t.slice(1)),0!==t.length?setTimeout(function(){return l(++u,t,f,1)},t[0]):o=!1)}function l(t,f,v,c){if(o&&t===u){if(n.default.vibrate(400),c>=f.length){if(!v)return void(o=!1);c=0}setTimeout(function(){return l(t,f,v,c+1)},f[c])}}var v={vibrate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:400,u=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!o)if('number'==typeof t)n.default.vibrate(t);else{if(!Array.isArray(t))throw new Error('Vibration pattern should be a number or array');f(t,u)}},cancel:function(){o=!1}};e.default=v},2261,[1,2262]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={};_e.default=void 0;var t=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));Object.keys(t).forEach(function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(e,r)||r in _e&&_e[r]===t[r]||Object.defineProperty(_e,r,{enumerable:!0,get:function(){return t[r]}}))});_e.default=t.default},2262,[2263]); -__d(function(g,_r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=(function(e,t){if("function"==typeof WeakMap)var r=new WeakMap,n=new WeakMap;return(function(e,t){if(!t&&e&&e.__esModule)return e;var o,f,u={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return u;if(o=t?n:r){if(o.has(e))return o.get(e);o.set(e,u)}for(var i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((f=(o=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,i))&&(f.get||f.set)?o(u,i,f):u[i]=e[i]);return u})(e,t)})(_r(d[0]));_e.default=e.getEnforcing('Vibration')},2263,[1841]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(t){return(0,r(d[0]).DynamicColorIOSPrivate)({light:t.light,dark:t.dark,highContrastLight:t.highContrastLight,highContrastDark:t.highContrastDark})}},2264,[1883]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.UIText=e.Text=function(t){var c=t.variant,h=void 0===c?'body':c,l=t.weight,f=void 0===l?'normal':l,s=t.children,v=(0,n.default)(t,u);return(0,o.jsx)(r(d[4]).Text,Object.assign({},(function(){switch(h){case'heading':return{fontSize:24,fontWeight:'600',lineHeight:32};case'body':return{fontSize:16,fontWeight:'400',lineHeight:24};case'caption':return{fontSize:12,fontWeight:'400',lineHeight:16};case'label':return{fontSize:14,fontWeight:'500',lineHeight:20};default:return{}}})(),{fontWeight:(function(){switch(f){case'light':return 300;case'medium':return 500;case'semibold':return 600;case'bold':return 700;default:return 400}})()},v,{children:s}))};var n=t(r(d[1])),o=(t(r(d[2])),r(d[3])),u=["variant","weight","children"]},2265,[1,207,128,258,1460]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0]);Object.defineProperty(e,"__esModule",{value:!0}),e.copyToClipboard=function(o){return n.apply(this,arguments)};var t=o(r(d[1]));function n(){return(n=(0,t.default)(function*(o){try{if('undefined'==typeof window||!window.document)return console.warn('copyToClipboard called in React Native environment - handle in component'),!1;if(navigator.clipboard&&navigator.clipboard.writeText)return yield navigator.clipboard.writeText(o),!0;var t=document.createElement('textarea');t.value=o,t.style.position='fixed',t.style.opacity='0',t.style.pointerEvents='none',document.body.appendChild(t),t.focus(),t.select();try{var n=document.execCommand('copy');return document.body.removeChild(t),n}catch(o){return document.body.removeChild(t),console.error('Fallback copy failed:',o),!1}}catch(o){return console.error('Failed to copy to clipboard:',o),!1}})).apply(this,arguments)}},2266,[1,367]); -__d(function(g,_r,_i,a,m,_e,d){var e=_r(d[0]);Object.defineProperty(_e,"__esModule",{value:!0}),_e.AccountCard=function(e){var c,l,h,u=e.account,j=e.title,f=e.isLoading,x=void 0!==f&&f,p=e.isSendTokensScreen,b=void 0!==p&&p,S=e.accounts,v=e.onAccountSelect,$=e.modalTitle,k=void 0===$?'Select Account':$,w=e.enableModalSelection,y=void 0!==w&&w,z=e.showEditButton,W=void 0!==z&&z,T=e.showCopyButton,C=void 0!==T&&T,F=e.onCopyAddress,E=(0,n.default)(e,r),A=(0,i.useState)(!1),L=(0,t.default)(A,2),M=L[0],X=L[1];if(!u)return(0,o.jsxs)(_r(d[5]).YStack,Object.assign({width:"100%",pt:"$2",px:"$1",pb:"$6",gap:"$1"},E,{children:[(0,o.jsx)(_r(d[6]).Text,{fontSize:"$3",mb:"$1",fontWeight:"400",color:"$textSecondary",lineHeight:16,children:j}),(0,o.jsx)(_r(d[6]).Text,{color:"$error",children:"No account data available"})]}));var Y=(0,o.jsxs)(_r(d[5]).YStack,Object.assign({width:"100%",rounded:"$4",pt:"$1",pb:b?'$4':'$1',gap:"$1",onPress:y?function(){return X(!0)}:void 0,cursor:y?'pointer':'default'},E,{children:[j&&(0,o.jsx)(_r(d[6]).Text,{fontSize:"$3",mb:b?'$8':'$1',fontWeight:"400",lineHeight:16,children:j}),(0,o.jsxs)(_r(d[5]).XStack,{py:"$2",pl:"$1.25",pr:0,justify:"space-between",items:"center",flex:1,children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:"$4",flex:1,children:[(0,o.jsxs)(_r(d[5]).XStack,{position:"relative",width:36,height:36,children:[(0,o.jsx)(_r(d[7]).Avatar,{src:u.avatar,fallback:(null==(c=u.emojiInfo)?void 0:c.emoji)||(null==(l=u.name)?void 0:l.charAt(0))||'?',bgColor:null==(h=u.emojiInfo)?void 0:h.color,size:36,borderColor:"$primary",borderWidth:1}),u.parentEmoji&&(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",l:-6,t:-6,width:18,height:18,rounded:9,bg:u.parentEmoji.color||'$bg2',borderWidth:2,borderColor:"$bg2",items:"center",justify:"center",overflow:"hidden",children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"600",lineHeight:12,children:u.parentEmoji.emoji})})]}),(0,o.jsxs)(_r(d[5]).YStack,{flex:1,gap:"$0.5",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:4,minH:20,children:[('child'===u.type||u.parentEmoji)&&(0,o.jsx)(_r(d[8]).Link,{size:12.8,color:"#767676",theme:"outline"}),(0,o.jsx)(_r(d[6]).Text,{color:"$text",fontSize:14,fontWeight:"600",lineHeight:17,numberOfLines:1,children:u.name||'Unnamed Account'}),'evm'===u.type&&(0,o.jsx)(_r(d[5]).XStack,{bg:"$accentEVM",rounded:"$4",px:4,items:"center",justify:"center",height:16,children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"400",color:"#FFFFFF",lineHeight:9.7,letterSpacing:.128,children:"EVM"})})]}),(0,o.jsx)(_r(d[9]).AddressText,{address:u.address,truncate:!0,startLength:6,endLength:4,color:"$textSecondary",minH:18,w:"100%"}),(0,o.jsx)(_r(d[5]).XStack,{items:"center",gap:"$2",minH:17,children:x?(0,o.jsx)(_r(d[10]).Skeleton,{width:"$12",height:"$3",borderRadius:"$2"}):u.balance?(0,o.jsxs)(_r(d[6]).Text,{color:"$textMuted",fontWeight:"400",fontSize:"$2",lineHeight:17,numberOfLines:1,flex:1,children:[s(u.balance)," FLOW"]}):null})]})]}),(0,o.jsxs)(_r(d[5]).XStack,{gap:"$2",items:"center",children:[C&&(0,o.jsx)(_r(d[11]).IconButton,{icon:(0,o.jsx)(_r(d[8]).Copy,{size:24,color:"#767676",theme:"outline"}),variant:"ghost",size:"small",onPress:function(){return null==F?void 0:F(u.address)}}),W&&(0,o.jsx)(_r(d[11]).IconButton,{icon:(0,o.jsx)(_r(d[8]).Edit,{size:24,color:"#767676",theme:"outline"}),variant:"ghost",size:"small"})]})]})]}));return(0,o.jsxs)(o.Fragment,{children:[Y,y&&S&&M&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",top:0,left:0,right:0,bottom:0,bg:"rgba(0, 0, 0, 0.5)",onPress:function(){return X(!1)},zIndex:1e3}),(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",bottom:0,left:0,right:0,alignSelf:"center",maxWidth:375,bg:"$bg2",borderTopLeftRadius:16,borderTopRightRadius:16,shadowColor:"$shadowColor",shadowOffset:{width:0,height:-2},shadowOpacity:.1,shadowRadius:8,elevation:8,pt:12,px:16,pb:20,zIndex:1001,children:(0,o.jsxs)(_r(d[5]).YStack,{gap:16,children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",justify:"space-between",pt:10,position:"relative",children:[(0,o.jsx)(_r(d[6]).Text,{fontSize:14,fontWeight:"400",color:"$white",children:k}),(0,o.jsx)(_r(d[5]).XStack,{position:"absolute",right:0,top:10,onPress:function(){return X(!1)},cursor:"pointer",children:(0,o.jsx)(_r(d[8]).Close,{size:15,color:"rgba(255, 255, 255, 0.8)",theme:"outline"})})]}),(0,o.jsx)(_r(d[5]).YStack,{maxH:400,bg:"$bg2",rounded:16,gap:2,pb:8,children:(0,o.jsx)(_r(d[5]).ScrollView,{showsVerticalScrollIndicator:!1,children:(0,o.jsx)(_r(d[5]).YStack,{children:S.map(function(e,t){var n,r,s,c=(null==u?void 0:u.address)===e.address;return(0,o.jsxs)(i.default.Fragment,{children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",justify:"space-between",gap:8,onPress:function(){return t=e,v&&v(t),void X(!1);var t},cursor:"pointer",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:8,children:[(0,o.jsxs)(_r(d[5]).XStack,{position:"relative",width:53.44,height:53.44,children:[(0,o.jsx)(_r(d[7]).Avatar,{src:e.avatar,fallback:(null==(n=e.emojiInfo)?void 0:n.emoji)||(null==(r=e.name)?void 0:r.charAt(0))||'?',bgColor:null==(s=e.emojiInfo)?void 0:s.color,size:53.44,borderColor:c?'$primary':void 0,borderWidth:c?1:void 0}),e.parentEmoji&&(0,o.jsx)(_r(d[5]).YStack,{position:"absolute",l:-6,t:-6,width:18,height:18,rounded:9,bg:e.parentEmoji.color||'$bg2',borderWidth:2,borderColor:"$bg2",items:"center",justify:"center",overflow:"hidden",children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"600",lineHeight:12,children:e.parentEmoji.emoji})})]}),(0,o.jsxs)(_r(d[5]).YStack,{gap:2,flex:1,justify:"center",children:[(0,o.jsxs)(_r(d[5]).XStack,{items:"center",gap:4,children:[('child'===e.type||e.parentEmoji)&&(0,o.jsx)(_r(d[8]).Link,{size:12.8,color:chainLinkIconColor,theme:"outline"}),(0,o.jsx)(_r(d[6]).Text,{fontSize:14,fontWeight:"600",color:"rgba(255, 255, 255, 0.8)",numberOfLines:1,ellipsizeMode:"tail",children:e.name||'Unnamed Account'}),'evm'===e.type&&(0,o.jsx)(_r(d[5]).XStack,{bg:"$accentEVM",rounded:"$4",px:4,items:"center",justify:"center",height:16,children:(0,o.jsx)(_r(d[6]).Text,{fontSize:8,fontWeight:"400",color:"#FFFFFF",lineHeight:9.7,letterSpacing:.128,children:"EVM"})})]}),(0,o.jsx)(_r(d[9]).AddressText,{address:e.address,truncate:!0,startLength:6,endLength:4,fontSize:14,fontWeight:"400",color:"rgba(255, 255, 255, 0.8)"})]})]}),c&&(0,o.jsx)(_r(d[5]).YStack,{width:24,height:24,items:"center",justify:"center",children:(0,o.jsx)(_r(d[8]).CheckCircle,{size:24,color:"$success",theme:"filled"})})]}),t=i))break;u-=i}var l=t.slice(0,e).replace(/^\t+/,E),c=/(^|\n).*$/.exec(l),s=c&&c[0]||'',f=t.slice(e),p=/.*(\n|$)/.exec(f);return{line:o,column:u,snippet:`${s}${p&&p[0]}\n${O(' ',s.length)}^`}}var w=/[a-zA-Z0-9:_-]/,M=/